Jump to content
  • 0

Automatic Leave party


DairyPresto

Question


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  147
  • Reputation:   1
  • Joined:  04/03/17
  • Last Seen:  

Can i request an script for the player will automatically kick out the party when leaving the map? or Option 2 is when player is at maintown

Example : The player is at prt_fild08 when the player leave the prt_fild08 and go somewhere player will automatic kick on party.

or

If the player go to maintown or prontera he will automatic kick on party.

Thanks in advance

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  132
  • Reputation:   53
  • Joined:  06/02/12
  • Last Seen:  

Hi. Option 2:

-	script	Automatic_Leave_Party	HIDDEN_WARP_NPC,{
OnInit:
	
	
	//Put here Maintowns maps names
	setarray .maps$,"prontera","geffen","aldebaran";
	

	for(.@i = 0; .@i < getarraysize(.maps$); .@i++)
		setmapflag .maps$[.@i], mf_loadevent;
	end;

OnPCLoadMapEvent:
	if (inarray(.maps$, strcharinfo(3)) >= 0)
		party_delmember;
	end;
}

 

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