function onUse(cid, item, frompos, item2, topos)
if item.itemid == XXX then -- id item
local playerpos = getCreaturePosition(cid)
doRemoveItem(item.uid,1)
doSendMagicEffect(playerpos,12)
doPlayerSendTextMessage(cid,22,"Zosta?e? przeniesiony do NAZWA MIEJSCA")
doTeleportThing(cid,{x=X, y=Y, z=Z})
end
end
Pozdro
@down
Ale mo?esz wpisa? id fielda czy co? i bedzie ok.
--edit by Fizio--
function onStepIn(cid, item, pos)
if item.actionid == [COLOR="Lime"]9981[/COLOR] then
local pos = getPlayerPosition(cid)
local tppos = {[COLOR="Blue"]x=1031, y=995, z=5[/COLOR]}
doTeleportThing(cid,tppos)
doPlayerSendTextMessage(cid, 19, "[COLOR="Purple"]Zostales przeteleportowany do miasta[/COLOR].")
end
return 1
end
ID, ustaw taki w map edytorze pozycja tekst jaki ma si? pojawi? po nieteleportowaniu.
potem w data/movements/movements.xml
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.