Jump to content
  • 0

attach player 1 and player 2 using attachrid


hakuren

Question


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

how can attach player 1 and player 2 to attachrid?

Link to comment
Share on other sites

9 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  1315
  • Reputation:   372
  • Joined:  12/10/11
  • Last Seen:  

You have to run the script twice. You can only attach one player per attachrid.

Link to comment
Share on other sites


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

You have to run the script twice. You can only attach one player per attachrid.

i have problem with this

attachrid( .@aid_player1 );

warp "prontera",150,150;

doevent "test1::test";

attachrid( .@aid_player2 );

warp "prontera",150,150;

doevent "test2::test";

close;

case 2:

mes "Ok";

close;

}

}

- script test1 -1,{

test:

sleep2 1000;

dispbottom "hhahaha";

end;

}

- script test2 -1,{

test:

sleep2 1000;

dispbottom "hhahaha";

end;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   52
  • Joined:  11/15/11
  • Last Seen:  

detachrid after doevent..

Link to comment
Share on other sites


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

detachrid after doevent..

how can you give me an example?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   104
  • Joined:  11/19/11
  • Last Seen:  

Can you explain how your script exactly works?

Link to comment
Share on other sites


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

Can you explain how your script exactly works?

actually im making a player timer

and attached with npc player 1 and player 2

so those to must run the script doevent

to run the timer

sorry for my bad english sir

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   52
  • Joined:  11/15/11
  • Last Seen:  

detachrid(.@aid_player1);

it would really be best if you could post your entire script somewhere like http://upaste.me so we don't have the syntax issues as in post #3

Link to comment
Share on other sites


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

detachrid(.@aid_player1);

it would really be best if you could post your entire script somewhere like http://upaste.me so we don't have the syntax issues as in post #3

set .@aid_player1, playerattached();

getpartymember getcharid(1),2;

set .@partymembercount, $@partymembercount;

copyarray .@partymemberaid[0], $@partymemberaid[0], .@partymembercount;

set .@aid_player2,.@partymemberaid[1];

attachrid( .@aid_player1 );

warp "prontera",150,150;

doevent "test1::Ontest";

attachrid( .@aid_player2 );

warp "prontera",150,150;

doevent "test2::Ontest";

close

}

- script test1 -1,{

Ontest:

sleep2 900;

dispbottom "Timer is Finished";

end;

}

- script test2 -1,{

Ontest:

sleep2 900;

dispbottom "Timer is Finished";

end;

}

the problem with this the doevent of player 1 is not close so the doevent isnt working but then the script closed the doevent will run i think that is the reason why this not working at all

Edited by hakuren
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   104
  • Joined:  11/19/11
  • Last Seen:  

i dont get your words I give you a example to use timer

XXXXXXXXXXXXX,{
set .@tempaid,getcharid(3);
attachrid( .@aid_player1 );
attachnpctimer ""+strcharinfo(0)+"";
initnpctimer;
attachrid( .@aid_player2 );
attachnpctimer ""+strcharinfo(0)+"";
initnpctimer;
attachrid( ..@tempaid );
mes "Ok";
Close;

OnTimer500:
warp "prontera",150,150;
end;
OnTimer2000:
dispbottom "hhahaha";
detachnpctimer;
   if(!playerattached())stopnpctimer;
end;

}

Edited by QQfoolsorellina
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...