View Single Post
  #10  
Old 06-13-2008, 01:21 PM
greggg230
Fire Beetle
 
Join Date: Jun 2008
Location: Vegas
Posts: 17
Default

Quote:
Originally Posted by cavedude View Post
Moving to submission. To make it easier on KLS/Scorp, could you diff your changes?
Sure.

Line 3717 of zone/client_packet.cpp should be changed from:

Code:
mco->rate = 1.6;
to

Code:
mco->rate = 1/(.884*Client::CalcPriceMod(tmp,true));
line 3842 of zone/client_packet.cpp should be changed from:

Code:
mpo->price = (item->Price*127/100)*mp->quantity;
to

Code:
mpo->price = (item->Price*(1/.884)*Client::CalcPriceMod(tmp,false))*mp->quantity;
line 3947 of zone/client_packet.cpp should be changed from:

Code:
price=(int)((item->Price*mp->quantity)*.884);
to

Code:
price=(int)((item->Price*mp->quantity)*.884*Client::CalcPriceMod(vendor,true)+0.5); // need to round, because client does it automatically when displaying price
line 4001 of zone/client_packet.cpp should be changed from:

Code:
inst2->SetPrice(item->Price*127/100);
to

Code:
inst2->SetPrice(item->Price*(1/.884)*Client::CalcPriceMod(vendor,false));
in zone/client_process.cpp, the following should be moved from 878 to 804:

Code:
Mob* merch = entity_list.GetMobByNpcTypeID(npcid);
line 831 of zone/client_process.cpp should be changed from:

Code:
inst->SetPrice(item->Price*127/100);
to

Code:
inst->SetPrice((item->Price*(1/.884)*Client::CalcPriceMod(merch,false)));
line 862 of zone/client_process.cpp should be changed from:

Code:
inst->SetPrice(item->Price*127/100);
to

Code:
inst->SetPrice((item->Price*(1/.884)*Client::CalcPriceMod(merch,false)));
Reply With Quote