mirror of
https://github.com/EQMacEmu/quests
synced 2026-08-21 00:23:04 -04:00
24 lines
1.3 KiB
Lua
24 lines
1.3 KiB
Lua
--Monk Tomes/Planar Armor Exchange
|
|
function event_say(e)
|
|
if(e.message:findi("Hail")) then
|
|
e.self:Emote("closes his eyes and gives a deep-seated bow before " .. e.other:GetCleanName() .. ". 'Greetings, traveler. I am Grand Master Limsa, master of the tranquil order of the Tanaan district of the Plane of Knowledge. Monks of both Norrathian orders may approach me for guidance and knowledge through the long path of self-mastery and discipline.'");
|
|
end
|
|
end
|
|
|
|
function event_trade(e)
|
|
local item_lib = require("items");
|
|
local count = item_lib.count_handed_item(e.self, e.trade, {1201, 1202, 1203, 1204, 1205, 1206}); --Shiverback-hide Armor
|
|
if(count > 0) then
|
|
repeat
|
|
e.self:Say("Thank you, " .. e.other:GetCleanName() .. "."); --Text made up
|
|
e.other:QuestReward(e.self,0,0,0,0,eq.ChooseRandom(10028, 10037, 22503, 15981),300000); --Random gem: Peridot, Diamond, Blue Diamond, Raw Diamond
|
|
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
|
|
-------------------------------------------------------------------------------------------------
|