EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::General Support (https://www.eqemulator.org/forums/forumdisplay.php?f=598)
-   -   weird problem with npc merchants. (https://www.eqemulator.org/forums/showthread.php?t=24137)

Davood 01-16-2008 02:55 PM

weird problem with npc merchants.
 
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 .


All times are GMT -4. The time now is 07:21 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.