Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Development

Archive::Development Archive area for Development's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 07-16-2003, 05:39 AM
Elrach
Sarnak
 
Join Date: Apr 2003
Posts: 66
Default Cash loot distribution

Database::AddLootTableToNPC() in the loottables.cpp file seems to be doing strange things when distributing cash.

Can whoever wrote, or understands the concept explain to me what the avgcoin variable does? In some instances it produces negatives (very high integers in uint). I'm trying to understand the way it works, or was intended to work.

Thanks
__________________
Elrach
Raven City Server
Reply With Quote
  #2  
Old 07-16-2003, 06:55 AM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

I didnt write it, but I've noticed odd problems with our rand's at times. We had a long running bug in loot determination because the rand was coming out with a REALLY screwed up range, I'm guessing that might be what you're seeing. I doubt you'd ever want to see a negative value. Usually when that happens, it turns out to be a casting problem, a unit32 just won't fit correctly into an int8.
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
Reply With Quote
  #3  
Old 07-16-2003, 07:09 AM
Elrach
Sarnak
 
Join Date: Apr 2003
Posts: 66
Default

I've seen some issues with the items distribution. At first glance, what's there seems to work with what I had in mind.

Cash is another story. Ok, I'll try it out when I get home tonight. Right now, if I use a mincash 0, maxcash 25 and avgcoin 5 it looks pretty nasty. hehe, will see how the client spews the cash over.

Should be fairly screwed up in many occasions, unless there is some other code i've not gone through that filters it when passed to the client.

P.S. Big "Way to Go" to anyone who is re-populating a zone. It's a hell of a job!
__________________
Elrach
Raven City Server
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 08:42 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3