Skip to content
This repository has been archived by the owner on Feb 5, 2025. It is now read-only.

Commit

Permalink
[Bug/Cleanup] Fix Summoning of Terror (#106)
Browse files Browse the repository at this point in the history
- Bug fix Summoning of Terror spawn
  - Reported: https://discord.com/channels/1204418766318862356/1327722795307761777

  - Cleanup of all quests and syntax in Paineel
  • Loading branch information
fryguy503 authored Jan 11, 2025
1 parent 3ab533e commit 5479a61
Show file tree
Hide file tree
Showing 129 changed files with 1,421 additions and 1,306 deletions.
10 changes: 10 additions & 0 deletions acrylia/spells/1771.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
-- Call of the Hero cast in Acrylia Caverns

function event_spell_effect(e)
local caster = eq.get_entity_list():GetClientByID(e.caster_id);
caster:Message(MT.Red, "A voice whispers in your ear: There are no heroes here... except this one.");

eq.spawn2(154373, 0, 0, caster:GetX() + math.random(-5, 5), caster:GetY() + math.random(-5, 5), caster:GetZ() + 1, 0):AddToHateList(caster, 100);

return -1
end
39 changes: 0 additions & 39 deletions paineel/#Avatar_of_Terror.pl

This file was deleted.

14 changes: 14 additions & 0 deletions paineel/#Jerith.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
function event_say(e)
if e.message:findi("hail") then
e.self:Emote(" glances at you and smiles, revealing slightly pointed teeth. He is an older dark elf, wrinkles creasing his face. 'Yes. What can Jerith do for you?'");
elseif e.message:findi("Osaftars") then
e.self:Say("Osaftars did you say? Jerith knows this name. Osaftars is a scourge of the seas. He takes what he wants and does what he wants. He is a captain of a ship. Yes, Jerith does believe the ship's name was the Stormwave. It can probably be found in the port town of [Dulak].");
elseif e.message:findi("Dulak") then
e.self:Say("Dulak is a pirate town on the island of Broken Skull Rock. A dangerous place. There is a ship that Jerith has taken to get there from the shores of the Stonebrunt Mountains.");
end
end

function event_trade(e)
local item_lib = require("items");
item_lib.return_items(e.self, e.other, e.trade)
end
17 changes: 0 additions & 17 deletions paineel/#Jerith.pl

This file was deleted.

35 changes: 35 additions & 0 deletions paineel/Antus_Shelbra.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
function event_say(e)
if e.message:findi("hail") then
e.self:Say("Greetings, " .. e.other:GetName() .. ". You have come to me searching for tasks and tasks I have. Would you judge yourself an [experienced heretic] or one who has [much to learn]?");
elseif e.message:findi("much to learn") then
e.self:Say("Very well, " .. e.other:GetName() .. ". I do have a task for you. There is an old and frail Erudite male who now lives in Toxxulia named Aglthin Dasmore. He has left the ways of Cazic-Thule and no longer practices our craft. He has been stripped of his power and wealth, so he spends his time fishing by the river. Our great Lord of Fear has decreed that his life is forfeit. Slay him, and bring me proof of the deed.");
elseif e.message:findi("experienced heretic") then
e.self:Say("Ah. Excellent. I have just the task for you, " .. e.other:GetName() .. ". In Kerra Ridge, there is a particular cat named Kirran Mirrah that we have been using to gather information about, well, certain aspects of cat society. He is no longer providing information for us and we have something for him that may encourage him to assist again. Ha! Hand him this sealed bag for us. It may just change his point of view. Hahaha!");
if not e.other:HasItem(9968) then
e.other:SummonItem(9968); -- Item: Smelly Sealed Bag
end
end
end

function event_trade(e)
local item_lib = require("items");
if item_lib.check_turn_in(e.trade, {item1 = 9969}) then -- Item: Aglthin's Fishing Pole
e.self:Say("Yes, this will do.");
e.other:Faction(265,3); -- Faction: Heretics
e.other:Faction(254,-3); -- Faction: Gate Callers
e.other:Faction(242,-3); -- Faction: Deepwater Knights
e.other:Faction(231,-3); -- Faction: Craftkeepers
e.other:Faction(233,-3); -- Faction: Crimson Hands
e.other:QuestReward(e.self,{exp = 500, Copper = math.random(4), Silver = math.random(9), Gold = math.random(4)});
e.other:SummonItem(13697); -- Item: Staff of the Abattoir Initiate
elseif item_lib.check_turn_in(e.trade, {item1 = 9967}) then -- Item: Karran's Head
e.self:Say("I take it he got the message... Excellent work!");
e.other:Faction(265,3); -- Faction: Heretics
e.other:Faction(254,-3); -- Faction: Gate Callers
e.other:Faction(242,-3); -- Faction: Deepwater Knights
e.other:Faction(231,-3); -- Faction: Craftkeepers
e.other:Faction(233,-3); -- Faction: Crimson Hands
e.other:QuestReward(e.self,{exp = 1000, Copper = math.random(4), Silver = math.random(9), Gold = math.random(4)});
end
item_lib.return_items(e.self, e.other, e.trade)
end
37 changes: 0 additions & 37 deletions paineel/Antus_Shelbra.pl

This file was deleted.

18 changes: 18 additions & 0 deletions paineel/Atdehim_Sqonci.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
function event_say(e)
if e.message:findi("hail") then
e.self:Say("Ah, greetings. I hope you are a student of the way of fear. Within this temple there are many who can teach you to harness your gifts. I am an instructor in the [rituals of fear].");
elseif e.message:findi("rituals of fear") then
e.self:Say("So you wish to learn, eh? I am working on a ritual to strike fear into the hearts of the other inhabitants of Odus. The reagents I require for this ritual are the doll of a Kerran priestess, the ichor of a giant wooly spider, your initiate symbol of Cazic-Thule, and a giant snake fang with which to carve my glyphs. Fetch me these components. We shall infect this land with fear, and I shall reward you with the station of disciple of this temple.");
end
end

function event_trade(e)
local item_lib = require("items");

if item_lib.check_turn_in(e.trade, {item1 = 13716, item2 = 16989, item3 = 1437, item4 = 7005}) then -- Items: Kerran Doll, Ichor, Initiate Symbol of Cazic Thule, Giant Snake Fang
e.self:Say("Excellent work, " .. e.other:GetName() .. ". You are well on your way to proving yourself worthy to serve Cazic Thule.");
e.other:QuestReward(e.self,{exp = 2000});
e.other:SummonItem(1438); -- Item: Disciple Symbol of Cazic Thule
end
item_lib.return_items(e.self, e.other, e.trade)
end
19 changes: 0 additions & 19 deletions paineel/Atdehim_Sqonci.pl

This file was deleted.

26 changes: 26 additions & 0 deletions paineel/Auhrik_Siet-ka.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
--Quest for Paineel - Auhrik Siet`ka: Neonate Cowardice
function event_say(e)
if e.message:findi("understand common") then
e.self:Say("Of course you do. Now, listen carefully. It may be too much for your feeble mind to gather all at once, and I hate to repeat myself. Bring me one bat wing, one rat ear, one snake egg, and one fire beetle eye. Take this bag, and make sure it's sealed before you return it to me. Snake eggs spoil. Now, quit staring at me with your jaw hanging open like a dead codfish. I would have mistaken you for one, but dead codfish smell better. Haha!");
if not e.other:HasItem(17802) then
e.other:SummonItem(17802); -- Item: Small Sealable Bag
end
end
end

function event_trade(e)
local item_lib = require("items");

if item_lib.check_turn_in(e.trade, {item1 = 14041}) then -- Item: A Rolled Up Note
e.self:Say("Why are you giving this to me? Oh I see. I forgot that rats don't know how to read. Haha! Well, then. I shall read it for you. You do [understand common] don't you? Haha.");
elseif item_lib.check_turn_in(e.trade, {item1 = 12993}) then -- Item: Small Sealed Bag
e.self:Say("My revenge has been satisfied. Thank you, my child. You have proven yourself to be a most worthy asset to our cause. Here, I no longer have any use for this, my ties to the old life are now severed.");
e.other:Faction(265,5); -- Faction: Heretics
e.other:Faction(254,-5); -- Faction: Gate Callers
e.other:Faction(242,-5); -- Faction: Deepwater Knights
e.other:Faction(231,-5); -- Faction: Craftkeepers
e.other:Faction(233,-5); -- Faction: Crimson Hands
e.other:QuestReward(e.self,{exp = 2000, Copper = math.random(5,8), Silver = math.random(3)});
end
item_lib.return_items(e.self, e.other, e.trade)
end
26 changes: 0 additions & 26 deletions paineel/Auhrik_Siet-ka.pl

This file was deleted.

34 changes: 34 additions & 0 deletions paineel/Azzar_Habbib.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
function event_say(e)
if e.message:findi("hail") then
e.self:Say("I'm not in any mood for conversation. My favorite hat was torn right from my head by a gigantic bat the other night and I am quite upset.");
elseif e.message:findi("other tasks?") then
e.self:Say("I will sew you your own personal dreadful cap if you bring me the necessary components. I will need the pelt of a feared beast, some gold thread, and an imbued amber.");
elseif e.message:findi("hat") then
e.self:Say("It is a marvelous cap sewn from the finest textiles and imbued with the divine power of our lord of fear. Cazic Thule!");
end
end

function event_trade(e)
local item_lib = require("items");

if item_lib.check_turn_in(e.trade, {item1 = 1528}) then -- Item: Azzar's Dreadful Hat
e.self:Emote("gasps in astonishment 'You...you..found my [hat]!! This is the most I can repay you but perhaps I can reward you further for some [other tasks]?'");
e.other:Faction(265,1); -- Faction: Heretics
e.other:Faction(254,-1); -- Faction: Gate Callers
e.other:Faction(242,-1); -- Faction: Deepwater Knights
e.other:Faction(231,-1); -- Faction: Craftkeepers
e.other:Faction(233,-1); -- Faction: Crimson Hands
e.other:SummonItem(1530); -- Item: Black Lace Sash
e.other:QuestReward(e.self,{exp = 500});
elseif item_lib.check_turn_in(e.trade, {item1 = 19076, item2 = 12096, item3 = 22502}) then -- Items: Mighty Bear Paw's Belt Gold Thread and Imbued Amber
e.self:Say("Well done " .. e.other:GetName() .. ", here is your new hat wear it with pride"); --couldnt find the text
e.other:Faction(265,3); -- Faction: Heretics
e.other:Faction(254,-3); -- Faction: Gate Callers
e.other:Faction(242,-3); -- Faction: Deepwater Knights
e.other:Faction(231,-3); -- Faction: Craftkeepers
e.other:Faction(233,-3); -- Faction: Crimson Hands
e.other:SummonItem(1529); -- Item: Dreadful Cap
e.other:QuestReward(e.self,{exp = 500});
end
item_lib.return_items(e.self, e.other, e.trade)
end
30 changes: 0 additions & 30 deletions paineel/Azzar_Habbib.pl

This file was deleted.

10 changes: 10 additions & 0 deletions paineel/Brettas_Norval.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
function event_say(e)
if e.message:findi("Hail") then
e.self:Say("Hail. " .. e.other:GetName() .. "! I thought I heard the clink of coins and now. here you stand! Please feel free to browse through my stock.");
end
end

function event_trade(e)
local item_lib = require("items");
item_lib.return_items(e.self, e.other, e.trade)
end
6 changes: 0 additions & 6 deletions paineel/Brettas_Norval.pl

This file was deleted.

Loading

0 comments on commit 5479a61

Please sign in to comment.