• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Fast Attack 0.3.6 TFS

taif

Haze Fan
Joined
Feb 7, 2009
Messages
65
Reaction score
2
Location
Sweden
I did change the "attackspeed="400"" But it does still not work.
I believe i read something about compiling the source?
 
Code:
<vocation id="0" name="None" description="none" needpremium="0" gaincap="5" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="1" gainmanaticks="6" gainmanaamount="1" manamultiplier="4.0" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="0" attackable="no">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="1" name="Sorcerer" description="a sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="5" gainmanaticks="3" gainmanaamount="5" manamultiplier="1.1" attackspeed="400" soulmax="100" gainsoulticks="120" fromvoc="1">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="2" name="Druid" description="a druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="5" gainmanaticks="3" gainmanaamount="5" manamultiplier="1.1" attackspeed="380" soulmax="100" gainsoulticks="120" fromvoc="2">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="3" name="Paladin" description="a paladin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="4" gainhpamount="5" gainmanaticks="4" gainmanaamount="5" manamultiplier="1.4" attackspeed="140" soulmax="100" gainsoulticks="120" fromvoc="3">
        <formula meleeDamage="0.5" distDamage="0.5" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.1" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.2" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="4" name="Knight" description="a knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="3" gainhpamount="5" gainmanaticks="6" gainmanaamount="5" manamultiplier="3.0" attackspeed="300" soulmax="100" gainsoulticks="120" fromvoc="4">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>
   
    <vocation id="5" name="Master Sorcerer" description="a Master sorcerer" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="250" soulmax="200" gainsoulticks="15" fromvoc="1">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="6" name="Elder Druid" description="an elder druid" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="250" soulmax="200" gainsoulticks="15" fromvoc="2">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="7" name="Royal Paladin" description="a royal Ranger" needpremium="1" gaincap="20" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="10" gainmanaticks="3" gainmanaamount="10" manamultiplier="1.4" attackspeed="100" soulmax="200" gainsoulticks="15" fromvoc="3">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="8" name="Elite Knight" description="an elite warrior" needpremium="1" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="10" gainmanaticks="4" gainmanaamount="10" manamultiplier="3.0" attackspeed="150" soulmax="200" gainsoulticks="15" fromvoc="4">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>
 
I've read about there are some limits for the attack speed, change it to 700 for example, or 900 and check if it works.
 
Have just read a post when a guy said "you have to change every attackspeed to make it works". I do not know if it will be true but change the "No vocation" attackspeed to 1900 for example, or whatever. So that is the one you did not change.
 
I've read about there are some limits for the attack speed, change it to 700 for example, or 900 and check if it works.
on crying damson 0.3.6 i can see difference without changing all.So question is do you restart your server after all chanages in attack speed?(reload doesnt work properly)
 
The reason it does not work is because events refresh at a rate of 500ms, so if you compare an attack speed of 1000 vs 500 you will notice the change, however if you compare an attack speed of 1000 vs 750 you will not.
HOWEVER! If you have an attack speed of 750 and you spam attack (rapidly click the battle window) it will attack at a rate of 750, although this is extremely annoying for a player to do. There is a way to fix this issue via source if you change the creature think from 500 to 100 (or w/e you want) although from my experience this causes more issues than its worth.
 
Just like Xagul said..
Try clicking very fast in the battle. You will attack fast.
You can change it via sources, as Xagul said, but the creature think will affect other scripts too and a lot of other things.. it's a good solution for your problem, but bad for anothers.
 
Just like Xagul said..
Try clicking very fast in the battle. You will attack fast.
You can change it via sources, as Xagul said, but the creature think will affect other scripts too and a lot of other things.. it's a good solution for your problem, but bad for anothers.

Mate, how do i change it via sources?
Fast attack might lag server?
 
Not fast attack.. But the crature think.
Open creature.h and search for:
Code:
#define EVENT_CREATURE_THINK_INTERVAL
Then change the value.
like:
Code:
#define EVENT_CREATURE_THINK_INTERVAL 100
 
Not fast attack.. But the crature think.
Open creature.h and search for:
Code:
#define EVENT_CREATURE_THINK_INTERVAL
Then change the value.
like:
Code:
#define EVENT_CREATURE_THINK_INTERVAL 100

Is this tested?
Because I do not have a server to test it on.
 
Yes.. It'll work.
The reason the server can't to let you attack so fast is because it do not load the player's actions this fast.
If you make it think every 0,1 sec it will load player's actions very fast.
 
lol first of all :D
attackspeed in vocation.xml can be fast want to know how?
change vocationattackspeed to 100

attack u can't see it speed

but try to move right and left as fast you can and u will see the speed of attack

but in 0.3.6 there is attribute can be set in item
like spear or anything in items.xml
<attribute key="attackSpeed" value="1" />
:p
 
lol first of all :D
attackspeed in vocation.xml can be fast want to know how?
change vocationattackspeed to 100

attack u can't see it speed

but try to move right and left as fast you can and u will see the speed of attack

but in 0.3.6 there is attribute can be set in item
like spear or anything in items.xml
<attribute key="attackSpeed" value="1" />
:p

What do you mean? Add the "
<attribute key="weight" value="200"/>
<attribute key="attack" value="30"/>
<attribute key="attackSpeed" value="1" />

That simple huh?
 
lol first of all :D
attackspeed in vocation.xml can be fast want to know how?
change vocationattackspeed to 100

attack u can't see it speed

but try to move right and left as fast you can and u will see the speed of attack

but in 0.3.6 there is attribute can be set in item
like spear or anything in items.xml
<attribute key="attackSpeed" value="1" />
:p
He did that already.

It won't work, since the creature think is 0,5 sec.
But as Evil said, you CAN attack fast if you force the game to check the player's actions faster (like moving or re-attacking).
If you want the player to attack faster even without moving, you need to edit the sources.
 
He did that already.

It won't work, since the creature think is 0,5 sec.
But as Evil said, you CAN attack fast if you force the game to check the player's actions faster (like moving or re-attacking).
If you want the player to attack faster even without moving, you need to edit the sources.
How do I edit the sources?
 
First, you need a distribuition of the souces.
Then just open creature.h
Search for:
Code:
#define EVENT_CREATURE_THINK_INTERVAL
Then change the value.
like:
Code:
#define EVENT_CREATURE_THINK_INTERVAL 100
And then compile it.

If you have an edited distribution, it would be bad to use this way.
I recommend you to do not do it. Since you could lose modifications that your ot already have.

-- But this is the only way.
 
Last edited:
Back
Top