mirror of
https://github.com/EQMacEmu/quests
synced 2026-08-21 00:23:04 -04:00
27 lines
1.6 KiB
Lua
27 lines
1.6 KiB
Lua
--Quest Name: Necromancer Spells
|
|
--Author: JanusD
|
|
function event_say(e)
|
|
if(e.message:findi("Hail")) then
|
|
e.self:Say("Ahh, welcome! More souls to succumb to the inhabitants of the Outlands! My army of undead will grow stronger by the day, but it would be a pity if you perished before doing a [mortal bidding] for me.");
|
|
elseif(e.message:findi("mortal bidding")) then
|
|
e.self:Say("I see it as a win-win situation for me. If you succeed, I'll gain more power from the knowledge you bring back to me. If you fail, you become another addition to my undead minions. Thus, you cannot fail me in returning a scroll of Splurt, Defoliation, Covergence, or Thrall of Bones. In return, I will part with a scroll of mine.");
|
|
end
|
|
end
|
|
|
|
function event_trade(e)
|
|
local item_lib = require("items");
|
|
local count = item_lib.count_handed_item(e.self, e.trade, {19423, 19296, 19294, 19299});
|
|
if(count > 0) then
|
|
repeat
|
|
e.self:Say("Here is the scroll that I promised. We have both gained much knowledge today. I hope to do business with you again soon. Farewell.");
|
|
e.other:QuestReward(e.self,0,0,0,0,eq.ChooseRandom(19297,19421,19408,19409),500);
|
|
count = count - 1;
|
|
until count == 0;
|
|
end
|
|
item_lib.return_items(e.self, e.other, e.trade)
|
|
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
|
|
-------------------------------------------------------------------------------------------------
|