Jump to content

MAX YANG GOLD SOURCE


Recommended Posts

Hallo,how to make the maximum amount of yang?

Im change:

char.cpp - long long CHARACTER::GetAllowedGold() const

char.h -     long long        gold;

tables.h -     long long    gold;

length.h -     GOLD_MAX = 999000000000LL,

 

And error game

In file included from char.cpp:4:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
In file included from char.cpp:25:
shop_manager.h:40:7: warning: no newline at end of file
In file included from char.cpp:62:
PetSystem.h:163:31: warning: no newline at end of file
char.cpp:7208: warning: this decimal constant is unsigned only in ISO C90
char.cpp:7216:2: warning: no newline at end of file
In file included from char_battle.cpp:27:
shop_manager.h:40:7: warning: no newline at end of file
In file included from char_horse.cpp:14:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
In file included from char_item.cpp:44:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
In file included from char_item.cpp:47:
belt_inventory_helper.h:108:42: warning: no newline at end of file
In file included from PetSystem.cpp:8:
PetSystem.h:163:31: warning: no newline at end of file
In file included from PetSystem.cpp:9:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
PetSystem.cpp:637:2: warning: no newline at end of file
In file included from char_state.cpp:25:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
char.cpp:3000: error: prototype for 'long long int CHARACTER::GetAllowedGold() const' does not match any in class 'CHARACTER'
char.h:1173: error: candidate is: INT CHARACTER::GetAllowedGold() const
char.cpp:3000: error: 'long long int CHARACTER::GetAllowedGold() const' cannot be overloaded
char.h:1173: error: with 'INT CHARACTER::GetAllowedGold() const'
char.cpp: In member function 'void CHARACTER::PointChange(BYTE, int, bool, bool)':
char.cpp:3089: warning: comparison between signed and unsigned integer expressions
In file included from char_item.cpp:47:
belt_inventory_helper.h: In static member function 'static BYTE CBeltInventoryHelper::GetBeltGradeByRefineLevel(int)':
belt_inventory_helper.h:28: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
char_item.cpp:640: warning: comparison is always false due to limited range of data type
char_item.cpp:666: warning: comparison is always false due to limited range of data type
In file included from cmd_general.cpp:36:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
char_item.cpp: In member function 'bool CHARACTER::UseItemEx(CItem*, TItemPos)':
char_item.cpp:2387: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2391: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2403: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:2407: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:2434: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2442: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:5090: warning: comparison between signed and unsigned integer expressions
gmake: *** [OBJDIR/char.o] Bł±d 1
gmake: *** Oczekiwanie na niezakończone zadania....
PetSystem.cpp: In member function 'virtual bool CPetActor::_UpdateFollowAI()':
PetSystem.cpp:246: warning: unused variable 'bDoMoveAlone'
char_item.cpp: In member function 'bool CHARACTER::UseItem(TItemPos, TItemPos)':
char_item.cpp:5162: warning: unused variable 'wDestCell'
char_item.cpp:5163: warning: unused variable 'bDestInven'
PetSystem.cpp: In member function 'CPetActor* CPetSystem::Summon(DWORD, CItem*, const char*, bool, DWORD)':
PetSystem.cpp:552: warning: unused variable 'petVID'
char_item.cpp: In member function 'bool CHARACTER::EquipItem(CItem*, int)':
char_item.cpp:6103: warning: array subscript has type 'char'
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_AddBuffsFromItem(CItem*)':
char_item.cpp:6167: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_RemoveBuffsFromItem(CItem*)':
char_item.cpp:6179: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'bool CHARACTER::CanEquipNow(CItem*, const TItemPos&, const TItemPos&)':
char_item.cpp:7365: warning: unused variable 'itemType'
char_item.cpp:7366: warning: unused variable 'itemSubType'
constants.cpp:371: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:372: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:373: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:374: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:375: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:376: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:377: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:378: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:379: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:380: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:381: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:382: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:383: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:384: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:385: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:386: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:387: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:388: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:389: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:390: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:391: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:392: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:393: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:394: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:395: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:396: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:397: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:398: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:399: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:400: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:401: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:402: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:403: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:404: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:405: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:406: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:407: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:408: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:409: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:410: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:411: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:412: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:413: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:414: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:415: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:416: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:417: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:418: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:419: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:420: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:421: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:422: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:423: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:424: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:425: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:426: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:427: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:428: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:429: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:430: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:431: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:432: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:433: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:434: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:435: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:436: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:437: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:438: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:439: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:440: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:441: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:442: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:443: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:444: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:445: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:446: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:447: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:448: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:449: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:450: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:451: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:452: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:453: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:454: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:455: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:456: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:457: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:458: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:459: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:460: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:461: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:462: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:463: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:464: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:465: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:466: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:467: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:468: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:469: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:470: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:471: warning: this decimal constant is unsigned only in ISO C90
char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
char_item.cpp:679: warning: control reaches end of non-void function
char_state.cpp: In member function 'virtual void CHARACTER::StateMove()':
char_state.cpp:901: warning: unused variable 'rider'
In file included from config.cpp:22:
check_server.h: In static member function 'static bool CheckServer::CheckIp(const char*)':
check_server.h:24: warning: comparison between signed and unsigned integer expressions
config.cpp: In function 'void config_init(const std::string&)':
config.cpp:435: warning: NULL used in arithmetic
config.cpp:459: warning: NULL used in arithmetic
config.cpp:483: warning: NULL used in arithmetic
config.cpp:505: warning: unused variable 'line'
cmd_gm.cpp: In function 'void do_set_stat(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:3935: warning: NULL used in arithmetic
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_ValueChange(BYTE, BYTE, BYTE)':
char_item.cpp:6214: warning: 'pBuff' may be used uninitialized in this function
cmd_gm.cpp: In function 'void do_use_item(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:4357: warning: 'cell' may be used uninitialized in this function
cmd_gm.cpp: In function 'void do_set_stat(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:3977: warning: 'n' may be used uninitialized in this function
cmd_gm.cpp: In function 'void do_mob_ld(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:855: warning: 'x' may be used uninitialized in this function
cmd_gm.cpp:855: warning: 'y' may be used uninitialized in this function

Link to comment
Share on other sites

Its OK,

how to edit client?

PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)


{
    return Py_BuildValue("ULL", CPythonPlayer::Instance().GetStatus(POINT_GOLD));
}

Its bad:

sysser:

0808 11:37:15088 :: Traceback (most recent call last):

0808 11:37:15088 ::   File "networkModule.py", line 239, in SetGamePhase

0808 11:37:15088 ::   File "game.py", line 98, in __init__

0808 11:37:15089 ::   File "interfaceModule.py", line 287, in MakeInterface

0808 11:37:15089 ::   File "interfaceModule.py", line 171, in __MakeWindows

0808 11:37:15089 ::   File "uiInventory.py", line 252, in __init__

0808 11:37:15090 ::   File "uiInventory.py", line 393, in __LoadWindow

0808 11:37:15090 ::   File "uiInventory.py", line 615, in RefreshStatus

0808 11:37:15090 :: SystemError
0808 11:37:15090 :: : 
0808 11:37:15090 :: bad format char passed to Py_BuildValue
0808 11:37:15090 :: 

Link to comment
Share on other sites

On 8/9/2015 at 1:12 PM, Kamylek said:

Can somebody help me with it :

.gif

This topic doesnt helped me

https://metin2dev.org/board/index.php?/topic/4790-change-max-gold/

 

 

PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)


{
    return Py_BuildValue("K", CPythonPlayer::Instance().GetStatus(POINT_GOLD));
}

Use K value if you have python27. :)

  • Love 1

"Don't be a scammer. Don't be a hacker. Don't be a motherfucker. Karma is a bitch"

Link to comment
Share on other sites

then in AbstractPlayer.h you need to find

GetStatus(DWORD dwType) = 0;

then replace with

virtual long long		GetStatus(DWORD dwType) = 0;

then in PythonPlayer.cpp you need to replace

int CPythonPlayer::GetStatus(DWORD dwType)

with

long long CPythonPlayer::GetStatus(DWORD dwType)

after that in PythonPlayerModule.cpp put that:

PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)
{
	long long gold = CPythonPlayer::Instance().GetStatus(POINT_GOLD);
	return Py_BuildValue("K", gold);	
}

that's not the full tutorial, but it's ok.

  • Love 1

"Don't be a scammer. Don't be a hacker. Don't be a motherfucker. Karma is a bitch"

Link to comment
Share on other sites

  • 2 weeks later...

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.