Jump to content
  • 0

New Instance Commands


hakuren

Question


  • Group:  Members
  • Topic Count:  120
  • Topics Per Day:  0.03
  • Content Count:  295
  • Reputation:   6
  • Joined:  12/02/11
  • Last Seen:  

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  /sry

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

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.

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