Kurosaki 0 Posted January 15, 2015 Share Posted January 15, 2015 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 More sharing options...
Reboot 772 Posted January 15, 2015 Share Posted January 15, 2015 Even in binary client? 2 Link to comment Share on other sites More sharing options...
Kurosaki 0 Posted January 15, 2015 Author Share Posted January 15, 2015 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 More sharing options...
Reboot 772 Posted January 15, 2015 Share Posted January 15, 2015 Chech this topic on my posts : Link to comment Share on other sites More sharing options...
Kurosaki 0 Posted January 16, 2015 Author Share Posted January 16, 2015 Chech this topic on my posts : REBOOT, that topic is the solution for clienteside. But, for serverside?, In my above post, Are the changes correctly? Link to comment Share on other sites More sharing options...
Morphe 160 Posted January 16, 2015 Share Posted January 16, 2015 packet.h server packet.h client change packet points to long long Link to comment Share on other sites More sharing options...
Kurosaki 0 Posted January 16, 2015 Author Share Posted January 16, 2015 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 More sharing options...
Despero 131 Posted January 16, 2015 Share Posted January 16, 2015 How Can i Change the Max Yang in Binary Source i need help Link to comment Share on other sites More sharing options...
Sentrix3422 3 Posted January 22, 2015 Share Posted January 22, 2015 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 1 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now