Figaro
Banned User
Somebody have script for that ? Large throne where only gods and gms can go?
function onStepIn(cid, fromPosition, toPosition, item)
if getPlayerGroupId(cid) > 2 then
doTeleportThing(cid,fromPosition,1)
end
end
Code:function onMoveIn(cid, fromPosition, toPosition, item) if getPlayerGroupId(cid) < 3 then doTeleportThing(cid,fromPosition,1) end end
I think that would work.
onStepIn*
Edited.
<movevent event="StepIn" actionid="35566" script="godchair.lua"/>
function onStepIn(cid, fromPosition, toPosition, item)
if getPlayerGroupId(cid) < 3 then
doTeleportThing(cid,fromPosition,1)
end
end
Did you set so that the "godchair" in the map has action id 35566?
Tried replacing the actionid in movements.xml with the itemid of the throne? Just to check that its not script-related.
Instead of actionid="35566" , try using itemid="GOD_CHAIR_ID" in your movements.xml, that's what Blue Charizard ment.