Sigoles
Discord: @sigoles
- Joined
- Nov 20, 2015
- Messages
- 1,209
- Solutions
- 2
- Reaction score
- 154
Is there any way to save the charges to an item that does not have the charges attribute?
I'll use in this script (wrap and unwrap with charges back):
tfs 1.2
I'll use in this script (wrap and unwrap with charges back):
LUA:
local wrapId = 26054
local string = 'Unwrap it to create a <'..item:getName()..'>.'
local stor = item:getId()
if wrapId ~= 0 then
item:transform(wrapId)
item:setAttribute(1, stor)
item:setAttribute(4, string)
item:getPosition():sendMagicEffect(CONST_ME_POFF)
end
tfs 1.2