function onUse(cid, item, fromPosition, itemEx, toPosition)
local flag = 0
local pos = {x = 100, y = 100, z = 7}
for i = 12252, 12259 do
if getPlayerItemCount(cid, i) >= 1 then
flag = flag+1
end
end
if flag == 8 then
doTeleportThing(cid, pos)
doSendMagicEffect(getThingPos(cid), 21)
return true
end
sendMsgToPlayer(cid, 20, "You need all badges to pass!")
return true
end
<action actionid="xxxx" event="script" value="yyyy.lua"/>
xxxx = action da porta
yyyy = nome do script
"Só a beira do abismo que os seres humanos acham forças para mudar."... E isso me da nojo... ¬¬
"Insanity is doing the exact... same fucking thing... over and over again expecting... shit to change... That. Is. Crazy." -Vass/Einstein