Originale 134 Posted December 1, 2014 Share Posted December 1, 2014 Hey I try to increase the value max yang But its not working as I would like If I modified: common/length.h GOLD_MAX = 2000000000000ULL, common/table.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; long long gold; BYTE dir; INT x, y, z; INT lMapIndex; long lExitX, lExitY; long lExitMapIndex; short hp; short sp; short sRandomHP; short sRandomSP; int playtime; short stat_point; short skill_point; short sub_skill_point; short horse_skill_point; TPlayerSkill skills[SKILL_MAX_NUM]; TQuickslot quickslot[QUICKSLOT_MAX_NUM]; BYTE part_base; WORD parts[PART_MAX_NUM]; short stamina; BYTE skill_group; long lAlignment; char szMobile[MOBILE_MAX_LEN + 1]; short stat_reset_count; THorseInfo horse; DWORD logoff_interval; int aiPremiumTimes[PREMIUM_MAX_NUM]; } TPlayerTable; game/src/char.cpp long long CHARACTER::GetAllowedGold() const { if (GetLevel() <= 10) return 100000; else if (GetLevel() <= 20) return 500000; else return 50000000; } void CHARACTER::PointChange(BYTE type, int64_t amount, bool bAmount, bool bBroadcast) game/src/char.h //////////////////////////////////////////////////////////////////////////////////////// // Money related long long GetGold() const { return m_points.gold; } void SetGold(long long gold) { m_points.gold = gold; } bool DropGold(long long gold); long long GetAllowedGold() const; void GiveGold(INT iAmount); // 파티가 있으면 파티 분배, 로그 등의 처리 // End of Money Mysql Table Player gold bigint 13 I cannot find the error Thank you in advance for the help that you will bring me Link to comment Share on other sites More sharing options...
Former Staff flygun 304 Posted December 1, 2014 Former Staff Share Posted December 1, 2014 what is the problem .... you cant see the money in the client ??? but you can see it in sql ?? Link to comment Share on other sites More sharing options...
Premium TAUMP 841 Posted December 1, 2014 Premium Share Posted December 1, 2014 Binare? Link to comment Share on other sites More sharing options...
Originale 134 Posted December 1, 2014 Author Share Posted December 1, 2014 yes is not When I make the order /set Originale gold 250 My core crash Link to comment Share on other sites More sharing options...
Night 366 Posted December 1, 2014 Share Posted December 1, 2014 well reconsider changing from long long to DWORDLONG / LONGLONG its better. yang/gold does not take negative value any way (edit : this is in most of the cases) , and i also recommend you to check the command variable type (give gold) on cmd_gm.cpp 1 Link to comment Share on other sites More sharing options...
Originale 134 Posted December 1, 2014 Author Share Posted December 1, 2014 (edited) Bug client: 1201 13:44:18992 :: Unknown packet header: 190, last: 32 17 and screen POINT_GOLD Edited August 15, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Ken 904 Posted December 1, 2014 Share Posted December 1, 2014 You can't make this in enum system. Enum max vnum is equal to integer maximum. You need to redefine that as DWORD and change the format %d to %u Best Regards Ellie Do not be sorry, be better. Link to comment Share on other sites More sharing options...
Premium phayara 424 Posted January 16, 2015 Premium Share Posted January 16, 2015 hi, please help me binary? files?? 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