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

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-11-2004, 06:27 PM
govtcheeze
Hill Giant
 
Join Date: Mar 2004
Location: South Florida
Posts: 247
Default New idea (i think)

From what I can tell, placeholder mobs are not implemented.

I think an easy way to accompish this would be to add a field to npc_type called placeholder usigned int and PHchance usigned int.

placeholder would have the ID of the mob that can spawn in its place. PHchance would be a number 1-100 indicating how likely the other mob would spawn. Can be as simple as:

Code:
if(rand(1,100) < PHchance)
  spawn mob with an ID of placeholder
You could even cascade them, where a mob could have a placeholder, who is also a placeholder. In this case:

Code:
if(rand(1,100) < PHchance) {
  if(mob with id of placeholder has a zero in its placeholder field, spawn this mob)
  else
    make a recursive call to this function
}
Something to chew on...
Reply With Quote
 


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 05:45 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3