Sir Islam
Never Give Up
First Script :
Use XX item then Summon Creature Convince (pet ) and > you cant use in pz :
if have summon > You can have only one summon :
if pet die > you have to Wait 20 sec to summon again :
Secondly Script :
Use xxx Item then player get freeze 10 sec then Teleport to {x=xxx, y=xxx, z=x} after Teleport > doCreatureSay ( Teleport )
than Cancel Teleport if player get Battle
if player have Battle > You Cannot Teleport Right After A Battle
you have to Wait 20 sec to use it again
i use this script
Thirdly Script :
if player say !Teleport then player get freeze 20 sec then Teleport to {x=xxx, y=xxx, z=x} and can use in pz or
Battle
any one can help me
Use XX item then Summon Creature Convince (pet ) and > you cant use in pz :
if have summon > You can have only one summon :
if pet die > you have to Wait 20 sec to summon again :
Secondly Script :
Use xxx Item then player get freeze 10 sec then Teleport to {x=xxx, y=xxx, z=x} after Teleport > doCreatureSay ( Teleport )
than Cancel Teleport if player get Battle
if player have Battle > You Cannot Teleport Right After A Battle
you have to Wait 20 sec to use it again
i use this script
Code:
function countDown(number, pos, effect, msgonend, effectonend)
local n = number
for i = 1, number do
addEvent(doSendAnimatedText,i* 1000, pos, n > 1 and n.."" or msgonend .."", n < 6 and TEXTCOLOR_RED or TEXTCOLOR_GREEN)
addEvent(doSendMagicEffect,i* 1000, pos, n > 1 and effect or effectonend )
n = n -1
end
n = number
return true
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isPlayerPzLocked(cid) then
doPlayerSendCancel(cid,"You Cannot Teleport Right After A Battle!.")
else
countDown(10, getThingPos(cid), 5, "Teleport!", 2)
doCreatureSetNoMove(cid, 1)
addEvent(doTeleportThing,10000,cid,getTownTemplePosition(getPlayerTown(cid)),FALSE)
addEvent(doCreatureSetNoMove,10000,cid, 0)
addEvent(doSendMagicEffect,10004,getTownTemplePosition(getPlayerTown(cid)), 10)
end
return true
end
Thirdly Script :
if player say !Teleport then player get freeze 20 sec then Teleport to {x=xxx, y=xxx, z=x} and can use in pz or
Battle
any one can help me