lukatxd
Active Member
- Joined
- Dec 9, 2010
- Messages
- 85
- Solutions
- 1
- Reaction score
- 39
I'm trying to install this script in TFS 1.2 downgraded to 8.6 by Nekiro
But the following errors appear when trying to apply extra stats to items inside bag
For debugging purposes I've added:
stats.lua
the function called
The pos, and container variables are null.
As you may see, the Legion Helmet is generated inside the bag, but I'm not sure if there should be more items there that couldnt be placed because the error happened. idk.
Edit:
Also added these debugging lines:
result is:
19:25 new c is userdata: 0x1eaca4c0
19:25 new it_u is nil
CreatureEvent - [TFS 1.1] Ultimate item stat system (elements, skills, exp, loot and more)
Abandoned by OP, code is most likely bugged Hello OtLand. I put together four different scripts in one lib which took a lot of work to make them compatible, they work as one system now. TFS I used: 1.1 from 29 Mar 2015 No, it won't work on 1.0 No, no version for 0.2/0.3/0.4, move on already...
otland.net
But the following errors appear when trying to apply extra stats to items inside bag
For debugging purposes I've added:
stats.lua
Lua:
function find_loot_Container(pos, extraPercent, monsterName, extraStackable, killer)
local rares = 0
local c = Tile(pos):getTopDownItem()
Player('Knight Sample'):sendTextMessage(MESSAGE_INFO_DESCR, monsterName)
Player('Knight Sample'):sendTextMessage(MESSAGE_INFO_DESCR, pos)
Player('Knight Sample'):sendTextMessage(MESSAGE_INFO_DESCR, c)
if c ~= nil then
if c:isContainer() then
if STATS_SYSTEM_CONFIG.monsterLoot then
rares = rares + assign_loot_Stat(c)
end
the function called
Lua:
function assign_loot_Stat(c)
local wp_string = {"", ""}
local arm_string = {"", ""}
local other_string = {"", ""}
local rares = 0
local h = c:getItemHoldingCount()
if h > 0 then
for i = 1, h do
wp_string = {"", ""}
arm_string = {"", ""}
other_string = {"", ""}
local it_u = c:getItem(i - 1)
local u = it_u:getUpgradeType()
The pos, and container variables are null.
As you may see, the Legion Helmet is generated inside the bag, but I'm not sure if there should be more items there that couldnt be placed because the error happened. idk.
Edit:
Also added these debugging lines:
result is:
19:25 new c is userdata: 0x1eaca4c0
19:25 new it_u is nil
Last edited: