Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::GeorgeS's Tools

Development::GeorgeS's Tools A forum just for GeorgeS's tools

Reply
 
Thread Tools Display Modes
  #1  
Old 12-29-2016, 10:04 PM
Splose
Banned
 
Join Date: Apr 2014
Posts: 279
Default

The AddLoot plugin is the best way to do loot imo.

This is in the default.pl of one of my custom zones.. As you can see you can easily seperate it from the rest of your code and still easily be able to change your loot on the fly with a simple #reloadqst and #repop while still retaining the mobs original loot. If you aren't already familiar with it can read up on it here.

Code:
sub EVENT_SPAWN {
	if($instanceversion == 1) {
		my $SP = $npc->GetSp2();
		my @roamers = (119506,119507);
		my $StartMove = int(rand(15)) + 5;
		$nn = $npc->GetCleanName();
	if(grep( /^$SP$/i, @roamers)) {quest::settimer("roam", $StartMove);} #:: Start Yard Trash Roam Timers

#::		Loot	::#
	my @tablet = (1660);		#:: Tablet to start quest with researcher maeryn
	my @scarab_loot = (1658);
	my @scarab_rare_aug = (1659);
	my @ghoul_loot = (1661);
	my @scarecrow_loot = (1662);
	my @mummy_loot = (1663);
	my @worm_loot = (1664);
        my @t1_set = (133200..133255);        
	plugin::AddLoot(1,500,@tablet);
	if($nn=~/scarab/i) {plugin::AddLoot(1,4,@scarab_loot); plugin::AddLoot(1,5000,@scarab_rare_aug);}
	if($nn=~/ghoul/i) {plugin::AddLoot(1,4,@ghoul_loot);}
	if($nn=~/scarecrow/i) {plugin::AddLoot(1,4,@scarecrow_loot);}
	if($nn=~/mummy/i) {plugin::AddLoot(1,4,@mummy_loot);}
	if($nn=~/worm/i) {plugin::AddLoot(1,4,@worm_loot);}
	
###################	
	
	}
}
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 06:29 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3