Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - script Func_PVP -1,{
- OnPCKillEvent:
- if(!getmapflag(strcharinfo(3),mf_pvp)) end;
- if (getcharid(3) == killedrid) end;
- #PVPPOINTS += .p[0];
- .@chance = rand(100);
- set #PVPPOINTS,#PVPPOINTS+1;
- // Super Rare Item 1%
- if (.@chance == 0) {
- #PVPPOINTS += 1;
- dispbottom "["+strcharinfo(0)+"] won a [1 #PVPPOINTS].",0;
- dispbottom "You currently have " + #PVPPOINTS + " pvp points.";
- }
- else if (.chance <= 10) { // 10%
- #PVPPOINTS += 2;
- dispbottom "You won pvp points is " + #PVPPOINTS;
- dispbottom "["+strcharinfo(0)+"] won a [2 #PVPPOINTS].",0;
- dispbottom "You currently have " + #PVPPOINTS + " pvp points.";
- }
- else if (.chance <= 15) { // 5%
- #PVPPOINTS += 3;
- dispbottom "You won pvp points is " + #PVPPOINTS;
- dispbottom "["+strcharinfo(0)+"] won a [3 #PVPPOINTS].",0;
- dispbottom "You currently have " + #PVPPOINTS + " pvp points.";
- }
- else if (.chance <= 22) { // 7%
- #PVPPOINTS += 4;
- dispbottom "["+strcharinfo(0)+"] won a [4 #PVPPOINTS].",0;
- dispbottom "You currently have " + #PVPPOINTS + " pvp points.";
- }
- else if (.chance <= 50) { // 28%
- #PVPPOINTS += 5;
- dispbottom "["+strcharinfo(0)+"] won a [5 #PVPPOINTS].",0;
- dispbottom "You currently have " + #PVPPOINTS + " pvp points.";
- }
- // Common Items // 50%
- else {
- #PVPPOINTS += 2;
- }
- end;
- end;
- OnCheckPoint:
- dispbottom "You currently have " + #PVPPOINTS + " pvp points.";
- end;
- OnInit:
- bindatcmd "checkpoints", strnpcinfo(0) + "::OnCheckPoint";
- end;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement