Jump to content
  • 0

PVP Room modify


skyroofficial

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   0
  • Joined:  04/16/17
  • Last Seen:  

So i tested a 'separated' pvp room

This is my script i using on the pvp room

prontera,163,152,3	script	PvP Battle Room#01::pvparena	810,{

	waitingroom "PVP Room",0;



mes "[PvP Battle Room]";
mes "Pilih Ruangan";
menu	
	"All Class [" + getmapusers("pvp_y_1-2") + "]",pvp1,
	"Non Donate [" + getmapusers("pvp_n_8-5") + "]",spvp,
	"Trans Class [" + getmapusers("guild_vs1") + "]",pvp2,
	"Guild vs Guild [" + getmapusers("guild_vs3") + "]",gvg1,
	"Novice [" + getmapusers("guild_vs2") + "]",novc;


pvp1:
	warp "pvp_y_1-2",0,0;
	announce ""+ strcharinfo(0) +" Has Entered The PVP Room.",bc_all; 
	close;
gvg1:
	warp "",0,0;
	announce ""+ strcharinfo(0) +" Has Entered The GVG Room.",bc_all; 
	close;
pvp2:
	if(Class >= 4008 && Class <= 4021){
	warp "guild_vs1",0,0;
	announce ""+ strcharinfo(0) +" Has Entered The PVP Room Trans Class.",bc_all; 
	close;
	}
	mes "Trans Class Only.";
	close;
spvp:
	warp "pvp_n_8-5",0,0;
	announce ""+ strcharinfo(0) +" Has Entered The PVP Room Non Donate.",bc_all; 
	close;
novc:
	if (Class != 0) goto nchamp;
	warp "guild_vs2",0,0;
		announce ""+ strcharinfo(0) +" Has Entered The PVP Room Novice.",bc_all; 
	close;

	nchamp:
		next;
		mes "[PvP Warper]";
		mes "You're not a Novice.";
		close;
}

//Mapflag
guild_vs1	mapflag	pvp
guild_vs1	mapflag	nocommand	90
pvp_y_1-2	mapflag	nocommand	90
guild_vs3	mapflag	gvg
guild_vs3	mapflag	nocommand	90

guild_vs2	mapflag	pvp
guild_vs2	mapflag	nocommand	90


//====================================================================================
///Duplicates
morocc,152,94,0	duplicate(pvparena)	PvP Battle Room#2	810
geffen,127,63,0	duplicate(pvparena)	PvP Battle Room#3	810
alberta,114,64,0	duplicate(pvparena)	PvP Battle Room#5	810
izlude,123,147,0	duplicate(pvparena)	PvP Battle Room#6	810
aldebaran,134,113,0	duplicate(pvparena)	PvP Battle Room#7	810
xmas,141,127,0	duplicate(pvparena)	PvP Battle Room#8	810
comodo,194,158,0	duplicate(pvparena)	PvP Battle Room#9	810
yuno,150,184,0	duplicate(pvparena)	PvP Battle Room#10	810
amatsu,101,143,0	duplicate(pvparena)	PvP Battle Room#11	810
gonryun,152,114,0	duplicate(pvparena)	PvP Battle Room#12	810
umbala,126,137,0	duplicate(pvparena)	PvP Battle Room#13	810
louyang,214,106,0	duplicate(pvparena)	PvP Battle Room#14	810
ayothaya,154,116,0	duplicate(pvparena)	PvP Battle Room#15	810
einbroch,68,203,0	duplicate(pvparena)	PvP Battle Room#16	810
lighthalzen,150,91,0	duplicate(pvparena)	PvP Battle Room#17	810
jawaii,206,208,0	duplicate(pvparena)	PvP Battle Room#18	810
hugel,99,161,4	duplicate(pvparena)	PvP Battle Room#19	810
rachel,123,142,0	duplicate(pvparena)	PvP Battle Room#20	810
veins,211,119,0	duplicate(pvparena)	PvP Battle Room#21	810
brasilis,191,185,0	duplicate(pvparena)	PvP Battle Room#22	810
dewata,191,185,0	duplicate(pvparena)	PvP Battle Room#23	810
dicastes01,199,194,0	duplicate(pvparena)	PvP Battle Room#24	810
malangdo,200,149,0	duplicate(pvparena)	PvP Battle Room#25	810
malaya,271,364,0	duplicate(pvparena)	PvP Battle Room#26	810
mora,121,113,0	duplicate(pvparena)	PvP Battle Room#27	810
splendide,191,152,0	duplicate(pvparena)	PvP Battle Room#28	810
eclage,277,289,0	duplicate(pvparena)	PvP Battle Room#29	810
moscovia,217,193,0	duplicate(pvparena)	PvP Battle Room#30	810
louyang,91,245,0	duplicate(pvparena)	PvP Battle Room#31	810
moscovia,173,77,0	duplicate(pvparena)	PvP Battle Room#32	810
manuk,292,181,0	duplicate(pvparena)	PvP Battle Room#33	810

But i want to separate the Donators Room and Non-Donators room with these items

20450 32171 32422 32423 32424 32440 32441 32442 32210 32214 32202 

1 . Where i should put them ? :D

2. Im getting annoyed with the

Quote

waitingroom "PVP Room",0;

Since its show error like this

694059f14603466cb0dcb937500bcd69.png

Cant it be like.. give password to the room ? so it wont show the errors on console? XD

 

Thanks for the answers ! :D

 

 

and btw.. im using rAthena v45 if needed

Edited by skyroofficial
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

prontera,163,152,3	script	PvP Battle Room#01::pvparena	810,{

	waitingroom "PVP Room",0;



mes "[PvP Battle Room]";
mes "Pilih Ruangan";
menu	
	"All Class [" + getmapusers("pvp_y_1-2") + "]",pvp1,
	"Non Donate [" + getmapusers("pvp_n_8-5") + "]",spvp,
	"Trans Class [" + getmapusers("guild_vs1") + "]",pvp2,
	"Guild vs Guild [" + getmapusers("guild_vs3") + "]",gvg1,
	"Novice [" + getmapusers("guild_vs2") + "]",novc;


pvp1:
	warp "pvp_y_1-2",0,0;
	announce ""+ strcharinfo(0) +" Has Entered The PVP Room.",bc_all; 
	close;
gvg1:
	warp "",0,0;
	announce ""+ strcharinfo(0) +" Has Entered The GVG Room.",bc_all; 
	close;
pvp2:
	if(Class >= 4008 && Class <= 4021){
	warp "guild_vs1",0,0;
	announce ""+ strcharinfo(0) +" Has Entered The PVP Room Trans Class.",bc_all; 
	close;
	}
	mes "Trans Class Only.";
	close;
spvp:
	if(countitem(20450) > 0 || countitem(32171) > 0 || countitem(32423) > 0 || countitem(32422) > 0 || countitem(32424) > 0 || countitem(32440) > 0 || countitem(32441) > 0 || countitem(32442) > 0 || countitem(32210) > 0 || countitem(32214) > 0 || countitem(32202) > 0) goto donator;
	warp "pvp_n_8-5",0,0;
	announce ""+ strcharinfo(0) +" Has Entered The PVP Room Non Donate.",bc_all; 
	close;
novc:
	if (Class != 0) goto nchamp;
	warp "guild_vs2",0,0;
		announce ""+ strcharinfo(0) +" Has Entered The PVP Room Novice.",bc_all; 
	close;

	nchamp:
		next;
		mes "[PvP Warper]";
		mes "You're not a Novice.";
		close;
		
donator:
	mes "You are a donator you are not allowed to this room";
  	close;
}

//Mapflag
guild_vs1	mapflag	pvp
guild_vs1	mapflag	nocommand	90
pvp_y_1-2	mapflag	nocommand	90
guild_vs3	mapflag	gvg
guild_vs3	mapflag	nocommand	90

guild_vs2	mapflag	pvp
guild_vs2	mapflag	nocommand	90


//====================================================================================
///Duplicates
morocc,152,94,0	duplicate(pvparena)	PvP Battle Room#2	810
geffen,127,63,0	duplicate(pvparena)	PvP Battle Room#3	810
alberta,114,64,0	duplicate(pvparena)	PvP Battle Room#5	810
izlude,123,147,0	duplicate(pvparena)	PvP Battle Room#6	810
aldebaran,134,113,0	duplicate(pvparena)	PvP Battle Room#7	810
xmas,141,127,0	duplicate(pvparena)	PvP Battle Room#8	810
comodo,194,158,0	duplicate(pvparena)	PvP Battle Room#9	810
yuno,150,184,0	duplicate(pvparena)	PvP Battle Room#10	810
amatsu,101,143,0	duplicate(pvparena)	PvP Battle Room#11	810
gonryun,152,114,0	duplicate(pvparena)	PvP Battle Room#12	810
umbala,126,137,0	duplicate(pvparena)	PvP Battle Room#13	810
louyang,214,106,0	duplicate(pvparena)	PvP Battle Room#14	810
ayothaya,154,116,0	duplicate(pvparena)	PvP Battle Room#15	810
einbroch,68,203,0	duplicate(pvparena)	PvP Battle Room#16	810
lighthalzen,150,91,0	duplicate(pvparena)	PvP Battle Room#17	810
jawaii,206,208,0	duplicate(pvparena)	PvP Battle Room#18	810
hugel,99,161,4	duplicate(pvparena)	PvP Battle Room#19	810
rachel,123,142,0	duplicate(pvparena)	PvP Battle Room#20	810
veins,211,119,0	duplicate(pvparena)	PvP Battle Room#21	810
brasilis,191,185,0	duplicate(pvparena)	PvP Battle Room#22	810
dewata,191,185,0	duplicate(pvparena)	PvP Battle Room#23	810
dicastes01,199,194,0	duplicate(pvparena)	PvP Battle Room#24	810
malangdo,200,149,0	duplicate(pvparena)	PvP Battle Room#25	810
malaya,271,364,0	duplicate(pvparena)	PvP Battle Room#26	810
mora,121,113,0	duplicate(pvparena)	PvP Battle Room#27	810
splendide,191,152,0	duplicate(pvparena)	PvP Battle Room#28	810
eclage,277,289,0	duplicate(pvparena)	PvP Battle Room#29	810
moscovia,217,193,0	duplicate(pvparena)	PvP Battle Room#30	810
louyang,91,245,0	duplicate(pvparena)	PvP Battle Room#31	810
moscovia,173,77,0	duplicate(pvparena)	PvP Battle Room#32	810
manuk,292,181,0	duplicate(pvparena)	PvP Battle Room#33	810

Hi Try this! havent tested it though :))

Edited by crazyarashi
added a close
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   76
  • Joined:  06/13/13
  • Last Seen:  

4 hours ago, skyroofficial said:

20450 32171 32422 32423 32424 32440 32441 32442 32210 32214 32202 

1 . Where i should put them ? :D

you can use db/<pre_>re/item_noequip.txt

4 hours ago, skyroofficial said:

2. Im getting annoyed with the

Quote

waitingroom "PVP Room",0;

Since its show error like this

694059f14603466cb0dcb937500bcd69.png

Cant it be like.. give password to the room ? so it wont show the errors on console? XD

Put it on OnInit Label so it will not be created over again when the player talk to the npc something like below

prontera,163,152,3	script	PvP Battle Room#01::pvparena	810,{
	goto Talk;

OnInit:
	waitingroom "PVP Room",0;
	end;

Talk:
mes "[PvP Battle Room]";
mes "Pilih Ruangan";

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   0
  • Joined:  04/16/17
  • Last Seen:  

15 hours ago, Litro Endemic said:

you can use db/<pre_>re/item_noequip.txt

Put it on OnInit Label so it will not be created over again when the player talk to the npc something like below


prontera,163,152,3	script	PvP Battle Room#01::pvparena	810,{
	goto Talk;

OnInit:
	waitingroom "PVP Room",0;
	end;

Talk:
mes "[PvP Battle Room]";
mes "Pilih Ruangan";

 

Sorry abit late response but...

 

Thank you soo much :D

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   0
  • Joined:  04/16/17
  • Last Seen:  

On 4/23/2017 at 4:01 AM, crazyarashi said:

prontera,163,152,3	script	PvP Battle Room#01::pvparena	810,{

	waitingroom "PVP Room",0;



mes "[PvP Battle Room]";
mes "Pilih Ruangan";
menu	
	"All Class [" + getmapusers("pvp_y_1-2") + "]",pvp1,
	"Non Donate [" + getmapusers("pvp_n_8-5") + "]",spvp,
	"Trans Class [" + getmapusers("guild_vs1") + "]",pvp2,
	"Guild vs Guild [" + getmapusers("guild_vs3") + "]",gvg1,
	"Novice [" + getmapusers("guild_vs2") + "]",novc;


pvp1:
	warp "pvp_y_1-2",0,0;
	announce ""+ strcharinfo(0) +" Has Entered The PVP Room.",bc_all; 
	close;
gvg1:
	warp "",0,0;
	announce ""+ strcharinfo(0) +" Has Entered The GVG Room.",bc_all; 
	close;
pvp2:
	if(Class >= 4008 && Class <= 4021){
	warp "guild_vs1",0,0;
	announce ""+ strcharinfo(0) +" Has Entered The PVP Room Trans Class.",bc_all; 
	close;
	}
	mes "Trans Class Only.";
	close;
spvp:
	if(countitem(20450) > 0 || countitem(32171) > 0 || countitem(32423) > 0 || countitem(32422) > 0 || countitem(32424) > 0 || countitem(32440) > 0 || countitem(32441) > 0 || countitem(32442) > 0 || countitem(32210) > 0 || countitem(32214) > 0 || countitem(32202) > 0) goto donator;
	warp "pvp_n_8-5",0,0;
	announce ""+ strcharinfo(0) +" Has Entered The PVP Room Non Donate.",bc_all; 
	close;
novc:
	if (Class != 0) goto nchamp;
	warp "guild_vs2",0,0;
		announce ""+ strcharinfo(0) +" Has Entered The PVP Room Novice.",bc_all; 
	close;

	nchamp:
		next;
		mes "[PvP Warper]";
		mes "You're not a Novice.";
		close;
		
donator:
	mes "You are a donator you are not allowed to this room";
  	close;
}

//Mapflag
guild_vs1	mapflag	pvp
guild_vs1	mapflag	nocommand	90
pvp_y_1-2	mapflag	nocommand	90
guild_vs3	mapflag	gvg
guild_vs3	mapflag	nocommand	90

guild_vs2	mapflag	pvp
guild_vs2	mapflag	nocommand	90


//====================================================================================
///Duplicates
morocc,152,94,0	duplicate(pvparena)	PvP Battle Room#2	810
geffen,127,63,0	duplicate(pvparena)	PvP Battle Room#3	810
alberta,114,64,0	duplicate(pvparena)	PvP Battle Room#5	810
izlude,123,147,0	duplicate(pvparena)	PvP Battle Room#6	810
aldebaran,134,113,0	duplicate(pvparena)	PvP Battle Room#7	810
xmas,141,127,0	duplicate(pvparena)	PvP Battle Room#8	810
comodo,194,158,0	duplicate(pvparena)	PvP Battle Room#9	810
yuno,150,184,0	duplicate(pvparena)	PvP Battle Room#10	810
amatsu,101,143,0	duplicate(pvparena)	PvP Battle Room#11	810
gonryun,152,114,0	duplicate(pvparena)	PvP Battle Room#12	810
umbala,126,137,0	duplicate(pvparena)	PvP Battle Room#13	810
louyang,214,106,0	duplicate(pvparena)	PvP Battle Room#14	810
ayothaya,154,116,0	duplicate(pvparena)	PvP Battle Room#15	810
einbroch,68,203,0	duplicate(pvparena)	PvP Battle Room#16	810
lighthalzen,150,91,0	duplicate(pvparena)	PvP Battle Room#17	810
jawaii,206,208,0	duplicate(pvparena)	PvP Battle Room#18	810
hugel,99,161,4	duplicate(pvparena)	PvP Battle Room#19	810
rachel,123,142,0	duplicate(pvparena)	PvP Battle Room#20	810
veins,211,119,0	duplicate(pvparena)	PvP Battle Room#21	810
brasilis,191,185,0	duplicate(pvparena)	PvP Battle Room#22	810
dewata,191,185,0	duplicate(pvparena)	PvP Battle Room#23	810
dicastes01,199,194,0	duplicate(pvparena)	PvP Battle Room#24	810
malangdo,200,149,0	duplicate(pvparena)	PvP Battle Room#25	810
malaya,271,364,0	duplicate(pvparena)	PvP Battle Room#26	810
mora,121,113,0	duplicate(pvparena)	PvP Battle Room#27	810
splendide,191,152,0	duplicate(pvparena)	PvP Battle Room#28	810
eclage,277,289,0	duplicate(pvparena)	PvP Battle Room#29	810
moscovia,217,193,0	duplicate(pvparena)	PvP Battle Room#30	810
louyang,91,245,0	duplicate(pvparena)	PvP Battle Room#31	810
moscovia,173,77,0	duplicate(pvparena)	PvP Battle Room#32	810
manuk,292,181,0	duplicate(pvparena)	PvP Battle Room#33	810

Hi Try this! havent tested it though :))

OMG i didnt see you xDD

this also works like a charm !

Thanks <3

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