amr shalapy
Banned User
- Joined
- Aug 28, 2014
- Messages
- 122
- Reaction score
- 8
Hello when i use the teleport stone i got this error and it's not working
and here is my action id code and script thanks..
my script:-
and here is my action id code and script thanks..
Code:
<action itemid="5892" script="tp stone.lua"/>
Code:
Lua Script Error: [Action Interface]
data/actions/scripts/tp stone.lua:onUse
data/actions/scripts/tp stine.lua:5: attempt to call global "getPlayerConditionTricks' <a nil value>
my script:-
Code:
function onUse(cid, item, frompos, item2, topos)
temple = {x=6166,y=6048,z=7}
pos = getPlayerPosition(cid)
if getPlayerConditionTicks(cid, 1024) > 0 then
doPlayerSay(cid, "Sorry, cant do that with fight.", 16)
else
doTeleportThing(cid, temple)
doSendMagicEffect(temple, 35)
end
end