#giveitem only works for players. The only ways I know of to add loot to an NPC loot table without editing your loot tables and restarting the server are:
1. #summonitem and give the item to the NPC.
2. use quest::addloot(); in a quest for an NPC.
Both of those will only be temporary and they will not be in the loot tables if the zone resets, server resets, or if the mob is killed and spawns again.
|