<movevent type="AddItem" fromid="1" toid="9999" event="script" value="moveblocker.lua"/>
function onAddItem(moveItem, tileItem, pos, cid)
itemPos = getThingPos(moveItem.uid)
position = getCreaturePosition(cid)
if(itemPos.x == position.x and itemPos.y == position.y and itemPos.z == position.z) then
return false
end
end
function onAddItem(moveItem, tileItem, position, cid)
doSendMagicEffect(position, CONST_ME_POFF)
return false
end
maybe report it as a feature ( http://otland.net/project.php?do=issuelist&projectid=2&issuetypeid=feature ) for 0.3.6. I think Elf can add it in few seconds (config block player-backpack/slot items moveable).already tried something like it ... and got no errors but it didnt work.
I was trying it... ;x
LUA:function onAddItem(moveItem, tileItem, position, cid) doSendMagicEffect(position, CONST_ME_POFF) return false end
and I know it wont let players move anything.
but it dont work too.
return false doesnt make the item stay..
I was trying to use RETURNVALUE_TILEISFULL but I dunno if it is possible...
EEEASSY@Chojrak
Nice one
Hm, I am wondering, how to make item non moveable and non pickupable without changing otb file?
<attribute key="moveable" value="0"/>
<attribute key="allowpickupable" value="0"/>