Kyros 0 Posted November 14, 2018 Share Posted November 14, 2018 Hello, I hope someone can offer me help. When trading and trying to put yang in trade window, it stays at 0 and this particular message comes out: The player owns more than 2 billion yang He says that the player with I am trying to trade has more than 2 billion yang, but the fact is that the player does not even have yang or have small amount. In the sysser this line comes out; SYSERR: Nov 2 01: 53: 53.530620 :: Exchange: [OVERFLOW_GOLD] ELK_ADD (884092571) id 1 name [GM] Luke Link to comment Share on other sites More sharing options...
Kyros 0 Posted November 14, 2018 Author Share Posted November 14, 2018 I will pay 10€ paypal for help! Link to comment Share on other sites More sharing options...
Premium WeedHex 635 Posted November 14, 2018 Premium Share Posted November 14, 2018 show from file exchange.cpp the boolean functions: bool CExchange::AddGold(long gold) bool CHARACTER::ExchangeStart(LPCHARACTER victim) Link to comment Share on other sites More sharing options...
Kyros 0 Posted November 14, 2018 Author Share Posted November 14, 2018 bool CExchange::AddGold(long gold) { if (gold <= 0) return false; if (GetOwner()->GetGold() < gold) { // °¡Áö°í ÀÖ´Â µ·ÀÌ ºÎÁ·. exchange_packet(GetOwner(), EXCHANGE_SUBHEADER_GC_LESS_GOLD, 0, 0, NPOS, 0); return false; } if ( LC_IsCanada() == true || LC_IsEurope() == true ) { if ( m_lGold > 0 ) { return false; } } Accept(false); GetCompany()->Accept(false); m_lGold = gold; exchange_packet(GetOwner(), EXCHANGE_SUBHEADER_GC_GOLD_ADD, true, m_lGold, NPOS, 0); exchange_packet(GetCompany()->GetOwner(), EXCHANGE_SUBHEADER_GC_GOLD_ADD, false, m_lGold, NPOS, 0); return true; } bool CHARACTER::ExchangeStart(LPCHARACTER victim) { if (this == victim) // ÀÚ±â ÀڽŰú´Â ±³È¯À» ¸øÇÑ´Ù. return false; if (IsObserverMode()) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("°üÀü »óÅ¿¡¼´Â ±³È¯À» ÇÒ ¼ö ¾ø½À´Ï´Ù.")); return false; } if (victim->IsNPC()) return false; Link to comment Share on other sites More sharing options...
Premium WeedHex 635 Posted November 14, 2018 Premium Share Posted November 14, 2018 Show me the line where's OVERFLOW_GOLD I need to see better because i think is just a small check issue. Link to comment Share on other sites More sharing options...
Kyros 0 Posted November 14, 2018 Author Share Posted November 14, 2018 The sysser line? Link to comment Share on other sites More sharing options...
Premium TAUMP 825 Posted November 14, 2018 Premium Share Posted November 14, 2018 bool CExchange::AddGold(long long gold) .h bool AddGold(long longlGold); Link to comment Share on other sites More sharing options...
Kyros 0 Posted November 14, 2018 Author Share Posted November 14, 2018 hace 16 minutos, T4UMP dijo: bool CExchange::AddGold(long long gold) .h bool AddGold(long longlGold); Not working exchange.cpp https://ghostbin.com/paste/r4zvo exchange.h https://ghostbin.com/paste/x7km3 Link to comment Share on other sites More sharing options...
Premium TAUMP 825 Posted November 15, 2018 Premium Share Posted November 15, 2018 idk, if you are retarted, check tutorials for change gold, thx. 1 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