Noticed a minor correction I needed to make to get this working properly. I had always used "==" instead of "eq", but I was getting a log message error in my server logs saying something about one of my quests having "==" instead of "eq", because the "==" is only for numbers.
Apparently, "==" isn't only for numbers and "eq" does NOT work for this quest, so you need to replace this line in the quest:
Code:
if ($class eq 'Warrior' || $class eq 'Rogue' || $class eq 'Monk' || $class eq 'Berserker' || $class eq 'Shadowkight' || $class eq 'Paladin' || $class eq 'Ranger' || $class eq 'Bard' || $class eq 'Beastlord' || $class eq 'Cleric' || $class eq 'Druid' || $class eq 'Shaman' || $class eq 'Wizard' || $class eq 'Mage' || $class eq 'Enchanter' || $class eq 'Necromancer') {
with this:
Code:
if ($class == 'Warrior' || $class == 'Rogue' || $class == 'Monk' || $class == 'Berserker' || $class == 'Shadowkight' || $class == 'Paladin' || $class == 'Ranger' || $class == 'Bard' || $class == 'Beastlord' || $class == 'Cleric' || $class == 'Druid' || $class == 'Shaman' || $class == 'Wizard' || $class == 'Mage' || $class == 'Enchanter' || $class == 'Necromancer') {
And it works flawlessly!
I thought it was working perfectly when I posted the quest originally, but I had only tested it with a warrior. I guess because warrior is the first class on the list, it accepted the "eq" for that class, but any other class was getting their items eaten when they did the turn in. I changed it back to "==" and tested it again with a few classes and it is working perfect now
