avertuss 48 Posted May 30, 2016 Share Posted May 30, 2016 Hi, i have little problem. I can't see item info in guild storage. syserr 0521 15:22:41872 :: Traceback (most recent call last): 0521 15:22:41872 :: File "ui.py", line 1504, in OnOverInItem 0521 15:22:41872 :: File "ui.py", line 87, in __call__ 0521 15:22:41872 :: File "ui.py", line 78, in __call__ 0521 15:22:41872 :: File "uiguildstorage.py", line 218, in OverInItem 0521 15:22:41872 :: File "uiToolTip.py", line 1004, in AddRefineItemData 0521 15:22:41872 :: File "uiToolTip.py", line 1122, in AddItemData 0521 15:22:41872 :: File "uiToolTip.py", line 1537, in __AdjustMaxWidth 0521 15:22:41873 :: File "uiToolTip.py", line 1549, in __AdjustAttrMaxWidth 0521 15:22:41873 :: IndexError 0521 15:22:41873 :: : 0521 15:22:41873 :: list index out of range 0521 15:22:41873 :: guildstorage http://pastebin.com/32CYeCzT tooltip http://pastebin.com/mvx8yY6b Link to comment Share on other sites More sharing options...
Shang 371 Posted May 30, 2016 Share Posted May 30, 2016 Shoulder sash system has more bonuses. You have to add these bonuses values to quest and to recieve ingame. Link to comment Share on other sites More sharing options...
avertuss 48 Posted May 30, 2016 Author Share Posted May 30, 2016 15 minutes ago, Shang said: Shoulder sash system has more bonuses. You have to add these bonuses values to quest and to recieve ingame. And what do you do if you do not want to put sashes in storage? Link to comment Share on other sites More sharing options...
Active Member Mind Rapist 190 Posted May 30, 2016 Active Member Share Posted May 30, 2016 Hi first of all I would like the link for the guild storage to view the system. There is not much I can do but if it has a source part maybe you can play with it by trying to add an "if" statement for example: Spoiler if (item2->GetSubtype() == COSTUME_ACCE) return false; If again you do not have source part for guild storage, try to block the specific subtype from python part. But you still need to insert all of your fields which (by default) are: attrtype0 attrvalue0 attrtype1 attrvalue1 attrtype2 attrvalue2 attrtype3 attrvalue3 attrtype4 attrvalue4 attrtype5 attrvalue5 attrtype6 attrvalue6 applytype0 applyvalue0 applytype1 applyvalue1 applytype2 applyvalue2 applytype3 applyvalue3 applytype4 applyvalue4 applytype5 applyvalue5 applytype6 applyvalue6 applytype7 applyvalue7 If there are more columns at your player.item table, add them as well with the right order of course... By the way, I still would like that link if it's easy Hope I helped... Link to comment Share on other sites More sharing options...
avertuss 48 Posted May 30, 2016 Author Share Posted May 30, 2016 http://pastebin.com/S7T3mEz0 http://pastebin.com/94xE9y26 Like this? 7 or 14 ? Link to comment Share on other sites More sharing options...
avertuss 48 Posted May 30, 2016 Author Share Posted May 30, 2016 @Mind Rapist@Shang quest: http://pastebin.com/8WWem25R game.py http://pastebin.com/gNMFRwmB uiguildstorage http://pastebin.com/Sj65cEHL syserr http://pastebin.com/DVW6Tika Can you help me? Link to comment Share on other sites More sharing options...
Shang 371 Posted May 30, 2016 Share Posted May 30, 2016 To ban sashes in guildstorage put the vnums of sashed inside this table in quest: local blackListItem = {50821,50822,50823,50824,50825,50826,51002} And replace def OverInItem with this: def OverInItem(self, index): items = constInfo.GUILDSTORAGE["slots"]["TAB"+str(self.tab)] attrs = [(items[index][8],items[index][9]),(items[index][10],items[index][11]),(items[index][12],items[index][13]),(items[index][14],items[index][15]),(items[index][16],items[index][17]),(items[index][18],items[index][19]),(items[index][20],items[index][21])] attrs += [(0,0)]*8 self.toolTip.ClearToolTip() self.toolTip.AddRefineItemData(items[index][0], [items[index][2],items[index][3],items[index][4],items[index][5],items[index][6],items[index][7]], attrs) Tell if works. 2 Link to comment Share on other sites More sharing options...
avertuss 48 Posted May 30, 2016 Author Share Posted May 30, 2016 17 minutes ago, Shang said: To ban sashes in guildstorage put the vnums of sashed inside this table in quest: local blackListItem = {50821,50822,50823,50824,50825,50826,51002} And replace def OverInItem with this: def OverInItem(self, index): items = constInfo.GUILDSTORAGE["slots"]["TAB"+str(self.tab)] attrs = [(items[index][8],items[index][9]),(items[index][10],items[index][11]),(items[index][12],items[index][13]),(items[index][14],items[index][15]),(items[index][16],items[index][17]),(items[index][18],items[index][19]),(items[index][20],items[index][21])] attrs += [(0,0)]*8 self.toolTip.ClearToolTip() self.toolTip.AddRefineItemData(items[index][0], [items[index][2],items[index][3],items[index][4],items[index][5],items[index][6],items[index][7]], attrs) Tell if works. It's working. Thank you so much 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now