ghettobird
LUA newbie
Hiho OTlanders, so I had some free time and decided to make a simple script that only allows a certain vocation to pass through the teleport...
So how will it work?
You will have to set a unique id for the teleport from rme (which you will put in movements.xml), now it will check for the player's vocation id, if his vocation id is 6 for example (Elder Druid) then he will be teleported to a certain place...
Maybe you would like to use this for a real map or something...
If you would like me to make any changes in the script please just psot here and ill do it
so now go to movements/scripts
now you just make the unique id and put it in movements.xml...
I won't spoon feed you the script so you only need the knowledge of copying another movements.xml with a unique id & just put the unique id u put in rme...
So how will it work?
You will have to set a unique id for the teleport from rme (which you will put in movements.xml), now it will check for the player's vocation id, if his vocation id is 6 for example (Elder Druid) then he will be teleported to a certain place...
Maybe you would like to use this for a real map or something...
If you would like me to make any changes in the script please just psot here and ill do it
so now go to movements/scripts
Code:
function onStepIn(cid, item, position, fromPosition)
ifgetPlayerVocation(cid) == 6 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are an Elder Druid, you can pass (: !")
else
doPlayerSendCancel(cid, "Only Elder Druids can pass from this teleport.")
end
doTeleportThing(cid, {x=994,y=1003,z=7}, true)
return true
end
now you just make the unique id and put it in movements.xml...
I won't spoon feed you the script so you only need the knowledge of copying another movements.xml with a unique id & just put the unique id u put in rme...