| Lightsource  Apprentice
 
  
 Posts: 9
 Likes Given: 2
 Likes Received: 1 in 1 posts
 Joined: Dec 2013
 Reputation: 0
 
 
 
 ![]() 
 | 
			| 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 |  | 
	
	| ![[+]](images/collapse_collapsed.gif)  
 |