God Triaca
New Member
- Joined
- Dec 13, 2008
- Messages
- 23
- Reaction score
- 1
Hi guys,
How can I set for cast spell / rune while running?
I opened player.cpp but I dont know what I need to change here.
I tried to do this bellow but I didnt found the code on player.cpp
Go to Player.cpp in your source files and Search this fuction
Later Change this with that:
And for use rune attack at the same time remove this code in your source file:
For Otx use this change line:
If you just help with job we can talk about it!
How can I set for cast spell / rune while running?
I opened player.cpp but I dont know what I need to change here.
I tried to do this bellow but I didnt found the code on player.cpp
Go to Player.cpp in your source files and Search this fuction
Code:
else if((!weapon->hasExhaustion() || !hasCondition(CONDITION_EXHAUST, EXHAUST_COMBAT)) && weapon->useWeapon(this, tool, attackedCreature))
Later Change this with that:
Code:
else if(!weapon->hasExhaustion() && weapon->useWeapon(this, tool, attackedCreature))
And for use rune attack at the same time remove this code in your source file:
Code:
setNextAction(OTSYS_TIME() + getStepDuration(dir));
For Otx use this change line:
Code:
if(!_weapon->hasExhaustion() && _weapon->useWeapon(this, weapon, attackedCreature))
If you just help with job we can talk about it!
Attachments
-
player.rar23.6 KB · Views: 5 · VirusTotal
-
1547737655077.png5.6 KB · Views: 15 · VirusTotal
Last edited: