Jump to content

Increase limit yang (gold)


Recommended Posts

Hi friends. (my english is bad)

 

I want increase the limit maximum of gold (yang).

It use data type INT, and this only allow me increase the yang to maximum  2,147,483,647

I want increase this limit to... by example 999,000,000,000 ( nine hundred ninety nine thousand millions )

I changed the values and data types in

- char.cpp

- char.h

- tables.h

- lenght.h

 

But I have not success.

help me!

Link to comment
Share on other sites

Even in binary client?

 

i dont know!! I used cliente mt2RAGE

but the problem is that...

when I login, the server put out me.

 

 

Here the changes!!

This is OK? -->

char.cpp

//INT CHARACTER::GetAllowedGold() const
long long CHARACTER::GetAllowedGold() const
{
	if (GetLevel() <= 10)
		return 100000;
	else if (GetLevel() <= 20)
		return 500000;
	else
		return 50000000;
}

char.h

typedef struct character_point
{
	long			points[POINT_MAX_NUM];

	BYTE			job;
	BYTE			voice;

	BYTE			level;
	DWORD			exp;
	//int			gold;
	long long		gold;

tables.h

typedef struct SPlayerTable
{
	DWORD	id;

	char	name[CHARACTER_NAME_MAX_LEN + 1];
	char	ip[IP_ADDRESS_LENGTH + 1];

	WORD	job;
	BYTE	voice;

	BYTE	level;
	BYTE	level_step;
	short	st, ht, dx, iq;

	DWORD	exp;
	//INT	gold;
	long long	gold;

lenght.h

	//LIMIT_GOLD
	GOLD_MAX = 999000000000,             //before 2,000,000,000
	MAX_PASSPOD = 8 ,
	//END_LIMIT_GOLD
Link to comment
Share on other sites

Even in binary client?

 

 

packet.h server

packet.h client

 

change packet points to long long

Only modify these files?

Is not necesary modify

- tables.h

- char.cpp

- char.h

 

regards and thanks.

PD: i can not work this.

___

EDIT and ADD:

Where are the packet.h file of client?

 

I used a created client... I not use a cliente compiled for me.

Or perhaps I create my own client using novaline?

Link to comment
Share on other sites

you need to go to your mysql server and to player > player design table and change gold from int (or something like so) and change it to bigint

this will allow you to have more than 2147483647 young after buying something or re login to the game :> All the modifications that you did to game were fine. try this :)

 

BIGINT 8 -9223372036854775808

9223372036854775807

0 18446744073709551615

 

http://dev.mysql.com/doc/refman/5.5/en/integer-types.html

 

  • Metin2 Dev 1
  • Love 2
Link to comment
Share on other sites

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.