mirror of
https://github.com/EQMacEmu/quests
synced 2026-08-21 00:23:04 -04:00
42 lines
3.3 KiB
Lua
42 lines
3.3 KiB
Lua
function event_say(e)
|
|
if(e.message:findi("hail")) then
|
|
e.self:Say("Hail, young adventurer! I'm the chief overseer o' the Shamans o' Justice. We serve the will o' the Tribunal. Justice is our way. Within Halas, there are none who are above the scales o' justice. There are still some who have defied our laws. We wish to [apprehend the fugitives].");
|
|
elseif(e.message:findi("apprehend the fugitives") or e.message:findi("young shaman") or e.message:findi("member of the court")) then -- requires amiable
|
|
if(e.other:GetFactionValue(e.self) >= 100) then -- requires amiably
|
|
if(e.message:findi("apprehend the fugitives")) then
|
|
e.self:Say("Maybe so, however, there are some who may be too much fer ye to handle. I'll need to know if ye're a [young shaman] or a [standin' member of the court].");
|
|
elseif(e.message:findi("young shaman")) then
|
|
e.self:Say("We seek a former member who dared to curse the righteousness of the Tribunal. We'll have his head for that remark. His name is Granin O'Gill and he has run to the wastelands of Everfrost seeking safe haven. Find him. Return his head to me. Do so, and earn the ninth circle spell, Spirit o' the Bear. Go at once!");
|
|
elseif(e.message:findi("member of the court")) then
|
|
e.self:Say("At the moment, I've no word o' heretics about for ye to hunt down. I pray that there will be no more, too!");
|
|
end
|
|
elseif(e.other:GetFactionValue(e.self) >= 0) then
|
|
e.self:Say("Ye're no criminal to the Shamans o' Justice, but ye've yet to prrove yer devotion to justice.");
|
|
else
|
|
e.self:Say("The scales o' the Shamans o' Justice dinnae tip in yer favor. Ye'd best flee while ye still have the chance.");
|
|
end
|
|
end
|
|
end
|
|
|
|
function event_trade(e)
|
|
local item_lib = require("items");
|
|
if(e.other:GetFactionValue(e.self) >= 100 and item_lib.check_turn_in(e.self, e.trade, {item1 = 13729})) then --Barbarian Head
|
|
e.self:Say("We can now rest assured that justice has been served. Ye'll be a valuable asset to our court. Take and remember this spell, Spirit o' the Bear. I hope ye've attained the necessary skills to scribe it. If not, I'm sure ye soon will. Go now, and serve justice.");
|
|
-- Confirmed Live Factions
|
|
e.other:Faction(e.self,327, 20); -- Shamen of Justice
|
|
e.other:Faction(e.self,328, 3); -- Merchants of Halas
|
|
e.other:Faction(e.self,223, -3); -- Circle of Unseen Hands
|
|
e.other:Faction(e.self,336, -3); -- Coalition of Tradefolk Underground
|
|
e.other:Faction(e.self,244, -4); -- Ebon Mask
|
|
e.other:QuestReward(e.self,0,0,math.random(5,10),0,15279,1000); -- Spell: Spirit of Bear
|
|
elseif(item_lib.check_turn_in(e.self, e.trade, {item1 = 18761})) then
|
|
e.self:Say("Welcome t' the Church o' the Tribunal. Here, we practice the will o' the Six Hammers. This is our guild tunic - wear it with pride and represent us well.");
|
|
e.other:Faction(e.self,327, 100); -- Shamen of Justice
|
|
e.other:Faction(e.self,328, 15); -- Merchants of Halas
|
|
e.other:Faction(e.self,223, -15); -- Circle of Unseen Hands
|
|
e.other:Faction(e.self,336, -15); -- Coalition of Tradefolk Underground
|
|
e.other:Faction(e.self,244, -20); -- Ebon Mask
|
|
e.other:QuestReward(e.self,0,0,0,0,13512,20); -- Faded Blue Tunic
|
|
end
|
|
item_lib.return_items(e.self, e.other, e.trade)
|
|
end
|