• 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!

Block DeacayTo

lexus21

Active Member
Joined
Dec 14, 2022
Messages
87
Reaction score
25
Hello
It's possible to block decayTo?
I have ground what decay to other ground.
I want to put item on ground and block decayto?
Do i need lua? or modify source(c++) ?
 
First of all what distro? Maybe something like that (not tested):
Lua:
item:removeAttribute(ITEM_ATTRIBUTE_DURATION)
or
item:removeAttribute(ITEM_ATTRIBUTE_DECAYSTATE)
 
with only few items, when i put an item on the ground, it has to stop the decay, if i put the item in the backpack, the decay must start.
 
with only few items, when i put an item on the ground, it has to stop the decay, if i put the item in the backpack, the decay must start.
One way is to remove the decay and create a script in lua without movements, that when the item was in the container it "decay".
I think that would be the logic for that.
 
Back
Top