WADUUP?!
using tfs 1.3
Tried to use this in events/creature.lua.
For some reason it returns nil value on 'local backpack', I guess It was cause I used 'self' instead of 'player' so I added 'player' instead and added:
local player = Player(self) but it throws same error.
using tfs 1.3
Tried to use this in events/creature.lua.
Lua:
local backpack = self:getSlotItem(CONST_SLOT_AMMO)
local skillBoostCharm = backpack:getItemsById(10313)
if #skillBoostCharm > 1 then
print("yello")
end
For some reason it returns nil value on 'local backpack', I guess It was cause I used 'self' instead of 'player' so I added 'player' instead and added:
local player = Player(self) but it throws same error.