mirror of
https://github.com/EQMacEmu/quests
synced 2026-08-21 00:23:04 -04:00
25 lines
1.7 KiB
Lua
25 lines
1.7 KiB
Lua
function event_say(e)
|
|
if(e.message:findi("Hail")) then
|
|
e.self:Say("Greetings, " .. e.other:GetCleanName() .. " . Are you a child of Order? If you have come seeking the path of Discord. I require only that you give me your [Tome of Order and Discord] and I shall show you the way. Only then will you be freed from Order's confining restraints.");
|
|
elseif(e.message:findi("tome")) then
|
|
e.self:Say("The Tome of Order and Discord was penned by the seventh member of the Tribunal and has become the key to a life of Discord, in spite of the author's pitiful warnings. Do you not have one, child of Order? Would you [like to read] it?");
|
|
elseif(e.message:findi("read")) then
|
|
e.self:Say("Very well. Here you go. Simply return it to me to be released from the chains of Order.");
|
|
e.other:SetPVP(false);
|
|
e.other:SummonCursorItem(18700); -- Item: Tome of Order and Discord
|
|
end
|
|
end
|
|
|
|
function event_trade(e)
|
|
local item_lib = require("items");
|
|
if(item_lib.check_turn_in(e.self, e.trade, {item1 = 18700})) then
|
|
e.self:Say("I see you wish to join us in Discord! Welcome! By turning your back on the protection of Order you are now open to many more opportunities for glory and power. Remember that you can now be harmed by those who have also heard the call of Discord.");
|
|
e.other:SetPVP(true);
|
|
e.other:Ding();
|
|
end
|
|
end
|
|
|
|
-------------------------------------------------------------------------------------------------
|
|
-- 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
|
|
-------------------------------------------------------------------------------------------------
|