Jump to content

Little problem with python - guildstorage


Recommended Posts

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

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

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.

  • Love 2
Link to comment
Share on other sites

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 

  • Love 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.