Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Feature Requests

Development::Feature Requests Post suggestions/feature requests here.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-01-2009, 02:45 AM
jenco420
Banned
 
Join Date: Jan 2006
Location: /dev/null
Posts: 99
Default Random mob level.

i was reading the EQ Live furoms and my eye caught this Thread (scroll down to where devs start replying)

So i got to thinking about leaning down my spawn tables, and was wondering if there was a feature that allowed for a random level of the mob on spawn?

e.g.

I create a lvl 10 npc, and everytime it repops it can be anywhere from lvl 8 - 12?
Reply With Quote
  #2  
Old 08-01-2009, 03:53 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Actually, I have thought about something like this quite a few times lately. Instead of having to make 5 different variations of the same NPC just to have some variety, it would be nice to have a feature that allowed for level ranges like that. It would certainly save time from having to make tons of spawn groups and NPCs. Maybe a scaling field in the npc_types table that would let you set how much you want the NPCs to be able to scale and it would scale their level, and most other important stats like min/max hit, resists, normal stats, etc. If the NPC is level 10 and you set it to scale 20%, it could create NPCs from level 8-12 and adjust stats accordingly.

Of course, it probably wouldn't be too hard to create a default.pl script to do this on normal NPCs that don't already have a script in place for them. You can set level easy enoug and setting other stats to scale would just mean using some Gets and the modifynpcstat quest command. But, it would be nice to have something built into the source for it if possible.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #3  
Old 08-01-2009, 09:09 PM
Secrets's Avatar
Secrets
Demi-God
 
Join Date: May 2007
Location: b
Posts: 1,447
Default

Some stuff like min/max dmg scale to a formula already if they are 0. It would just mean adding onto that formula (I think it's in npc.cpp) to include stats based off of level, and maybe add some rules for scaling? Set the stats for level 1 in the database and calculate it off of npclevel and the formula. That would save almost anyone a lot of time filling in the annoying NPC_Types table when creating new custom content.

It would be pretty trivial to do, and if no one else does it I will. All it takes is just changing a few things, adding a field here and there..
Reply With Quote
  #4  
Old 08-01-2009, 10:11 PM
Secrets's Avatar
Secrets
Demi-God
 
Join Date: May 2007
Location: b
Posts: 1,447
Default

I added this to my local test server and it works fine. I had to add a default value for stats, though. Other than that, the NPC's level gets modified in real-time if you put all the stats, damage, etc, at 0. That way no existing NPCs get messed up. It also will fix NPCs that have stuff such as 0 str and set it accordingly. I'll post the diff in code submissions.
Reply With Quote
  #5  
Old 08-05-2009, 03:56 PM
jenco420
Banned
 
Join Date: Jan 2006
Location: /dev/null
Posts: 99
Default

Thanks secrets! this will make my job a whole lot easier! kudos!
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 03:19 AM.


 

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