peq-quests/innothuleb/Forager_Grik.lua
2021-02-07 20:50:01 -08:00

19 lines
624 B
Lua

-- items: 13375, 13376
function event_say(e)
if(e.message:findi("hail")) then
e.self:Say("Grikk.. Please leave me be. I but a humble forager. My people are starving.");
end
end
function event_trade(e)
local item_lib = require("items");
if(item_lib.check_turn_in(e.trade, {item1 = 13375})) then
e.self:Say("Grrrikk.. This is Groak's vial!! He must be in danger. Here. Return this liquid to him. Be quick!");
e.other:SummonItem(13376); -- Item: Ochre Liquid
e.other:Ding();
e.other:Faction(251,20,0); -- Faction: Frogloks of Guk
e.other:AddEXP(500);
end
item_lib.return_items(e.self, e.other, e.trade)
end