peq-quests/abysmal/Kanleku_Grabboz.lua
Trust 2255fb3b1e [LUA] Abysmal Updated and Fixes
Have not converted the complex scripts.

Added many missing NPC's
2023-11-19 02:13:11 -05:00

50 lines
No EOL
4.1 KiB
Lua

-- Shaman Abysmal Sea armor
function event_say(e)
if e.other:GetClass() == Class.SHAMAN then
if e.message:findi("hail") then
e.self:Say("I seek those who study the spirit world and potions and tribal magic. I seek a shaman. Are you a [shaman]?");
elseif e.message:findi("shaman") then
e.self:Say("In that case, I am in 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("Bring me back Muramite Boot Armor and I believe I can rework them into something quite fine for you. You will need a sheet of infused Muramite metal along with new boots from me in a forge to get a good fit. If you need help in the infusing process, just talk to Nalasrine.");
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.SHAMAN then -- Shaman
if item_lib.check_turn_in(e.trade, {item1 = 68222}) then -- Muramite Bracer Armor
e.other:QuestReward(e.self,0,0,0,0,54142,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,54140,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,54143,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,54145,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,54146,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,54144,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,54141,0); -- Reworked Muramite Sleeve
end
end
item_lib.return_items(e.self, e.other, e.trade)
end