Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Custom

Quests::Custom Custom Quests here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-12-2014, 07:06 AM
Trubles
Sarnak
 
Join Date: May 2014
Posts: 80
Default Random loot via PERL, non-modified loot tables.

This was made for Tomb of the forsaken, it basically adds a random item to every mob's loot table if the roll is high enough, and mobs 51+ get an extra chance at an additional item.


Code:
#sub EVENT_SPAWN {
#   $roll = int(rand(100)) + 1;
#   
#   $roll_chance = $roll - 70;
#   $roll2_chance = $roll - 85;
#   if($roll >= 88)
#   {
#        my $itemid = ( int rand 95000 ) + 1001;
#		#quest::shout("I rolled a $roll have an extra item at $roll_chance percent. Number 1 statement");
#        $npc->AddItem($itemid);
#		if($roll >= 88 && $mlevel >= 51)
#		{
#		my $itemid2 = ( int rand 95000 ) + 1001;
#		#quest::shout("I have rolled higher than 85 an extra item at $roll2_chance percent chance. Number 2 statement");
#		$npc->AddItem($itemid2);
#		}
#	}
#	
#}
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 06:49 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