mirror of
https://github.com/EQMacEmu/quests
synced 2026-08-21 00:23:04 -04:00
15 lines
No EOL
534 B
Lua
15 lines
No EOL
534 B
Lua
function event_say(e)
|
|
if(e.message:findi("hail")) then
|
|
e.self:Say("Hail, traveler! By order of Sir Lucan, the toll fee is one gold piece a head. Pay at once!!");
|
|
elseif(e.message:findi("no")) then
|
|
eq.attack(e.other:GetName());
|
|
end
|
|
end
|
|
|
|
function event_trade(e)
|
|
local item_lib = require("items");
|
|
if(item_lib.check_turn_in(e.self, e.trade, {gold = 1}, 0)) then
|
|
e.self:Say("It is best you donate to the Freeport Militia. I would hate to see anything happen to you.");
|
|
end
|
|
item_lib.return_items(e.self, e.other, e.trade)
|
|
end |