• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

large Throne for gms and gods ^^

Code:
 function onStepIn(cid, fromPosition, toPosition, item)
    if getPlayerGroupId(cid) > 2 then 
        doTeleportThing(cid,fromPosition,1)
   end
end
I think that would work.
 
Last edited:
movements.xml
Code:
<movevent event="StepIn" actionid="35566" script="godchair.lua"/>

And godchair.lua
Code:
 function onStepIn(cid, fromPosition, toPosition, item)
    if getPlayerGroupId(cid) < 3 then 
        doTeleportThing(cid,fromPosition,1)
   end
end

And no errors
 
Try this:
PHP:
function onStepIn(cid, fromPosition, toPosition, item)
   if getPlayerGroupId(cid) <= 2 then 
       doTeleportThing(cid,fromPosition)
   end
end
 
Instead of actionid="35566" , try using itemid="GOD_CHAIR_ID" in your movements.xml, that's what Blue Charizard ment.
 
Back
Top