My first attempt to make a feel bad not feel bad.

This quest would give one reward even if you give him
more than one knight card.

This patches that and is my first attempt to aid the project.
This commit is contained in:
Launch-Octopus 2024-11-15 19:05:35 -10:00
parent 34ebdcc688
commit d41555adf0

View file

@ -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