Jump to content
  • We need you!

    You must register to discover all the features of our community!

  • 0

[Python] How to fill a item with exp automatically


zoes77

Question

7 answers to this question

Recommended Posts

  • 0
  • VIP

Hi there,

 

If I am not mistaken, you could check in uiCharacter the function that sets the player's EXP and if it exceeds the limit to show that dialog.

 

  • Love 1
Link to post
  • 0

Hi Finnis thanks first of all for replying, i know how check the exp of character but the thing i need to know is how to generate a constant check of it and how to auto fill the textbox and then press the ok button.

Link to post
  • 0
  • VIP

uiCharacter.py:

def RefreshStatus(self):

...

...

...

if unsigned32(player.GetStatus(player.EXP)) > your_limit_value_or_idk:

show_dialog_and_set_default_value(your_limit_value_or_idk - unsigned32(player.GetStatus(player.EXP)))

 

Something like that I think...

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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