eqmac-quests/qcat/Reania_Jukle.lua
2023-07-24 13:24:37 -07:00

30 lines
1.7 KiB
Lua

function event_say(e)
if(e.message:findi("hail")) then
e.self:Say("Greetings, " .. e.other:GetCleanName() .. ". What can I help you with?");
elseif(e.message:findi("what is the ink of the dark")) then
e.self:Say("Ink of the Dark, you say? That isn't an everyday item, you know. In fact, I can't remember the last time someone requested it. I have given up keeping any here with me. You are going to need to find your own supply now. Sorry.");
elseif(e.message:findi("find the ink of the dark") or e.message:findi("find your own supply")) then
e.self:Say("The ink is the blood of a dark scribe. Tempt him and give him this vial. He should cooperate.");
e.other:SummonCursorItem(10626); -- Item: Empty Ink Vial
end
end
function event_trade(e)
local item_lib = require("items");
if(item_lib.check_turn_in(e.self, e.trade, {item1 = 18851})) then --Blood Stained Note
e.other:Faction(e.self,221,100); --Bloodsabers
e.other:Faction(e.self,262,-15); --Guards of Qeynos
e.other:Faction(e.self,296,10); --Opal Dark Briar
e.other:Faction(e.self,341,-25); --Priest of Life
e.other:Faction(e.self,230,5); --Corrupt Qeynos Guards
e.other:QuestReward(e.self,0,0,0,0,13596,20); --Dirty Purple Robe*
end
item_lib.return_items(e.self, e.other, e.trade)
end
-- EOF Zone: qcat ID: 45082 NPC: Reania_Jukle
-------------------------------------------------------------------------------------------------
-- Converted to .lua using MATLAB converter written by Stryd and manual edits by Speedz
-- Find/replace data for .pl --> .lua conversions provided by Speedz, Stryd, Sorvani and Robregen
-------------------------------------------------------------------------------------------------