Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Database/World Building

Archive::Database/World Building Archive area for General Discussion's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 04-01-2003, 04:08 AM
Roadkill
Sarnak
 
Join Date: Apr 2002
Posts: 31
Default 2 questions

Is the ability to itemize NPCs currently in and I'm just missing where to add them? Or is this a feature that's just not implemented yet? I see that they can drop coin, and how to add that in the database, but don't see anything about them dropping items. I see that mobs will equipt what you give them perfectly, but what I'm looking for is a way to have them spawn that way all of the time from the database on server up.

The other question is about the NPC spell lists. I see default lists for all the classes. Are these hard coded, or is there another table somewhere that I need to add to that I overlooked? Adding a spell list for a mob that I want to have a "special" set of spells only generates error messages from the server about an unknown spell list.
Reply With Quote
  #2  
Old 04-01-2003, 05:31 AM
Monrezz's Avatar
Monrezz
Dragon
 
Join Date: Mar 2003
Location: #loc
Posts: 745
Default

Quote:
Is the ability to itemize NPCs currently in and I'm just missing where to add them? Or is this a feature that's just not implemented yet? I see that they can drop coin, and how to add that in the database, but don't see anything about them dropping items. I see that mobs will equipt what you give them perfectly, but what I'm looking for is a way to have them spawn that way all of the time from the database on server up.
Yes this is implemented. When you make a spawn target it and type
#npcloot add <itemnumber>
Then when you are completely finished adding loot (Items, coins etc) type in:
#npcspawn create
#npcspawn add

This will add it to your database as a permanent spawn.
Now if you go into EQAdmin and onto the loot tab, scroll right down to the bottom where your custom spawn is and edit the probability of the items dropping. You change it from (1) to (100), where 100=1% and 1=1% chance of dropping (I think :P )

Quote:
The other question is about the NPC spell lists. I see default lists for all the classes. Are these hard coded, or is there another table somewhere that I need to add to that I overlooked? Adding a spell list for a mob that I want to have a "special" set of spells only generates error messages from the server about an unknown spell list.
Again, go into EQAdmin and onto the NPC tab. There should be a sub-tab called NPC spells. (Presume you were on this). This lets you edit spell lists and create your own. So you can create your own spell list and call it "Myspawn_Spells" or soemthing. After creating one you can then add spells to the list, from the little box in the corner. Make sure you Commit Changes :o
__________________

kRPG Profile
Reply With Quote
  #3  
Old 04-01-2003, 05:32 AM
Monrezz's Avatar
Monrezz
Dragon
 
Join Date: Mar 2003
Location: #loc
Posts: 745
Default

Sorry double post :(
__________________

kRPG Profile
Reply With Quote
  #4  
Old 04-02-2003, 12:23 AM
Roadkill
Sarnak
 
Join Date: Apr 2002
Posts: 31
Default

Thanks a ton. This helped out a lot.
Reply With Quote
  #5  
Old 04-02-2003, 03:35 AM
Monrezz's Avatar
Monrezz
Dragon
 
Join Date: Mar 2003
Location: #loc
Posts: 745
Default

NP, that's what these forums are for
__________________

kRPG Profile
Reply With Quote
  #6  
Old 04-02-2003, 06:14 AM
Edgar1898
Senior Member
Former EQEmu Developer
Current EQ2Emu Lead Developer
 
Join Date: Dec 2002
Posts: 1,065
Default

Quote:
This will add it to your database as a permanent spawn.
Now if you go into EQAdmin and onto the loot tab, scroll right down to the bottom where your custom spawn is and edit the probability of the items dropping. You change it from (1) to (100), where 100=1% and 1=1% chance of dropping (I think )
The way that it works is it takes all the loot drop chances for every lootdrop you have on the lootdrop table for that particular lootdrop_id and adds them together to form a number. It then goes through the list and generates a random number with a percentage of the whole. It the random percent is less than your chance for that item, the item drops.

Example:

You have 3 items on lootdropid 1111:

item 1001 at a chance of 80
item 1002 at a chance of 20
item 1003 at a chance of 100

the code would take all three chances and add them together for a total of 200
it would then generate a number percent of 200 and if its lower than the chance of the item its on, then the item drops. If not it goes on until it gets to the bottom of the list or it finds and item to drop.
__________________
Lethal Encounter
Reply With Quote
  #7  
Old 04-02-2003, 05:05 PM
Lurker_005
Demi-God
 
Join Date: Jan 2002
Location: Tourist town USA
Posts: 1,671
Default

Quote:
Originally Posted by Edgar1898
the code would take all three chances and add them together for a total of 200
it would then generate a number percent of 200 and if its lower than the chance of the item its on, then the item drops. If not it goes on until it gets to the bottom of the list or it finds and item to drop.
?? Oww my head hurts...

So if there is just 1 item with chance of 20, so only if it rolls 100% will it NOT drop?

What if I want something to always drop, and another item to also drop 50% of the time?
__________________
Please read the forum rules and look at reacent messages before posting.
Reply With Quote
  #8  
Old 04-02-2003, 06:20 PM
killspree
Dragon
 
Join Date: Jun 2002
Posts: 776
Default

Just set the loottable probability to less than 100 for the item you don't want to always drop - leave the one you want to always drop at 100.

Loot drop seems to be the chance that an item will drop over other items in the same drop id.

EDIT: You'd have to set them to seperate lootdrop IDs, of course, for that to work.
__________________
Xeldan
Lead Content Designer
Shards of Dalaya
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 04:57 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