Log in

View Full Version : 2 questions


Roadkill
04-01-2003, 04:08 AM
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.

Monrezz
04-01-2003, 05:31 AM
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 )

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

Monrezz
04-01-2003, 05:32 AM
Sorry double post :(

Roadkill
04-02-2003, 12:23 AM
Thanks a ton. This helped out a lot.

Monrezz
04-02-2003, 03:35 AM
NP, that's what these forums are for :D

Edgar1898
04-02-2003, 06:14 AM
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.

Lurker_005
04-02-2003, 05:05 PM
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?

killspree
04-02-2003, 06:20 PM
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.