Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions chardok/Grand_Advisor_Zum-uul.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
function event_say(e)
local is_faction_requirement_met = e.other:GetFaction(e.self) <= Faction.Amiable;
local is_self_found = e.other:IsSelfFound() == 1 or e.other:IsSoloOnly() == 1;
if not is_faction_requirement_met or not is_self_found then
return;
end

local is_level_requirement_met = e.other:GetLevel() >= 55;
local quest_data = eq.get_qglobals(e.self, e.other);
if quest_data.fed_the_gardens == "done" then
e.self:Emote("ignores you.");
elseif e.message:findi("hail") then
e.self:Emote("disdainfully glaces your direction, before going back to his business.");
elseif e.message:findi("herbalist") or e.message:findi("mak`ha") or e.message:findi("ritual") then
if is_level_requirement_met then
e.self:Say("What do you want, minion!? Oh, Grand Herbalist Mak`ha sent you? You will do nicely to feed his gardens. Are you ready to [offer your life] in service to the Dizok?");
else
e.self:Say("Leave my sight, you worthless "..e.other:Race().."!");
end
elseif e.message:findi("offer my life") and is_level_requirement_met then
if e.self:IsCasting() then
e.self:Say("Can't you see I am busy, minion?!");
else
eq.set_global("fed_the_gardens", "done", 1, "D7");
e.self:Emote("looks at you in anticipation. 'Very well. I will take your essence, minion, and your remains will go to use in the herb gardens. You have served the Dizok well!', he says with a smirk.");
e.other:Faction(e.self, 451, 1); -- Faction: Brood of Di`Zok
e.other:Faction(e.self, 307, 1); -- Faction: Sarnak Collective
e.other:Faction(e.self, 259, -1); -- Faction: Goblins of Mountain Death
e.other:QuestReward(e.self,0,0,0,0,0,1);
e.self:CastSpell(1768, e.other:GetID());
end
end
end
18 changes: 18 additions & 0 deletions chardok/Grand_Herbalist_Mak-ha.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
function event_say(e)
local is_faction_requirement_met = e.other:GetFaction(e.self) <= Faction.Amiable;
local is_self_found = e.other:IsSelfFound() == 1 or e.other:IsSoloOnly() == 1;
if not is_faction_requirement_met or not is_self_found then
return;
end

local is_level_requirement_met = e.other:GetLevel() >= 55;
if e.message:findi("hail") then
if is_level_requirement_met then
e.self:Say("You there, "..e.other:Race().."! You look like a fine specimen, much fitter than most your ilk. Do you wish to [serve] the Dizok? I could... make use of you in the herb gardens.");
else
e.self:Emote("peers down and looks you over. Then goes back to what he was doing, ignoring you.");
end
elseif e.message:findi("serve") and is_level_requirement_met then
e.self:Say("Yes, wonderful, excellent. Even members of lesser races can prove themselves useful to the Dizok. Grand Advisor Zum`uul can prepare you. Tell him I sent you.");
end
end
3 changes: 3 additions & 0 deletions chardok/Queen_Velazul_Di-zok.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ function event_say(e)
if(e.other:GetFaction(e.self) <= 1) then -- Only if you are ally with Sarnaks
if(e.message:findi("hail")) then
e.self:Say("Hail, minion! It is good to see a member of a lesser race striving to improve themself through service to the Dizok. We are feeling especially generous as of late, and if you would do us a [service], we shall reward you handsomely.");
if e.other:GetLevel() >= 55 and (e.other:IsSelfFound() == 1 or e.other:IsSoloOnly() == 1) then
e.self:Emote("looks you over momentarily, and says 'You look more capable than most of your broodlings, minion. Grand Herbalist Mak`ha may have a special use for you in the herb gardens. Go speak to him.'");
end
elseif(e.message:findi("service")) then
e.self:Say("We are not sure you are worthy, but shall assign you this task in hopes you prove mighty enough to resolve it. Gather your broodlings about you, and journey to Charasis. There you shall find a Urn of spirits. We require this, as well as [additional components].");
elseif(e.message:findi("additional components")) then
Expand Down