Hello guys!
I have a little problem with my action script.
The script is:
And the error is:
onUse this item it give me the error 'You are in a fight or with battle' but i'm not with that !!!
I'm using TFS 0.3.6
Can you please fix it?
AND PUT TO JUST PREMIUM PLAYERS USE IT?
Thanks!
I have a little problem with my action script.
The script is:
Lua:
function onUse(cid, item, frompos, item2, topos)
local pos = {x = 453, y = 126, z = 7}
if getCreatureCondition(cid, CONDITION_INFIGHT) == 0 then
doTeleportThing(cid,pos)
else
doPlayerSendCancel(cid, "You are in a fight or with battle.")
end
return 1
end
And the error is:
onUse this item it give me the error 'You are in a fight or with battle' but i'm not with that !!!
I'm using TFS 0.3.6
Can you please fix it?
AND PUT TO JUST PREMIUM PLAYERS USE IT?
Thanks!