Ray Rewind
Doctor
I search for a script when a player reach level 8 for example he gets teleported to x x x position. there shouls be an oracle where he can choose vocation and get teleported to main town
function onAdvance(cid, oldlevel, newlevel)
newPosition = {x=382, y=474, z=7}
if getPlayerStorageValue(cid, 1000) == -1 and newlevel == 8 then
doTeleportThing(cid, newPosition)
setPlayerStorageValue(cid, 1000, 1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Message Here.")
end
end
Please if you are gonna put anything on the forum, please atleast tab it..Ty !
Code:function onAdvance(cid, oldlevel, newlevel) newPosition = {x=382, y=474, z=7} if getPlayerStorageValue(cid, 1000) == -1 and newlevel == 8 then doTeleportThing(cid, newPosition) setPlayerStorageValue(cid, 1000, 1) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Message Here.") end end
function onAdvance(cid, oldlevel, newlevel)
newPosition = {x=382, y=474, z=7}
if getPlayerStorageValue(cid, 1000) == -1 and newlevel == 8 then
doTeleportThing(cid, newPosition)
setPlayerStorageValue(cid, 1000, 1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Message Here.")
end
return true
end
Please if you are gonna put anything on the forum, please atleast tab it..
Code:function onAdvance(cid, oldlevel, newlevel) newPosition = {x=382, y=474, z=7} if getPlayerStorageValue(cid, 1000) == -1 and newlevel == 8 then doTeleportThing(cid, newPosition) setPlayerStorageValue(cid, 1000, 1) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Message Here.") end return true end