Jump to content
  • 0

R> simple pvp warper


Question

Posted

can someone share a simple pvp warper?

- maps are default one (prontera,izlude,etc.)

- announces player's name when getting inside the pvp room

- show how many players each room

 

thank you in advance

8 answers to this question

Recommended Posts

  • 0
Posted
prontera,155,181,5	script	PVP Warper	4_F_KAFRA1,{
	for (.@i = 0; .@i < .map_size; .@i++) 
		.@menu$ = .@menu$ + .map$[.@i] + "("+getmapusers(.map$[.@i])+" user(s))" + ":";
	.@i = select(.@menu$) - 1;
	mapannounce .map$[.@i], strcharinfo(0)+ " has entered this PVP room.", bc_map;
	warp .map$[.@i], 0, 0;
	end;
	
	OnInit:
		setarray .map$, 
			"prontera", 
			"payon", 
			"izlude";
		.map_size = getarraysize(.map$);
		end;
}

 

  • 0
Posted

@Emistry whoa thanks for the script it works perfectly. but there is one problem when I set map for example pvp_y_8-1, the name on the menu is also "pvp_y_8-1" I want it to be a custom name not the map name itself. can you help me with this thanks!

  • 0
Posted
prontera,155,181,5	script	PVP Warper	4_F_KAFRA1,{
	for (.@i = 0; .@i < .map_size; .@i++) 
		.@menu$ = .@menu$ + .map_name$[.@i] + "("+getmapusers(.map$[.@i])+" user(s))" + ":";
	.@i = select(.@menu$) - 1;
	mapannounce .map$[.@i], strcharinfo(0)+ " has entered this PVP room.", bc_map;
	warp .map$[.@i], 0, 0;
	end;
	
	OnInit:
		setarray .map_name$,
			"name - prontera", 
			"name - payon", 
			"name - izlude";
		setarray .map$, 
			"prontera", 
			"payon", 
			"izlude";
		.map_size = getarraysize(.map_name$);
		end;
}

 

  • 0
Posted

when your character get teleported, it refresh the screen, you wont see the announcement, beside what's the point of seeing the message when you already know you entered the pvp room yourself lol.

  • 0
Posted
26 minutes ago, Emistry said:

when your character get teleported, it refresh the screen, you wont see the announcement, beside what's the point of seeing the message when you already know you entered the pvp room yourself lol.

ok ok now I get it. thanks @Emistry!

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