diff --git a/felwitheb/Niola_Impholder.lua b/felwitheb/Niola_Impholder.lua index 21f4fb2c..fdcb229c 100644 --- a/felwitheb/Niola_Impholder.lua +++ b/felwitheb/Niola_Impholder.lua @@ -28,7 +28,7 @@ end function event_trade(e) local item_lib = require("items"); - if(item_lib.check_turn_in(e.trade, {item1 = 13068,item2 = 13068,item3 = 13068,item4 = 13068})) then + while item_lib.check_turn_in(e.trade, {item1 = 13068,item2 = 13068,item3 = 13068,item4 = 13068}) do e.self:Say("Ah yes. These are exactly what I need. Thank you very much."); e.other:SummonItem(eq.ChooseRandom(15310,15332)); -- Item(s): Spell: Flare (15310), Spell: Shield of Fire (15332) e.other:Ding(); @@ -37,7 +37,9 @@ function event_trade(e) e.other:Faction(246,1,0); -- Faction: Faydarks Champions e.other:Faction(239,-1,0); -- Faction: The Dead e.other:AddEXP(40); - elseif(item_lib.check_turn_in(e.trade, {item1 = 18777})) then -- Enrollment Letter + end + + if(item_lib.check_turn_in(e.trade, {item1 = 18777})) then -- Enrollment Letter e.self:Say("Welcome. I am Niola Impholder. Master Magician of the Keepers of the Art. Here is our guild tunic. Once you are ready to begin your training please make sure that you see Yuin Starchaser, he can assist you in developing your hunting and gathering skills. Return to me when you have become more experienced in our art, I will be able to further instruct you on how to progress through your early ranks, as well as in some of the various [trades] you will have available to you."); e.other:SummonItem(13592); -- Faded Training Robe* e.other:Ding(); diff --git a/fieldofbone/Trooper_Mozo.pl b/fieldofbone/Trooper_Mozo.pl index 70384eb8..4e560185 100644 --- a/fieldofbone/Trooper_Mozo.pl +++ b/fieldofbone/Trooper_Mozo.pl @@ -12,7 +12,7 @@ sub EVENT_SAY { sub EVENT_ITEM { #Handin: 4x Bone chips - if(plugin::check_handin(\%itemcount, 13073 => 4)){ + while (plugin::check_handin(\%itemcount, 13073 => 4)) { #Bone Chips (fieldofbone)(END) quest::emote("gasp's in astonishment."); quest::say("Wha...? This!! But... I... Why you... I oughta.. All right!! A bet is a bet. Here you go. A few silver piece's for your achievement. What?!! You thought I would give you ten? Fat chance! Now get lost or I will haul you in for impersonating a froglok."); diff --git a/freportw/Pandos_Flintside.lua b/freportw/Pandos_Flintside.lua index 9cf55703..dc003118 100644 --- a/freportw/Pandos_Flintside.lua +++ b/freportw/Pandos_Flintside.lua @@ -24,22 +24,19 @@ function event_trade(e) muffin = 3; elseif(item_lib.check_turn_in(e.trade, {item1 = 13014,item2 = 13014})) then muffin = 2; - elseif(item_lib.check_turn_in(e.trade, {item1 = 13014})) then + elseif() then muffin = 1; end - if(muffin > 0) then - repeat - e.self:Say("Mmmm. This smells delicious. Oh great!! No milk!! Don't you have any sense?! Just tell me the name of the bakery and I will run and get it myself. I am sure Lady Shae will be safe."); - e.other:Ding(); - e.other:Faction(226,1,0); -- Clerics of Tunare - e.other:Faction(246,1,0); -- Faydark's Champions - e.other:Faction(279,1,0); -- King Tearis Thex - e.other:Faction(310,1,0); -- Soldiers of Tunare - e.other:Faction(234,-1,0); -- Crushbone Orcs - e.other:AddEXP(10); - muffin = muffin - 1; - until muffin == 0 + while item_lib.check_turn_in(e.trade, {item1 = 13014}) do + e.self:Say("Mmmm. This smells delicious. Oh great!! No milk!! Don't you have any sense?! Just tell me the name of the bakery and I will run and get it myself. I am sure Lady Shae will be safe."); + e.other:Ding(); + e.other:Faction(226,1,0); -- Clerics of Tunare + e.other:Faction(246,1,0); -- Faydark's Champions + e.other:Faction(279,1,0); -- King Tearis Thex + e.other:Faction(310,1,0); -- Soldiers of Tunare + e.other:Faction(234,-1,0); -- Crushbone Orcs + e.other:AddEXP(10); end item_lib.return_items(e.self, e.other, e.trade) end diff --git a/highkeep/Captain_Bosec.lua b/highkeep/Captain_Bosec.lua index 41af07b1..75dd8501 100644 --- a/highkeep/Captain_Bosec.lua +++ b/highkeep/Captain_Bosec.lua @@ -13,29 +13,16 @@ function event_trade(e) local ear = 0; local item_lib =require("items"); - if(item_lib.check_turn_in(e.trade, {item1 = 13790,item2 = 13790,item3 = 13790,item4 = 13790})) then - ear = 4; - elseif(item_lib.check_turn_in(e.trade, {item1 = 13790,item2 = 13790,item3 = 13790})) then - ear = 3; - elseif(item_lib.check_turn_in(e.trade, {item1 = 13790,item2 = 13790})) then - ear = 2; - elseif(item_lib.check_turn_in(e.trade, {item1 = 13790})) then - ear = 1; - end - - if(ear > 0) then - repeat - e.self:Say("Well done! We could really use the extra help around here."); - e.other:Ding(); - e.other:Faction(332,2,0); -- Faction: Highpass Guards - e.other:Faction(329,1,0); -- Faction: Carson McCabe - e.other:Faction(331,1,0); -- Faction: Merchants of Highpass - e.other:Faction(230,1,0); -- Faction: Corrupt Qeynos Guards - e.other:Faction(330,1,0); -- Faction: The Freeport Militia - e.other:AddEXP(30); - e.other:GiveCash(3,3,4,0); - ear = ear - 1; - until ear == 0 + while item_lib.check_turn_in(e.trade, {item1 = 13790}) then + e.self:Say("Well done! We could really use the extra help around here."); + e.other:Ding(); + e.other:Faction(332,2,0); -- Faction: Highpass Guards + e.other:Faction(329,1,0); -- Faction: Carson McCabe + e.other:Faction(331,1,0); -- Faction: Merchants of Highpass + e.other:Faction(230,1,0); -- Faction: Corrupt Qeynos Guards + e.other:Faction(330,1,0); -- Faction: The Freeport Militia + e.other:AddEXP(30); + e.other:GiveCash(3,3,4,0); end item_lib.return_items(e.self, e.other, e.trade) end diff --git a/qeynos/Captain_Tillin.lua b/qeynos/Captain_Tillin.lua index fb5d497e..e96b3f1b 100644 --- a/qeynos/Captain_Tillin.lua +++ b/qeynos/Captain_Tillin.lua @@ -18,15 +18,6 @@ function event_trade(e) local item_lib = require("items"); - -- Gnoll Fangs - if item_lib.check_turn_in(e.trade, {item1 = 13915, item2 = 13915, item3 = 13915, item4 = 13915}) then - fang = 4; - elseif item_lib.check_turn_in(e.trade, {item1 = 13915, item2 = 13915, item3 = 13915}) then - fang = 3; - elseif item_lib.check_turn_in(e.trade, {item1 = 13915, item2 = 13915}) then - fang = 2; - elseif item_lib.check_turn_in(e.trade, {item1 = 13915}) then - fang = 1; elseif item_lib.check_turn_in(e.trade, {item1 = 18815}) then -- Item: Tattered Note e.self:Say("I heard you were on your way. I have called for the state [executioner]. She should be on her way now. She will deal with our friend, McNeal Jocub. Thank you for your help, citizen."); e.other:Faction(262,40,0); -- Faction: Guards of Qeynos @@ -50,18 +41,15 @@ function event_trade(e) e.other:SummonItem(8287); -- Item: Orders for Sergeant Caelin end - if fang > 0 then - repeat - e.self:Say("Very good! One less gnoll the people of Qeynos need to fear. Here is your bounty as promised."); - e.other:QuestReward(e.self,{exp = 1000}); - e.other:Faction(262,3); -- Faction: Guards of Qeynos - e.other:Faction(219,1); -- Faction: Antonius Bayle - e.other:Faction(230,-1); -- Faction: Corrupt Qeynos Guards - e.other:Faction(223,-1); -- Faction: Circle of Unseen Hands - e.other:Faction(291,1); -- Faction: Merchants of Qeynos - e.other:SummonItem(10070); -- Item: Moonstone - fang = fang - 1; - until fang == 0 + while item_lib.check_turn_in(e.trade, {item1 = 13915}) do + e.self:Say("Very good! One less gnoll the people of Qeynos need to fear. Here is your bounty as promised."); + e.other:QuestReward(e.self,{exp = 1000}); + e.other:Faction(262,3); -- Faction: Guards of Qeynos + e.other:Faction(219,1); -- Faction: Antonius Bayle + e.other:Faction(230,-1); -- Faction: Corrupt Qeynos Guards + e.other:Faction(223,-1); -- Faction: Circle of Unseen Hands + e.other:Faction(291,1); -- Faction: Merchants of Qeynos + e.other:SummonItem(10070); -- Item: Moonstone end item_lib.return_items(e.self, e.other, e.trade)