Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 12-10-2004, 04:54 PM
mystic414's Avatar
mystic414
Hill Giant
 
Join Date: Sep 2004
Posts: 100
Default 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.
Reply With Quote
  #2  
Old 12-10-2004, 05:11 PM
fathernitwit
Developer
 
Join Date: Jul 2004
Posts: 773
Default

$npc->AddItem(item_id, charges)

needs XS classes.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 09:21 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3