Hello otlanders, i need some "edit" help with my teleport doll ! rep+ for help, here's my script!
I need someone that can help with this; add 30 sec delay, so you can't spam it!, rep+ for help me!
I need someone that can help with this; add 30 sec delay, so you can't spam it!, rep+ for help me!
local newpos = {x=1002, y=1001, z=4} --New position
function onUse(cid, item, frompos, item2, topos)
local inFight = hasCondition(cid, CONDITION_INFIGHT)
if not inFight then
doSendMagicEffect(getPlayerPosition(cid), 2)
doTeleportThing(cid,newpos)
doSendMagicEffect(newpos,10)
else
doPlayerSendTextMessage(cid,25,"You could not use this teleport scroll if you are in fight!")
end
return 1
end