Advertisement
akbare

PVP POINT ALL MAP PVP

Feb 25th, 2024
11
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | Gaming | 0 0
  1. - script Func_PVP -1,{
  2. OnPCKillEvent:
  3. if(!getmapflag(strcharinfo(3),mf_pvp)) end;
  4. if (getcharid(3) == killedrid) end;
  5. #PVPPOINTS += .p[0];
  6. dispbottom "You won " + .p[0] + " pvp points. New pvp points is " + #PVPPOINTS;
  7. end;
  8.  
  9. OnPCDieEvent:
  10. if (getcharid(3) == killerrid || strcharinfo(3) != "prontera") end;
  11. if (#PVPPOINTS > .p[1]) {#PVPPOINTS -= .p[1];}
  12. else {#PVPPOINTS = 0;}
  13. dispbottom "You lost " + .p[1] + " pvp points. New pvp points is " + #PVPPOINTS;
  14. end;
  15.  
  16. OnCheckPoint:
  17. dispbottom "You currently have " + #PVPPOINTS + " pvp points.";
  18. end;
  19. OnInit:
  20. setarray .p[0], 2, 0; // points per kill, points per death
  21. bindatcmd "checkpoints", strnpcinfo(0) + "::OnCheckPoint";
  22. end;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement