a_prisoner.lua - Quest File
xxxxxxxxxx
1
-- Converted to .lua by Speedz
2
-- items: 13311, 13375, 13376, 18884
3
4
function event_say(e)
5
if(e.message:findi("hail")) then
6
e.self:Say("Rrrribit.. Please, let me go!! I don't want to be eaten!!");
7
elseif(e.message:findi("glib sent me")) then
8
e.self:Say("Liessss. ...Groakk.. I do not believe you!! Bring me proof. Bring me the necklace of a basher!! ..Groakk..");
9
end
10
end
11
12
function event_trade(e)
13
local item_lib = require("items");
14
if (item_lib.check_turn_in(e.trade, {item1 = 13311})) then
15
e.self:Say("Groak.. So you are a friend to the froglok. ..Grooakk.. I am soon to die. My precious legs are a delicacy here. Before I go I must contact my brother Grikk. He is a froglok forager in Innothule. Give him this vial. He will know what it means");
16
e.other:SummonItem(13375); -- Item: Empty Vial
17
e.other:Ding();
18
e.other:AddEXP(500);
19
elseif (item_lib.check_turn_in(e.trade, {item1 = 13376})) then
20
e.self:Say("Grooak.. You have done much to help me. This will come in handy soon. Thank you. Here is Marda's information. Take it to her. They must know. Farewell.");
21
e.other:SummonItem(18884); -- Item: Tattered Note
22
e.other:Ding();
23
end
24
item_lib.return_items(e.self, e.other, e.trade)
25
end
26
Quest Source: 28 May 2022