loot_item_add(item_name, char_name)

Parameters:
item_name (string) name of the item
char_name (string) name of the NPC
 
Returns:
none

Description:
Add a loot item (i.e.: something that is dropped on death) to an NPC.

If the loot item is added while the character has a valid peer created, the loot will be added only to the peer.

If the loot item is added while no peer exists, it will be added to the script NPC (and all corresponding peers that are instantiated).

 

back to indexSR3 Script Action Documentation
Last updated: Tue, 09 Aug 2011 11:32:15