• 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!

C++ stop mapclick tfs 1.2

rudger

Active Member
Joined
Oct 1, 2010
Messages
252
Solutions
1
Reaction score
32
Location
The Netherlands
I'm using tfs 1.2, client 10.80 and would like to stop walking with mapclick when I cast a spell.

I tried to add
Code:
player->stopWalk();
in
Code:
void Spell::postCastSpell
but then I disable walking with arrow keys.
 
If you are talking about auto walk and then casting a spell with hotkey, then it is cancelling the walk
 
untested but try adding this to both postCastSpell functions
C++:
    player->onWalkComplete();
    player->stopEventWalk();
 
player->stopEventWalk(); works but then I can't walk anymore.

Weird if I put it in bool CombatSpell::castSpell it only works with walking with arrow keys but if I put the functions in postCastspell it works with arrow keys and mapclick, but then you can't walk anymore.
 
Last edited by a moderator:
Back
Top