Jump to content
  • 0

R> Custom PVP Npc


chromus28

Question


  • Group:  Members
  • Topic Count:  91
  • Topics Per Day:  0.02
  • Content Count:  263
  • Reputation:   1
  • Joined:  04/25/13
  • Last Seen:  

hi guys?

Can i request a an PVP warper that have 3 different map? and modification?

First Menu: Free PVP Room ( all players can get in in this map free for all )

Second Menu: Party PVP ( They can only pvp here if they have a party )

Third Menu: 1 ON 1 PVP Room ( only 2 Players can get in in this map )

can you please help me with this? thanks

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  


prontera,100,200,4 script PvP Warper 46,{

mes .Npc_Name$;

mes "Hello!";

switch(select("Free PvP:Party PvP: 1v1 PvP")) {

next;

mes .Npc_Name$;

case 1:

mes "Goodluck!";

warp .Map$[0],0,0;

close; break;

case 2:

if(!strcharinfo(1)) {

mes "You must have a party in order to enter!";

close;

}

mes "Goodluck!";

warp .Map$[1],0,0;

close; break;

case 3:

if(getmapusers(.Map$[2]) > 1) {

mes "There are people fighting in this map!";

close;

}

mes "Goodluck!";

warp .Map$[2],0,0;

close; break;

}

end;

OnInit:

.Npc_Name$ = "[^0000FF "+strnpcinfo(1)+" ^000000]";

setarray .Map$[0],"your_map1","your_map2","your_map3";

end;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  91
  • Topics Per Day:  0.02
  • Content Count:  263
  • Reputation:   1
  • Joined:  04/25/13
  • Last Seen:  

prontera,100,200,4	script	PvP Warper	46,{

mes .Npc_Name$;
mes "Hello!";
switch(select("Free PvP:Party PvP: 1v1 PvP")) {
	next;
	mes .Npc_Name$;
	case 1:
		mes "Goodluck!";
		warp .Map$[0],0,0;
		close; break;
	case 2:
		if(!strcharinfo(1)) {
			mes "You must have a party in order to enter!";
			close;
		}
		mes "Goodluck!";
		warp .Map$[1],0,0;
		close; break;
	case 3:
		if(getmapusers(.Map$[2]) > 1) {
			mes "There are people fighting in this map!";
			close;
		}
		mes "Goodluck!";
		warp .Map$[2],0,0;
		close; break;
}
end;

OnInit:
	.Npc_Name$ = "[^0000FF "+strnpcinfo(1)+" ^000000]";
	setarray .Map$[0],"your_map1","your_map2","your_map3";
	end;

}

I will try it later thanks!!!!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  52
  • Reputation:   2
  • Joined:  02/15/14
  • Last Seen:  

Hello Sand Box, I think there is some error with the script about the party pvp, when i click the party type, it stuck, following is my edit script.

prontera,162,159,4	script	1v1 PK	843,{

mes .Npc_Name$;
mes "Hello!";
switch(select("1vs1 PvP:Party PvP")) {
	next;
	mes .Npc_Name$;
	case 1:
		if(getmapusers(.Map$[0]) > 1) {
			mes "There are people fighting in this map!";
			close;
		}
		mes "Goodluck!";
		warp .Map$[0],0,0;
		announce strcharinfo(0)+" entered the 1 VS 1 PvP Room",0;
		close; break;
	case 2:
		if(!strcharinfo(1)) {
			mes "You must have a party in order to enter!";
			close;
		}
		mes "Goodluck!";
		warp .Map$[1],0,0;
		announce strcharinfo(0)+" entered the Party PvP Room",0;
		close; break;	
}
end;

OnInit:
waitingroom "1v1 PvP",0;
	.Npc_Name$ = "[^0000FF "+strnpcinfo(1)+" ^000000]";
	setarray .Map$[0],"pvp_y_4-4","pvp_y_8-5";
	end;

}

Kindly wait for your help yea...

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Line

if(!strcharinfo(1)) {

strcharinfo return a string. You can't use a logical not operator with string

 

replace it by

if( strcharinfo(1) == "" ) {
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  52
  • Reputation:   2
  • Joined:  02/15/14
  • Last Seen:  

Thanks Capuche, it works !!


Do you mind looking at this Guild Pack script? No matter how it records player's IP in sql, player can still create another account to claimed them.

 

http://rathena.org/board/topic/94294-guild-pack-npc-giver-help-please/

 

Sorry if it post in the wrong topic.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  52
  • Reputation:   2
  • Joined:  02/15/14
  • Last Seen:  

Thanks Capuche, it solved !!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  06/19/14
  • Last Seen:  

Is there a way to make the party vs party portion like the RPC/WRC style? that will require 7 party members w/o repeating class?

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