Ok I made a quest where you hail an NPC and say yes if you like the newbie (test) items. Everything works fine just wondering if there is an easier way to distribut like
quest::summonitem("38105-38125");
Anyways, here is some code it works and the (TEST) items for class specific. Feel free to use and if you know an easier way let me know pls
CLASS ITEM's
Warrior 38000-38020
Monk 38021-38041
Rogue 38042-38062
Shadowknight 38063-38083
Paladin 38084-38104
Ranger 38105-38125
Beastlord 38129-38146
Bard 38147-38167
Cleric 38186-38188
Druid 38189-38209
Shaman 38210-38230
Wizard 38231-38251
Magician 38252-38272
Enchanter 38273-38293
Necromancer 38294-38314
Berserker 38315-38332
Code:
#############
#Written By : Michael Csaky
#Quest Name: An Armor Quest for all Classes Newbie Armor (Test)
#Author: Platos Newbie Armor
#################
sub EVENT_SAY
{
if($text=~/Hail/i)
{
quest::say("Hello there $name, I am here to help all New Players equipe a starting armor. Are you in need of armor [Yes]?");
}
if ($text=~/hail/i)
{
if ($class eq "Shadowknight")
{
quest::say("Well then here is some New Shadowknight Gear to get you started.");
quest::summonitem("38063");
quest::summonitem("38064");
quest::summonitem("38065");
quest::summonitem("38066");
quest::summonitem("38067");
quest::summonitem("38068");
quest::summonitem("38069");
quest::summonitem("38070");
quest::summonitem("38071");
quest::summonitem("38072");
quest::summonitem("38073");
quest::summonitem("38074");
quest::summonitem("38075");
quest::summonitem("38076");
quest::summonitem("38077");
quest::summonitem("38078");
quest::summonitem("38079");
quest::summonitem("38080");
quest::summonitem("38081");
quest::summonitem("38082");
quest::summonitem("38083");
}
elsif ($class eq "Warrior")
{
quest::say("Well then here is some New Warrior Gear to get you started.");
quest::summonitem("38000");
quest::summonitem("38001");
quest::summonitem("38002");
quest::summonitem("38003");
quest::summonitem("38004");
quest::summonitem("38005");
quest::summonitem("38006");
quest::summonitem("38007");
quest::summonitem("38008");
quest::summonitem("38009");
quest::summonitem("38010");
quest::summonitem("38011");
quest::summonitem("38012");
quest::summonitem("38013");
quest::summonitem("38014");
quest::summonitem("38015");
quest::summonitem("38016");
quest::summonitem("38017");
quest::summonitem("38018");
quest::summonitem("38019");
quest::summonitem("38020");
}
}
}