A simple script that will remove empty flasks thrown by players on the ground. : )
Script works in protection zone too, if you want disable it in pz; before doRemoveItem[...] add :
data/movements/flasks.lua
movements.xml
Now you don't have many flask shit's on the ground everywhere. ; d
Script works in protection zone too, if you want disable it in pz; before doRemoveItem[...] add :
PHP:
if(getTilePzInfo(position))then
return TRUE
end
PHP:
function onAddItem(moveitem, tileitem, position, cid)
if not(tileitem) or not(moveitem) then
return TRUE
end
doRemoveItem(moveitem.uid, moveitem.type)
return true
end
PHP:
<movevent type="AddItem" itemid="7636;7635;7634" event="script" value="flasks.lua"/>
Now you don't have many flask shit's on the ground everywhere. ; d