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

Function on say or spell

Dogrinha

New Member
Joined
Oct 6, 2019
Messages
206
Solutions
1
Reaction score
2
can someone tell me the code if if the person speaks or uses magic? I would like to add to anti idle so the player will not fall if they speak or use magic
tfs 0.4


Lua:
if(getTileInfo(getCreaturePosition(cid)).nologout or getCreatureNoMove(cid) or
        getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_ALLOWIDLE)) then
 
Maybe you can add something like if player is exhausted? to recognize if hes using a spell?
hasCondition(cid, CONDITION_EXHAUST, EXHAUST_COMBAT)
 
I need to do my anti idle, consider talking or spelling players so they don't fall, I had to remove the anti idle from the server, and I would like to fix it.
 
Back
Top