Hi! i've been trying to make a script that will work like this.
When a Sorcerer enters a tile with the action id "125" it will be teleported to x: 1000 y:1000 z:7
but when a druid enters the tile it will be teleported to x: 1001 y:1000 z:7
and the same with all the vocations. I'm using Crying Damson 0.3.6 (8.6) v3
The script i got this far is:
Mokerhamer posted this on another thread, so i haven't made it! NO CREDITS TO ME!
When a Sorcerer enters a tile with the action id "125" it will be teleported to x: 1000 y:1000 z:7
but when a druid enters the tile it will be teleported to x: 1001 y:1000 z:7
and the same with all the vocations. I'm using Crying Damson 0.3.6 (8.6) v3
The script i got this far is:
Lua:
function onStepIn(cid, item, pos)
if item.actionid == 125 then
if isPlayer(cid) == TRUE then
doPlayerSetVocation(cid,1)
newpos = {x=1105, y=989, z=7}
doTeleportThing(cid,newpos)
doPlayerSendTextMessage(cid,22,"Welcome Sorcerer Please, pick your items.")
end
if item.actionid == 125 then
if isPlayer(cid) == TRUE then
doPlayerSetVocation(cid,2)
newpos = {x=1105, y=989, z=7}
doTeleportThing(cid,newpos)
doPlayerSendTextMessage(cid,22,"Welcome Druid. Please, pick your items.")
end
if item.actionid == 125 then
if isPlayer(cid) == TRUE then
doPlayerSetVocation(cid,3)
newpos = {x=1105, y=989, z=7}
doTeleportThing(cid,newpos)
doPlayerSendTextMessage(cid,22,"Welcome Paladin. Please, pick your items.")
if item.actionid == 125 then
if isPlayer(cid) == TRUE then
doPlayerSetVocation(cid,4)
newpos = {x=1105, y=989, z=7}
doTeleportThing(cid,newpos)
doPlayerSendTextMessage(cid,22,"Welcome Knight. Please, pick your items.")
end
else
return false
end
return true
end
end
end
end
function onStepOut(cid, item, pos)
return true
end
end