Instance Mode Expansion
As of 32c829d, rAthena now supports more instance modes!
Suggested by the community instance now support three new modes: No player attached, single character attached, and guild attached!
Notable changes:
New instance modes: IM_NONE, IM_CHAR, IM_GUILD (with IM_PARTY as default)Restructured instance_create("<instance name>"{,<instance mode>{,<owner ID>}}); to accept the new modes while keeping backwards support!
The instance_db now includes the timeout time to allow easy customization for each instance.
The instance_db now reads EnterMap as Map1 to remove redundancy.
Instance maps are now stored in a dynamic array to conserve memory. Now supports up to 255 maps!
Instances are now destroyed if the owner cannot be found.
Added script command instance_check_guild(<guild id>{,<amount>{,<min>{,<max>}}}); which works the same as instance_check_party.
Adjusted script command instance_announce to check when instance ID is 0 rather than -1 since instance IDs are stored as unsigned now.