Tymofek
New Member
i need a script to delete every item (walls, floor, stones, everything!)
in the below floor, when you use a pick on the upper floor.
so it would be like editing the pick.lua file like this.
but it doesnt work -.-! i tought the position was wrong, but i change the script to "docreateItem(2260,1,pos) instead of transforming that rock (btw the rock is a 5868 item.) and it worked, so:
i need a script to erase every item in that position!!! no matter the stackpos!
Thx in advance
in the below floor, when you use a pick on the upper floor.
so it would be like editing the pick.lua file like this.
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if((itemEx.uid <= 0 or itemEx.actionid >= 0) and isInArray({106, 354}, itemEx.itemid)) then -- on use on grass in the first floor.
doTransformItem(itemEx.uid, 392)-- creating the hole
doDecayItem(itemEx.uid)--hole will decay
doSendMagicEffect(toPosition, CONST_ME_POFF) -- poff
-------- my script ------
local pos = toPosition -- the position where the pick was used
pos.z = pos.z + 1 -- right there but one floor down
local asd = getThingFromPos(pos) -- the stones and items below
doTransformItem(asd,2260) -- transforming the stones and items into a rune xD
return true
end
but it doesnt work -.-! i tought the position was wrong, but i change the script to "docreateItem(2260,1,pos) instead of transforming that rock (btw the rock is a 5868 item.) and it worked, so:
i need a script to erase every item in that position!!! no matter the stackpos!
Thx in advance