Jump to content
  • 0

Gravity Change Memorial/Instance Maps


Question

Posted (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 by Ziu

9 answers to this question

Recommended Posts

Posted

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)

Posted (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 by goddameit
  • Upvote 1
Posted (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 by Ziu
Posted (edited)

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
Posted (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 by goddameit
Posted

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

cleanmapserver.jpg

any suggestions?

664999_480847448621681_399130371_o.jpg?dl=1

works fine...

please close topic... and thanks for all

Edited by Ziu

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...