Jump to content
  • 0

Pvp Change Map help.


AllHailToTheKing

Question


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

payon,168,234,4 script PvP Arena 1198,{

menu
"PvP [" + getmapusers("pvp_y_1-2.gat]") + " / 69]",L2,
//"^999999Royal Rumble [" + getmapusers("pvp_y_8-2.gat") + " / 69 ]^000000",L4,
//"PvP Baby ["+getmapusers("pvp_y_3-2")+ " / 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-2") > 60) callsub S_full;
if ((class < 4023) || (class > 4045) ) goto L_NotBaby;
warp "pvp_y_3-2",0,0;
close;

//L4:
//if ((getmapusers("pvp_y_8-2.gat") > 69)&&(getgmlevel() < 1)) goto Lsorry;
//if ((class==Job_Novice_High)&&(getgmlevel() < 1)) goto Lnoob;
//if (class==Super_Novice) goto Lnoob;
//warp "pvp_y_8-2.gat",0,0;
//close;

//L5:
//if (getmapusers("gefg_cast04.gat") > 69) goto Lsorry;
//warp "gefg_cas04",178,63;
//close;

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-2",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;



set .@GID, GetCastleData("gefg_cas04",1);


OnRecvCastleG04:
FlagEmblem GetCastleData("gefg_cas04",1);
end;


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

// -- Mapflags
pvp_y_1-2 mapflag nobranch

hello. im using this script for my PVP room. but i want to change the map to prt_are01 how to do it? only 1 pvp room is open here. the red txt on the top. and how to remove the npc on that map. prt_are01.

Thanks you.

Edited by AllHailToTheKing
Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  142
  • Topics Per Day:  0.03
  • Content Count:  511
  • Reputation:   7
  • Joined:  02/15/12
  • Last Seen:  

I'm using this PvP Script.

Features :

- GM Config

- Multiple PvP Rooms (Can Open or Close)

- Enables/Disables GvG Mode

- Kick Players inside PvP Map


- script PvP-Controller -1,{

mes "[PvP Warper]";
mes "What would you like me to do?";
if(getgmlevel() >= .gmaccess)
select(
((.pvp_1 && getmapusers("deathmatch") < 129)?"Warp to Room 1 [^00FF00"+getmapusers("deathmatch")+"^000000/^FF0000128^000000]":""),
((.pvp_2 && getmapusers("pvpmap") < 129)?"Warp to Room 2 [^00FF00"+getmapusers("pvpmap")+"^000000/^FF0000128^000000]":""),
((!.pvp_1)?"^00FF00Enable Deathmatch^000000":"^FF0000Disable Deathmatch 1^000000"),
((!.pvp_2)?"^00FF00Enable Royal Rumble^000000":"^FF0000Disable guild_vs4 2^000000"),
"Kick a player",
((!.gvg_1)?"^00FF00Enable GvG on Room 1^000000":"^FF0000Disable GvG on Room 1^000000"),
((!.gvg_2)?"^00FF00Enable GvG on Room 2^000000":"^FF0000Disable GvG on Room 2^000000")
);
else
select(
((.pvp_1 && getmapusers("deathmatch") < 129)?"Warp to Room 1 [^00FF00"+getmapusers("deathmatch")+"/128^000000]":""),
((.pvp_2 && getmapusers("pvpmap") < 129)?"Warp to Room 2 [^00FF00"+getmapusers("pvpmap")+"/128^000000]":"")
);

switch(@menu){
case 1:
next;
warp "deathmatch",0,0;
announce strcharinfo(0)+" entered the PvP Room",0;
end;
case 2:
next;
warp "pvpmap",0,0;
announce strcharinfo(0)+" entered in Royal Rumble Room",0;
end;
case 3:
next;
if(.pvp_1){
mes "[PvP Warper - GM Menu]";
mes "You turned PvP Room 1 Off.";
set .pvp_1,0;
close;
}
else
{
mes "[PvP Warper - GM Menu]";
mes "You turned PvP Room 1 On.";
set .pvp_1,1;
close;
}
case 4:
if(.pvp_2){
next;
mes "[PvP Warper - GM Menu]";
mes "You turned PvP Room 2 Off.";
set .pvp_2,0;
close;
}
else
{
mes "[PvP Warper - GM Menu]";
mes "You turned PvP Room 2 On.";
set .pvp_2,1;
close;
}
case 5:
next;
mes "[PvP Warper - GM Menu]";
mes "What player would you like to kick?";
mes "Press 0 to cancel.";
input .@input$;
if(.@input$ == "0") close;
next;
mes "[PvP Warper - GM Menu]";
mes ""+.@input$+" has been warped back to his save place.";
atcommand "#return "+.@input$;
close;
case 6:
if(.gvg_1){
next;
mes "[PvP Warper - GM Menu]";
mes "You turned GvG Off in Room 1.";
mes "You turned PvP On in Room 1.";
set .gvg_1,0;
removemapflag("deathmatch",mf_gvg);
setmapflag("deathmatch",mf_pvp);
close;
}
else
{
mes "[PvP Warper - GM Menu]";
mes "You turned GvG On in Room 1.";
mes "You turned PvP Off in Room 1.";
set .gvg_1,1;
removemapflag("deathmatch",mf_pvp);
setmapflag("deathmatch",mf_gvg);
close;
}

case 7:
if(.gvg_2){
next;
mes "[PvP Warper - GM Menu]";
mes "You turned GvG Off in Room 1.";
mes "You turned PvP On in Room 2.";
set .gvg_2,0;
removemapflag("pvpmap",mf_gvg);
setmapflag("pvpmap",mf_pvp);
close;
}
else
{
mes "[PvP Warper - GM Menu]";
mes "You turned GvG On in Room 2.";
mes "You turned PvP Off in Room 2.";
set .gvg_2,1;
removemapflag("pvpmap",mf_pvp);
setmapflag("pvpmap",mf_gvg);
close;
}

}


OnInit: //On Server restart
set .pvp_1,1; //0 = Off, 1 = On
set .pvp_2,0; //0 = Off, 1 = On
set .gvg_1,0; //0 = Off, 1 = On
set .gvg_2,0; //0 = Off, 1 = On
set .gmaccess,90; //Required GM level to receive menu
end;

}

//omg it duplicates!!
belagio,48,73,5 duplicate(PvP-Controller) PvP Warper#01 459
belagio,99,64,5 duplicate(PvP-Controller) PvP Warper#02 459

just change the

deathmatch/pvpmap

to your map

prt_are01

Edited by Paulinds
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

I'm using this PvP Script.

Features :

- GM Config

- Multiple PvP Rooms (Can Open or Close)

- Enables/Disables GvG Mode

- Kick Players inside PvP Map


- script PvP-Controller -1,{

mes "[PvP Warper]";
mes "What would you like me to do?";
if(getgmlevel() >= .gmaccess)
select(
((.pvp_1 && getmapusers("deathmatch") < 129)?"Warp to Room 1 [^00FF00"+getmapusers("deathmatch")+"^000000/^FF0000128^000000]":""),
((.pvp_2 && getmapusers("pvpmap") < 129)?"Warp to Room 2 [^00FF00"+getmapusers("pvpmap")+"^000000/^FF0000128^000000]":""),
((!.pvp_1)?"^00FF00Enable Deathmatch^000000":"^FF0000Disable Deathmatch 1^000000"),
((!.pvp_2)?"^00FF00Enable Royal Rumble^000000":"^FF0000Disable guild_vs4 2^000000"),
"Kick a player",
((!.gvg_1)?"^00FF00Enable GvG on Room 1^000000":"^FF0000Disable GvG on Room 1^000000"),
((!.gvg_2)?"^00FF00Enable GvG on Room 2^000000":"^FF0000Disable GvG on Room 2^000000")
);
else
select(
((.pvp_1 && getmapusers("deathmatch") < 129)?"Warp to Room 1 [^00FF00"+getmapusers("deathmatch")+"/128^000000]":""),
((.pvp_2 && getmapusers("pvpmap") < 129)?"Warp to Room 2 [^00FF00"+getmapusers("pvpmap")+"/128^000000]":"")
);

switch(@menu){
case 1:
next;
warp "deathmatch",0,0;
announce strcharinfo(0)+" entered the PvP Room",0;
end;
case 2:
next;
warp "pvpmap",0,0;
announce strcharinfo(0)+" entered in Royal Rumble Room",0;
end;
case 3:
next;
if(.pvp_1){
mes "[PvP Warper - GM Menu]";
mes "You turned PvP Room 1 Off.";
set .pvp_1,0;
close;
}
else
{
mes "[PvP Warper - GM Menu]";
mes "You turned PvP Room 1 On.";
set .pvp_1,1;
close;
}
case 4:
if(.pvp_2){
next;
mes "[PvP Warper - GM Menu]";
mes "You turned PvP Room 2 Off.";
set .pvp_2,0;
close;
}
else
{
mes "[PvP Warper - GM Menu]";
mes "You turned PvP Room 2 On.";
set .pvp_2,1;
close;
}
case 5:
next;
mes "[PvP Warper - GM Menu]";
mes "What player would you like to kick?";
mes "Press 0 to cancel.";
input .@input$;
if(.@input$ == "0") close;
next;
mes "[PvP Warper - GM Menu]";
mes ""+.@input$+" has been warped back to his save place.";
atcommand "#return "+.@input$;
close;
case 6:
if(.gvg_1){
next;
mes "[PvP Warper - GM Menu]";
mes "You turned GvG Off in Room 1.";
mes "You turned PvP On in Room 1.";
set .gvg_1,0;
removemapflag("deathmatch",mf_gvg);
setmapflag("deathmatch",mf_pvp);
close;
}
else
{
mes "[PvP Warper - GM Menu]";
mes "You turned GvG On in Room 1.";
mes "You turned PvP Off in Room 1.";
set .gvg_1,1;
removemapflag("deathmatch",mf_pvp);
setmapflag("deathmatch",mf_gvg);
close;
}

case 7:
if(.gvg_2){
next;
mes "[PvP Warper - GM Menu]";
mes "You turned GvG Off in Room 1.";
mes "You turned PvP On in Room 2.";
set .gvg_2,0;
removemapflag("pvpmap",mf_gvg);
setmapflag("pvpmap",mf_pvp);
close;
}
else
{
mes "[PvP Warper - GM Menu]";
mes "You turned GvG On in Room 2.";
mes "You turned PvP Off in Room 2.";
set .gvg_2,1;
removemapflag("pvpmap",mf_pvp);
setmapflag("pvpmap",mf_gvg);
close;
}

}


OnInit: //On Server restart
set .pvp_1,1; //0 = Off, 1 = On
set .pvp_2,0; //0 = Off, 1 = On
set .gvg_1,0; //0 = Off, 1 = On
set .gvg_2,0; //0 = Off, 1 = On
set .gmaccess,90; //Required GM level to receive menu
end;

}

//omg it duplicates!!
belagio,48,73,5 duplicate(PvP-Controller) PvP Warper#01 459
belagio,99,64,5 duplicate(PvP-Controller) PvP Warper#02 459

just change the

deathmatch/pvpmap

to your map

prt_are01

thank you what about the map. because i have some npc inside the prt_are01 how to remove them?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  142
  • Topics Per Day:  0.03
  • Content Count:  511
  • Reputation:   7
  • Joined:  02/15/12
  • Last Seen:  

I don't know how to remove but try unloading them.. "@unloadnpc <NPC NAME>"

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

cant. whenever the server restart or reload all the npc is going back

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  130
  • Reputation:   43
  • Joined:  12/11/11
  • Last Seen:  

The NPCs that are on prt_are01 are all in npcquestsskillsrogue_skills.txt

You can disable them by removing or moving them.

Edited by plankt
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

@paulinds i tried the pvp script you have but the npc is not showing on my server.

prontera,209,112,4 script PvP Arena 1198,{

mes "[PvP Warper]";
mes "What would you like me to do?";
if(getgmlevel() >= .gmaccess)
select(
((.pvp_1 && getmapusers("deathmatch") < 129)?"Warp to Room 1 [^00FF00"+getmapusers("deathmatch")+"^000000/^FF0000128^000000]":""),
((.pvp_2 && getmapusers("pvpmap") < 129)?"Warp to Room 2 [^00FF00"+getmapusers("pvpmap")+"^000000/^FF0000128^000000]":""),
((!.pvp_1)?"^00FF00Enable Deathmatch^000000":"^FF0000Disable Deathmatch 1^000000"),
((!.pvp_2)?"^00FF00Enable Royal Rumble^000000":"^FF0000Disable guild_vs4 2^000000"),
"Kick a player",
((!.gvg_1)?"^00FF00Enable GvG on Room 1^000000":"^FF0000Disable GvG on Room 1^000000"),
((!.gvg_2)?"^00FF00Enable GvG on Room 2^000000":"^FF0000Disable GvG on Room 2^000000")
);
else
select(
((.pvp_1 && getmapusers("deathmatch") < 129)?"Warp to Room 1 [^00FF00"+getmapusers("deathmatch")+"/128^000000]":""),
((.pvp_2 && getmapusers("pvpmap") < 129)?"Warp to Room 2 [^00FF00"+getmapusers("pvpmap")+"/128^000000]":"")
);

switch(@menu){
case 1:
next;
warp "deathmatch",0,0;
announce strcharinfo(0)+" entered the PvP Room",0;
end;
case 2:
next;
warp "pvpmap",0,0;
announce strcharinfo(0)+" entered in Royal Rumble Room",0;
end;
case 3:
next;
if(.pvp_1){
mes "[PvP Warper - GM Menu]";
mes "You turned PvP Room 1 Off.";
set .pvp_1,0;
close;
}
else
{
mes "[PvP Warper - GM Menu]";
mes "You turned PvP Room 1 On.";
set .pvp_1,1;
close;
}
case 4:
if(.pvp_2){
next;
mes "[PvP Warper - GM Menu]";
mes "You turned PvP Room 2 Off.";
set .pvp_2,0;
close;
}
else
{
mes "[PvP Warper - GM Menu]";
mes "You turned PvP Room 2 On.";
set .pvp_2,1;
close;
}
case 5:
next;
mes "[PvP Warper - GM Menu]";
mes "What player would you like to kick?";
mes "Press 0 to cancel.";
input .@input$;
if(.@input$ == "0") close;
next;
mes "[PvP Warper - GM Menu]";
mes ""+.@input$+" has been warped back to his save place.";
atcommand "#return "+.@input$;
close;
case 6:
if(.gvg_1){
next;
mes "[PvP Warper - GM Menu]";
mes "You turned GvG Off in Room 1.";
mes "You turned PvP On in Room 1.";
set .gvg_1,0;
removemapflag("deathmatch",mf_gvg);
setmapflag("deathmatch",mf_pvp);
close;
}
else
{
mes "[PvP Warper - GM Menu]";
mes "You turned GvG On in Room 1.";
mes "You turned PvP Off in Room 1.";
set .gvg_1,1;
removemapflag("deathmatch",mf_pvp);
setmapflag("deathmatch",mf_gvg);
close;
}

case 7:
if(.gvg_2){
next;
mes "[PvP Warper - GM Menu]";
mes "You turned GvG Off in Room 1.";
mes "You turned PvP On in Room 2.";
set .gvg_2,0;
removemapflag("pvpmap",mf_gvg);
setmapflag("pvpmap",mf_pvp);
close;
}
else
{
mes "[PvP Warper - GM Menu]";
mes "You turned GvG On in Room 2.";
mes "You turned PvP Off in Room 2.";
set .gvg_2,1;
removemapflag("pvpmap",mf_pvp);
setmapflag("pvpmap",mf_gvg);
close;
}

}


OnInit: //On Server restart
set .pvp_1,1; //0 = Off, 1 = On
set .pvp_2,0; //0 = Off, 1 = On
set .gvg_1,0; //0 = Off, 1 = On
set .gvg_2,0; //0 = Off, 1 = On
set .gmaccess,90; //Required GM level to receive menu
end;

}

//omg it duplicates!!
belagio,48,73,5 duplicate(PvP-Controller) PvP Warper#01 459
belagio,99,64,5 duplicate(PvP-Controller) PvP Warper#02 459

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

bump~ please see post number 1. i want to use my old pvp script and i just want to change the map. but whenever i do it. it wont work. still the old pvp map is there. anyone please help

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