mirror of
https://github.com/EQMacEmu/quests
synced 2026-08-21 00:23:04 -04:00
24 lines
1.5 KiB
Lua
24 lines
1.5 KiB
Lua
--Paladin Tomes/Planar Armor Exchange
|
|
function event_say(e)
|
|
if(e.message:findi("Hail")) then
|
|
e.self:Emote("kneels before " .. e.other:GetCleanName() .. " in humble recognition. The clang of his spotless, dwarven crafted armor against the stone floor briefly chimes through the hall. The song of steel and marble is echoed by his gruff, iron voice. 'I am Difur, Crusader of Brell Serillis and master of the paladins in the district of Tanaan. If ye seek knowledge and wisdom of the justly knights of Norrath than I, most humbly, am at yer service, traveler.'");
|
|
end
|
|
end
|
|
|
|
function event_trade(e)
|
|
local item_lib = require("items");
|
|
local count = item_lib.count_handed_item(e.self, e.trade, {4851, 4852, 4853, 4854, 4855, 4856, 4857}); --Valorium 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
|
|
-------------------------------------------------------------------------------------------------
|