Test this first.
prontera,162,193,5 script Entrada PvP 943,{
set .@n$, "[ ^cc0000Porteiro PvP^000000 ]";
INICIO:
mes .@n$;
mes "Arena 01 : ^0000FFPVP Arena^000000";
mes "Arena 02 : ^FF0000PVP Izlude^000000";
mes "O que você gostaria de fazer ?";
next;
switch(select("^3366FFEscolher Arena^000000:^800080Visualizar Ranking^000000:^00FF00Ver Minha Posição^000000:Sair")) {
case 1:
mes .@n$;
mes "Escolha a Arena que gostaria de entrar";
mes "Arena 01 : ^0000FFPVP Arena^000000";
mes "Arena 02 : ^FF0000PVP Izlude^000000";
next;
switch(select("- ^0000FFArena Fechada^000000 [ "+getmapusers($@map$[1])+" ]:- ^FF0000Arena Izlude^000000 [ "+getmapusers($@map$[2])+" ]:- Nenhuma")) {
case 1:
announce ""+strcharinfo(0)+" Entrou no PvP 1!!",bc,0xBAB9B9;
warp $@map$[1],0,0;
end;
case 2:
announce ""+strcharinfo(0)+" Entrou no PvP for All Room !!",bc,0xBAB9B9;
warp $@map$[2],0,0;
end;
case 3: close;
}
case 2:
mes .@n$;
mes "Escolha a Arena do Rank:";
next;
switch(select("- Rank ^0000FFArena 01^000000:- Rank ^FF0000Arena 02^000000:- Voltar")) {
case 1: callfunc("PvPS_Func","Ranking_Arena",1);close;
case 2: callfunc("PvPS_Func","Ranking_Arena",2);close;
case 3: goto INICIO;end;
}
case 3:
mes .@n$;
mes "Escolha o Tipo de PVP:";
next;
switch(select("- ^0000FFArena 01^000000:- ^FF0000Arena 02^000000:- Voltar")) {
case 1: callfunc("PvPS_Func","MeuRanking",1);close;
case 2: callfunc("PvPS_Func","MeuRanking",2);close;
case 3: goto INICIO;end;
}
case 4: close;
}
end; // fallback
}
These are leftovers.
close;
}
}
}
warp $@map$[4],0,0;
end;
case 5:
if(Class < 4023 || Class > 4045){
mes .@n$;
mes "Só babys podem entrar nesse PvP !";
close;
}
warp $@map$[5],128,114;
end;
case 6:
close;