The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Vendor Gold
Author Message
Lightsource
Apprentice
*

Posts: 9
Likes Given: 2
Likes Received: 1 in 1 posts
Joined: Dec 2013
Reputation: 0



Post: #1
Vendor Gold
Hey, im trying to make my vendors buy houses from players that cost 30k gp, but they keep saying that they can't afford it. I have given GPs through @NPCRestock, put gold in their banks, bought stuff to see if their purchase limit would rise, but no success in any case.
After a little debugging I came across this at CContain.cpp (which is the limit I'm facing right now):

Code:
case LAYER_BANKBOX:
                    // Restock petty cash.
                    if ( !m_itEqBankBox.m_Check_Restock )
                        m_itEqBankBox.m_Check_Restock = 10000;
                    if ( m_itEqBankBox.m_Check_Amount < m_itEqBankBox.m_Check_Restock )
                        m_itEqBankBox.m_Check_Amount = m_itEqBankBox.m_Check_Restock;
                    return;

Is there anyway I can override this line m_itEqBankBox.m_Check_Restock by scripts? or should I change my source code?

Thanks in advance

edit:

also when I change this in source code and it starts buying houses, it shows the wrong price at the Vendor Gump than what he actually pays. At the gump it shows 36.928gps, but he pays when I click accept 168.000gps
(This post was last modified: 02-14-2017 03:06 AM by Lightsource.)
02-14-2017 02:31 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Vendor Gold - Lightsource - 02-14-2017 02:31 AM
RE: Vendor Gold - Coruja - 02-14-2017, 05:05 AM
RE: Vendor Gold - Lightsource - 02-14-2017, 05:51 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)