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

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 07-09-2011, 03:54 PM
mamba700
Fire Beetle
 
Join Date: Oct 2010
Posts: 5
Default Add Defiant Loot on Spawn

Here is an example of adding Crude Defiant in Crushbone to the stock orc_centurion.pl


Code:
#Orc chit-chat
#Revised Angelox 10-23-06
#zone: Crushbone
sub EVENT_COMBAT{ 

 $rand = rand(); 
 
if(($rand < .3)&&($combat_state == 1))  {  quest::say("Death!!  Death to all who oppose the Crushbone orcs!!"); 
 }  
if(($rand > .67)&&($combat_state == 1)) { 
 quest::say("Hail, Emporer Crush!!");
 }  
if(($rand >= .3)  && ($rand <= .67)&&($combat_state == 1))  {  
 quest::say("Fall before the might of Clan Crushbone!!"); 
 }

}

sub EVENT_ATTACK{  quest::say("Centurions!!  Legionnaires!!  Come join the fight!");

}

sub EVENT_DEATH{ 

 quest::say("You shall have all the Crushbone orc legions on your tail for my death!");

}

sub EVENT_TIMER{


 $defiantrand = rand(28);
 $defiantrand = $defiantrand + 50004; 

 $defiantchance = rand(100);

 if ($defiantchance <= 50) { 
  quest::addloot($defiantrand,1); #Adds x-charges of an item to the NPC's loot
 }

quest::stopalltimers();

}


sub EVENT_SPAWN{

   quest::settimer($mytimer,5); 
}
Reply With Quote
 


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:22 AM.


 

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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3