Casting spell / rune while running. [help or job]

God Triaca

Excellent OT User
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
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

Last edited:

MartK

Member
Joined
Dec 6, 2018
Messages
42
Reaction score
14
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))
 

CipsoftStinks

www.relicaria.com
Joined
Oct 1, 2016
Messages
906
Reaction score
113
Location
Chile
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
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!
if you are using otx2 i commited it long ago you dont need source edit, you are using the same tutorial that i used xD
 
OP
G

God Triaca

Excellent OT User
Joined
Dec 13, 2008
Messages
23
Reaction score
1
@CipsoftStinks that tutorial didnt worked for me, I dont want to remove the exhaustion but I want to make the chars walk while cast spells etc...

@MartK yah I have teamviewer if you want to try help me.
but remove exhaustion worked fine, but I dont want remove exhaustion from spells, I just want make my char walk when I'm casting spells or unes, like tibia global.
 

celohere

Excellent OT User
Joined
Nov 27, 2007
Messages
74
Reaction score
22
@CipsoftStinks that tutorial didnt worked for me, I dont want to remove the exhaustion but I want to make the chars walk while cast spells etc...

@MartK yah I have teamviewer if you want to try help me.
but remove exhaustion worked fine, but I dont want remove exhaustion from spells, I just want make my char walk when I'm casting spells or unes, like tibia global.
maybe i'm wrong but i think its client sided , you can cast spells or shoot runes without stop walking just with otclient
 
Top