Guest User

Untitled

a guest
Jul 2nd, 2015
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. - script cash_rewards -1,{
  2. OnInit:
  3. setarray .@mobIds, 1002, 1063;
  4. for(.@i=0; .@i < getarraysize(.@mobIds); .@i++)
  5. .rewardMobIds[.@mobIds[.@i]] = 1;
  6.  
  7. .mobRewardPoints = 1;
  8. .pvpRewardPoints = 1;
  9. end;
  10. OnNPCKillEvent:
  11. if(.rewardMobIds[killedrid] > 0) {
  12. #CASHPOINTS += .mobRewardPoints;
  13. dispbottom "You now have " + #CASHPOINTS + " Cash Point" + ((#CASHPOINTS > 1) ? "s" : "") + ".";
  14. announce strcharinfo(PC_NAME) + " killed " + strmobinfo(1, killedrid) + " and earned "+ .mobRewardPoints +" Cash Point" + ((.mobRewardPoints > 1) ? "s" : "") + ".", bc_all;
  15. }
  16. end;
  17. OnPCKillEvent:
  18. #CASHPOINTS += .pvpRewardPoints;
  19. dispbottom "You now have " + #CASHPOINTS + " Cash Point" + ((#CASHPOINTS > 1)? "s":"") + ".";
  20. mapannounce strcharinfo(PC_MAP), strcharinfo(PC_NAME) + " killed " + rid2name(killedrid) + " and earned " + .pvpRewardPoints +" Cash Point" + ((.pvpRewardPoints > 1)? "s" : "") + ".";
  21. end;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment