Jump to content
  • 0

PvP Room Setup(No Pot Room) - Need Help


WhatFT

Question


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

Can anyone help me edit this script and add NO POT PVP ROOM?

/*
Written by Nameless2you
Script is allowed to be re-configured and used in parts or whole.
Please credit if used.
Uploaded to http://upaste.me
Details:
-Enable & Disable PvP Rooms 1 & 2.
-GM Menu for the 2 above and to kick a player.
-Kick a player
-GVG On/Off switch
*/
- 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 [^0000FF"+getmapusers("deathmatch")+"^000000/^FF0000128^000000]":""),
 ((.pvp_2 && getmapusers("pvp_y_1-2") < 129)?"Warp to Room 2 [^0000FF"+getmapusers("pvp_y_1-2")+"^000000/^FF0000128^000000]":""),
 ((!.pvp_1)?"^00FF00Enable Deathmatch^000000":"^FF0000Disable Deathmatch 1^000000"),
 ((!.pvp_2)?"^00FF00Enable Izlude PvP^000000":"^FF0000Disable Izlude PvP 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("pvp_y_1-2") < 129)?"Warp to Room 2 [^00FF00"+getmapusers("pvp_y_1-2")+"/128^000000]":"")
 );
switch(@menu){
 case 1:
  next;
   warp "deathmatch",0,0;
announce strcharinfo(0)+" entered Deathmatch PvP",0;
  end;
 case 2:
  next;
   warp "pvp_y_1-2",0,0;
announce strcharinfo(0)+" entered PvP Izlude",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("pvp_y_1-2",mf_gvg);
  setmapflag("pvp_y_1-2",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("pvp_y_1-2",mf_pvp);
  setmapflag("pvp_y_1-2",mf_gvg);
  close;
 }
}

OnInit: //On Server restart
set .pvp_1,1; //0 = Off, 1 = On
set .pvp_2,1; //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
job3_sha01,68,30,5 duplicate(PvP-Controller) [Hex]PvP Warper 459
jawaii,209,296,5 duplicate(PvP-Controller) [DW]PvP Warper 459
ra_temsky,53,138,5 duplicate(PvP-Controller) [Galaxy]PvP Warper 459

THANKS GUYS ! Please post in pastebin or upload an attachment thank you XD

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


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

https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/db/item_noequip.txt

edit there...and put the correspond mapflag to your pvp map..

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:  

Hmm okay, how about adding a new map sir Emistry, means instead of 2 pvp map, I 'll use 3 pvp map..

Link to comment
Share on other sites


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

add a new menu line in the menu part..

then at the switch part..

add a new case..( you can copy other cases )

then edit the mapname...

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:  

Okay sir, I don't know the format in No Pots..

Item ID - 547

Map : deathmatch

Zone : 1

I did this..

item_noequip.txt

547,1

restricted.txt

//Deathmatch PvP

deathmatch restricted 1

Edited by Paulinds
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   52
  • Joined:  11/15/11
  • Last Seen:  

Remember that zone 1 restriction already exist, so what ever other map has that restriction will now be unable to use the item 547 on that map.

Link to comment
Share on other sites


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

deathmatch	mapflag	restricted	1

you wont need to add if this mapflag already apply by default to certain zone of map

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:  

Okay sir ! Thanks ~ SOLVED !

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