Jump to content

[Problem] Separate stackable item problem


Recommended Posts

Hello. then i try to separate items i get the money window and dont work.


Syser:

0504 02:49:45004 ::   File "ui.py", line 1016, in CallEvent

0504 02:49:45005 ::   File "ui.py", line 87, in __call__

0504 02:49:45005 ::   File "ui.py", line 69, in __call__

0504 02:49:45005 ::   File "uiPickMoney.py", line 179, in OnAccept

0504 02:49:45005 ::   File "ui.py", line 87, in __call__

0504 02:49:45006 ::   File "ui.py", line 78, in __call__

0504 02:49:45006 :: TypeError
0504 02:49:45006 :: : 
0504 02:49:45006 :: OnPickItem() takes exactly 2 arguments (3 given)

So I fix it by creating a code.
uipickmoney.py

Search :  if cheque > 0 or money > 0 :

 if self.eventAccept:
 self.eventAccept(money, cheque)

Replace with:
                if cheque > 0 or money > 0 :
                    if self.eventAccept:
                        if cheque == 0 :
                            self.eventAccept(money)
                        else:
                            self.eventAccept(money, cheque)
 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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.