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
  #1  
Old 02-11-2010, 11:12 PM
Vexira
Fire Beetle
 
Join Date: Jun 2009
Location: Hi
Posts: 27
Default Mercenary Quest

Sorry for the wrong section.. I got the mercenary quest to work by using items with spells on them that typically aren't used on my server and then I added this to player.pl. Does anyone have any suggestions on what I'd do to clean up this code a bit?


Quote:
sub EVENT_CAST {
if ($spell_id == "2230") { #lvl 1 - 10 item - 1079
$client->MakePet(null, Pet1, "Hired_Mercenary");
}
if($spell_id == "2231") { #lvl 11 - 20 item - 1096
$client->MakePet(null, Pet2, "Hired_Watchman");
}
if($spell_id == "2232") { #lvl 21 - 30 item - 1118
$client->MakePet(null, Pet3, "Hired_Scout");
}
if($spell_id == "2233") { #lvl 31 - 40 item - 1119
$client->MakePet(null, Pet4, "Hired_Guard");
}
if($spell_id == "2234") { #lvl 41+ item - 1261
$client->MakePet(null, Pet5, "Hired_Assassin");
quest::selfcast(80);
}
if($spell_id == "2235") { #Epic Warrior item - 1264
$client->MakePet(null, Pet6, "Hired_Overlord");
}
if($spell_id == "2236") { #Epic Monk item - 1266
$client->MakePet(null, Pet7, "Hired_Fighter");
}
if($spell_id == "2237") { #Epic Magician item - 1267
$client->MakePet(null, Pet8, "Hired_Magus");
}
if($spell_id == "2238") { #Epic Paladin item - 1270
$client->MakePet(null, Pet9, "Hired_Protector");
}
}
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 01:11 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