qual delas que vc quer?
function onStepIn(cid, item, position, fromPosition)
local from,to = {x=979, y=901, z=7},{x=991, y=905, z=7} local pos1 = {x=988, y=903, z=7} -- player pos local pos2 = {x=981, y=903, z=7} -- monster pos
if getPlayerStorageValue(cid, 89745) < 2 then doPlayerSendTextMessage(cid, 27,"Apenas Chunins podem fazer o exame jounin!") doTeleportThing(cid, fromPosition) return TRUE end
if getPlayerStorageValue(cid, 89745) > 2 then doPlayerSendTextMessage(cid, 27,"Voce ja fez o exame jounin!") doTeleportThing(cid, fromPosition) return TRUE end
for x = from.x, to.x do for y = from.y,to.y do local m = getTopCreature({x=x, y=y, z=from.z}).uid if m~= 0 and isPlayer(m) then doTeleportThing(cid, fromPosition) return doPlayerSendCancel(cid, "Alguem esta fazendo o exame Jounin.") end end end
for _, uid in pairs (getCreatureSummons(cid)) do doRemoveCreature(uid) end doTeleportThing(cid, pos1) doCreateMonster("Uchiha Fugaku", pos2) doPlayerSendTextMessage(cid, 27,"Boa sorte no exame jounin!") return TRUE end
bom acredito que vc quira esse do jonin