Jump to content
  • 0

about party


rhay18

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  10/18/12
  • Last Seen:  

can i ask about party.... when 1 member leave in party or log out is possible other party member can back to town???

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

use partylock mapflag to prevent players from leaving the party

this is more practical

Link to comment
Share on other sites


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

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  10/18/12
  • Last Seen:  

hmmm.... so how if the 1 member leave or logout in party?? the other member will going back to town all of them...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

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