Jump to content
  • 0
ItsRas

Party warper with map restrictions and online party member display

Question

Hello, Can anyone help me with this party warper script? I got a party warper script from https://rathena.org/board/topic/123333-warping-a-party-to-specified-player-through-menu/ . The script allows you to warp wherever your party member is andI want to improve it somehow by adding some restrictions and displaying only the name of the members who are online to it but I fail it make it work.

Restricstions in example, mvp map, woe, or pvp area.

 

prontera,156,182,0	script	Party Warper	100,{
	if (!getcharid(1)) end;
	[email protected] = getcharid(0);
	getpartymember getcharid(1), 0;
	getpartymember getcharid(1), 1;
	getpartymember getcharid(1), 2;

	for ([email protected] = 0; [email protected] < [email protected]; [email protected]++)
		[email protected]$ = [email protected]$ + (strcharinfo(0) != [email protected]$[[email protected]] ? [email protected]$[[email protected]] : "") + ":";

	[email protected] = select([email protected]$) - 1;
	if (isloggedin([email protected][[email protected]], [email protected][[email protected]])) {
		attachrid([email protected][[email protected]]);
		getmapxy [email protected]$, [email protected], [email protected];
		if (@map$ == "aldebaran"){
			mes "I can't be teleport you to your friend's location!";
          		close;
       		}
		warp [email protected]$, [email protected], [email protected], [email protected];
	}
	end;
}

Thank you in advance :")

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Try this

prontera,156,182,0	script	Party Warper	100,{
	[email protected] = getcharid(1);
	[email protected] = getcharid(0);
	[email protected]$ = strcharinfo(0);
	if ([email protected]) end;
	getpartymember [email protected], 0;
	getpartymember [email protected], 1;
	getpartymember [email protected], 2;

	for ([email protected] = 0; [email protected] < [email protected]; [email protected]++)
		[email protected]$ = [email protected]$ + ([email protected]$ != [email protected]$[[email protected]] ? [email protected]$[[email protected]] : "") + ":";

	[email protected] = select([email protected]$) - 1;
	[email protected]$ = [email protected]$[[email protected]];
	
	if (isloggedin([email protected][[email protected]], [email protected][[email protected]])) {
		getmapxy [email protected]$, [email protected], [email protected], BL_PC, [email protected]$;
		if (inarray(.restricted_map$, [email protected]$) != -1)
			message [email protected]$,"This is a restricted map.";
		else
			warp [email protected]$, [email protected], [email protected], [email protected];
	} else 
		message [email protected]$, [email protected]$ + " is not online.";
	
	end;

	OnInit:
		setarray .restricted_map$[0], "payon", "geffen";
		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...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.