Jump to content

New type of item - bonus description


Go to solution Solved by Zoom,

Recommended Posts

Hello, i created new type of item and i have a little problem.

 

I have bonuses on mysql and bonuses are working but i don't see them on description (uitooltip).

 

I compared code of ITEM_BELT with my new item and i don't see that something is missing.

 

Somebody know, in which file i can looking for problem/missing part? Best regards.

Link to comment
Share on other sites

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

try this in uitooltip
you can edit the vnum of items
 

Quote

        if itemVnum in (71135, 71136):
            table_item = {
                71135 : ["Max HP. +1000", "Against monsters +10%"],
                71136 : ["Max HP. +500", "Against monsters +5%"]}            
            self.AppendSpace(5)    
            for i in xrange(len(table_item[itemVnum])):
                self.AppendTextLine(table_item[itemVnum][i], self.SPECIAL_POSITIVE_COLOR)

 

Link to comment
Share on other sites

  • Solution
On 1/14/2021 at 9:44 PM, dattg1337 said:

@Zoom did you edit correctly applytypes in clientside item_proto ?

Yes, bonuses work perfectly.

 

On 1/14/2021 at 9:48 PM, Hunger said:

Show the python part.

 

In python i have only new class of UI in uiiinventory and functions for open this gui with button.

 

Uitooltip:

 

elif item.ITEM_TYPE_RUNE == itemType:
	self.__AppendLimitInformation()
	self.__AppendAffectInformation()
	self.__AppendAttributeInformation(attrSlot)

 

Uiscriptfile and that's all in python part.

 

Edit: I fixed my problem, thank you both of us for trying help :)

 

Edited by Zoom
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.