1
[NPC] Quest Jue Oct 26, 2017 6:26 pm
cimmeria

Miembro

The Forgotten Server 0.4_SVN gracias
Tibiaface | Una comunidad Open Tibia donde encontras : mapas, scripts, Otserver, npc y amigos etc ...
function onUse(cid, item, frompos, item2, topos)
if (getPlayerStorageValue(cid,5500) > 0) then
pos = getPlayerPosition(cid)
if pos.x == topos.x then
if pos.y < topos.y then
pos.y = topos.y + 1
else
pos.y = topos.y - 1
end
elseif pos.y == topos.y then
if pos.x < topos.x then
pos.x = topos.x + 1
else
pos.x = topos.x - 1
end
else
doPlayerSendTextMessage(cid,22,"you need stand front of the door!.")
return true
end
doTeleportThing(cid,pos)
doSendMagicEffect(topos,12)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "you dont have access in this area")
end
return true
end
<action uniqueid="xxxx" event="script" value="doorquest.lua"/>
Temas similares
Permisos de este foro:
No puedes responder a temas en este foro.
|
|