peq-quests/nedaria/a_blacksmith.lua
2021-06-14 09:19:00 -05:00

18 lines
570 B
Lua

--nedaria/a_blacksmith.lua NPCID 182046
--Warrior Epic 1.5
function event_say(e)
local qglobals = eq.get_qglobals(e.other);
if(e.message:findi("hail") and qglobals["warrior_epic"] ~= nil and qglobals["warrior_epic"] >= "2" and e.other:HasItem(60301)) then
eq.spawn2(182149 ,0,0,e.self:GetX(),e.self:GetY(),e.self:GetZ(),e.self:GetHeading()); --Korezna Orecleaver
eq.depop_with_timer();
else
e.self:Say("Blazing hot in here. Whew!");
end
end
function event_trade(e)
local item_lib = require("items");
item_lib.return_items(e.self, e.other, e.trade);
end