Snakie
New Member
- Joined
- Apr 15, 2010
- Messages
- 263
- Reaction score
- 4
Hey guys i got this tp stoone, it teleports a player to a tempel as soon as he lost pz i wannt to set time on it like 10 seconds, when a player lost hes pz he clicks on the tp stoone and when 10 secs gone by and he didnt gain pz he gets tped to the temple.
Can somebody add this function and post the new rescripted script here?
Here comes the script hope someone can help me!
function onUse(cid, item, fromPosition, itemEx, toPosition)
local pos = getThingPos(cid)
if getTileInfo(pos).protection then
doPlayerSendCancel(cid, 'You cannot use this inside a protection zone.')
elseif getCreatureCondition(cid, CONDITION_INFIGHT) then
doPlayerSendCancel(cid, 'You can\'t teleport immediately after fight.')
else
doTeleportThing(cid, getPlayerMasterPos(cid))
doSendMagicEffect(pos, 66)
doSendAnimatedText(pos, 'Teleport!', 16)
return true
end
return doSendMagicEffect(pos, CONST_ME_POFF)
end
Can somebody add this function and post the new rescripted script here?
Here comes the script hope someone can help me!
function onUse(cid, item, fromPosition, itemEx, toPosition)
local pos = getThingPos(cid)
if getTileInfo(pos).protection then
doPlayerSendCancel(cid, 'You cannot use this inside a protection zone.')
elseif getCreatureCondition(cid, CONDITION_INFIGHT) then
doPlayerSendCancel(cid, 'You can\'t teleport immediately after fight.')
else
doTeleportThing(cid, getPlayerMasterPos(cid))
doSendMagicEffect(pos, 66)
doSendAnimatedText(pos, 'Teleport!', 16)
return true
end
return doSendMagicEffect(pos, CONST_ME_POFF)
end