beenii
Well-Known Member
- Joined
- Jul 26, 2010
- Messages
- 584
- Solutions
- 1
- Reaction score
- 57
I was reading everything related in the forum and I did not find any optimal way.
What would be the best option to do it? maybe with some script that handles action id? because it is tiring to have to put unique id to all the items
Or how can I register a uniqueid to all the items that I want to not make movable without receiving an error in the console?
Any definitive solution so that it is not tradable, does not move with the browse field, nor can it be used?
On this post:
What would be the best option to do it? maybe with some script that handles action id? because it is tiring to have to put unique id to all the items
Or how can I register a uniqueid to all the items that I want to not make movable without receiving an error in the console?
Any definitive solution so that it is not tradable, does not move with the browse field, nor can it be used?
On this post:
Unmovable item with actionid in TFS 1.2
Hello, i need to make some items unmovable by using an action id so i can mark them in the RME map editor. I had that system in 0.36 but im super noob with programming, so i know it should be done in the player.lua, and i find something in the forum but doesn't work for my TFS 1.2. Please can...
otland.net
Lua:
BLOCK_ITEM_WITH_ACTION = 8000
if item:getActionId() == BLOCK_ITEM_WITH_ACTION then
self:sendCancelMessage(RETURNVALUE_NOTPOSSIBLE)
return false
end
Couple of problems with this though.
Can trade the item.
If the item has the 'Use With' option, the player can 'use with' on a far-away destination, while being 2 sqm away from object, and source will walk the character towards the item, pick it up into inventory, and then attempt to use it on the target destination.
Both methods above cause the item to be stuck in the player inventory forever.
--
So if you block trading of the item, and only use it on items that don't have a use with option, then it's fine.
Otherwise requires a source edit.