Jump to content
  • 0

problem with instance "World?something...."


Question

Posted

i got error i just testing this script by 

Vincent

 

i try new_1-4 map but i get error and then crash

 

i search for solution they say duplicate the map but it already duplicated by new_zone04.rsw/gat/gnd and i already recompile it to mapcache. 

 

what should i do with this?

 


prontera,156,174,5 script testing 873,{

set .@instance, instance_create("Training", getcharid(1));
if( .@instance < 0 )
{
mes "Failed to create the instance!";
close;
}
if( instance_attachmap("new_1-4", .@instance) == "" )
{
  instance_destroy(.@instance);
mes "Failed to attach the map!";
close;
}
instance_attach(.@instance);
instance_set_timeout(3600, 300, .@instance);
instance_init(.@instance);
warp "new_1-4",0,0;
 
}

3 answers to this question

Recommended Posts

Posted

the old instance system, the map name has to be

<single digit number>@<seven characters long>
example

1@tower

2@cash

2@g_vs

 

//For Map Names, which the client considers to be 16 in length including the .gat extension

#define MAP_NAME_LENGTH (11 + 1)

#define MAP_NAME_LENGTH_EXT (MAP_NAME_LENGTH + 4)

maximum map name without .gat is 12

the server will create 001 as the unique instance ID

means there's only 9 character left for your map name

new_1-4 will definitely crash your client

try something like 4@novice

Posted

If you are using late rA version ( r17386+ ). The following commands are removed : 

instance_attachmap
instance_attach
instance_set_timeout
instance_init
instance_detachmap
has_instance

therefore your script would cause an error. Maybe you can give the error message on your console?

Posted

If you are using late rA version ( r17386+ ). The following commands are removed : 

instance_attachmap
instance_attach
instance_set_timeout
instance_init
instance_detachmap
has_instance

therefore your script would cause an error. Maybe you can give the error message on your console?

 

no error at all just that client crash

the old instance system, the map name has to be

<single digit number>@<seven characters long>
example

1@tower

2@cash

2@g_vs

 

//For Map Names, which the client considers to be 16 in length including the .gat extension

#define MAP_NAME_LENGTH (11 + 1)

#define MAP_NAME_LENGTH_EXT (MAP_NAME_LENGTH + 4)

maximum map name without .gat is 12

the server will create 001 as the unique instance ID

means there's only 9 character left for your map name

new_1-4 will definitely crash your client

try something like 4@novice

 

thanks annie it works now your the best :)

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