Jump to content
  • 0

Gravity Change Memorial/Instance Maps


Ziu

Question


  • Group:  Members
  • Topic Count:  177
  • Topics Per Day:  0.04
  • Content Count:  909
  • Reputation:   247
  • Joined:  11/08/11
  • Last Seen:  

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 Ziu
Link to comment
Share on other sites

9 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   219
  • Joined:  11/22/11
  • Last Seen:  

1@tnm1, 1@tnm2, 1@tnm3

.@i + "@tnm1"

who is variable? this '1@' or this 'm1'?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  177
  • Topics Per Day:  0.04
  • Content Count:  909
  • Reputation:   247
  • Joined:  11/08/11
  • Last Seen:  

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)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   219
  • Joined:  11/22/11
  • Last Seen:  

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 by goddameit
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  177
  • Topics Per Day:  0.04
  • Content Count:  909
  • Reputation:   247
  • Joined:  11/08/11
  • Last Seen:  

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 by Ziu
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   219
  • Joined:  11/22/11
  • Last Seen:  

...

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 by goddameit
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  177
  • Topics Per Day:  0.04
  • Content Count:  909
  • Reputation:   247
  • Joined:  11/08/11
  • Last Seen:  

mismainstance.jpg

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 by Ziu
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   219
  • Joined:  11/22/11
  • Last Seen:  

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 by goddameit
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

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;
       }

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  177
  • Topics Per Day:  0.04
  • Content Count:  909
  • Reputation:   247
  • Joined:  11/08/11
  • Last Seen:  

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...

cleanmapserver.jpg

any suggestions?

664999_480847448621681_399130371_o.jpg?dl=1

works fine...

please close topic... and thanks for all

Edited by Ziu
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...