hakuren Posted May 17, 2015 Posted May 17, 2015 Hi guys, is there anyway that an npc can check what instance "name" currently activate to the player's party like " 'instancename$ "or is there anyway like annieruru's script ( instance__ ) can be done using this new instance commands? function script instance__ { if ( set( .@ins, instance_create( getarg(0), getcharid(1) ) ) < 0 ) return .@ins; set .@i, 3; while ( getarg( .@i, "" ) != "" ) { if ( instance_attachmap( getarg(.@i), .@ins ) == "" ) { instance_destroy .@ins; return -5; } set .@i, .@i +1 ; } if ( getarg(1) || getarg(2) ) instance_set_timeout getarg(1), getarg(2), .@ins; instance_init .@ins; instance_attach .@ins; return .@ins; } Note : i just want to create when player is out from the instance map it will automatically destroy due to the timeout set. example : timeout from map 20 seconds. like that sorry for my bad english Quote
Skorm Posted May 29, 2015 Posted May 29, 2015 Instance already timeout if the player doesn't enter within a set amount of time they will also timeout if the player enters but doesn't move for so long. Quote
Question
hakuren
Hi guys,
is there anyway that an npc can check what instance "name" currently activate to the player's party like " 'instancename$ "
or is there anyway like annieruru's script ( instance__ ) can be done using this new instance commands?
Note : i just want to create when player is out from the instance map it will automatically destroy due to the timeout set.
example : timeout from map 20 seconds. like that
sorry for my bad english
1 answer 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.