EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Database/World Building (https://www.eqemulator.org/forums/forumdisplay.php?f=596)
-   -   NPC Weapons (https://www.eqemulator.org/forums/showthread.php?t=24747)

Sabyre 03-26-2008 02:01 PM

NPC Weapons
 
It has been brought up before and I read a thread that stated the fix was included in the source some time ago, but I cant get it to work.

I can not seem to get NPC's to wield the weapons in their loot table. The only way I can get them to physically hold the items is to #npcloot add.

Is this in fact a fixed issue? If so, what am I doing wrong?

The weapons I am trying are relevant to the NPC; class, level, etc.

Thanks

Jibbatwinkers 03-26-2008 02:28 PM

The only way I have gotten it to work is using the GeorgeS NPC and Loot editor. In the area where the loot it show there is a column that says equipped and you can change it to YES or NO. I'm not really sure how to do this any other way, I don't know where GeorgeS pulls this information from the DB because it seems to be based on the loot tables / items, and not the NPCs themselves.

ChaosSlayer 03-26-2008 03:30 PM

Quote:

Originally Posted by Jibbatwinkers (Post 145409)
The only way I have gotten it to work is using the GeorgeS NPC and Loot editor. In the area where the loot it show there is a column that says equipped and you can change it to YES or NO. I'm not really sure how to do this any other way, I don't know where GeorgeS pulls this information from the DB because it seems to be based on the loot tables / items, and not the NPCs themselves.

aye it is correct. the npc "equip item" yes/no field is in one of the loottables

Sabyre 03-26-2008 04:07 PM

I use Georges tools (Big Fan) still doesn't work for me.

AndMetal 03-26-2008 04:33 PM

Using the Wiki as a reference:

Quote:

lootdrop_entries
A list of individual items that can drop in a particular Loot Drop. Each entry also has a chance value that determines how likely that item is to drop as opposed to any other items in the same Loot Drop.
Quote:

Fields
  • lootdrop_id: ID into lootdrop table
  • item_id: ID of the item that could drop
  • item_charges: number of charges the item has
  • equip_item: boolean field - True meaning the NPC can equip this item.
  • chance: The chance this item has to drop

So, just set the equip_item field in the lootdrop_entries table to 1 (boolean for true of course), and any mob with that loot table will be able to equip that item. As far as I know, that's what GeorgeS's editor does. If that doesn't allow the mob to equip it, then it looks like it's not working properly.

Sabyre 03-26-2008 09:08 PM

Never figured it would require a world restart. I thought loot tables were loaded via zone...

Anywho, wasn't broken for me just needed a restart.

Thanks all.


All times are GMT -4. The time now is 01:12 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.