New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow creating instance without timer or data #5112
Allow creating instance without timer or data #5112
Conversation
Allow creating instance with no timer no npcs and no mapflag this could work as a map duplucation at the same time we can use instance commands to interact with the maps fix an issue where trying to enter a non existing instance map with id provided. Co-Authored-By: Atemo <atemo@users.noreply.github.com>
Co-Authored-By: Atemo <atemo@users.noreply.github.com>
Co-Authored-By: Atemo <atemo@users.noreply.github.com>
@Atemo sorry I moved the PR |
Co-Authored-By: Atemo <atemo@users.noreply.github.com>
…duplication_instance_system
Co-Authored-By: Atemo <atemo@users.noreply.github.com>
Co-Authored-By: Atemo <atemo@users.noreply.github.com>
|
if NoNPC has true , so how to make NPC inside instance ? |
|
@attackjom the idea is maybe later we could pr create npc commands into rathena Branch Room - Id: 50
Name: Branch Room
TimeLimit: 21600
IdleTimeOut: 3600
NoNpc: true
NoMapFlag: true
Enter:
Map: guild_vs2
X: 50
Y: 50(the script's mes is mostly not in English! , however you can see what happening by checking the script) this way we can use the same map for different systems without interfering with each other , and without effecting the original map. |
…duplication_instance_system
Co-authored-by: Atemo <Atemo@users.noreply.github.com>
Co-authored-by: Atemo <Atemo@users.noreply.github.com>
Co-authored-by: Atemo <Atemo@users.noreply.github.com>
Co-authored-by: Atemo <Atemo@users.noreply.github.com>
Co-authored-by: Atemo <Atemo@users.noreply.github.com>
Co-authored-by: Atemo <Atemo@users.noreply.github.com>
Co-authored-by: Atemo <Atemo@users.noreply.github.com>
This reverts commit 1018263.
remove un-needed exception instance_list command now can accept one argument the map name , the mode is optional, if the mode is not provided all the maps with that src regardless of the mode will return their ids instance_db.yml version is 2 now Co-Authored-By: Lemongrass3110 <3517879+Lemongrass3110@users.noreply.github.com>
Allow minimum version 1 in the instance_db.yml Co-Authored-By: Lemongrass3110 <3517879+Lemongrass3110@users.noreply.github.com>
Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
|
@Atemo from my side its fine. For my side you can decide when or if we want to merge it. :) |
Co-authored-by: Aleos <aleos89@users.noreply.github.com>
Co-authored-by: Aleos <aleos89@users.noreply.github.com>
Co-authored-by: Aleos <aleos89@users.noreply.github.com>
Co-authored-by: Aleos <aleos89@users.noreply.github.com>
Co-authored-by: Aleos <aleos89@users.noreply.github.com>
Co-authored-by: Aleos <aleos89@users.noreply.github.com>
Co-authored-by: Aleos <aleos89@users.noreply.github.com>
Co-authored-by: Aleos <aleos89@users.noreply.github.com>
Co-authored-by: Aleos <aleos89@users.noreply.github.com>
|
there is one thing that I keep thinking about for this PR where "No Data" is false by default , if true there would be no npcs/mapflags in the instance. |
|
imo the NoNpc and NoMapFlag should be in the db, it's not something you want to change from an instance to another |
|
Thanks! |
|
question, if the instance last forever, does it still restricted by this limit? if normal instance also sharing this limit, and if the server owner didn't control the amount of instances they created, all instance in game could be affected, all instance will be end up in queue i guess? |
|
Yes that limit is still applicable. The source in rAthena is setup to start back over with using the map ID once it reaches the cap. As long as the instance is destroyed at some point, or usage of party/guild requirements to start infinite duration instances, it should be able to support a good amount. |
this expansion to #4914
instead of using a new command script like the previous pull request
now it uses the instance system
adding 2 new setting for the instance db
NoNpcwill prevent coping the npcs from the source map to the instance map (Default: false)NoMapFlagwill prevent coping the mapflags from the source map to the instance map (Default: false)Edit 2 setting for the instance db
TimeLimitandIdleTimeOutnow accept 0 as a valid time , which mean the time would be infinite.a new command script
*instance_list(<instance mode>,<"map name">);with the new command script , you can get the live instances ids that have the map passed to
the new command , with the mode passed.
not really related but it's in the PR: (maybe create a separated pr for it ?)
fix an issue where if the instance id is provided and the instance not exist , the map server will crash.
Examples:
instances_db for test
Npcs:
a last example , a pvp leader with this new system
pvp_leader.txt
TODO: make a script command to insert new instances to the database temporarily