hakuren Posted May 17, 2015 Group: Members Topic Count: 120 Topics Per Day: 0.02 Content Count: 295 Reputation: 6 Joined: 12/02/11 Last Seen: November 6, 2023 Share 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 Link to comment Share on other sites More sharing options...
Skorm Posted May 29, 2015 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share 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 Link to comment Share on other sites More sharing options...
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
Link to comment
Share on other sites
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.