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

Lua Use item when "no fight"

shor

New Member
Joined
Jan 2, 2011
Messages
137
Reaction score
0
Location
Poland
I'm wondering how to script this:


Player can use item only if he doesnt have "fight symbol", I don't mean PZ lock, just normal fight.


As I can see there is a function isPlayerPzLocked(cid), but it's connected with fight after attacking player, not normal fight (after fight with monster for example).

Anyone can help me?
 
Code:
if hasCondition(cid, CONDITION_INFIGHT) then
return doPlayerSendCancel(cid, "Please Stop Fighting.(Ass Hole ^^)") and doSendMagicEffect(getThingPos(cid), 2)
end

add my skype if you need more help
Evronium Fellow
 
Back
Top