mirror of
https://github.com/EQMacEmu/quests
synced 2026-08-21 00:23:04 -04:00
47 lines
2.2 KiB
Lua
47 lines
2.2 KiB
Lua
local spawn;
|
|
function event_spawn(e)
|
|
spawn = 0;
|
|
end
|
|
|
|
function event_say(e)
|
|
if(e.message:findi("hail")) then
|
|
e.self:Say("Hail, " .. e.other:GetCleanName() .. ". Are you perchance a minstrel?");
|
|
elseif(e.message:findi("minstrel")) then
|
|
e.self:Say("I, too, am a bard, or was rather. I have been cursed by that blasted pile of bones who calls itself, Trakanon.");
|
|
elseif(e.message:findi("trakanon")) then
|
|
e.self:Say("He is the undead dragon who rules this realm. I came on a quest seeking strings for my new instrument.");
|
|
elseif(e.message:findi("instrument")) then
|
|
e.self:Say("I sought to create a Magical Lute.");
|
|
elseif(e.message:findi("magical lute")) then
|
|
e.self:Say("One that would make me the greatest bard in all the lands! Are you on a similar quest?");
|
|
elseif(e.message:findi("similar quest")) then
|
|
e.self:Say("Excellent. I have stayed here far too long and I wish to go to my eternal slumber. But before I do so, I ask for one last request.");
|
|
elseif(e.message:findi("last request")) then
|
|
e.self:Say("Well then, I would ask you a favor for one in return. If I bring that cursed dragon here, will you kill it for me?");
|
|
elseif(e.message:findi("kill it for you")) then
|
|
e.self:Say("Give me the Mystical Lute Body you have. I will return it, don't worry. I only wish to hold an instrument one last time before I leave.");
|
|
end
|
|
end
|
|
|
|
function event_trade(e)
|
|
local item_lib = require("items");
|
|
if(item_lib.check_turn_in(e.self, e.trade, {item1 = 20536})) then --Mystical Lute Body
|
|
e.self:Say("I feel so powerful once again...a strange feeling is overcoming me!");
|
|
e.other:QuestReward(e.self,0,0,0,0,20536); --Mystical Lute Body
|
|
eq.attack(e.other:GetName());
|
|
spawn = 1;
|
|
end
|
|
item_lib.return_items(e.self, e.other, e.trade)
|
|
end
|
|
|
|
function event_death_complete(e)
|
|
if(spawn == 1) then
|
|
eq.spawn2(89039,0,0,-693,-2103,-140.62,0):AddToHateList(e.other,1);
|
|
spawn = 0;
|
|
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
|
|
-------------------------------------------------------------------------------------------------
|