-
-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
1,290 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
data-otxserver/scripts/quests/the_explorer_society/actions_botanist.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
local explorerSocietyBotanist = Action() | ||
|
||
function explorerSocietyBotanist.onUse(player, item, fromPosition, target, toPosition, isHotkey) | ||
if target.itemid == 3874 and player:getStorageValue(Storage.Quest.U7_6.ExplorerSociety.ThePlantCollection) == 18 and player:getStorageValue(Storage.Quest.U7_6.ExplorerSociety.QuestLine) == 18 then | ||
player:setStorageValue(Storage.Quest.U7_6.ExplorerSociety.ThePlantCollection, 19) | ||
player:setStorageValue(Storage.Quest.U7_6.ExplorerSociety.QuestLine, 19) | ||
toPosition:sendMagicEffect(CONST_ME_MAGIC_BLUE) | ||
item:transform(4868) | ||
elseif target.itemid == 3885 and player:getStorageValue(Storage.Quest.U7_6.ExplorerSociety.ThePlantCollection) == 21 and player:getStorageValue(Storage.Quest.U7_6.ExplorerSociety.QuestLine) == 21 then | ||
player:setStorageValue(Storage.Quest.U7_6.ExplorerSociety.ThePlantCollection, 22) | ||
player:setStorageValue(Storage.Quest.U7_6.ExplorerSociety.QuestLine, 22) | ||
toPosition:sendMagicEffect(CONST_ME_MAGIC_BLUE) | ||
item:transform(4869) | ||
elseif target.itemid == 3878 and player:getStorageValue(Storage.Quest.U7_6.ExplorerSociety.ThePlantCollection) == 24 and player:getStorageValue(Storage.Quest.U7_6.ExplorerSociety.QuestLine) == 24 then | ||
player:setStorageValue(Storage.Quest.U7_6.ExplorerSociety.ThePlantCollection, 25) | ||
player:setStorageValue(Storage.Quest.U7_6.ExplorerSociety.QuestLine, 25) | ||
toPosition:sendMagicEffect(CONST_ME_MAGIC_BLUE) | ||
item:transform(4870) | ||
elseif target.itemid == 5658 and target.uid == 3152 and player:getStorageValue(Storage.Quest.U7_8.DruidOutfits.GriffinclawFlower) ~= 1 then --Mission-independent function that uses the same item | ||
toPosition:sendMagicEffect(CONST_ME_MAGIC_RED) | ||
item:transform(5937) | ||
target:transform(5687) | ||
player:setStorageValue(Storage.Quest.U7_8.DruidOutfits.GriffinclawFlower, 1) | ||
player:say("You successfully took a sample of the rare griffinclaw flower.", TALKTYPE_MONSTER_SAY) | ||
end | ||
|
||
return true | ||
end | ||
|
||
explorerSocietyBotanist:id(4867) | ||
explorerSocietyBotanist:register() |
26 changes: 26 additions & 0 deletions
26
data-otxserver/scripts/quests/the_explorer_society/actions_butterfly.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
local explorerSocietyButterfly = Action() | ||
function explorerSocietyButterfly.onUse(player, item, fromPosition, target, toPosition, isHotkey) | ||
if target.itemid == 4992 and player:getStorageValue(Storage.Quest.U7_6.ExplorerSociety.TheButterflyHunt) == 9 and player:getStorageValue(Storage.Quest.U7_6.ExplorerSociety.QuestLine) == 9 then | ||
player:setStorageValue(Storage.Quest.U7_6.ExplorerSociety.TheButterflyHunt, 10) | ||
player:setStorageValue(Storage.Quest.U7_6.ExplorerSociety.QuestLine, 10) | ||
toPosition:sendMagicEffect(CONST_ME_MAGIC_BLUE) | ||
item:transform(4864) | ||
target:remove() | ||
elseif target.itemid == 4993 and player:getStorageValue(Storage.Quest.U7_6.ExplorerSociety.TheButterflyHunt) == 12 and player:getStorageValue(Storage.Quest.U7_6.ExplorerSociety.QuestLine) == 12 then | ||
player:setStorageValue(Storage.Quest.U7_6.ExplorerSociety.TheButterflyHunt, 13) | ||
player:setStorageValue(Storage.Quest.U7_6.ExplorerSociety.QuestLine, 13) | ||
toPosition:sendMagicEffect(CONST_ME_MAGIC_BLUE) | ||
item:transform(4865) | ||
target:remove() | ||
elseif target.itemid == 4991 and player:getStorageValue(Storage.Quest.U7_6.ExplorerSociety.TheButterflyHunt) == 15 and player:getStorageValue(Storage.Quest.U7_6.ExplorerSociety.QuestLine) == 15 then | ||
player:setStorageValue(Storage.Quest.U7_6.ExplorerSociety.TheButterflyHunt, 16) | ||
player:setStorageValue(Storage.Quest.U7_6.ExplorerSociety.QuestLine, 16) | ||
toPosition:sendMagicEffect(CONST_ME_MAGIC_BLUE) | ||
item:transform(4866) | ||
target:remove() | ||
end | ||
return true | ||
end | ||
|
||
explorerSocietyButterfly:id(4863) | ||
explorerSocietyButterfly:register() |
13 changes: 13 additions & 0 deletions
13
data-otxserver/scripts/quests/the_explorer_society/actions_dragon.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
local explorerSocietyDragon = Action() | ||
function explorerSocietyDragon.onUse(player, item, fromPosition, target, toPosition, isHotkey) | ||
if player:getStorageValue(Storage.Quest.U7_6.ExplorerSociety.TheIslandofDragons) == 57 and player:getStorageValue(Storage.Quest.U7_6.ExplorerSociety.QuestLine) == 57 then | ||
player:setStorageValue(Storage.Quest.U7_6.ExplorerSociety.TheIslandofDragons, 58) | ||
player:setStorageValue(Storage.Quest.U7_6.ExplorerSociety.QuestLine, 58) | ||
player:addItem(7314, 1) | ||
toPosition:sendMagicEffect(CONST_ME_MAGIC_BLUE) | ||
end | ||
return true | ||
end | ||
|
||
explorerSocietyDragon:uid(40042) | ||
explorerSocietyDragon:register() |
88 changes: 88 additions & 0 deletions
88
data-otxserver/scripts/quests/the_explorer_society/actions_findings.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
local UniqueTable = { | ||
-- Chests uniques | ||
[14029] = { | ||
-- Uzgod's Family Brooch | ||
rewardItemId = 4834, | ||
storageMission = Storage.Quest.U7_6.ExplorerSociety.JoiningTheExplorers, | ||
storageMissionValue = 3, | ||
storageQuestlineValue = 3, | ||
}, | ||
[14030] = { | ||
-- Wrinkled parchment | ||
rewardItemId = 173, | ||
storageMission = Storage.Quest.U7_6.ExplorerSociety.TheBonelordSecret, | ||
storageMissionValue = 31, | ||
storageQuestlineValue = 30, | ||
}, | ||
[14031] = { | ||
-- Strange powder | ||
rewardItemId = 13974, | ||
storageMission = Storage.Quest.U7_6.ExplorerSociety.TheOrcPowder, | ||
storageMissionValue = 34, | ||
storageQuestlineValue = 33, | ||
}, | ||
[14032] = { | ||
-- Elven poetry book | ||
rewardItemId = 4844, | ||
storageMission = Storage.Quest.U7_6.ExplorerSociety.TheElvenPoetry, | ||
storageMissionValue = 37, | ||
storageQuestlineValue = 36, | ||
}, | ||
[14033] = { | ||
-- Memory stone | ||
rewardItemId = 4841, | ||
storageMission = Storage.Quest.U7_6.ExplorerSociety.TheMemoryStone, | ||
storageMissionValue = 40, | ||
storageQuestlineValue = 39, | ||
}, | ||
[14034] = { | ||
-- Spectral dress | ||
rewardItemId = 4836, | ||
storageMission = Storage.Quest.U7_6.ExplorerSociety.TheSpectralDress, | ||
storageMissionValue = 49, | ||
storageQuestlineValue = 48, | ||
}, | ||
[14035] = { | ||
-- Damage logbook | ||
rewardItemId = 21378, | ||
storageMission = Storage.Quest.U7_6.ExplorerSociety.CalassaQuest, | ||
storageMissionValue = 2, | ||
storageQuestlineValue = 0, | ||
}, | ||
-- Others uniques | ||
[40041] = { | ||
-- Funeral urn | ||
rewardItemId = 4847, | ||
storageMission = Storage.Quest.U7_6.ExplorerSociety.TheLizardUrn, | ||
storageMissionValue = 28, | ||
storageQuestlineValue = 27, | ||
}, | ||
} | ||
|
||
local explorerSocietyFindings = Action() | ||
function explorerSocietyFindings.onUse(player, item, fromPosition, target, toPosition, isHotkey) | ||
local uniqueItem = UniqueTable[item.uid] | ||
if not uniqueItem then | ||
return true | ||
end | ||
if player:getStorageValue(item.uid) >= 1 then | ||
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "The " .. getItemName(uniqueItem.itemId) .. " is empty.") | ||
return true | ||
end | ||
if player:getStorageValue(uniqueItem.storageMission) ~= uniqueItem.storageMissionValue then | ||
player:addItem(uniqueItem.rewardItemId, 1) | ||
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have found a " .. getItemName(uniqueItem.rewardItemId) .. ".") | ||
player:setStorageValue(item.uid, 1) | ||
player:setStorageValue(uniqueItem.storageMission, uniqueItem.storageMissionValue) | ||
if uniqueItem.storageQuestlineValue > 0 then | ||
player:setStorageValue(Storage.Quest.U7_6.ExplorerSociety.QuestLine, uniqueItem.storageQuestlineValue) | ||
end | ||
return true | ||
end | ||
end | ||
|
||
for index, value in pairs(UniqueTable) do | ||
explorerSocietyFindings:uid(index) | ||
end | ||
|
||
explorerSocietyFindings:register() |
13 changes: 13 additions & 0 deletions
13
data-otxserver/scripts/quests/the_explorer_society/actions_icicle.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
local explorerSocietyIcicle = Action() | ||
function explorerSocietyIcicle.onUse(player, item, fromPosition, target, toPosition, isHotkey) | ||
if target.itemid == 4994 and player:getStorageValue(Storage.Quest.U7_6.ExplorerSociety.TheIceDelivery) == 6 and player:getStorageValue(Storage.Quest.U7_6.ExplorerSociety.QuestLine) == 6 then | ||
player:setStorageValue(Storage.Quest.U7_6.ExplorerSociety.TheIceDelivery, 7) | ||
player:setStorageValue(Storage.Quest.U7_6.ExplorerSociety.QuestLine, 7) | ||
player:addItem(4837, 1) | ||
toPosition:sendMagicEffect(CONST_ME_MAGIC_BLUE) | ||
end | ||
return true | ||
end | ||
|
||
explorerSocietyIcicle:id(4872) | ||
explorerSocietyIcicle:register() |
16 changes: 16 additions & 0 deletions
16
data-otxserver/scripts/quests/the_explorer_society/actions_resonance.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
local explorerSocietyResonance = Action() | ||
function explorerSocietyResonance.onUse(player, item, fromPosition, target, toPosition, isHotkey) | ||
if target.uid == 40043 then | ||
if player:getStorageValue(Storage.Quest.U7_6.ExplorerSociety.TheIceMusic) == 60 and player:getStorageValue(Storage.Quest.U7_6.ExplorerSociety.QuestLine) == 60 then | ||
player:setStorageValue(Storage.Quest.U7_6.ExplorerSociety.TheIceMusic, 61) | ||
player:setStorageValue(Storage.Quest.U7_6.ExplorerSociety.QuestLine, 61) | ||
toPosition:sendMagicEffect(CONST_ME_MAGIC_BLUE) | ||
item:transform(7315) | ||
player:say("You recorded the ice music.", TALKTYPE_MONSTER_SAY) | ||
end | ||
end | ||
return true | ||
end | ||
|
||
explorerSocietyResonance:id(7242) | ||
explorerSocietyResonance:register() |
26 changes: 26 additions & 0 deletions
26
data-otxserver/scripts/quests/the_explorer_society/actions_stone.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
local explorerSocietyStone = Action() | ||
function explorerSocietyStone.onUse(player, item, fromPosition, target, toPosition, isHotkey) | ||
if target.uid == 25018 and player:getStorageValue(Storage.Quest.U7_6.ExplorerSociety.TheSpectralStone) == 53 and player:getStorageValue(Storage.Quest.U7_6.ExplorerSociety.QuestLine) == 53 and player:getStorageValue(Storage.Quest.U7_6.ExplorerSociety.SpectralStone) == 1 then -- mission taken from Angus | ||
player:setStorageValue(Storage.Quest.U7_6.ExplorerSociety.TheSpectralStone, 54) | ||
player:setStorageValue(Storage.Quest.U7_6.ExplorerSociety.QuestLine, 54) | ||
toPosition:sendMagicEffect(CONST_ME_MAGIC_BLUE) | ||
elseif target.uid == 25019 and player:getStorageValue(Storage.Quest.U7_6.ExplorerSociety.TheSpectralStone) == 54 and player:getStorageValue(Storage.Quest.U7_6.ExplorerSociety.QuestLine) == 54 and player:getStorageValue(Storage.Quest.U7_6.ExplorerSociety.SpectralStone) == 1 then -- mission taken from Angus | ||
player:setStorageValue(Storage.Quest.U7_6.ExplorerSociety.TheSpectralStone, 55) | ||
player:setStorageValue(Storage.Quest.U7_6.ExplorerSociety.QuestLine, 55) | ||
player:removeItem(4840, 1) | ||
toPosition:sendMagicEffect(CONST_ME_MAGIC_BLUE) | ||
elseif target.uid == 25019 and player:getStorageValue(Storage.Quest.U7_6.ExplorerSociety.TheSpectralStone) == 53 and player:getStorageValue(Storage.Quest.U7_6.ExplorerSociety.QuestLine) == 53 and player:getStorageValue(Storage.Quest.U7_6.ExplorerSociety.SpectralStone) == 2 then -- mission taken from Mortimer | ||
player:setStorageValue(Storage.Quest.U7_6.ExplorerSociety.TheSpectralStone, 54) | ||
player:setStorageValue(Storage.Quest.U7_6.ExplorerSociety.QuestLine, 54) | ||
toPosition:sendMagicEffect(CONST_ME_MAGIC_BLUE) | ||
elseif target.uid == 25018 and player:getStorageValue(Storage.Quest.U7_6.ExplorerSociety.TheSpectralStone) == 54 and player:getStorageValue(Storage.Quest.U7_6.ExplorerSociety.QuestLine) == 54 and player:getStorageValue(Storage.Quest.U7_6.ExplorerSociety.SpectralStone) == 2 then -- mission taken from Mortimer | ||
player:setStorageValue(Storage.Quest.U7_6.ExplorerSociety.TheSpectralStone, 55) | ||
player:setStorageValue(Storage.Quest.U7_6.ExplorerSociety.QuestLine, 55) | ||
player:removeItem(4840, 1) | ||
toPosition:sendMagicEffect(CONST_ME_MAGIC_BLUE) | ||
end | ||
return true | ||
end | ||
|
||
explorerSocietyStone:id(4840) | ||
explorerSocietyStone:register() |
13 changes: 13 additions & 0 deletions
13
data-otxserver/scripts/quests/the_explorer_society/actions_tracing_paper.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
local explorerSocietyPaper = Action() | ||
function explorerSocietyPaper.onUse(player, item, fromPosition, target, toPosition, isHotkey) | ||
if target.itemid == 2199 and target.uid == 3010 and player:getStorageValue(Storage.Quest.U7_6.ExplorerSociety.TheRuneWritings) == 42 and player:getStorageValue(Storage.Quest.U7_6.ExplorerSociety.QuestLine) == 42 then | ||
player:setStorageValue(Storage.Quest.U7_6.ExplorerSociety.TheRuneWritings, 43) | ||
player:setStorageValue(Storage.Quest.U7_6.ExplorerSociety.QuestLine, 43) | ||
item:transform(4843) | ||
toPosition:sendMagicEffect(CONST_ME_MAGIC_BLUE) | ||
end | ||
return true | ||
end | ||
|
||
explorerSocietyPaper:id(4842) | ||
explorerSocietyPaper:register() |
25 changes: 25 additions & 0 deletions
25
data-otxserver/scripts/quests/the_explorer_society/movements_calassa.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
local calassa = MoveEvent() | ||
|
||
function calassa.onStepIn(creature, item, position, fromPosition) | ||
local player = creature:getPlayer() | ||
if not player then | ||
return true | ||
end | ||
|
||
local headItem = player:getSlotItem(CONST_SLOT_HEAD) | ||
if headItem and table.contains({ 5460, 11585, 13995 }, headItem.itemid) then | ||
player:teleportTo(Position(31914, 32713, 12)) | ||
player:getPosition():sendMagicEffect(CONST_ME_WATERSPLASH) | ||
player:getPosition():sendMagicEffect(CONST_ME_LOSEENERGY) | ||
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You enter the realm of Calassa.") | ||
else | ||
player:teleportTo(fromPosition) | ||
player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) | ||
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You must wear an underwater exploration helmet in order to dive.") | ||
end | ||
return true | ||
end | ||
|
||
calassa:type("stepin") | ||
calassa:aid(2070) | ||
calassa:register() |
Oops, something went wrong.