mirror of
https://github.com/EQMacEmu/quests
synced 2026-08-21 00:23:04 -04:00
52 lines
4.6 KiB
Lua
52 lines
4.6 KiB
Lua
function event_say(e)
|
|
if(e.message:findi("hail")) then
|
|
if(e.other:GetFactionValue(e.self) >= 750) then
|
|
e.self:Say("Greetings, Traveler. I do not receive many visitors to my quarters here, besides the occasional unfortunate treasure seeker that often will make for a good snack.");
|
|
elseif(e.other:GetFactionValue(e.self) >= 0) then
|
|
e.self:Say("You need to prove your dedication to our cause before I can discuss such matters with you.");
|
|
else
|
|
e.self:Say(eq.ChooseRandom("I didn't know Slime could speak common. Go back to the sewer before I lose my temper.","Is that your BREATH, or did something die in here? Now go away!","I wonder how much I could get for the tongue of a blithering fool? Leave before I decide to find out for myself.","Oh look..a talking lump of refuse..how novel!"));
|
|
end
|
|
elseif(e.message:findi("kardakor")) then
|
|
if(e.other:GetFactionValue(e.self) >= 750) then
|
|
e.self:Say("You are sent from Kardakor are you? Well surely he must have sent you to stand before me for a reason.");
|
|
elseif(e.other:GetFactionValue(e.self) >= 0) then
|
|
e.self:Say("You need to prove your dedication to our cause before I can discuss such matters with you.");
|
|
else
|
|
e.self:Say(eq.ChooseRandom("I didn't know Slime could speak common. Go back to the sewer before I lose my temper.","Is that your BREATH, or did something die in here? Now go away!","I wonder how much I could get for the tongue of a blithering fool? Leave before I decide to find out for myself.","Oh look..a talking lump of refuse..how novel!"));
|
|
end
|
|
elseif(e.message:findi("talisman")) then
|
|
if(e.other:GetFactionValue(e.self) >= 750) then
|
|
e.self:Say("Ah of course, It has been quite a long time sense my powers of identification have been requested. If you are sent from Kardakor then your intent must be well directed. I do have a favor to ask of you before I identify your talisman. I seek some rare treasures to further some studies that I have been working on for a long time.");
|
|
elseif(e.other:GetFactionValue(e.self) >= 0) then
|
|
e.self:Say("You need to prove your dedication to our cause before I can discuss such matters with you.");
|
|
else
|
|
e.self:Say(eq.ChooseRandom("I didn't know Slime could speak common. Go back to the sewer before I lose my temper.","Is that your BREATH, or did something die in here? Now go away!","I wonder how much I could get for the tongue of a blithering fool? Leave before I decide to find out for myself.","Oh look..a talking lump of refuse..how novel!"));
|
|
end
|
|
elseif(e.message:findi("rare treasure")) then
|
|
if(e.other:GetFactionValue(e.self) >= 750) then
|
|
e.self:Say("There are 3 items that I seek to continue my studies of some various and musterious magics. Bring to me the teachings of a high ranking Kromzek that I hear goes by the name of Gkrean, a chipped fang from a beast deep within the Cursed Necropolis. Also for good measure, I require the Head of a Kromzek Staff Sergeant to prove to your dedication to our cause. Present these 3 items to me along with your Talisman that you wish to learn more about and I shall do my best to identify its origin for you.");
|
|
elseif(e.other:GetFactionValue(e.self) >= 0) then
|
|
e.self:Say("You need to prove your dedication to our cause before I can discuss such matters with you.");
|
|
else
|
|
e.self:Say(eq.ChooseRandom("I didn't know Slime could speak common. Go back to the sewer before I lose my temper.","Is that your BREATH, or did something die in here? Now go away!","I wonder how much I could get for the tongue of a blithering fool? Leave before I decide to find out for myself.","Oh look..a talking lump of refuse..how novel!"));
|
|
end
|
|
end
|
|
end
|
|
|
|
function event_trade(e)
|
|
local item_lib = require("items");
|
|
|
|
if(e.other:GetFactionValue(e.self) >= 750 and (item_lib.check_turn_in(e.self, e.trade, {item1 = 1861,item2 = 1864,item3 = 1865,item4 = 1863}, 0) or item_lib.check_turn_in(e.self, e.trade, {item1 = 1864,item2 = 1865,item3 = 1863}))) then
|
|
e.self:Say("So you finally made it ! Head back to Ralgyn to get your reward.");
|
|
e.other:Faction(e.self,430,50); -- Faction: Claws of Veeshan
|
|
e.other:Faction(e.self,436,12); -- Faction: Yelinak
|
|
e.other:Faction(e.self,448,-25); -- Faction: Kromzek
|
|
e.other:QuestReward(e.self,0,0,0,0,1866,10000);
|
|
eq.depop_with_timer();
|
|
elseif(e.other:GetFactionValue(e.self) >= 500 and item_lib.check_turn_in(e.self, e.trade, {item1 = 1861}, 0)) then
|
|
e.self:Say("It would be my guess that you present this to me in hopes of finding out more about the magics it possesses. Before I can do this I require some rare treasures that you must present to me.");
|
|
e.other:QuestReward(e.self,0,0,0,0,1861);
|
|
end
|
|
item_lib.return_items(e.self, e.other, e.trade)
|
|
end
|