kovouau |
04-13-2008 05:13 AM |
Item Turn in triggering ALL rewards.
OK this is the first time i've come accross this happening and no matter what i do... i can NOT get it to work properly... not sure if it is a server issue, because i have 2 scripts doing the same thing. . .
whenever i turn in ANY item... including ones not used in the code..... it triggers ALL of these rewards...
Quote:
sub EVENT_ITEM
{
if($itemcount{812} => 1 && $itemcount{813} => 1 && $itemcount{814} => 1 && $itemcount{815} => 1)
{ #Fire Trash
quest::summonitem(816,1);
quest::say("Excellent, Excellent.");
quest::emote("tinkers with the items for awhile before handing you A Living Fragment of Fire.");
}
if($itemcount{804} => 1 && $itemcount{805} => 1 && $itemcount{806} => 1 && $itemcount{807} => 1)
{ #Water Trash
quest::summonitem(818,1);
quest::say("Excellent, Excellent.");
quest::emote("tinkers with the items for awhile before handing you A Living Fragment of Water.");
}
if($itemcount{800} => 1 && $itemcount{801} => 1 && $itemcount{802} => 1 && $itemcount{803} => 1)
{ #Earth Trash
quest::summonitem(819,1);
quest::say("Excellent, Excellent.");
quest::emote("tinkers with the items for awhile before handing you A Living Fragment of Earth.");
}
if($itemcount{808} => 1 && $itemcount{809} => 1 && $itemcount{810} => 1 && $itemcount{811} => 1)
{ #Air Trash
quest::summonitem(817,1);
quest::say("Excellent, Excellent.");
quest::emote("tinkers with the items for awhile before handing you A Living Fragment of Air.");
}
if($itemcount{824} => 1)
{ #Fake Summoning
quest::setglobal('MageEpicDone','1','7','Y30');
quest::say("YES! YES! YES!");
quest::emote("places the four Living Fragments you gathered for him into the staff. As she does so the staff glows with new power. 'Here you go.'");
quest::shout2("Congratulation $name The Master of Pure Elementals on his new weapons. SUMMONING!");
quest::summonitem(108020,1);
}
if($itemcount{816} => 1 && !defined $mageepicuse)
{ #Fire Master
quest::setglobal('FireMaster','1','7','H1');
quest::say("OK. Here we go. The Master of Fire will await you in the plane of Elemental Power. Return to me once you have all 4 Elemental Mastery Robes.");
quest::movegrp(185, -1274, -836, -207.3);
}
if($itemcount{818} => 1 && !defined $mageepicuse)
{ #Water Master
quest::setglobal('WaterMaster','1','7','H1');
quest::say("OK. Here we go. The Master of Water will await you in the plane of Elemental Power. Return to me once you have all 4 Elemental Mastery Robes.");
quest::movegrp(185, -1274, -836, -207.3);
}
if($itemcount{819} => 1 && !defined $mageepicuse)
{ #Earth Master
quest::setglobal('EarthMaster','1','7','H1');
quest::say("OK. Here we go. The Master of Fire will await you in the plane of Elemental Power. Return to me once you have all 4 Elemental Mastery Robes.");
quest::movegrp(185, -1274, -836, -207.3);
}
if($itemcount{817} => 1 && !defined $mageepicuse)
{ #Air Master
quest::setglobal('AirMaster','1','7','H1');
quest::say("OK. Here we go. The Master of Fire will await you in the plane of Elemental Power. Return to me once you have all 4 Elemental Mastery Robes.");
quest::movegrp(185, -1274, -836, -207.3);
}
if($itemcount{820} => 1 && $itemcount{821} => 1 && $itemcount{822} => 1 && $itemcount{823} => 1 && !defined $mageepicuse)
{ #Pure Elemental Master
quest::setglobal('PEMaster','1','7','H1');
quest::say("OK. Here we go. The Master of Pure Elements will await you in the plane of Elemental Power. Return to me once you retrieve his staff.");
quest::movegrp(185, -1274, -836, -207.3);
}
}
|
So when i change the ifs to elsif ... i get an error that any item turn in... will trigger the first reward (A Living Fragment of Fire).
|