Jump to content
  • 0

PvP Room


Boy

Question


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  134
  • Reputation:   4
  • Joined:  09/28/12
  • Last Seen:  

Hi,

Anyone can help me how to update this script.

i need add 1 on 1 pvp room.

prontera,150,187,5 script Arena 413,{
switch( select( "2nd Class Arena [ "+getmapusers("pvp_y_1-2")+" Users ]",
   "3rd class Arena [ "+getmapusers("pvp_y_2-2")+" Users ]",
   "No Donation 2nd Job [ "+getmapusers("pvp_y_3-2")+" Users ]",
   "No Donation 3rd Job [ "+getmapusers("pvp_y_4-2")+" Users ]",
   "One on One [ "+getmapusers("pvp_y_5-2")+" Users ]",
   "Info" ) ) {
   Case 1:  
       if ( Class > 4043 ){
  mes "You are not 2nd Class , so you cant enter.";
 }else{
  warp "pvp_y_1-2",0,0;
  announce ""+strcharinfo(0)+" Has Enter PvP 2nd Class Room !!",bc,0xBAB9B9;
 }
 break;
   Case 2:  
       if ( Class < 4054 ){
           mes "You are not 3rd Class , so you cant enter.";
 }else{
           warp "pvp_y_2-2",0,0;
  announce ""+strcharinfo(0)+" Has Enter PvP 3rd Class Room !!",bc,0xBAB9B9;
 }
       break;
   Case 3:  
  if ( Class > 4043 ){
     mes "You are not 2nd Job class , so you cant enter.";
 }else{
  for( set .@i,0; .@i<getarraysize(.NoDonator_ids); set .@i,.@i+1 )
   if (countitem(.NoDonator_ids[.@i])) {
    mes "You can not bring God items in this pvp.";
    close;
   }
      warp "pvp_y_3-2",0,0;
    announce ""+strcharinfo(0)+" Has Enter PvP No Donation 2nd Job Room !!",bc,0xBAB9B9;
 }
 break;
   Case 4:  
 if ( Class < 4054 ){
           mes "You are not 3rd Class , so you cant enter.";
 }else{
  for( set .@i,0; .@i<getarraysize(.NoDonator_ids); set .@i,.@i+1 )
   if (countitem(.NoDonator_ids[.@i])) {
    mes "You can not bring God items in this pvp.";
    close;
   }
  warp "pvp_y_4-2",0,0;
  announce ""+strcharinfo(0)+" Has Enter PvP No Donation 3rd Class Room !!",bc,0xBAB9B9;
 }
 break;
   Case 5:
       mes "The PvP Room is free for all wants to fight each other,";
       break;
}
close;
OnInit:
   waitingroom "PvP Warper ",0;
// items not allowed in Non Donator PVP
setarray .NoDonator_ids[0], 2410, 1530, 2629, 2630, 16007, 31000, 31001, 31002, 31003;
end;
}

http://pastebin.com/LyK0mDtg

Edited by AnnieRuru
use [codebox] if the script >10 lines
Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  


prontera,150,187,5 script Arena 413,{

switch( select( "2nd Class Arena [ "+getmapusers("pvp_y_1-2")+" Users ]",

"3rd class Arena [ "+getmapusers("pvp_y_2-2")+" Users ]",

"No Donation 2nd Job [ "+getmapusers("pvp_y_3-2")+" Users ]",

"No Donation 3rd Job [ "+getmapusers("pvp_y_4-2")+" Users ]",

"One on One [ "+getmapusers("pvp_y_5-2")+" Users ]",

"Info" ) ) {

case 1:

if ( upper & 4 ){

mes "You are not 2nd Class , so you cant enter.";

}else{

warp "pvp_y_1-2",0,0;

announce ""+strcharinfo(0)+" Has Enter PvP 2nd Class Room !!",bc,0xBAB9B9;

}

break;

case 2:

if ( !( upper & 4 ) ){

mes "You are not 3rd Class , so you cant enter.";

}else{

warp "pvp_y_2-2",0,0;

announce ""+strcharinfo(0)+" Has Enter PvP 3rd Class Room !!",bc,0xBAB9B9;

}

break;

case 3:

if ( upper & 4 ){

mes "You are not 2nd Job class , so you cant enter.";

}else{

for( set .@i,0; .@i<getarraysize(.NoDonator_ids); set .@i,.@i+1 )

if (countitem(.NoDonator_ids[.@i])) {

mes "You can not bring God items in this pvp.";

close;

}

warp "pvp_y_3-2",0,0;

announce ""+strcharinfo(0)+" Has Enter PvP No Donation 2nd Job Room !!",bc,0xBAB9B9;

}

break;

case 4:

if ( !( upper & 4 ) ){

mes "You are not 3rd Class , so you cant enter.";

}else{

for( set .@i,0; .@i<getarraysize(.NoDonator_ids); set .@i,.@i+1 )

if (countitem(.NoDonator_ids[.@i])) {

mes "You can not bring God items in this pvp.";

close;

}

warp "pvp_y_4-2",0,0;

announce ""+strcharinfo(0)+" Has Enter PvP No Donation 3rd Class Room !!",bc,0xBAB9B9;

}

break;

case 5:

if ( getmapusers("pvp_y_5-2") > 1 ) {

mes "please wait until 1 of them has fallen";

} else {

warp "pvp_y_5-2",0,0;

announce ""+strcharinfo(0)+" Has Enter PvP One on One Room !!",bc,0xBAB9B9;

}

break;

case 6:

mes "The PvP Room is free for all wants to fight each other,";

break;

}

close;

OnInit:

waitingroom "PvP Warper ",0;

// items not allowed in Non Donator PVP

setarray .NoDonator_ids[0], 2410, 1530, 2629, 2630, 16007, 31000, 31001, 31002, 31003;

end;

}

 

Edited by Emistry
Edited malfunction [CODEBOX] to new [CODE] tag
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  134
  • Reputation:   4
  • Joined:  09/28/12
  • Last Seen:  

@AnnieRuru : Thanks i will try and revert.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  134
  • Reputation:   4
  • Joined:  09/28/12
  • Last Seen:  

@AnnieRuru : The script is successful thanks you.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  134
  • Reputation:   4
  • Joined:  09/28/12
  • Last Seen:  

@AnnieRuru : i need ur help. i want add 1 more script for room for godly item only can enter this pvp room.

 

For example : Mjolnir and etc.



Anyone pls advise :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  134
  • Reputation:   4
  • Joined:  09/28/12
  • Last Seen:  

Any Senior can help me :)

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