PDA

View Full Version : weird problem with npc merchants.


Davood
01-16-2008, 02:55 PM
ok

npc merchant sells me x item for 7k but i can sell it back to him for 988k

i've tried tinkering with sellrate, doesn't seem to affect anything

Does anyone have any idea what's going on here? other items that I didn't price myself are sold at the normal e.g. 10 pp from merchant and 6 pp buyback to merchant etc

Davood
01-16-2008, 05:22 PM
ok i solved it.. i compiled zone.exe myself and made the following change


the calculation in clientprocess.cpp was doing price*127/100 (in both places) which is kinda silly, why not do *1.27, please change that in the source for next update !


It was capping out and then dividing by 100 so it was making smaller numbers as my price got bigger.. now all my evil pricing ninja techniques work perfectly.....i wont keep rebooting the server as much as before


weird but anyways..... back under my rock i go ! while i further abuse the database and create my masterpiece of self indulgence and shame for other people to play with .