Ai o trap.lua
function onStepIn(cid, item, pos)
if(item.itemid == 2579) then
if(not isPlayer(cid)) then
TargetCombatHealth(0, cid, COMBAT_PHYSICALDAMAGE, -1000000, -1000000, CONST_ME_NONE)
doTransformItem(item.uid, item.itemid + 1)
end
end
return true
end[/b][/i]
[i][b]function onStepOut(cid, item, pos)
doTransformItem(item.uid, item.itemid - 1)
return true
end[/b][/i]
[i][b]function onRemoveItem(item, tile, pos)
local thingPos = getThingPos(item.uid)
if(getDistanceBetween(thingPos, pos) > 0) then
doTransformItem(item.uid, item.itemid - 1)
doSendMagicEffect(thingPos, CONST_ME_POFF)
end
return true
end[/b][/i]
[i][b]
aki nessa parte - TargetCombatHealth(0, cid, COMBAT_PHYSICALDAMAGE, -1000000, -1000000, CONST_ME_NONE)
vai matar ate o god kkk?