WLsj24

c++ [Release] Cheque system

54 posts in this topic

Cheque system full ~ like official

The tutorial was remade and uploaded to github

 Monetary unit: Won
    - Not compatible with long long gold
    - Max won 999 (like official)
    - Added support for OfflineShop(great)

Download:
https://github.com/WLsj24/Cheque-System

Best regards.

  • Like 6
  • Thanks 1

Share this post


Link to post
Share on other sites

Good, one appointment tho: defining "ITEM_CHEQUE" is useless since no item will ever use that, it doesn't even exist in official servers, the real types after ITEM_BELT are:

 

  		"ITEM_PET", // 36 <- used for the new growth PetSystem
		"ITEM_MEDIUM", // 37 <- used for Costume Bonus Transfer and Shoulder-Sash Bonus Transfer
		"ITEM_GACHA" // 38 <- used for Gaya System

 

Although I understand that type may be used to make the game drop Wons from the monsters, but still.

  • Like 1
  • Sad 1

Share this post


Link to post
Share on other sites
4 hours ago, Syreldar said:

Good, one appointment tho: defining "ITEM_CHEQUE" is useless since no item will ever use that, it doesn't even exist in official servers, the real types after ITEM_BELT are:

 


  		"ITEM_PET", // 36 <- used for the new growth PetSystem
		"ITEM_MEDIUM", // 37 <- used for Costume Bonus Transfer and Shoulder-Sash Bonus Transfer
		"ITEM_GACHA" // 38 <- used for Gaya System

 

Although I understand that type may be used to make the game drop Wons from the monsters, but still.

Yes you are correct. I use it for the offline shop system (when I sell something in won and that goes to the gifts section)

  • Thanks 1

Share this post


Link to post
Share on other sites
5 hours ago, cjunior2011 said:

Is this the same as "won system"?

Yes, cheque = won

  • Thanks 1

Share this post


Link to post
Share on other sites
7 hours ago, WLsj24 said:

Yes, cheque = won

wow, u make this release? nice dude,  i'm going to test it, its complete? does it work with offlineshops??

Share this post


Link to post
Share on other sites
8 minutes ago, cjunior2011 said:

wow, u make this release? nice dude,  i'm going to test it, its complete? does it work with offlineshops??

Yes, I did it. Yes, it is complete and functional. If you want it can also be compatible with offlineshops, read the README of the download.

  • Like 1

Share this post


Link to post
Share on other sites
On 4/14/2019 at 2:22 PM, WLsj24 said:

Yes, I did it. Yes, it is complete and functional. If you want it can also be compatible with offlineshops, read the README of the download.

Hello again, what did I do wrong?

syserr:

jWFycpM.png

line 1454:

Spoiler

u9wfdat.png

 

Share this post


Link to post
Share on other sites
2 minutes ago, cjunior2011 said:

Hello again, what did I do wrong?

syserr:

jWFycpM.png

line 1454:

  Hide contents

u9wfdat.png

 

Tab error 

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites
15 minutes ago, WLsj24 said:

https://prnt.sc/newlk6
You need have "cheque" in inventorywindow (or inventorywindowex)

Could you show me your complete inventorywindow.py?
your extended taskbar tutorial has nothing on inventorywindow.py, but I already have exactly that part in expandedmoneytaskbar.py:

Spoiler

aNIuz2n.png

 

Share this post


Link to post
Share on other sites
1 minute ago, cjunior2011 said:

Could you show me your complete inventorywindow.py?
your extended taskbar tutorial has nothing on inventorywindow.py, but I already have exactly that part in expandedmoneytaskbar.py:

  Reveal hidden contents

aNIuz2n.png

 

Sorry, I forgot that part in the guide. Here is my inventorywindowex.py:
https://pastebin.com/K0AAF9MY

  • Thanks 1

Share this post


Link to post
Share on other sites
35 minutes ago, WLsj24 said:

Sorry, I forgot that part in the guide. Here is my inventorywindowex.py:
https://pastebin.com/K0AAF9MY

Sorry to be flooding your post dude, but the script exchangedialog_new.py needs the #define ENABLE_NEW_EXCHANGE_WINDOW installed right?
because I have this new error:

F9QaGHn.png

Line 80:

Spoiler

0iVzS9D.png

 

Share this post


Link to post
Share on other sites
17 minutes ago, cjunior2011 said:

Lamento estar inundando tu publicación, pero la secuencia de comandos exchangedialog_new.py necesita que se haya instalado #define ENABLE_NEW_EXCHANGE_WINDOW, ¿verdad?
Porque tengo este nuevo error:

F9QaGHn.png

Línea 80:

  Ocultar contenidos

0iVzS9D.png

 

Yes, I put it only for the one who had that system in their files.

  • Thanks 1

Share this post


Link to post
Share on other sites
4 hours ago, WLsj24 said:

Yes, I put it only for the one who had that system in their files.

Hello, I finished adding ENABLE_NEW_EXCHANGE_WINDOW, and then re-built your ENABLE_CHEQUE_SYSTEM,
but I have this problem in the trading window:

https://i.imgur.com/khutDMJ.gifv

I am also having another problem, when I put the mouse in the icon of the cheque/won of the inventory, my client_debug.exe accuses:
WVWGzqt.png

Code lines:

Spoiler

gBrJ2uh.png

 

Share this post


Link to post
Share on other sites
1 hour ago, cjunior2011 said:

Hello, I finished adding ENABLE_NEW_EXCHANGE_WINDOW, and then re-built your ENABLE_CHEQUE_SYSTEM,
but I have this problem in the trading window:

You need some more codes in the part of uiexchange to be functional with the system of cheque_system. You do not need to use the exchangedialog_new.py if you do not have the system. Here is my uiexchange.py (if you want compare)
https://pastebin.com/7fGPzGeG

 

1 hour ago, cjunior2011 said:

I am also having another problem, when I put the mouse in the icon of the cheque/won of the inventory, my client_debug.exe accuses:

Add this in uitooltip.py:

Spoiler

	def SetThinBoardSize(self, width, height = 12) :
		self.toolTipWidth = width 
		self.toolTipHeight = height

 

 

Edited by WLsj24
uiexchange.py added
  • Thanks 1

Share this post


Link to post
Share on other sites
1 hour ago, WLsj24 said:

Add this in uitooltip.py:
 

  Hide contents


	def SetThinBoardSize(self, width, height = 12) :
		self.toolTipWidth = width 
		self.toolTipHeight = height

 

 

Okay, this worked

 

1 hour ago, WLsj24 said:

You need some more codes in the part of uiexchange to be functional with the system of cheque_system. You do not need to use the exchangedialog_new.py if you do not have the system.

What do I need to add in uiexchange.py to clear the cheque value in trade window? (showing 1234567)

-by the way, new error:

Spoiler

wZ9YoO1.gif

Code lines:

Spoiler

11d0Y91.png

 

Share this post


Link to post
Share on other sites
21 minutes ago, cjunior2011 said:

by the way, new error:

I think you did not follow my guide on uiexchange.py
Your debug shows "OnPickMoney" takes exactly 2 arguments (3 given)

If you have any more errors I think you should write me privately since this post is becoming conversation.

  • Confused 1

Share this post


Link to post
Share on other sites
6 minutes ago, WLsj24 said:

I think you did not follow my guide on uiexchange.py
Your debug shows "OnPickMoney" takes exactly 2 arguments (3 given)

If you have any more errors I think you should write me privately since this post is becoming conversation.

I always think that problems and solutions in one post is never too much, because my problem may be someone else's problem, too, but that's okay, I'll send you a message in private soon!

Share this post


Link to post
Share on other sites
3 hours ago, WLsj24 said:

I think you did not follow my guide on uiexchange.py
Your debug shows "OnPickMoney" takes exactly 2 arguments (3 given)

If you have any more errors I think you should write me privately since this post is becoming conversation.

I sent a private message to you friend, thank you for your attention here!

Share this post


Link to post
Share on other sites

syserr :

 

 

0712 14:34:14990 :: Failed to load script file : UIScript/exchangedialog.py
0712 14:34:14991 :: 
ui.py(line:2989) LoadScriptFile
system.py(line:192) execfile
system.py(line:163) Run
UIScript/exchangedialog.py(line:182) <module>

LoadScriptFile!!!!!!!!!!!!!! - <type 'exceptions.AttributeError'>:'module' object has no attribute 'CHEQUE_SYSTEM_UNIT_WON'

0712 14:34:14991 :: ============================================================================================================
0712 14:34:14991 :: Abort!!!!

 

 

Share this post


Link to post
Share on other sites
14 hours ago, alio0o33 said:

syserr :

 

 

0712 14:34:14990 :: Failed to load script file : UIScript/exchangedialog.py
0712 14:34:14991 :: 
ui.py(line:2989) LoadScriptFile
system.py(line:192) execfile
system.py(line:163) Run
UIScript/exchangedialog.py(line:182) <module>

LoadScriptFile!!!!!!!!!!!!!! - <type 'exceptions.AttributeError'>:'module' object has no attribute 'CHEQUE_SYSTEM_UNIT_WON'

0712 14:34:14991 :: ============================================================================================================
0712 14:34:14991 :: Abort!!!!

 

 

locale_game.txt

 

CHEQUE_SYSTEM_UNIT_WON	Won

 

Share this post


Link to post
Share on other sites

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

  • Recently Browsing   0 members

    No registered users viewing this page.