Jump to content
  • 0

R> simple pvp warper


Mirakol-

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  08/30/18
  • Last Seen:  

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

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

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

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  08/30/18
  • Last Seen:  

@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!

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

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

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  08/30/18
  • Last Seen:  

@Emistry why map announce not working?

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

18 hours ago, Mirakol- said:

@Emistry why map announce not working?

eGSCdJs.jpg

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  08/30/18
  • Last Seen:  

6 minutes ago, Emistry said:

eGSCdJs.jpg

so announce will just show on other player screen? not yours?

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  08/30/18
  • Last Seen:  

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!

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