I encounter a penya buy bug, i vend on privateshop and set the price to 1b , and i use another/dual account to buy it and my vendor receive 2b. Does anyone have this fix please help.
Quote:
I encounter a penya buy bug, i vend on privateshop and set the price to 1b , and i use another/dual account to buy it and my vendor receive 2b. Does anyone have this fix please help.
m_pOwner->AddGold(pItemBase->m_nCost * nNum);
Ill try this,for now ive just disabled the price on penya, by editing the max exceed of selling price from 2.1b to 1penya so theh cant sell item using penya then they obligate to sell item using other currency.Quote:
I'm not sure, but you may have the AddGold string duplicated somewhere at MoverItem.cpp
Try checking this file and finding an extra line in it:
MoverItem.cpp
Code:m_pOwner->AddGold(pItemBase->m_nCost * nNum);
i've encounter this before but its fix. this is the issue of player own shop right? .Quote:
I encounter a penya buy bug, i vend on privateshop and set the price to 1b , and i use another/dual account to buy it and my vendor receive 2b. Does anyone have this fix please help.
Quote:
Yses, known as privateshop.
#ifdef __WORLDSERVER
#include "user.h"
extern CUserMng g_UserMng;
#endif // WORLDSERVER
#ifdef __WORLDSERVER
#include "user.h"
#include "DPDatabaseClient.h"
extern CUserMng g_UserMng;
extern CDPDatabaseClient g_dpDBClient;
#endif // WORLDSERVER
cBuyItem.m_nItemNum = nNextPrice;
if( !m_pOwner->CreateItem( &cBuyItem ) )
g_dpDBClient.SendQueryPostMail( m_pOwner->m_idPlayer, NULL, cBuyItem, NULL, "Shop Item", "Your items." );
pBuyer->AddGold( -( pItemBase->m_nCost * nNum ) );
m_pOwner->AddGold( pItemBase->m_nCost * nNum );
// pBuyer->AddGold( -( pItemBase->m_nCost * nNum ) );
// m_pOwner->AddGold( pItemBase->m_nCost * nNum );
Like what i said above i already fixed itQuote:
Go to your MoverItem.cpp in _common folder
find :
Change to thisPHP Code:#ifdef __WORLDSERVER
#include "user.h"
extern CUserMng g_UserMng;
#endif // WORLDSERVER
leave this partPHP Code:#ifdef __WORLDSERVER
#include "user.h"
#include "DPDatabaseClient.h"
extern CUserMng g_UserMng;
extern CDPDatabaseClient g_dpDBClient;
#endif // WORLDSERVER
look this:PHP Code:cBuyItem.m_nItemNum = nNextPrice;
if( !m_pOwner->CreateItem( &cBuyItem ) )
g_dpDBClient.SendQueryPostMail( m_pOwner->m_idPlayer, NULL, cBuyItem, NULL, "Shop Item", "Your items." );
Change to this:PHP Code:pBuyer->AddGold( -( pItemBase->m_nCost * nNum ) );
m_pOwner->AddGold( pItemBase->m_nCost * nNum );
PHP Code:// pBuyer->AddGold( -( pItemBase->m_nCost * nNum ) );
// m_pOwner->AddGold( pItemBase->m_nCost * nNum );