rhay18 Posted February 25, 2014 Posted February 25, 2014 can i ask about party.... when 1 member leave in party or log out is possible other party member can back to town??? Quote
AnnieRuru Posted February 26, 2014 Posted February 26, 2014 use partylock mapflag to prevent players from leaving the party this is more practical Quote
Skorm Posted February 26, 2014 Posted February 26, 2014 use partylock mapflag to prevent players from leaving the party this is more practical O_O That exists? Damn! Well my GVG/PVP scripts just got a ton better. ty Annie. I was using loops to check the existence of the party... So unoptimized... Quote
rhay18 Posted February 26, 2014 Author Posted February 26, 2014 hmmm.... so how if the 1 member leave or logout in party?? the other member will going back to town all of them... Quote
AnnieRuru Posted February 26, 2014 Posted February 26, 2014 (edited) partylock already prevent the players from leaving the party but for logout, well, just very simple script - script kjdhfkjshfs -1,{ OnPCLogoutEvent: if ( strcharinfo(3) != "guild_vs2" ) end; if ( !getcharid(1) ) end; // some gm will bypass nowarpto mapflag ... getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { attachrid $@partymemberaid[.@i]; if ( strcharinfo(3) == "guild_vs2" ) warp "Save", 0,0; } } // warpparty "SavePoint", 0,0, getcharid(1), "guild_vs2"; // EDIT: forgot warpparty doesn't work on noreturn mapflag end; } guild_vs2 mapflag partylock Edited February 26, 2014 by AnnieRuru Quote
Question
rhay18
can i ask about party.... when 1 member leave in party or log out is possible other party member can back to town???
4 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.