Sentry_Janeal.lua - Quest File
xxxxxxxxxx
1
-- items: 12130, 12131
2
function event_say(e)
3
if(e.message:findi("hail")) then
4
e.self:Say("Welcome. friend! Please seek the words of the clerics of Marr. Their words are the words which will set us free from the tyranny of the Freeport Militia.");
5
end
6
end
7
8
function event_trade(e)
9
local item_lib = require("items");
10
11
if(item_lib.check_turn_in(e.trade, {item1 = 12130})) then
12
e.self:Say("I feel quite alert now. Thank you. You should take this to the next sentry.");
13
e.other:SummonItem(12131); -- Item: Half of Potion of Marr
14
e.other:Ding();
15
e.other:Faction(362,5,0); -- Faction: Priests of Marr
16
e.other:Faction(330,-10,0); -- Faction: The Freeport Militia
17
e.other:Faction(281,5,0); -- Faction: Knights of Truth
18
e.other:AddEXP(100);
19
end
20
item_lib.return_items(e.self, e.other, e.trade)
21
end
22
Quest Source: 28 May 2022