
02-11-2010, 11:12 PM
|
Fire Beetle
|
|
Join Date: Jun 2009
Location: Hi
Posts: 27
|
|
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");
}
}
|
|