Ziu Posted October 30, 2012 Group: Members Topic Count: 178 Topics Per Day: 0.04 Content Count: 909 Reputation: 247 Joined: 11/08/11 Last Seen: Wednesday at 10:10 AM Share Posted October 30, 2012 (edited) Problem: New Memorial/Instance Maps: normaly when create instances/memorial gravity use same map, and change number. for example: 1@nyd,2@nyd (same instance) but now change maps.. 1@tnm1, 1@tnm2, 1@tnm3 (same instance). when you create script... the base instance for example: for( set .@i, 1; .@i <= 2; set .@i, .@i + 1 ) { if( instance_attachmap(.@i + "@nyd", .@instance) == "" ) break; @i <= 2 = 2 maps but attach only (@nyd)... increase x@... now change @tnm2,@tnm3.. the instance_attachmap doesn't work. two solutions: rename maps 1@tnm1, 1@tnm2, 1@tnm3 for example 1@tnm,2@tnm,3@tnm using BrowEdit...maintaining the same name or 1@tnm1,2@tnm1,[email protected] etc.. or launch for( set .@i, 1; .@i <= 1; set .@i, .@i + 1 ) { if( instance_attachmap(.@i + "@tnm1", .@instance) == "" ) ///////////////////// if( instance_attachmap(.@i + "@tnm2", .@instance) == "" ) /////////////// various instance_attachmap in the same script..... any suggestions? Edited October 30, 2012 by Ziu Quote Link to comment Share on other sites More sharing options...
goddameit Posted October 30, 2012 Group: Members Topic Count: 60 Topics Per Day: 0.01 Content Count: 562 Reputation: 219 Joined: 11/22/11 Last Seen: August 3, 2024 Share Posted October 30, 2012 1@tnm1, 1@tnm2, 1@tnm3 .@i + "@tnm1" who is variable? this '1@' or this 'm1'? Quote Link to comment Share on other sites More sharing options...
Ziu Posted October 30, 2012 Group: Members Topic Count: 178 Topics Per Day: 0.04 Content Count: 909 Reputation: 247 Joined: 11/08/11 Last Seen: Wednesday at 10:10 AM Author Share Posted October 30, 2012 1@tnm1, 1@tnm2, 1@tnm3 .@i + "@tnm1" who is variable? this '1@' or this 'm1'? now change @tnm1....remember that when create instance create a temporary maps... 001@blabla 002@blabla... now need create 001@tnm1 001@tnm2 001@tnm3 (same instance) (change @tnmx) Quote Link to comment Share on other sites More sharing options...
goddameit Posted October 30, 2012 Group: Members Topic Count: 60 Topics Per Day: 0.01 Content Count: 562 Reputation: 219 Joined: 11/22/11 Last Seen: August 3, 2024 Share Posted October 30, 2012 (edited) 1@tnm1, 1@tnm2, 1@tnm3 .@i + "@tnm1" who is variable? this '1@' or this 'm1'? now change @tnm1....remember that when create instance create a temporary maps... 001@blabla 002@blabla... now need create 001@tnm1 001@tnm2 001@tnm3 (same instance) (change @tnmx) if your map name is '@tnm1' then it can't it must be '(1~9)+@tnm1'. if is 1@tnm1, 1@tnm2, 1@tnm3 (same instance). means variable is 'm+(1~???)' then it can't it must be <instance id>+map name so which is you want? Edited October 30, 2012 by goddameit 1 Quote Link to comment Share on other sites More sharing options...
Ziu Posted October 30, 2012 Group: Members Topic Count: 178 Topics Per Day: 0.04 Content Count: 909 Reputation: 247 Joined: 11/08/11 Last Seen: Wednesday at 10:10 AM Author Share Posted October 30, 2012 (edited) 1@tnm1, 1@tnm2, 1@tnm3 .@i + "@tnm1" who is variable? this '1@' or this 'm1'? now change @tnm1....remember that when create instance create a temporary maps... 001@blabla 002@blabla... now need create 001@tnm1 001@tnm2 001@tnm3 (same instance) (change @tnmx) You don't need to tell me how Instance system work, I had used a lot of times. if your map name is '@tnm1' then it can't it must be 'n(1~9)@tnm1' I know, hence I'm asking it.... this maps are used for devil's tower instance (heroes trails -II) Edited October 30, 2012 by Ziu Quote Link to comment Share on other sites More sharing options...
goddameit Posted October 30, 2012 Group: Members Topic Count: 60 Topics Per Day: 0.01 Content Count: 562 Reputation: 219 Joined: 11/22/11 Last Seen: August 3, 2024 Share Posted October 30, 2012 (edited) ... I know, hence I'm asking it.... this maps are used for devil's tower instance (heroes trails -II) so what is your problem? (sorry, I don't get it.) Edited October 30, 2012 by goddameit Quote Link to comment Share on other sites More sharing options...
Ziu Posted October 30, 2012 Group: Members Topic Count: 178 Topics Per Day: 0.04 Content Count: 909 Reputation: 247 Joined: 11/08/11 Last Seen: Wednesday at 10:10 AM Author Share Posted October 30, 2012 (edited) same instance 0oa1@ but other maps tnm1/tnm2/tnm3 normal commands instance can't change the name of map hence 1@nyd, 2@nyd (nyd the same), now change @(namemap) Edited October 30, 2012 by Ziu Quote Link to comment Share on other sites More sharing options...
goddameit Posted October 30, 2012 Group: Members Topic Count: 60 Topics Per Day: 0.01 Content Count: 562 Reputation: 219 Joined: 11/22/11 Last Seen: August 3, 2024 Share Posted October 30, 2012 (edited) same instance 0oa1@ but other maps tnm1/tnm2/tnm3 normal commands instance can't change the name of map hence 1@nyd, 2@nyd (nyd the same), now change @(namemap) so you want to change to be 1. n@name+<insatnce id> 2. <insatnce id>+n@name 3. <insatnce id>+n@name+<variable>(by Annie point) which? Edited October 30, 2012 by goddameit Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted October 30, 2012 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted October 30, 2012 yeah me and goddameit has alot experienced in writing instanced scripts I thought as long as the instance 1st 2 characters is <a number> and '@' this symbol, then it will work however, 1@tnm1 ~ 1@tnm3 is official KRO maps ? or is that just some of your custom map ? this is official rathena endless tower script used for( set .@i, 1; .@i <= 6; set .@i, .@i + 1 ) { if( instance_attachmap(.@i + "@tower", .@instance) == "" ) { mes "^0000ff"+.@md_name$+" ^000000- Reservation Failed!"; instance_destroy(.@instance); close; } since your map name changes on your last character, just do it like this for( set .@i, 1; .@i <= 3; set .@i, .@i + 1 ) { if( instance_attachmap( "1@tnm"+ .@i, .@instance) == "" ) { mes "^0000ff"+.@md_name$+" ^000000- Reservation Failed!"; instance_destroy(.@instance); close; } 1 Quote Link to comment Share on other sites More sharing options...
Ziu Posted October 30, 2012 Group: Members Topic Count: 178 Topics Per Day: 0.04 Content Count: 909 Reputation: 247 Joined: 11/08/11 Last Seen: Wednesday at 10:10 AM Author Share Posted October 30, 2012 (edited) or launch for( set .@i, 1; .@i <= 1; set .@i, .@i + 1 ) { if( instance_attachmap(.@i + "@tnm1", .@instance) == "" ) ///////////////////// if( instance_attachmap(.@i + "@tnm2", .@instance) == "" ) /////////////// official kRO maps. and already solved.. using various instance_attachmap in the same script.... mapserver clean... any suggestions? works fine... please close topic... and thanks for all Edited October 30, 2012 by Ziu Quote Link to comment Share on other sites More sharing options...
Question
Ziu
Problem:
New Memorial/Instance Maps:
normaly when create instances/memorial gravity use same map, and change number. for example:
1@nyd,2@nyd (same instance)
but now change maps..
1@tnm1, 1@tnm2, 1@tnm3 (same instance).
when you create script... the base instance for example:
for( set .@i, 1; .@i <= 2; set .@i, .@i + 1 ) {
if( instance_attachmap(.@i + "@nyd", .@instance) == "" )
break;
@i <= 2 = 2 maps but attach only (@nyd)... increase x@...
now change @tnm2,@tnm3.. the instance_attachmap doesn't work.
two solutions:
rename maps
1@tnm1, 1@tnm2, 1@tnm3 for example 1@tnm,2@tnm,3@tnm using BrowEdit...maintaining the same name or 1@tnm1,2@tnm1,[email protected] etc..
or launch
for( set .@i, 1; .@i <= 1; set .@i, .@i + 1 ) {
if( instance_attachmap(.@i + "@tnm1", .@instance) == "" )
/////////////////////
if( instance_attachmap(.@i + "@tnm2", .@instance) == "" )
///////////////
various instance_attachmap in the same script.....
any suggestions?
Edited by ZiuLink to comment
Share on other sites
9 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.