• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Unmoveable

olavo

New Member
Joined
May 29, 2007
Messages
74
Reaction score
0
How do i make a item unmoveable whithout modify items.otb, i want to put some unmeveable dragon hams to my trainers.
I did it setting a uniqueID, it worked, but there is more than 60 dragon ham in trainer (for each one, need 1 uniqueID :( ), there is other method?
 
@Manjyome Black
ActionID does not make it unmoveable...
Do you have any script to do that?
 
I make it to not remove editing actions/scripts/other/food.lua
Code:
			if item.actionid ~= 8100 then 
				doRemoveItem(item.uid, 1)
			end
so it will not be removed, and I dont know moviments, how do I add It there? I can put actionID or only itemID, i dont want all dragon hams unmovable, only the trainers ones (actionID = 8100).
Please show me how can may i do that.
 
Didn't test this, but try something like this~
PHP:
<movevent event="onRemoveItem" actionid="12345" script="unmovable.lua" />
PHP:
function onRemoveItem(moveitem, tileitem, position)
     doPlayerSendCancel(cid, "You are not able to move this item.")
     return TRUE
end
 
@Macroman
does not work.
I tryed event="RemoveItem" too.
it does not make it unmovable.
 
Back
Top