-
Notifications
You must be signed in to change notification settings - Fork 626
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-Authored-By: dallano <[email protected]>
- Loading branch information
1 parent
d8e00b9
commit e4bc2db
Showing
28 changed files
with
1,233 additions
and
143 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
55 changes: 55 additions & 0 deletions
55
scripts/battlefields/Cloister_of_Frost/waking_the_beast.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,55 @@ | ||
----------------------------------- | ||
-- Area: Cloister of Frost | ||
-- BCNM: Waking the Beast | ||
----------------------------------- | ||
local cloisterOfFrostID = zones[xi.zone.CLOISTER_OF_FROST] | ||
----------------------------------- | ||
|
||
local content = BattlefieldQuest:new({ | ||
zoneId = xi.zone.CLOISTER_OF_FROST, | ||
battlefieldId = xi.battlefield.id.WAKING_THE_BEAST_CLOISTER_OF_FROST, | ||
canLoseExp = false, | ||
maxPlayers = 18, | ||
timeLimit = utils.minutes(30), | ||
index = 3, | ||
entryNpc = 'IP_Entrance', | ||
exitNpc = 'Ice_Protocrystal', | ||
requiredKeyItems = { xi.ki.RAINBOW_RESONATOR }, | ||
|
||
questArea = xi.questLog.OTHER_AREAS, | ||
quest = xi.quest.id.otherAreas.WAKING_THE_BEAST, | ||
}) | ||
|
||
function content:onEventFinishWin(player, csid, option, npc) | ||
npcUtil.giveKeyItem(player, xi.ki.EYE_OF_FROST) | ||
end | ||
|
||
content.groups = | ||
{ | ||
{ | ||
mobs = { 'Shiva_Prime_WTB' }, | ||
allDeath = function(battlefield, mob) | ||
-- when avatar defeated then all elementals should also die | ||
for i = 1, 4 do | ||
local elemental = GetMobByID(mob:getID() + i) | ||
if elemental and elemental:isAlive() then | ||
elemental:setHP(0) | ||
end | ||
end | ||
|
||
battlefield:setStatus(xi.battlefield.status.WON) | ||
end, | ||
}, | ||
|
||
{ | ||
mobs = | ||
{ | ||
'Shiva_Prime_WTB', | ||
'Ice_Elemental', | ||
}, | ||
isParty = true, | ||
superlink = true, | ||
}, | ||
} | ||
|
||
return content:register() |
55 changes: 55 additions & 0 deletions
55
scripts/battlefields/Cloister_of_Gales/waking_the_beast.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,55 @@ | ||
----------------------------------- | ||
-- Area: Cloister of Gales | ||
-- BCNM: Waking the Beast | ||
----------------------------------- | ||
local cloisterOfGalesID = zones[xi.zone.CLOISTER_OF_GALES] | ||
----------------------------------- | ||
|
||
local content = BattlefieldQuest:new({ | ||
zoneId = xi.zone.CLOISTER_OF_GALES, | ||
battlefieldId = xi.battlefield.id.WAKING_THE_BEAST_CLOISTER_OF_GALES, | ||
canLoseExp = false, | ||
maxPlayers = 18, | ||
timeLimit = utils.minutes(30), | ||
index = 3, | ||
entryNpc = 'WP_Entrance', | ||
exitNpc = 'Wind_Protocrystal', | ||
requiredKeyItems = { xi.ki.RAINBOW_RESONATOR }, | ||
|
||
questArea = xi.questLog.OTHER_AREAS, | ||
quest = xi.quest.id.otherAreas.WAKING_THE_BEAST, | ||
}) | ||
|
||
function content:onEventFinishWin(player, csid, option, npc) | ||
npcUtil.giveKeyItem(player, xi.ki.EYE_OF_GALES) | ||
end | ||
|
||
content.groups = | ||
{ | ||
{ | ||
mobs = { 'Garuda_Prime_WTB' }, | ||
allDeath = function(battlefield, mob) | ||
-- when avatar defeated then all elementals should also die | ||
for i = 1, 4 do | ||
local elemental = GetMobByID(mob:getID() + i) | ||
if elemental and elemental:isAlive() then | ||
elemental:setHP(0) | ||
end | ||
end | ||
|
||
battlefield:setStatus(xi.battlefield.status.WON) | ||
end, | ||
}, | ||
|
||
{ | ||
mobs = | ||
{ | ||
'Garuda_Prime_WTB', | ||
'Air_Elemental', | ||
}, | ||
isParty = true, | ||
superlink = true, | ||
}, | ||
} | ||
|
||
return content:register() |
55 changes: 55 additions & 0 deletions
55
scripts/battlefields/Cloister_of_Storms/waking_the_beast.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,55 @@ | ||
----------------------------------- | ||
-- Area: Cloister of Storms | ||
-- BCNM: Waking the Beast | ||
----------------------------------- | ||
local cloisterOFStormsID = zones[xi.zone.CLOISTER_OF_STORMS] | ||
----------------------------------- | ||
|
||
local content = BattlefieldQuest:new({ | ||
zoneId = xi.zone.CLOISTER_OF_STORMS, | ||
battlefieldId = xi.battlefield.id.WAKING_THE_BEAST_CLOISTER_OF_STORMS, | ||
canLoseExp = false, | ||
maxPlayers = 18, | ||
timeLimit = utils.minutes(30), | ||
index = 3, | ||
entryNpc = 'LP_Entrance', | ||
exitNpc = 'Lightning_Protocrystal', | ||
requiredKeyItems = { xi.ki.RAINBOW_RESONATOR }, | ||
|
||
questArea = xi.questLog.OTHER_AREAS, | ||
quest = xi.quest.id.otherAreas.WAKING_THE_BEAST, | ||
}) | ||
|
||
function content:onEventFinishWin(player, csid, option, npc) | ||
npcUtil.giveKeyItem(player, xi.ki.EYE_OF_STORMS) | ||
end | ||
|
||
content.groups = | ||
{ | ||
{ | ||
mobs = { 'Ramuh_Prime_WTB' }, | ||
allDeath = function(battlefield, mob) | ||
-- when avatar defeated then all elementals should also die | ||
for i = 1, 4 do | ||
local elemental = GetMobByID(mob:getID() + i) | ||
if elemental and elemental:isAlive() then | ||
elemental:setHP(0) | ||
end | ||
end | ||
|
||
battlefield:setStatus(xi.battlefield.status.WON) | ||
end, | ||
}, | ||
|
||
{ | ||
mobs = | ||
{ | ||
'Ramuh_Prime_WTB', | ||
'Thunder_Elemental', | ||
}, | ||
isParty = true, | ||
superlink = true, | ||
}, | ||
} | ||
|
||
return content:register() |
55 changes: 55 additions & 0 deletions
55
scripts/battlefields/Cloister_of_Tides/waking_the_beast.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,55 @@ | ||
----------------------------------- | ||
-- Area: Cloister of Tides | ||
-- BCNM: Waking the Beast | ||
----------------------------------- | ||
local cloisterOFTidesID = zones[xi.zone.CLOISTER_OF_TIDES] | ||
----------------------------------- | ||
|
||
local content = BattlefieldQuest:new({ | ||
zoneId = xi.zone.CLOISTER_OF_TIDES, | ||
battlefieldId = xi.battlefield.id.WAKING_THE_BEAST_CLOISTER_OF_TIDES, | ||
canLoseExp = false, | ||
maxPlayers = 18, | ||
timeLimit = utils.minutes(30), | ||
index = 2, | ||
entryNpc = 'WP_Entrance', | ||
exitNpc = 'Water_Protocrystal', | ||
requiredKeyItems = { xi.ki.RAINBOW_RESONATOR }, | ||
|
||
questArea = xi.questLog.OTHER_AREAS, | ||
quest = xi.quest.id.otherAreas.WAKING_THE_BEAST, | ||
}) | ||
|
||
function content:onEventFinishWin(player, csid, option, npc) | ||
npcUtil.giveKeyItem(player, xi.ki.EYE_OF_TIDES) | ||
end | ||
|
||
content.groups = | ||
{ | ||
{ | ||
mobs = { 'Leviathan_Prime_WTB' }, | ||
allDeath = function(battlefield, mob) | ||
-- when avatar defeated then all elementals should also die | ||
for i = 1, 4 do | ||
local elemental = GetMobByID(mob:getID() + i) | ||
if elemental and elemental:isAlive() then | ||
elemental:setHP(0) | ||
end | ||
end | ||
|
||
battlefield:setStatus(xi.battlefield.status.WON) | ||
end, | ||
}, | ||
|
||
{ | ||
mobs = | ||
{ | ||
'Leviathan_Prime_WTB', | ||
'Water_Elemental', | ||
}, | ||
isParty = true, | ||
superlink = true, | ||
}, | ||
} | ||
|
||
return content:register() |
55 changes: 55 additions & 0 deletions
55
scripts/battlefields/Cloister_of_Tremors/waking_the_beast.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,55 @@ | ||
----------------------------------- | ||
-- Area: Cloister of Tremors | ||
-- BCNM: Waking the Beast | ||
----------------------------------- | ||
local cloisterOFTremorsID = zones[xi.zone.CLOISTER_OF_TREMORS] | ||
----------------------------------- | ||
|
||
local content = BattlefieldQuest:new({ | ||
zoneId = xi.zone.CLOISTER_OF_TREMORS, | ||
battlefieldId = xi.battlefield.id.WAKING_THE_BEAST_CLOISTER_OF_TREMORS, | ||
canLoseExp = false, | ||
maxPlayers = 18, | ||
timeLimit = utils.minutes(30), | ||
index = 3, | ||
entryNpc = 'EP_Entrance', | ||
exitNpc = 'Earth_Protocrystal', | ||
requiredKeyItems = { xi.ki.RAINBOW_RESONATOR }, | ||
|
||
questArea = xi.questLog.OTHER_AREAS, | ||
quest = xi.quest.id.otherAreas.WAKING_THE_BEAST, | ||
}) | ||
|
||
function content:onEventFinishWin(player, csid, option, npc) | ||
npcUtil.giveKeyItem(player, xi.ki.EYE_OF_TREMORS) | ||
end | ||
|
||
content.groups = | ||
{ | ||
{ | ||
mobs = { 'Titan_Prime_WTB' }, | ||
allDeath = function(battlefield, mob) | ||
-- when avatar defeated then all elementals should also die | ||
for i = 1, 4 do | ||
local elemental = GetMobByID(mob:getID() + i) | ||
if elemental and elemental:isAlive() then | ||
elemental:setHP(0) | ||
end | ||
end | ||
|
||
battlefield:setStatus(xi.battlefield.status.WON) | ||
end, | ||
}, | ||
|
||
{ | ||
mobs = | ||
{ | ||
'Titan_Prime_WTB', | ||
'Earth_Elemental', | ||
}, | ||
isParty = true, | ||
superlink = true, | ||
}, | ||
} | ||
|
||
return content:register() |
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.