hakuren Posted May 28, 2012 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 28, 2012 how can attach player 1 and player 2 to attachrid? Quote Link to comment Share on other sites More sharing options...
Arcenciel Posted May 28, 2012 Group: Members Topic Count: 69 Topics Per Day: 0.01 Content Count: 1315 Reputation: 372 Joined: 12/10/11 Last Seen: August 31, 2013 Share Posted May 28, 2012 You have to run the script twice. You can only attach one player per attachrid. Quote Link to comment Share on other sites More sharing options...
hakuren Posted May 28, 2012 Group: Members Topic Count: 120 Topics Per Day: 0.02 Content Count: 295 Reputation: 6 Joined: 12/02/11 Last Seen: November 6, 2023 Author Share Posted May 28, 2012 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; } Quote Link to comment Share on other sites More sharing options...
Nameless2you Posted May 28, 2012 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 351 Reputation: 52 Joined: 11/15/11 Last Seen: June 15, 2015 Share Posted May 28, 2012 detachrid after doevent.. Quote Link to comment Share on other sites More sharing options...
hakuren Posted May 28, 2012 Group: Members Topic Count: 120 Topics Per Day: 0.02 Content Count: 295 Reputation: 6 Joined: 12/02/11 Last Seen: November 6, 2023 Author Share Posted May 28, 2012 detachrid after doevent.. how can you give me an example? Quote Link to comment Share on other sites More sharing options...
QQfoolsorellina Posted May 28, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 587 Reputation: 105 Joined: 11/19/11 Last Seen: July 7, 2019 Share Posted May 28, 2012 Can you explain how your script exactly works? Quote Link to comment Share on other sites More sharing options...
hakuren Posted May 28, 2012 Group: Members Topic Count: 120 Topics Per Day: 0.02 Content Count: 295 Reputation: 6 Joined: 12/02/11 Last Seen: November 6, 2023 Author Share Posted May 28, 2012 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 Quote Link to comment Share on other sites More sharing options...
Nameless2you Posted May 28, 2012 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 351 Reputation: 52 Joined: 11/15/11 Last Seen: June 15, 2015 Share Posted May 28, 2012 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 Quote Link to comment Share on other sites More sharing options...
hakuren Posted May 28, 2012 Group: Members Topic Count: 120 Topics Per Day: 0.02 Content Count: 295 Reputation: 6 Joined: 12/02/11 Last Seen: November 6, 2023 Author Share Posted May 28, 2012 (edited) 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 May 28, 2012 by hakuren Quote Link to comment Share on other sites More sharing options...
QQfoolsorellina Posted May 28, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 587 Reputation: 105 Joined: 11/19/11 Last Seen: July 7, 2019 Share Posted May 28, 2012 (edited) 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 May 28, 2012 by QQfoolsorellina Quote Link to comment Share on other sites More sharing options...
Question
hakuren
how can attach player 1 and player 2 to attachrid?
Link to comment
Share on other sites
9 answers 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.