peq-quests/abysmal/Shav_the_Cryptologist.lua
Trust 2255fb3b1e [LUA] Abysmal Updated and Fixes
Have not converted the complex scripts.

Added many missing NPC's
2023-11-19 02:13:11 -05:00

24 lines
No EOL
1.8 KiB
Lua

-- Harmony of the Soul // 1.5 Cleric Epic Quest NPC -- Drogerin
-- items: 7135, 9476, 9447, 9477, 8778, 56015
function event_say(e)
if e.message:findi("hail") then
e.self:Say("Greetings. I'm a little busy, you have something you need translated?");
end
end
function event_trade(e)
local item_lib = require("items");
local qglobals = eq.get_qglobals(e.other);
if qglobals["cleric_epic"] ~= nil and qglobals["cleric_epic"] == "1" and item_lib.check_turn_in(e.trade, {item1 = 7135}) then -- Item: Encrypted Note
e.self:Say("Interesting, you say someone who claims to be part of the Brotherhood wrote this? This is one of the dialects used by the Legion. I am the only one able to read or write any of their languages, and this is the first I have seen of this note. From what I can tell, the author is trying to arrange a meeting with the Muramites. It sounds like the contact spot is pre-arranged, as it is only vaguely referred to here. I doubt this is the first note of this nature, perhaps if you could find earlier correspondence we can find the location of the camp.");
eq.set_global("cleric_epic","2",5,"F");
elseif qglobals["cleric_epic"] ~= nil and qglobals["cleric_epic"] == "2" and item_lib.check_turn_in(e.trade, {item1 = 9476, item2 = 9447, item3 = 9477, item4 = 8778}) then -- Items: Ripped Quarter of a Map // Shredded Quarter of a Map // Tattered Quarter of a Map // Torn Quarter of a Map
e.self:Say("Ahh yes, this is exactly what we needed.' She scratches a few notes down on a piece of paper. 'Bring this to Tweister in Nedaria's Landing. She will tell you the location of the camp.");
e.other:SummonItem(56015); -- Player receives an Assembled Map.
eq.set_global("cleric_epic","3",5,"F");
end
item_lib.return_items(e.self, e.other, e.trade);
end