ghettobird
LUA newbie
Hello Otlanders, if you remember i already released a script called "staff only door" well now i bring you a staff only teleport
TO EXPERIENCED LUA SCRIPTERS: i tried to do this but i failed so maybe you guys can do it, when u go inside the teleport and it teleports u if you go on it again u get teleported back, what i wanted to do is if you are already inside and you go inside the teleport you are teleported outside
-----------------------------------------------------------------------------------------------------------
now back to business,
movements/scripts
I hope this helps you eace:
TO EXPERIENCED LUA SCRIPTERS: i tried to do this but i failed so maybe you guys can do it, when u go inside the teleport and it teleports u if you go on it again u get teleported back, what i wanted to do is if you are already inside and you go inside the teleport you are teleported outside
-----------------------------------------------------------------------------------------------------------
now back to business,
movements/scripts
Lua:
function onStepIn(cid, item, position, fromPosition)
if(getPlayerGroupId(cid) >= 6) then
doTeleportThing(cid, {x=1000,y=998,z=4}, true)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "BOW TO THE OWNER")
else
doTeleportThing(cid, {x=1000,y=1000,z=4}, true)
doPlayerSendCancel(cid, "Sorry, only owner ghettobird passes from here.")
end
return true
end
I hope this helps you eace: