Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. var _r1 = new RegExp("_maturity");
  2. var _r2 = new RegExp("_zodiac_bonus");
  3. var _r3 = new RegExp("_xp");
  4. var _r5 = new RegExp("Item");
  5. var _r4 = new RegExp("NC04"); //sidekick you want to change
  6. for(var i in e){
  7. if(_r4.test(e[i].schemaPrimativeID)){
  8. if (_r5.test(e[i].schemaPrimativeType)) {
  9. e[i].schemaPrimativeID="sidekick:WC08"; //to sidekick you want
  10. }
  11. if (_r1.test(e[i].schemaPrimativeID)) {
  12. e[i].maximum=3;
  13. e[i].value=3;
  14. }
  15. if (_r2.test(e[i].schemaPrimativeID)) {
  16. e[i].maximum=2;
  17. e[i].value=2;
  18. }
  19. if (_r3.test(e[i].schemaPrimativeID)) {
  20. e[i].maximum=200000;
  21. e[i].value=200000;
  22. }
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement