diff --git a/oot/Doran_Vargnus.lua b/oot/Doran_Vargnus.lua index f08b08d..68b13b6 100644 --- a/oot/Doran_Vargnus.lua +++ b/oot/Doran_Vargnus.lua @@ -6,15 +6,19 @@ end function event_trade(e) local item_lib = require("items"); - - if(item_lib.check_turn_in(e.self, e.trade, {item1 = 13995})) then + local count = item_lib.count_handed_item(e.self,e.trade,{13995},1); + count = count - 1; -- off by one adjustment + if(count > 0) then e.self:Say("Ahh! You must have been sent by Beno of the Stormguard. I have been wondering when he would return my card. I have not been playing with a full deck. How about a reward? Hmm. Let's see what I have lying around... Here! Take this. I cannot possibly give you any of my good armor."); + repeat e.other:Faction(e.self,312, 5); -- Storm Guard e.other:Faction(e.self,274, 1); -- Kazon Stormhammer e.other:Faction(e.self,293, 1); -- Miner's Guild 249 e.other:Faction(e.self,290, 1); -- Merchants of Kaladim e.other:Faction(e.self,232, -1); -- Craknek Warriors e.other:QuestReward(e.self,0,0,0,0,eq.ChooseRandom(3301,3048,3042,3050,3044,7012,3103,3111,3110,7015,9011),2000); -- verified live xp -- item 9011 small targ shield + count = count - 1; + until count == 0 end item_lib.return_items(e.self, e.other, e.trade) end