mirror of
https://github.com/EQMacEmu/quests
synced 2026-08-21 00:23:04 -04:00
18 lines
951 B
Lua
18 lines
951 B
Lua
function event_say(e)
|
|
if(e.message:findi("hail")) then
|
|
e.self:Say("Hello! If you wish to hand in your keys, please give them to me and I will be happy to assist you! It is a pleasure doing business with you.");
|
|
end
|
|
end
|
|
|
|
function event_trade(e)
|
|
local item_lib = require("items");
|
|
|
|
if(item_lib.check_turn_in(e.self, e.trade, {item1 = 12143})) then
|
|
e.self:Say("I am sorry to see you check out. Here is all you had in your box. We hope to serve you again. Have a nice day!! Next!");
|
|
e.other:QuestReward(e.self,0,0,0,0,18936); -- Item: A Sealed Note
|
|
elseif(item_lib.check_turn_in(e.self, e.trade, {item1 = 12193})) then
|
|
e.self:Say("I am sorry to see you check out. Here is all you had in your box. We hope to serve you again. Have a nice day!! Next!");
|
|
e.other:QuestReward(e.self,math.random(0,5),math.random(0,5),math.random(0,5),math.random(0,1),13323,500); -- Item: Emerald Shard
|
|
end
|
|
item_lib.return_items(e.self, e.other, e.trade)
|
|
end
|