Advertisement
johnlol

PVP Cash Points Penalty

Aug 7th, 2023
848
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VeriLog 1.04 KB | Gaming | 0 0
  1. /*
  2. ________________     ______            ________      
  3. ___    |_____  /________  /______      ___  __ \_____
  4. __  /| |  __  /_  __ \_  __ \  _ \     __  /_/ /  __ \
  5. _  ___ / /_/ / / /_/ /  /_/ /  __/     _  _, _// /_/ /
  6. /_/  |_\__,_/  \____//_.___/\___/      /_/ |_| \____/
  7.  
  8. */
  9.  
  10. /*
  11. -   script  PVP Cash Points -1,{
  12. OnInit:
  13. set .Delay,1;       // Delay, in seconds
  14. end;
  15. OnPCDieEvent:
  16. if( @Delay < gettimetick(2) ){
  17. set .@Amount,rand(1,5);
  18. set #CASHPOINTS,#CASHPOINTS + .@Amount;
  19. dispbottom "You lost "+.@Amount+" Cash Point. Total = "+#CASHPOINTS+" Cash Points.";
  20. if( .Delay ) set @Delay,gettimetick(2) + .Delay;
  21. }
  22. end;
  23. }
  24. */
  25.  
  26. -   script  PVPPoint    -1,{
  27.  
  28. OnPCDieEvent:
  29.     if (killerrid == getcharid(3))
  30.         end;
  31.     if (getmapflag(strcharinfo(3),mf_pvp) || getmapflag(strcharinfo(3),mf_gvg)) {
  32.         set .@Amount,rand(1,5);
  33.         set #CASHPOINTS,#CASHPOINTS - .@Amount;
  34.         dispbottom "You lost -"+.@Amount+" Cash Points. Total Accumulated Cash Points = "+#CASHPOINTS+" Points.";
  35.         specialeffect2 EF_SKIDTRAP;
  36.     }
  37.     end;
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement