mirror of
https://github.com/ProjectEQ/projecteqquests
synced 2026-08-12 00:26:10 -04:00
50 lines
No EOL
4.1 KiB
Lua
50 lines
No EOL
4.1 KiB
Lua
-- Ranger Abysmal Sea armor
|
|
|
|
function event_say(e)
|
|
if e.other:GetClass() == Class.RANGER then
|
|
if e.message:findi("hail") then
|
|
e.self:Say("Hail ".. e.other:GetRaceName() ..", I am seeking an archer. A forest stalker of the wilds, one who calls themselves [ranger]. Are you such a person?");
|
|
elseif e.message:findi("ranger") then
|
|
e.self:Say("In that case, I am at your service. If you would perform a few simple tasks I will assist you in creating a new set of powerful armor to guard you in battle. I can make you a [helm], [greaves], [chainmail], [bracer], [vambraces], [gloves], and [boots].");
|
|
elseif e.message:findi("helm") then
|
|
e.self:Say("In order to craft a helm, I need you to bring me Muramite Helm Armor. I can take this helm and reshape it into something more suitable for you. Once I have done so, take an infused Muramite chain length and in a forge you can make any final adjustments to it yourself. Nalasrine can assist you with the infusing the chain.");
|
|
elseif e.message:findi("greaves") then
|
|
e.self:Say("Simply bring me Muramite Greaves Armor. Two lengths of infused Muramite chain will be necessary to make some final adjustments to the greaves yourself in a forge. Don't forget - Nalasrine can assist you with the infusion.");
|
|
elseif e.message:findi("chainmail") then
|
|
e.self:Say("Merely bring me Muramite Chest Armor. Any final adjustments can be made with two lengths of infused Muramite chain and the new chainmail in a forge. Don't forget - Nalasrine can assist you with the infusion.");
|
|
elseif e.message:findi("bracer") then
|
|
e.self:Say("Bring me a Muramite Bracer Armor section and I can reshape it for you. If you speak to Nalasrine about her findings, she may be able to help you infuse some Muramite chain to strengthen it. One length of infused Muramite chain along with my reworked bracer in a forge should be sufficient.");
|
|
elseif e.message:findi("vambraces") then
|
|
e.self:Say("Bring me Muramite Sleeve Armor. I will fit them as close as I can, then you must take a length of infused Muramite chain and the sleeves to a forge. Nalasrine carries the infusions for the metal that you will need.");
|
|
elseif e.message:findi("gloves") then
|
|
e.self:Say("Bring me some Muramite Glove Armor and I shall craft you some gloves. Don't forget to also find a length of Muramite chain and to talk to Nalasrine about the infusion process. Place the infused chain and the gloves from me in a forge for final adjustments.");
|
|
elseif e.message:findi("boots") then
|
|
e.self:Say("In order to make you some boots, I need you to bring me a Muramite Boot Armor piece. Then take a length of infused Muramite chain and shape the chain to the boots in a forge. Nalasrine can assist you with the infusion, by the way.");
|
|
end
|
|
else
|
|
e.self:Say("I do apologize, but I am afraid that I can only give such information to those of a particular calling.");
|
|
end
|
|
end
|
|
|
|
function event_trade(e)
|
|
local item_lib = require("items");
|
|
if e.other:GetClass() == Class.RANGER then
|
|
if item_lib.check_turn_in(e.trade, {item1 = 68222}) then -- Muramite Bracer Armor
|
|
e.other:QuestReward(e.self,0,0,0,0,54170,0); -- Reworked Muramite Bracer
|
|
elseif item_lib.check_turn_in(e.trade, {item1 = 68220}) then -- Muramite Helm Armor
|
|
e.other:QuestReward(e.self,0,0,0,0,54168,0); -- Reworked Muramite Helm
|
|
elseif item_lib.check_turn_in(e.trade, {item1 = 68223}) then -- Muramite Glove Armor
|
|
e.other:QuestReward(e.self,0,0,0,0,54171,0); -- Reworked Muramite Glove
|
|
elseif item_lib.check_turn_in(e.trade, {item1 = 68225}) then -- Muramite Greaves Armor
|
|
e.other:QuestReward(e.self,0,0,0,0,54173,0); -- Reworked Muramite Greaves
|
|
elseif item_lib.check_turn_in(e.trade, {item1 = 68226}) then -- Muramite Chest Armor
|
|
e.other:QuestReward(e.self,0,0,0,0,54174,0); -- Reworked Muramite Chest
|
|
elseif item_lib.check_turn_in(e.trade, {item1 = 68224}) then -- Muramite Boot Armor
|
|
e.other:QuestReward(e.self,0,0,0,0,54172,0); -- Reworked Muramite Boot
|
|
elseif item_lib.check_turn_in(e.trade, {item1 = 68221}) then -- Muramite Sleeve Armor
|
|
e.other:QuestReward(e.self,0,0,0,0,54169,0); -- Reworked Muramite Sleeve
|
|
end
|
|
end
|
|
|
|
item_lib.return_items(e.self, e.other, e.trade)
|
|
end |