kito2
www.masteria.net
Notes: Not very useful, but try to have one in your backpack if you are in a PvP world because it may help save you from a PK trap. You need to stand next to the item(s) you want to desintegrate. It will desintegrate an entire square (it will not desintegrate any dead human body, but it will desintegrate monster bodies). Also, please note it will not work in protection zones. Also note that using this rune will prevent you from entering protection zone for a while (a.k.a. PZ-locked).
Could someone make it like RL?
Thanks
Lua:
local function doRemoveObject(cid, pos)
pos.stackpos = 255
local object = getThingFromPos(pos)
if(object.uid > 65535 and not isCreature(object.uid) and isMovable(object.uid) and object.actionid == 0 and not getTileInfo(pos).protection) then
doRemoveItem(object.uid)
doSendMagicEffect(pos, CONST_ME_BLOCKHIT)
return true
end
doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
return false
end
function onCastSpell(cid, var)
local pos = variantToPosition(var)
if(pos.x == CONTAINER_POSITION) then
pos = getThingPos(cid)
end
if(pos.x ~= 0 and pos.y ~= 0) then
return doRemoveObject(cid, pos)
end
doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
return false
end
Could someone make it like RL?
Thanks