/**
* Pawnage Ragnarok Online
* Author: Poison
* v1.0 = Initial Creation [01.13.2015]
* Lethalia Gaming © 2013
**/
izlude,128,119,3 script BATTLEGROUNDS 4_M_BLACKMAN,{
if (BaseLevel == 1)
end;
callsub L_Show_Rank;
if (!RWC) {
// PvP Map
.@pvp_map$ = "pvp_x_1-1";
.@pvp_map_name$ = "Free For All";
// CvC Map
.@cvc_map$ = "pvp_n_1-3";
.@cvc_map_name$ = "Champion vs Champion";
// GvG Maps
.@gvg_map$ = "prt_gld";
.@gvg_map_name$ = "W O E";
.@gvg_map_x = 153;
.@gvg_map_y = 135;
// Boss Maps
.@boss_map$ = "1@rev";
.@boss_name$ = "Boss Challenge (IFRIT)";
.@boss_map_x = 111;
.@boss_map_y = 108;
setarray .@PvP_Menu$[0], "["+getmapusers(.@pvp_map$)+"/0] ^666666"+.@pvp_map_name$+"^000000",
"["+getmapusers(.@cvc_map$)+"/0] ^666666"+.@cvc_map_name$+"^000000",
"["+getmapusers(.@gvg_map$)+"/0] ^666666"+.@gvg_map_name$+"^000000",
"["+getmapusers(.@boss_map$)+"/0] ^666666"+.@boss_name$+"^000000";
}
for (.@i = 0; .@i < getarraysize(.@PvP_Menu$); .@i++)
.@menu$ = .@menu$ + .@PvP_Menu$[.@i] +":";
.@option = select(.@menu$) - 1;
// PvP
if (.@option == 0) {
if (RWC) {
callsub OnCheckBlock, 1;
warp .@pvp_map$, 0, 0;
}
warp .@pvp_map$, 0, 0;
end;
}
// CvC
if (.@option == 1) {
if (Class != Job_Champion) {
dispbottom "[BATTLEGROUND] You cannot enter due to job restriction.";
close;
}
if (readparam(bAgi) > 1) {
dispbottom "[BATTLEGROUND] Please set your AGI to 1.";
close;
}
if (StatusPoint > 1) {
dispbottom "[BATTLEGROUND] Please use all your status points.";
close;
}
warp .@cvc_map$, 0, 0;
end;
}
// GvG
if (.@option == 2) {
// WOE is disabled for RWC characters
if (RWC)
end;
warp .@gvg_map$, .@gvg_map_x, .@gvg_map_y;
end;
}
// Boss
if (.@option == 3) {
if (RWC)
end;
warp .@boss_map$, .@boss_map_x, .@boss_map_y;
end;
}
close;
L_Show_Rank:
query_sql "SELECT `char`, `kill`, `death`, `kdr` FROM `pvp_rank` WHERE `char_mode` = 0 ORDER BY `kill` DESC LIMIT 10", .@char$, .@kill, .@death, .@kdr$;
mes "[^0000FFTop 10 PvP of "+callfunc("F_Time_Month")+"^000000 ]";
mes "#. Name Kill Death KDR";
for (.@i = 0; .@i < getarraysize(.@char$); .@i++)
mes ""+(.@i + 1)+". "+.@char$[.@i]+" "+.@kill[.@i]+" "+.@death[.@i]+" "+.@kdr$[.@i]+"";
return;
OnCheckBlock:
.@rwc = getarg(0);
if (.@rwc != RWC) {
emotion e_mail, 1;
dispbottom "[BATTLEGROUND] You cannot enter due to Character Mode restriction.";
close;
}
if (callfunc("F_RWC_Check_Registered", getcharid(2)) == 1) {
emotion e_mail, 1;
dispbottom "[BATTLEGROUND] You cannot enter because your team is registered.";
close;
}
return;
}
1@rev mapflag nobranch
1@rev mapflag noteleport
1@rev mapflag monster_noteleport
1@rev mapflag noreturn
1@rev mapflag novending
1@rev, 112,117,0,0 monster Ifrit 1832,1,300000,0,0
pvp_x_1-1 mapflag pvp_noguild
pvp_x_1-1 mapflag pvp_noparty