|
|
|
 |
 |
 |
 |
|
 |
 |
|
 |
 |
|
 |
|

06-13-2008, 02:26 AM
|
|
Fire Beetle
|
|
Join Date: Jun 2008
Location: Vegas
Posts: 17
|
|
Quote:
Originally Posted by ChaosSlayer
greggg, do you know if this will also affect the "salerate" field in "items" table of the DB, which suposely should control... SOMETHING price related?
if yes, then how?
|
From everything I can tell, it does nothing. It's probably an obsolete variable at this point. It's not clear what it might have done in the past. Unless I'm missing something faction, charisma, and the base price of an item should be the only variables needed to determine actual price.
Fine Steel Short Sword has a value of 5500, and I was able to accurately predict its sell and buy prices without even knowing about sellrate. Its sellrate is 9, apparently.
Someone please correct me if I'm wrong, though.
|

06-13-2008, 02:32 AM
|
|
Demi-God
|
|
Join Date: May 2007
Posts: 1,032
|
|
i was under impression, that 'salerate' was some sort of an option to set a custom sell back for each specific item - could realy be usefull in order to create items which would sell back for 100% base price (i can think for dozen fo reason for having such items) - or at least its the only logical explation that coudl posibly fit the description of the field name.
of course the thing never worked, so... =)
but it would be nice to have it actualy working this way =)
(could also be interesting to have item which would sell back for ABOVE base price - again for various reasons) =)
|

06-13-2008, 10:09 AM
|
 |
The PEQ Dude
|
|
Join Date: Apr 2003
Location: -
Posts: 1,988
|
|
Moving to submission. To make it easier on KLS/Scorp, could you diff your changes?
|
 |
|
 |

06-13-2008, 01:21 PM
|
|
Fire Beetle
|
|
Join Date: Jun 2008
Location: Vegas
Posts: 17
|
|
Quote:
Originally Posted by cavedude
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:
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)));
|
 |
|
 |

06-13-2008, 01:50 PM
|
|
Discordant
|
|
Join Date: May 2006
Posts: 356
|
|
Quote:
Originally Posted by cavedude
Moving to submission. To make it easier on KLS/Scorp, could you diff your changes?
|
CD, for those of us who used to be WinDoze users, can you tell us what the correct Syntax is to create a diff file?
Thanks
__________________
Random Segments of Code....
|

06-17-2008, 12:45 PM
|
|
Dragon
|
|
Join Date: May 2006
Location: Cincinnati, OH
Posts: 689
|
|
Another great fix. Keep up the great work, Greg! =)
|
 |
|
 |

06-17-2008, 02:49 PM
|
|
AX Classic Developer
|
|
Join Date: May 2006
Location: filler
Posts: 2,049
|
|
Quote:
Originally Posted by Aramid
CD, for those of us who used to be WinDoze users, can you tell us what the correct Syntax is to create a diff file?
Thanks
|
In Linux, diff is integrated in the os. You can make diffs/patches via command line. There are also some very nice graphical interfaces you can add, that help you see even better (kompare, xxdiff).
When I first started here at EqEmu, I couldn't for the best of me, get the source to compile under my windows box. So I took it to my Linux box where I had little trouble there - it was better this happened to me, because Linux Distros usually come "developer ready" and have all these neat tools like diff, kompare, compilers, etc. They are all just as available as my "dir" or "copy" command in windows.
I think I'm gonna try windows compile again with that new compiler package that's posted here, just for the challenge.
Anyways, you usually can google what you need for windows - I just googled "diff program for windows xp", and came up with a whole swarm of stuff. The diff toolshould be self explanatory on how you present it here.
|
 |
|
 |

06-17-2008, 03:35 PM
|
|
Discordant
|
|
Join Date: Jun 2005
Posts: 286
|
|
Great fix man thanks, I've been hoping someone would fix factions, and I didn't even realize it was giving the incorrect gold when selling.
__________________
-Croup (the rogue)
Creator of Pandemic (PvP-Racewars)
|

06-17-2008, 04:45 PM
|
|
Discordant
|
|
Join Date: May 2006
Posts: 356
|
|
Quote:
Originally Posted by Angelox
In Linux, diff is integrated in the os. You can make diffs/patches via command line. .
I think I'm gonna try windows compile again with that new compiler package that's posted here, just for the challenge.
Anyways, you usually can google what you need for windows - I just googled "diff program for windows xp", and came up with a whole swarm of stuff. The diff toolshould be self explanatory on how you present it here.
|
I know about the diff command, was looking for a specific command line.. but that's ok.
Hey Angelox, try compiling the BOT CODE in Windows and let me know if it works for you. I can't get it to recognize that the BOTS are compiled in. Have everything set as AFGAIK in Preprocessor and files are all in place, but no go.
__________________
Random Segments of Code....
|

06-17-2008, 04:52 PM
|
|
Sarnak
|
|
Join Date: Sep 2006
Location: Germany
Posts: 82
|
|
I think "diff -Nur ..." is the right command
__________________
"Yes, the artwork is awful. I am an engineer, not an artist  " - David H. Eberly
|

06-18-2008, 10:52 AM
|
 |
Demi-God
|
|
Join Date: Mar 2003
Location: USA
Posts: 1,067
|
|
This will be in version 1113.
__________________
Maybe I should try making one of these servers...
|
| Thread Tools |
|
|
| Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 09:56 PM.
|
|
 |
|
 |
|
|
|
 |
|
 |
|
 |