Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - script cash_rewards -1,{
- OnInit:
- setarray .@mobIds, 1002, 1063;
- for(.@i=0; .@i < getarraysize(.@mobIds); .@i++)
- .rewardMobIds[.@mobIds[.@i]] = 1;
- .mobRewardPoints = 1;
- .pvpRewardPoints = 1;
- end;
- OnNPCKillEvent:
- if(.rewardMobIds[killedrid] > 0) {
- #CASHPOINTS += .mobRewardPoints;
- dispbottom "You now have " + #CASHPOINTS + " Cash Point" + ((#CASHPOINTS > 1) ? "s" : "") + ".";
- announce strcharinfo(PC_NAME) + " killed " + strmobinfo(1, killedrid) + " and earned "+ .mobRewardPoints +" Cash Point" + ((.mobRewardPoints > 1) ? "s" : "") + ".", bc_all;
- }
- end;
- OnPCKillEvent:
- #CASHPOINTS += .pvpRewardPoints;
- dispbottom "You now have " + #CASHPOINTS + " Cash Point" + ((#CASHPOINTS > 1)? "s":"") + ".";
- mapannounce strcharinfo(PC_MAP), strcharinfo(PC_NAME) + " killed " + rid2name(killedrid) + " and earned " + .pvpRewardPoints +" Cash Point" + ((.pvpRewardPoints > 1)? "s" : "") + ".";
- end;
- }
Advertisement
Add Comment
Please, Sign In to add comment