2023-07-24 13:24:37 -07:00
|
|
|
function event_say(e)
|
|
|
|
|
if(e.message:findi("hail")) then
|
2024-05-24 16:13:22 -07:00
|
|
|
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());
|
2023-07-24 13:24:37 -07:00
|
|
|
end
|
|
|
|
|
end
|
2024-05-24 16:13:22 -07:00
|
|
|
|
|
|
|
|
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
|