I'm trying to get a good grasp on item turn ins and I basically wanted to take the jboots example and go from AND to OR.
More or less I want to allow players to turn in hate/fear plate armor and get a token. Now I could create 40 different ifs for plate or couldn't I just do this?
Code:
sub EVENT_ITEM
if ($faction >= 4) {
{
if(($itemcount{4861}) || ($itemcount{4862}) || ($itemcount{4863}) || ($itemcount{etc}) || ($itemcount{etc}) || ($itemcount{etc}) || ($itemcount{etc}) || ($itemcount{etc}))
{
quest::emote("takes the armor and offers you a figurine.");
quest::say("Excellent! As promised, here is your figurine.");
quest::summonitem("2493"); #Heavy Knight
quest::exp(5000);
quest::faction(485,5); # Elysian Wanderers
}
}
More or less if you're amiable or greater you can turn in any of those items and get the reward. Is this correct?
Also, this is more obscure but is there a way to cap how many times you can get the faction gain from this? would you do an if inside the if?