[C++][SOURCE] Auto anti yangbug

08/21/2014 15:02 soldierhost.biz#16
was für ein yang bug soll das sein ?
04/01/2016 09:07 fer321#17
Code:
if(dwPrice > item->GetGold()) 
		dwPrice=item->GetGold();
i think it should be "<" not ">"
so you should put
Code:
if(dwPrice < item->GetGold()) 
		dwPrice=item->GetGold();
cuz if the buy price is lower than sell price you should use the sell price.. anyway, an easier way to fix that.. and without using a source code would be runing this code in mysql command line

Code:
UPDATE item_proto 
SET shop_buy_price = gold
WHERE shop_buy_price<gold
(this one will set buy price to same value as sell price if the buy price is lower than sell price)

or


Code:
UPDATE item_proto 
SET gold = shop_buy_price
WHERE shop_buy_price<gold
(this one will set sell price to same value as buy price if the buy price is lower than sell price)
04/01/2016 10:57 Lauling#18
eine query welche der Einkaufspreis des items höher stellt als den Verkaufspreis tuts auch.