Jump to content

Question

Posted

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

1 answer to this question

Recommended Posts

  • 0
Posted

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;
}

 

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...