Jump to content
  • 0

Adding another pvp map.


Deviszh

Question


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.02
  • Content Count:  173
  • Reputation:   3
  • Joined:  09/04/16
  • Last Seen:  

how to add pvp map here?

 

example in line "PvP (Izlude) [" + getmapusers("pvp_y_1-2.gat") + " / 69]",L2;

 

i want to add "PvP (Morocc) [" + getmapusers("pvp_y_3-5.gat") + " / 69]",L2;

morocc,172,249,4	script	PvP Arena	1198,{
	
menu
	"PvP (Izlude) [" + getmapusers("pvp_y_1-2.gat") + " / 69]",L2;
	//"PvP Baby ["+getmapusers("pvp_y_3-5")+ " / 100]",L3,
	//"^999999Novice Grounds [" + getmapusers("pvp_y_2-2") + " / 69]^000000",L6;
	
	
	
	//"War of the Emperium",L5;

L2:
if ((getmapusers("pvp_y_1-2.gat") > 68)&&(getgmlevel() < 1)) goto Lsorry;
if ((class==Job_Novice_High)&&(getgmlevel() < 1)) goto Lnoob;
if (class==Super_Novice) goto Lnoob;
warp "pvp_y_1-2",0,0;
close;

L3:
if (getmapusers("pvp_y_3-5") > 60) callsub S_full;
for( set .@i,0; .@i<getarraysize(.NoDonator_ids); set .@i,.@i+1 ) {
if (countitem(.NoDonator_ids[.@i])) {
if (class < 4023 || class > 4045) goto L_NotBaby;
close;
	}
}
warp "pvp_y_3-5",0,0;
end;

L6:
if (getmapusers("pvp_y_2-2") > 99) callsub S_full;
if ((class!=Job_Novice_High)&&(getgmlevel() < 1)) goto Lnoob;
if (class==Super_Novice) goto Lsuno;
if (class < 4023 || class > 4045) goto L_NotBaby;
warp "pvp_y_2-5",0,0;
end;

L_NotBaby:
mes "Only baby can enter this room";
close;	
 

Lsuno:
warp "new_1-1",160,101;
close;

L_Not:
mes "^FF000051~60 PvP Room^000000";
close;

Lsorry:
mes "[PvP Warper]";
mes "Sorry, The PvP Arena is Full.";
close;

Lnoob:
mes "[PvP Warper]";
mes "This place is ^FF0000RESTRICTED^000000 for your class.";
close;

L_No:
close;


S_full:
	mes " ";
	mes "I'm sorry, this arena is full.  Please try again later...";
	close;
	
	// items not allowed in PVP NoPotion
	setarray .NoPotion_ids[0], 607, 608;
 
	// items not allowed in Non Donator PVP
	setarray .NoDonator_ids[0], 2410, 1530, 607, 608;
	end;
}

// PvP Room ----------------------------------------------
morocc,154,113,6	duplicate(PvP Arena)	PvP Arena#dl	1198
louyang,225,98,3	duplicate(PvP Arena)	PvP Arena#d1	1198
payon,167,234,3	duplicate(PvP Arena)	PvP Arena#d1	1198
gonryun,170,142,3	duplicate(PvP Arena)	PvP Arena#d1	1198
aldebaran,146,116,3	duplicate(PvP Arena)	PvP Arena#d1	1198
ayothaya,161,159,3	duplicate(PvP Arena)	PvP Arena#d1	1198
xmas,154,126,3	duplicate(PvP Arena)	PvP Arena#d1	1198
turbo_room,112,118,6	duplicate(PvP Arena)	PvP Arena#d1	1198
Edited by Kinkkynipps
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • -2

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  748
  • Reputation:   47
  • Joined:  03/12/14
  • Last Seen:  

OnInit:
initnpctimer;
end;

OnTimer1000:
delwaitingroom;
waitingroom "PVP Room - "+getmapusers("guild_vs3")+" Users.",0;
initnpctimer;
end;

change guild_vs3 what PVP maps you want

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.02
  • Content Count:  173
  • Reputation:   3
  • Joined:  09/04/16
  • Last Seen:  

OnInit:
initnpctimer;
end;

OnTimer1000:
delwaitingroom;
waitingroom "PVP Room - "+getmapusers("guild_vs3")+" Users.",0;
initnpctimer;
end;

change guild_vs3 what PVP maps you want

 

 

i will add that in my script? or new script?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  748
  • Reputation:   47
  • Joined:  03/12/14
  • Last Seen:  

 

OnInit:
initnpctimer;
end;

OnTimer1000:
delwaitingroom;
waitingroom "PVP Room - "+getmapusers("guild_vs3")+" Users.",0;
initnpctimer;
end;

change guild_vs3 what PVP maps you want

 

 

i will add that in my script? or new script?

 

prontera,148,194,4	script	PvP Warper	512,{
	if(agitcheck() || agitcheck2()){ end; }

	if(BaseLevel < 998) {
	mes "[ ^ff0000PVP Warper^000000 ]";
	mes "You didnt meet the basic requirements.";
	mes "You need to be of Baselevel [999].";
	close;
}

	mes "[ ^ff0000PVP Warper^000000 ]";
	announce ""+strcharinfo(0)+" has entered PvP Arena [ PvP - Room ]", bc_all;
	warp "guild_vs3",0,0;
	close2;

OnInit:
initnpctimer;
end;

OnTimer1000:
delwaitingroom;
	waitingroom "PvP "+getmapusers("guild_vs3")+" Users.",0;
initnpctimer;
end;
}


-	script	PCKill	-1,{
OnPCKillEvent:
    if (killedrid == getcharid(3)) end;
    for(set .@i,0; .@i<getarraysize(.Maps$); set .@i,.@i+1)
        if (strcharinfo(3)==.Maps$[.@i]) {
            if (.NoFarm) {
                if (killedrid == @last_kill) end;
                set @last_kill, killedrid; }
            if (.Item) getitem .Item, 1;
            if (.Cash$ != "") {
                setd .Cash$, getd(.Cash$)+1;
                dispbottom "Gained a kill point! Total: "+getd(.Cash$); }
            break; }
    end;

OnInit:
    setarray .Maps$[0],"guild_vs3","pvp_y_2-2","pvp_y_3-2";
    set .NoFarm,1;            // End script for repeated kills? (1:yes / 0:no)
    set .Item, 0;            // 0 to disable
    set .Cash$, "#CASHPOINTS";    // "" to disable
    end;
}

My PvP Warper + pvp points

Link to comment
Share on other sites

  • 0

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

morocc,172,249,4	script	PvP Arena	1198,{
	
menu
	"PvP (Izlude) [" + getmapusers("pvp_y_1-2.gat") + " / 69]",L2,
	"PvP (Morocc) [" + getmapusers("pvp_y_3-5.gat") + " / 69]",L3;
	
L2:
	if ((getmapusers("pvp_y_1-2.gat") > 68)&&(getgmlevel() < 1)) goto Lsorry;
	if ((class==Job_Novice_High)&&(getgmlevel() < 1)) goto Lnoob;
	if (class==Super_Novice) goto Lnoob;
	warp "pvp_y_1-2",0,0;
	close;

L3:
	if (getmapusers("pvp_y_3-5") > 60) callsub S_full;
	warp "pvp_y_3-5",0,0;
	close;

Lsorry:
	mes "[PvP Warper]";
	mes "Sorry, The PvP Arena is Full.";
	close;

Lnoob:
	mes "[PvP Warper]";
	mes "This place is ^FF0000RESTRICTED^000000 for your class.";
	close;

S_full:
	mes " ";
	mes "I'm sorry, this arena is full.  Please try again later...";
	close;
}

// PvP Room ----------------------------------------------
morocc,154,113,6	duplicate(PvP Arena)	PvP Arena#dl	1198
louyang,225,98,3	duplicate(PvP Arena)	PvP Arena#d1	1198
payon,167,234,3	duplicate(PvP Arena)	PvP Arena#d1	1198
gonryun,170,142,3	duplicate(PvP Arena)	PvP Arena#d1	1198
aldebaran,146,116,3	duplicate(PvP Arena)	PvP Arena#d1	1198
ayothaya,161,159,3	duplicate(PvP Arena)	PvP Arena#d1	1198
xmas,154,126,3	duplicate(PvP Arena)	PvP Arena#d1	1198
turbo_room,112,118,6	duplicate(PvP Arena)	PvP Arena#d1	1198

 

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