Jump to content

Cheque / Won System


Recommended Posts

  • Bot

M2 Download Center

Hidden Content

    Give reaction to this post to see the hidden content.
( Internal )

Hidden Content

    Give reaction to this post to see the hidden content.
( GitHub )

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)

 

Best regards.

  • Metin2 Dev 6
  • Love 25
  • Love 5
  • Good 7
  • Confused 1
  • Dislove 1
Link to comment
  • Developer

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.

  • Love 1
  • Sad 1

👑 Premium International Lua Developer 👑

 My service topic: https://bit.ly/2UPly54

 

Ignorant people have the obligation to compensate their ignorance by paying whoever helps them.

Syreldar

Link to comment
  • Bot
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)

  • Love 1
Link to comment
  • Bot
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.

  • Love 1
Link to comment
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

 

tenor.gif

Link to comment
2 minutes ago, cjunior2011 said:

Hello again, what did I do wrong?

syserr:

Hidden Content

    Give reaction to this post to see the hidden content.

line 1454:

  Hide contents

u9wfdat.png

 

Tab error 

  • Love 2
Link to comment
  • Bot
10 minutes ago, cjunior2011 said:

but, a new error appeared:

Hidden Content

    Give reaction to this post to see the hidden content.

You need have "cheque" in inventorywindow (or inventorywindowex)

Here is my inventorywindowex.py:

Hidden Content

    Give reaction to this post to see the hidden content.

  • Metin2 Dev 2
  • Love 2
  • Good 1
Link to comment
15 minutes ago, WLsj24 said:

Hidden Content

    Give reaction to this post to see the hidden content.

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

 

tenor.gif

Link to comment
  • Bot
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:

Hidden Content

    Give reaction to this post to see the hidden content.

  • Love 1
  • Good 1
Link to comment
35 minutes ago, WLsj24 said:

Sorry, I forgot that part in the guide. Here is my inventorywindowex.py:

Hidden Content

    Give reaction to this post to see the hidden content.

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

 

tenor.gif

Link to comment
  • Bot
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.

  • Love 1
Link to comment
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:

Hidden Content

    Give reaction to this post to see the hidden content.

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

 

tenor.gif

Link to comment
  • Bot
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)

Hidden Content

    Give reaction to this post to see the hidden content.

 

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 M2Dev
uiexchange.py added
  • Love 1
Link to comment
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

 

tenor.gif

Link to comment
  • Bot
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
Link to comment
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!

tenor.gif

Link to comment
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!

tenor.gif

Link to comment
  • 2 months later...

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!!!!

 

 

Link to comment
  • Bot
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

 

Link to comment

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.