Hi, I think I found bug in function "GetContainer", check it out
Script
Here's a picture of the return of the functions tested one by one!Code:init start PlatinumBackpack = "green backpack" local fontsize = 7 local fontspacing = fontsize + 6 setfontstyle('Tahoma', fontsize, 99, 0xFFFFFF, 1, 0) setmaskcolorxp(0) init end InitPosX = $clientwin.left + 5 InitPosY = $clientwin.top + 0 addtext("Ibot Function 1: ".. getcontainer_ib(PlatinumBackpack).items[0].count .." coins.", InitPosX + 200, InitPosY + 45) addtext("Ibot Function 2: ".. getcontainer_ib(PlatinumBackpack).items[1].count .." coins.", InitPosX + 200, InitPosY + 60) addtext("Ibot Function 3: ".. getcontainer_ib(PlatinumBackpack).items[2].count .." coins.", InitPosX + 200, InitPosY + 75) addtext("Ibot Function 4: ".. getcontainer_ib(PlatinumBackpack).items[3].count .." coins.", InitPosX + 200, InitPosY + 90) addtext("Wind Function 1: ".. getcontainer(PlatinumBackpack).item[0].count .." coins.", InitPosX + 200, InitPosY + 105) addtext("Wind Function 2: ".. getcontainer(PlatinumBackpack).item[1].count .." coins.", InitPosX + 200, InitPosY + 120)
img1.jpg
Now see what I think may be a bug!
In this code have this error...
Code:addtext("Wind Function 2: ".. getcontainer(PlatinumBackpack).item[1].count .." coins.", InitPosX + 200, InitPosY + 120)In this code return nil and stop script ...Code:error in HUD script NewHUDScript1: ["addtext("Wind Function 2: ".. getcont..."]:NewHUDScript1:22 attempt to index field 'item' with an unknown property
Code:addtext("Ibot Function 4: ".. getcontainer_ib(PlatinumBackpack).items[3].count .." coins.", InitPosX + 200, InitPosY + 90)Code:error in HUD script NewHUDScript1: ["addtext("Ibot Function 4: ".. getcont..."]:NewHUDScript1:15 attempt to index a nil value