Skip to content

Commit

Permalink
Updated to EQ2Emu version 0.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Cynnar committed Jul 31, 2022
1 parent f7a7aee commit 8523cc6
Show file tree
Hide file tree
Showing 1,900 changed files with 58,944 additions and 2,019 deletions.
19 changes: 19 additions & 0 deletions ItemScripts/Bogchild's_Iced_Trap.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
--[[
Script Name : ItemScripts/Bogchild's_Iced_Trap.lua
Script Purpose : Handles the item "Bogchild's Iced Trap"
Script Author : theFoof
Script Date : 2013.5.20
Script Notes :
--]]
function used(Item, Player)
target = GetTarget(Player)
if GetName(target) == 'a snowpack' or GetName(target) == 'an iceflow' then
if IsInCombat(target) then
SendMessage(Player, "You can only use this on an iceflow or snowpack that is not currently engaged in combat.", "yellow")
else
CastEntityCommand(Player, target, 1274, "Bogchild's Iced Trap")
end
else
SendMessage(Player, "You can only use this on an iceflow or a snowpack.", "yellow")
end
end
35 changes: 35 additions & 0 deletions ItemScripts/BundleofSpiritWards.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
--[[
Script Name : ItemScripts/BundleofSpiritsWards.lua
Script Purpose : for the quest item "Bundle of Spirits"
Script Author : theFoof
Script Date : 2013.5.28
Script Notes :
--]]

local CallingBack = 35

function used(Item, Player)
if HasQuest(Player, CallingBack) then
if GetZoneID(GetZone(Player)) == 470 then
local X = GetX(Player)
local Z = GetZ(Player)
if X >= 595 and X <= 605 then
if Z >= -268 and Z <= -258 then
SetStepComplete(Player, CallingBack, 4)
end
elseif X >= 576 and X <= 586 and Z >= -344 and Z <= -334 then
SetStepComplete(Player, CallingBack, 1)
elseif X >= 502 and X <= 512 then
if Z >= -238 and Z <= -228 then
SetStepComplete(Player, CallingBack, 2)
end
elseif X >= 579 and X <= 589 and Z >= -160 and Z <= -150 then
SetStepComplete(Player, CallingBack, 3)
elseif X >= 576 and X <= 586 and Z >= -217 and Z <= -207 then
SetStepComplete(Player, CallingBack, 5)
else
SendMessage(Player, "You cannot place a ward here.", "yellow")
end
end
end
end
18 changes: 18 additions & 0 deletions ItemScripts/CrustoseRepellentPrototype.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
--[[
Script Name : ItemScripts/CrustoseRepellentPrototype.lua
Script Purpose : Handles the item "crustose repellent prototype"
Script Author : theFoof
Script Date : 2013.5.12
Script Notes :
--]]

function used(Item, Player)
local target = GetTarget(Player)
if GetName(target) == "a crustose sporetender" then
CastEntityCommand(Player, target, 1269, "Spray")
elseif IsInCombat(target) and GetName(target) == "a crustose sporetender" then
SendMessage(Player, "This effect cannot be used on a crustose sporetender which is in combat.", "yellow")
elseif GetName(target) ~= "a crustose sporetender" then
SendMessage(Player, "You can only use the crustose repellent against crustose sporetenders.", "yellow")
end
end
23 changes: 23 additions & 0 deletions ItemScripts/FrondensFinest.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
--[[
Script Name : ItemScripts/FrondensFinest.lua
Script Purpose : for the item "Fronden's Finest"
Script Author : theFoof
Script Date : 2013.5.31
Script Notes :
--]]
local PouringSkellies = 40

function used(Item, Player)
target = GetTarget(Player)
if GetName(target) == "pile of Ry'Gorr bones" then
if GetQuestStep(Player, PouringSkellies) == 1 then
if not IsInCombat(Player) then
CastEntityCommand(Player, target, 1281, "pour one out")
else
SendMessage(Player, "You must not be in combat to use this.", "yellow")
end
end
else
SendMessage(Player, "You must find a pile of Ry'Gorr bones to use this on.", "yellow")
end
end
24 changes: 24 additions & 0 deletions ItemScripts/GerlasElementalLullaby.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
--[[
Script Name : ItemScripts/GerlasElementalLullaby.lua
Script Purpose : for the item "Gerla's Elemental Lullaby"
Script Author : theFoof
Script Date : 2013.6.13
Script Notes :
--]]

local NapEvigis = 64

function used(Item, Player)
local target = GetTarget(Player)
if GetQuestStep(Player, NapEvigis) == 1 then
if GetName(target) == 'Evigis the Ancient' then
if GetHP(target) < GetMaxHP(target) * .2 then
CastEntityCommand(Player, target, 1291, "Gerla's Elemental Lullaby")
else
SendMessage(Player, "You must use this on Evigis when it is under 20 percent life.", "yellow")
end
else
SendMessage(Player, "You must use this on Evigis when it is under 20 percent life.", "yellow")
end
end
end
29 changes: 29 additions & 0 deletions ItemScripts/Griz.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
--[[
Script Name : ItemScripts/Griz.lua
Script Purpose : the item Griz
Script Author : theFoof
Script Date : 2013.8.26
Script Notes :
--]]
local SometimesKnut = 84

function GrizChat1_1(Item, Spawn)
conversation = CreateConversation()
AddConversationOption(conversation, "I will never doubt him again.")
StartDialogConversation(conversation, 4, Item, Spawn, "Yes. Griz real. Knut's friend.")
end

function GrizChat2_1(Item, Spawn)
if GetQuestStep(Spawn, SometimesKnut) == 2 then
SetStepComplete(Spawn, SometimesKnut, 2)
AddSpawnAccess(GetSpawnByLocationID(Zone, 579551), Spawn)
end
if GetQuestStep(Spawn, SometimesKnut) == 2 or GetQuestStep(Spawn, SometimesKnut) == 3 then
if HasItemEquipped(Spawn, 157116) then
conversation = CreateConversation()
AddConversationOption(conversation, "I don't think it has guts.")
AddConversationOption(conversation, "All right, I'm doing it!")
StartDialogConversation(conversation, 4, Item, Spawn, "Grrrrrrrrrrr. I said strike! Claw it to bits! Tear it open, and spell its guts upon the ice!")
end
end
end
11 changes: 11 additions & 0 deletions ItemScripts/IcemaneLeash.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
local IcemanesCometh = 18
function used(Item, Player)
if GetQuestStep(Player, IcemanesCometh) == 1 then
target = GetTarget(Player)
if GetName(target) == 'an icemane cub' then
if not IsInCombat(target) then
CastEntityCommand(Player, target, 1278, "Leash")
end
end
end
end
31 changes: 31 additions & 0 deletions ItemScripts/MakeshiftBarricade.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
--[[
Script Name : ItemScripts/MakeshiftBarricade.lua
Script Purpose : Handles the item "makeshift barricade"
Script Author : theFoof
Script Date : 2013.5.7
Script Notes :
--]]

local Barricade = 46842
local BoatloadWork = 4

function used(Item, Player)
if GetQuestStep(Player, BoatloadWork) == 3 then
local X = GetX(Player)
local Z = GetZ(Player)
if GetZoneID(GetZone(Player)) == 470 then
if X > -326 and X < -306 then --setting radius to update the quest "Boatload of Work"
if Z < -704 and Z > -724 then
SetStepComplete(Player, BoatloadWork, 3)
RemoveItem(Player, Barricade)
local barrier_spawn = GetSpawn(Player, 4701732)
AddSpawnAccess(barrier_spawn, Player)
else
SendMessage(Player, "You must be between the two torches along the barricade line on Pilgrims' Landing to use this.", "yellow")
end
else
SendMessage(Player, "You must be between the two torches along the barricade line on Pilgrims' Landing to use this.", "yellow")
end
end
end
end
20 changes: 20 additions & 0 deletions ItemScripts/Poultice.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
--[[
Script Name : ItemScripts/Poultice.lua
Script Purpose : for the item "Poultice"
Script Author : theFoof
Script Date : 2013.6.3
Script Notes :
--]]

local DisarmingRyGorr = 48

function used(Item, Player)
if GetQuestStep(Player, DisarmingRyGorr) == 1 then
local target = GetTarget(Player)
if GetName(target) == "a Ry'Gorr weapon" then
CastEntityCommand(Player, target, 1284, "Poultice")
end
else
SendMessage(Player, "You can only use this on a Ry'Gorr weapon.", "yellow")
end
end
37 changes: 37 additions & 0 deletions ItemScripts/RyGorrExplosiveMiningBarrel.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
--[[
Script Name : ItemScripts/RyGorrExplosiveMiningBarrel.lua
Script Purpose : for the item "Ry'Gorr Explosive Mining Barrel"
Script Author : theFoof
Script Date : 2013.6.12
Script Notes :
--]]

local RyGorrOperations = 60

function used(Item, Player)
if GetQuestStep(Player, RyGorrOperations) == 1 then
if GetZoneID(GetZone(Player)) == 470 then
local X = GetX(Player)
local Y = GetY(Player)
local Z = GetZ(Player)
if X > -20.27 and X < -10.27 then
if Y < -60 then
if Z > 150.07 and Z < 160.07 then
local barrel = SpawnByLocationID(GetZone(Player), 33980)
AddSpawnAccess(barrel, Player)
SetTempVariable(barrel, "player", Player)
RemoveItem(Player, 47881)
else
SendMessage(Player, "You cannot place the Ry'Gorr Explosive Mining Barrel here.", "yellow")
end
else
SendMessage(Player, "You cannot place the Ry'Gorr Explosive Mining Barrel here.", "yellow")
end
else
SendMessage(Player, "You cannot place the Ry'Gorr Explosive Mining Barrel here.", "yellow")
end
else
SendMessage(Player, "You cannot place the Ry'Gorr Explosive Mining Barrel here.", "yellow")
end
end
end
37 changes: 37 additions & 0 deletions ItemScripts/UrnFilledWithAshes.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
--[[
Script Name : ItemScripts/UrnFilledWithAshes.lua
Script Purpose : for the item "Urn Filled with Ashes"
Script Author : theFoof
Script Date : 2013.5.27
Script Notes :
--]]
local ScatteringAshes = 33

function used(Item, Player)
local X = GetX(Player)
local Y = GetY(Player)
local Z = GetZ(Player)
if GetZoneID(GetZone(Player)) == 470 then
if not IsInCombat(Player) then
if X >= 587 and X <= 627 then
if Y >= 61.2 and Y <= 71.2 then
if Z >= -526 and Z <= -486 then
SetStepComplete(Player, ScatteringAshes, 1)
else
LocMessage(Item, Player)
end
else
LocMessage(Item, Player)
end
else
LocMessage(Item, Player)
end
else
SendPopUpMessage(Player, "Non-Combat only", 0, 0, 255)
end
end
end

function LocMessage(Item, Player)
SendMessage(Player, "The ashes must be released at the peak of the cliff to the east of Herga's Choke.", "yellow")
end
24 changes: 24 additions & 0 deletions ItemScripts/cadavers_dram.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
--[[
Script Name : ItemScripts/cadavers_dram.lua
Script Purpose : cavader's dram
Script Author : theFoof
Script Date : 2013.7.24
Script Notes :
--]]

local BecomingOrcbane = 81

function used(Item, Player)
if GetQuestStep(Player, BecomingOrcbane) == 1 then
local target = GetTarget(Player)
if GetSpawnID(target) == 4700105 then
if GetHP(target) < GetMaxHP(target) * .20 then
CastEntityCommand(Player, target, 1299, "cadaver's dram")
else
SendMessage(Player, "You must use this on a Ry'Gorr tunneler that is under 20 percent life.", "yellow")
end
else
SendMessage(Player, "You can only use this on a Ry'Gorr tunneler.", "yellow")
end
end
end
34 changes: 34 additions & 0 deletions Quests/FrostfangSea/a_fine_halasian_welcome.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
--[[
Script Name : Quests/FrostfangSea/a_fine_halasian_welcome.lua
Script Purpose : Handles the quest "A Fine Halasian Welcome"
Script Author : Sylva1n (updated by theFoof)
Script Date : 2011.10.23 (2013.5.2)
Zone : Frostfang Sea
Quest Giver : Galinda Goodfaith
Preceded by : None
Followed by : Stonefist's Art of Combat
--]]


function Init(Quest)
AddQuestRewardCoin(Quest, math.random(10,80), math.random(1,3), 0, 0)
AddQuestStepChat(Quest, 1, "Seek out Yasha Redblade.", 1, "I have been asked to report to Yasha Redblade in the broken ship's hull to the northeast of Galinda Goodfaith on the Pilgrims' Landing.", 0, 4700005)
AddQuestStepCompleteAction(Quest, 1, "quest_complete")
end

function Accepted(Quest, QuestGiver, Player)
end

function Declined(Quest, QuestGiver, Player)
end

function quest_complete(Quest, QuestGiver, Player)
GiveQuestReward(Quest, Player)
end

function Reload(Quest, QuestGiver, Player, Step)
if Step == 1 then
quest_complete(Quest, QuestGiver, Player)
end
end
Loading

0 comments on commit 8523cc6

Please sign in to comment.