Nope, not working.
Code:
if($text=~/reward/i){
if($sneakysam == 14){
quest::exp(200);
quest::say("I think this should do nicely fer ya $name. Hopefully you consider it worth yer troubles.");
if($class == "Wizard"){
quest::summonitem("1460");
}
elsif($class == "Enchanter"){
quest::summonitem("1460");
}
elsif($class == "Magician"){
quest::summonitem("1460");
}
elsif($class == "Necromancer"){
quest::summonitem("1460");
}
elsif($class == "Warrior"){
quest::summonitem("1462");
}
elsif($class == "Paladin"){
quest::summonitem("1462");
}
elsif($class == "Shadowknight"){
quest::summonitem("1462");
}
else{
quest::summonitem("1461");
}
}
else{
quest::say("Now what makes ye that yer gettin' a reward from me? Yer pretty crazy, I tell ya!");
}
}
That's the block of code. It "works" - it's just that it summons the wiz/enc/nec/mag reward no matter what $class returns. $sneakysam is a custom var and there shouldn't be any problems with it since it works everywhere else in the quests it's used in...including this particular quest in other blocks of code.
I also tried it like:
if($class == "Wizard" || $class == "Enchanter" || $class == "Magician" || $class == "Necromancer") etc...didn't work either.