mirror of
https://github.com/EQMacEmu/quests
synced 2026-08-21 00:23:04 -04:00
13 lines
488 B
Lua
13 lines
488 B
Lua
-- Test of Charm - enchanter epic - Enchanted Emerald
|
|
function event_trade(e)
|
|
local item_lib = require("items");
|
|
|
|
if(e.other:GetFaction(e.self) < 5 and item_lib.check_turn_in(e.self, e.trade, {item1 = 10634})) then
|
|
e.self:Say("Your bidding has been done, now leave this land and never return.");
|
|
e.other:QuestReward(e.self,0,0,0,0,10621,10000);
|
|
end
|
|
if(e.other:GetFaction(e.self) > 4) then
|
|
eq.attack(e.other:GetName());
|
|
end
|
|
item_lib.return_items(e.self, e.other, e.trade)
|
|
end
|