-
Notifications
You must be signed in to change notification settings - Fork 627
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
20 changed files
with
384 additions
and
73 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
local commandObj = {} | ||
|
||
commandObj.cmdprops = | ||
{ | ||
permission = 1, | ||
parameters = '' | ||
} | ||
|
||
commandObj.onTrigger = function(player) | ||
if player:getCharVar('MONSTROSITY_START') == 1 then | ||
player:setCharVar('MONSTROSITY_START', 0) | ||
else | ||
player:setCharVar('MONSTROSITY_START', 1) | ||
end | ||
|
||
player:setPos(player:getXPos(), player:getYPos(), player:getZPos(), player:getRotPos(), player:getZoneID()) | ||
end | ||
|
||
return commandObj |
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,68 @@ | ||
----------------------------------- | ||
-- Monstrosity | ||
----------------------------------- | ||
require('scripts/globals/npc_util') | ||
require('scripts/globals/quests') | ||
----------------------------------- | ||
xi = xi or {} | ||
xi.monstrosity = xi.monstrosity or {} | ||
|
||
----------------------------------- | ||
-- Odyssean Passage | ||
----------------------------------- | ||
|
||
xi.monstrosity.odysseanPassageOnTrigger = function(player, npc) | ||
-- TODO: Handle xi.settings.main.ENABLE_MONSTROSITY | ||
|
||
-- TODO: If passage in the overworld, do logic X | ||
local isMonstrosityUnlocked = player:hasKeyItem(xi.keyItem.RING_OF_SUPERNAL_DISJUNCTION) | ||
if isMonstrosityUnlocked then | ||
player:startEvent(883) | ||
end | ||
|
||
-- TODO: If passage in Feretory, do logic Y | ||
-- In Feretory: Event 5 (0, 0, 0, 0, 0, 0, 0, 0) | ||
end | ||
|
||
----------------------------------- | ||
-- Feretory | ||
----------------------------------- | ||
|
||
xi.monstrosity.feretoryOnZoneIn = function(player, prevZone) | ||
-- TODO: Handle xi.settings.main.ENABLE_MONSTROSITY | ||
|
||
-- TODO: Rabbit, Mandy, and Lizard are all unlocked to begin with, but you | ||
-- : start as whatever matching item you traded | ||
|
||
local cs = -1 | ||
|
||
player:setPos(-358.000, -3.400, -440.00, 63) | ||
|
||
return cs | ||
end | ||
|
||
xi.monstrosity.feretoryOnEventUpdate = function(player, csid, option, npc) | ||
end | ||
|
||
xi.monstrosity.feretoryOnEventFinish = function(player, csid, option, npc) | ||
end | ||
|
||
----------------------------------- | ||
-- Aengus (Feretory NPC) | ||
----------------------------------- | ||
-- Event 13 (As Lizard: 0, 0, 2, 0, 2, 90, 0, 0) | ||
|
||
----------------------------------- | ||
-- Teyrnon (Feretory NPC) | ||
----------------------------------- | ||
-- Event 7 (As Lizard: 0, 0, 0, 0, 0, 0, 0, 0) | ||
|
||
----------------------------------- | ||
-- Maccus (Feretory NPC) | ||
----------------------------------- | ||
-- Event 9 (As Lizard: 285, 2, 2, 0, 0, 0, 0, 0) | ||
|
||
----------------------------------- | ||
-- Suibhne (Feretory NPC) | ||
----------------------------------- | ||
-- Event 11 (As Lizard: 1, 1, 0, 0, 0, 0, 0, 0) |
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,103 @@ | ||
----------------------------------- | ||
-- Unlocking Monstrosity | ||
----------------------------------- | ||
|
||
local quest = HiddenQuest:new('MonstrosityUnlock') | ||
|
||
-- TODO: Handle xi.settings.main.ENABLE_MONSTROSITY | ||
-- TODO: Hide completion behind a UniqueEvent flag | ||
|
||
quest.sections = | ||
{ | ||
-- Intro chatter | ||
{ | ||
check = function(player, questVars, vars) | ||
return quest:getVar(player, 'Prog') == 0 | ||
end, | ||
|
||
[xi.zone.PASHHOW_MARSHLANDS] = | ||
{ | ||
['Suspicious_Hume'] = | ||
{ | ||
onTrigger = function(player, npc) | ||
return quest:progressEvent(40) | ||
end, | ||
}, | ||
|
||
onEventFinish = | ||
{ | ||
[40] = function(player, csid, option, npc) | ||
if option == 0 then | ||
quest:setVar(player, 'Prog', 1) | ||
end | ||
end, | ||
}, | ||
}, | ||
}, | ||
|
||
-- Reminder | ||
{ | ||
check = function(player, questVars, vars) | ||
return quest:getVar(player, 'Prog') == 1 | ||
end, | ||
|
||
[xi.zone.PASHHOW_MARSHLANDS] = | ||
{ | ||
['Suspicious_Hume'] = | ||
{ | ||
onTrigger = function(player, npc) | ||
return quest:progressEvent(41) | ||
end, | ||
}, | ||
}, | ||
|
||
[xi.zone.PORT_WINDURST] = | ||
{ | ||
['Suspicious_Tarutaru'] = | ||
{ | ||
onTrade = function(player, npc, trade) | ||
if | ||
npcUtil.tradeHasExactly(trade, xi.item.LIZARD_TAIL) | ||
then | ||
return quest:progressEvent(881, 926, 0, 0, 0, 0, 0, 0, 4) | ||
end | ||
end, | ||
|
||
-- Reminder | ||
onTrigger = function (player, npc) | ||
return quest:progressEvent(880) | ||
end, | ||
}, | ||
|
||
onEventFinish = | ||
{ | ||
[881] = function(player, csid, option, npc) | ||
if option == 0 then | ||
quest:setVar(player, 'Prog', 2) | ||
npcUtil.giveKeyItem(player, xi.ki.RING_OF_SUPERNAL_DISJUNCTION) | ||
end | ||
end, | ||
}, | ||
}, | ||
}, | ||
|
||
-- Intro chatter | ||
{ | ||
check = function(player, questVars, vars) | ||
return quest:getVar(player, 'Prog') == 2 | ||
end, | ||
|
||
[xi.zone.PORT_WINDURST] = | ||
{ | ||
['Suspicious_Tarutaru'] = | ||
{ | ||
-- Reminder | ||
onTrigger = function (player, npc) | ||
return quest:progressEvent(882) | ||
end, | ||
}, | ||
}, | ||
}, | ||
} | ||
|
||
return quest |
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 |
---|---|---|
@@ -1,26 +1,28 @@ | ||
----------------------------------- | ||
-- Zone: Feretory | ||
----------------------------------- | ||
require('scripts/globals/monstrosity') | ||
----------------------------------- | ||
local zoneObject = {} | ||
|
||
zoneObject.onInitialize = function(zone) | ||
-- Unused | ||
end | ||
|
||
zoneObject.onZoneIn = function(player, prevZone) | ||
local cs = -1 | ||
|
||
player:setPos(-358.000, -3.400, -440.00, 63) | ||
|
||
return cs | ||
return xi.monstrosity.feretoryOnZoneIn(player, prevZone) | ||
end | ||
|
||
zoneObject.onTriggerAreaEnter = function(player, triggerArea) | ||
-- Unused | ||
end | ||
|
||
zoneObject.onEventUpdate = function(player, csid, option, npc) | ||
xi.monstrosity.feretoryOnEventUpdate(player, csid, option, npc) | ||
end | ||
|
||
zoneObject.onEventFinish = function(player, csid, option, npc) | ||
xi.monstrosity.feretoryOnEventFinish(player, csid, option, npc) | ||
end | ||
|
||
return zoneObject |
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
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
Oops, something went wrong.