EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Any way to add loot to an npc via Perl? (https://www.eqemulator.org/forums/showthread.php?t=17325)

mystic414 12-10-2004 04:54 PM

Any way to add loot to an npc via Perl?
 
I have an npc that I want to not drop any loot when killed unless the player hands in some items first, in which case a different item x is added to the npc's loot.

In other words, I don't want the player to be able to get item x by killing the npc without handing in the other items first.

I think in EQ live they despawn the mob and repop him with the new loot, but I can't figure out how to use quest::spawn to do that. Anyone more knowledgeable than me have any ideas? Thanks in advance.

fathernitwit 12-10-2004 05:11 PM

$npc->AddItem(item_id, charges)

needs XS classes.


All times are GMT -4. The time now is 08:21 AM.

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