-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1264 from rathena/feature/instance_expansion
Expanded the instance system to support new modes * New modes include: No player attached, single player, and guild. * Modified the instance_db to allow instance idle time to be adjustable. * Removed Map1 from the instance_db as the EnterMap is always the same value. * Adjusted the stored maps of instances to dynamic arrays to conserve memory. - Max amount of possible maps increased to 255. * Instances will now be destroyed even if the owner cannot be found. * Corrected the return value when entering an instance when a character, party, or guild does not have an instance. * Expanded script command instance_create to take in an owner ID and an optional mode. * Added a new script command instance_check_guild (works the same as instance_check_party). * Corrected a few script commands to properly stop the script engine on failures for instance script commands. * Removed the instance name lookup for when entering an instance as instance_id is now passed. - Adjusted script command instance_enter to no longer require the instance name. * Cleaned up script command instance_warpall. * Adjusted script command instance_announce to check when instance ID is 0 rather than -1 since instance IDs are stored as unsigned now. * Refactored all instance_id to unsigned short. * Updated documentation to reflect changes.
- Loading branch information
Showing
32 changed files
with
819 additions
and
381 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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
// Instance Database | ||
// | ||
// Structure of Database: | ||
// ID,Name,LimitTime,EnterMap,EnterX,EnterY,Map1,Map2,Map3,Map4,Map5,Map6,Map7,Map8 | ||
|
||
// ID,Name,LimitTime,IdleTimeOut,EnterMap,EnterX,EnterY,Map2,Map3,...,Map255 | ||
// | ||
// EnterMap is considered as Map1 |
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,9 +1,11 @@ | ||
// Instance Database | ||
// | ||
// Structure of Database: | ||
// ID,Name,LimitTime,EnterMap,EnterX,EnterY,Map1,Map2,Map3,Map4,Map5,Map6,Map7,Map8 | ||
// ID,Name,LimitTime,IdleTimeOut,EnterMap,EnterX,EnterY,Map2,Map3,...,Map255 | ||
// | ||
// EnterMap is considered as Map1 | ||
|
||
1,Endless Tower,14400,1@tower,50,355,1@tower,2@tower,3@tower,4@tower,5@tower,6@tower | ||
2,Sealed Catacomb,7200,1@cata,100,224,1@cata,2@cata | ||
3,Orc's Memory,3600,1@orcs,179,15,1@orcs,2@orcs | ||
4,Nidhoggur's Nest,14400,1@nyd,32,36,1@nyd,2@nyd | ||
1,Endless Tower,14400,300,1@tower,50,355,2@tower,3@tower,4@tower,5@tower,6@tower | ||
2,Sealed Catacomb,7200,300,1@cata,100,224,2@cata | ||
3,Orc's Memory,3600,300,1@orcs,179,15,2@orcs | ||
4,Nidhoggur's Nest,14400,300,1@nyd,32,36,2@nyd |
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,18 +1,20 @@ | ||
// Instance Database | ||
// | ||
// Structure of Database: | ||
// ID,Name,LimitTime,EnterMap,EnterX,EnterY,Map1,Map2,Map3,Map4,Map5,Map6,Map7,Map8 | ||
// ID,Name,LimitTime,IdleTimeOut,EnterMap,EnterX,EnterY,Map2,...,Map255 | ||
// | ||
// EnterMap is considered as Map1 | ||
|
||
1,Endless Tower,14400,1@tower,50,355,1@tower,2@tower,3@tower,4@tower,5@tower,6@tower | ||
2,Sealed Catacomb,7200,1@cata,100,224,1@cata,2@cata | ||
3,Orc's Memory,3600,1@orcs,179,15,1@orcs,2@orcs | ||
4,Nidhoggur's Nest,14400,1@nyd,32,36,1@nyd,2@nyd | ||
5,Mistwood Maze,7200,1@mist,89,29,1@mist | ||
6,Culvert,3600,1@pump,63,98,1@pump,2@pump | ||
7,Octopus Cave,3600,1@cash,199,99,1@cash | ||
8,Bangungot Hospital 2F,3600,1@ma_h,40,157,1@ma_h | ||
9,Buwaya Cave,3600,1@ma_c,35,57,1@ma_c | ||
10,Bakonawa Lake,7200,1@ma_b,64,51,1@ma_b | ||
11,Wolfchev's Laboratory,14400,1@lhz,45,148,1@lhz | ||
12,Old Glast Heim,3600,1@gl_k,150,20,1@gl_k,2@gl_k | ||
13,Eclage Interior,1200,1@ecl,60,50,1@ecl | ||
1,Endless Tower,14400,300,1@tower,50,355,2@tower,3@tower,4@tower,5@tower,6@tower | ||
2,Sealed Catacomb,7200,300,1@cata,100,224,2@cata | ||
3,Orc's Memory,3600,300,1@orcs,179,15,2@orcs | ||
4,Nidhoggur's Nest,14400,300,1@nyd,32,36,2@nyd | ||
5,Mistwood Maze,7200,300,1@mist,89,29 | ||
6,Culvert,3600,300,1@pump,63,98,2@pump | ||
7,Octopus Cave,3600,300,1@cash,199,99 | ||
8,Bangungot Hospital 2F,3600,300,1@ma_h,40,157 | ||
9,Buwaya Cave,3600,300,1@ma_c,35,57 | ||
10,Bakonawa Lake,7200,300,1@ma_b,64,51 | ||
11,Wolfchev's Laboratory,14400,300,1@lhz,45,148 | ||
12,Old Glast Heim,3600,300,1@gl_k,150,20,2@gl_k | ||
13,Eclage Interior,1200,300,1@ecl,60,50 |
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
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
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.
32c829d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aleos89 this is the instance don't attach any charid right?
32c829d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please read the header :
* New modes include: No player attached, single player, and guild.
:D
32c829d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well, now....
entering instance must be in same NPC where the instance created. /hmm
how if the NPC is reloaded?
and then next, we need adjust party to make it not broken if the leader is leaving (official behavior), so even party member are scammed by party leader, they still can continue the instance. xD
32c829d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cydh that only applies to IM_NONE mode tho. please correct me if i'm wrong.
32c829d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
//English
Hello guys! Testing instantiates Old Glast Heim , I realized that to undo the group the map-server closes alone, someone is going through it ?
Img: http://prntscr.com/bbb3lr
//Português
Olá pessoal! Testando a instancia Old Glast Heim, percebi que ao desfazer o grupo o map-server fecha sozinho, alguém está passando por isso?
Img: http://prntscr.com/bbb3lr