Jump to content
  • 0

New type of item - bonus description


Zoom
Go to solution Solved by Zoom,

Question

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 post

7 answers to this question

Recommended Posts

  • 0
  • 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 (see edit history)
Link to post
  • 0
5 hours ago, Hunger said:

AppendAttributeInformation Missing.

I have this in my if.

 

self.__AppendLimitInformation()
self.__AppendAffectInformation()
self.__AppendAttributeInformation(attrSlot)

 

Link to post
  • 0

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 post
  • 0
9 minutes ago, dattg1337 said:

try this in uitooltip
you can edit the vnum of items
 

 

Thanks for this example but i want "repair" my problem. I don't want makes this in this way :)

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • 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.