mirror of
https://github.com/EQMacEmu/quests
synced 2026-08-21 00:23:04 -04:00
24 lines
No EOL
1.7 KiB
Lua
24 lines
No EOL
1.7 KiB
Lua
function event_say(e)
|
|
if(e.other:GetFactionValue(e.self) >= -500) then
|
|
if(e.message:findi("hail")) then
|
|
e.self:Say("Rrraaarrr! Hello furless. You come to study from [mighty warrior] yes?");
|
|
elseif(e.message:findi("mighty warrior")) then
|
|
e.self:Say("Errr. Well, Allix not yet mighty warrior but soon yes. Allix just come of age and soon will enter training to become mighty Pasdar. Errr. Allix little nervous. Allix missing [one thing] to become mighty Pasdar.");
|
|
elseif(e.message:findi("one thing")) then
|
|
e.self:Say("Well, Allix not have to have but is good. Is leaf. Ajrah leaf. Powerful magic in the leaf. Pasdar hold's next to body, keep's body strong and mind clear. Not have to have but Pasdar without Ajrah Leaf is poor Pasdar. Someday Allix travel to the mighty plain's of East Karana and get one from tree's.");
|
|
end
|
|
else
|
|
e.self:Say(eq.ChooseRandom("I didn't know Slime could speak common. Go back to the sewer before I lose my temper.","Is that your BREATH, or did something die in here? Now go away!","I wonder how much I could get for the tongue of a blithering fool? Leave before I decide to find out for myself.","Oh look..a talking lump of refuse..how novel!"));
|
|
end
|
|
end
|
|
|
|
function event_trade(e)
|
|
local item_lib = require("items");
|
|
|
|
if(e.other:GetFactionValue(e.self) >= -500 and item_lib.check_turn_in(e.self, e.trade, {item1 = 6349})) then
|
|
e.self:Say("Ajrah! Raaarrr! Ajrah Leaf! Allix destined to be mighty saiar now! Allix unsure how to thank you. Here, take this. Is my most treasured tunic.");
|
|
e.other:Faction(e.self,382,4); -- Faction: Kerra Isle
|
|
e.other:QuestReward(e.self,0,0,0,0,1120,500);
|
|
end
|
|
item_lib.return_items(e.self, e.other, e.trade)
|
|
end |