Advertisement
mnchngrngs

Untitled

Sep 25th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.08 KB | None | 0 0
  1. if(_root.save.inventorySubtype[k] == "Weapon Mystery Enhancer")
  2. {
  3. _root.save.inventoryBonusPow[k] = _root.save.inventoryBonusPow[k] + 500;
  4. typeX = random(5) + 1;
  5. if(typeX == 1)
  6. {
  7. _root.save.inventorySubtype[k] = "Weapon Attack Enhancer";
  8. _root.save.inventoryAttack[k] = _root.save.inventoryAttack[k] * 5;
  9. }
  10. if(typeX == 2)
  11. {
  12. _root.save.inventorySubtype[k] = "Weapon Defense Enhancer";
  13. _root.save.inventoryAttack[k] = _root.save.inventoryAttack[k] * 12;
  14. }
  15. if(typeX == 3)
  16. {
  17. _root.save.inventorySubtype[k] = "Weapon Critical Enhancer";
  18. }
  19. if(typeX == 4)
  20. {
  21. _root.save.inventorySubtype[k] = "Weapon Dexterity Enhancer";
  22. }
  23. if(typeX == 5)
  24. {
  25. _root.save.inventorySubtype[k] = "Weapon Health Enhancer";
  26. }
  27. }
  28. if(_root.save.inventorySubtype[k] == "Armor Mystery Enhancer")
  29. {
  30. _root.save.inventoryBonusPow[k] = _root.save.inventoryBonusPow[k] + 500;
  31. typeX = random(5) + 1;
  32. if(typeX == 1)
  33. {
  34. _root.save.inventorySubtype[k] = "Armor Attack Enhancer";
  35. _root.save.inventoryAttack[k] = _root.save.inventoryAttack[k] * 2;
  36. }
  37. if(typeX == 2)
  38. {
  39. _root.save.inventorySubtype[k] = "Armor Defense Enhancer";
  40. _root.save.inventoryAttack[k] = _root.save.inventoryAttack[k] * 5;
  41. }
  42. if(typeX == 3)
  43. {
  44. _root.save.inventorySubtype[k] = "Armor Critical Enhancer";
  45. }
  46. if(typeX == 4)
  47. {
  48. _root.save.inventorySubtype[k] = "Armor Dexterity Enhancer";
  49. }
  50. if(typeX == 5)
  51. {
  52. _root.save.inventorySubtype[k] = "Armor Health Enhancer";
  53. }
  54. }
  55. }
  56. else if(_root.save.inventorySubtype[j] == "Weapon Mystery Enhancer")
  57. {
  58. _root.save.inventoryEnhance[k] = _root.save.inventoryEnhance[k] + 1;
  59. if(_root.save.inventoryEnhance[k] == 10)
  60. {
  61. _root.save.arenaMaxEnhance = _root.save.arenaMaxEnhance + 1;
  62. }
  63. if(_root.save.inventoryAttack[k] != 0)
  64. {
  65. typeX = random(5) + 1;
  66. }
  67. else
  68. {
  69. typeX = random(4) + 2;
  70. }
  71. if(typeX == 1)
  72. {
  73. _root.save.inventoryAttack[k] = _root.save.inventoryAttack[k] + pow * 5;
  74. _root.save.inventoryBonusPow[k] = _root.save.inventoryBonusPow[k] + pow * 5;
  75. }
  76. if(typeX == 2)
  77. {
  78. _root.save.inventoryDefense[k] = _root.save.inventoryDefense[k] + pow * 12;
  79. _root.save.inventoryBonusPow[k] = _root.save.inventoryBonusPow[k] + pow * 5;
  80. }
  81. if(typeX == 3)
  82. {
  83. _root.save.inventoryCrit[k] = _root.save.inventoryCrit[k] + pow;
  84. _root.save.inventoryBonusPow[k] = _root.save.inventoryBonusPow[k] + pow * 5;
  85. }
  86. if(typeX == 4)
  87. {
  88. _root.save.inventoryDexterity[k] = _root.save.inventoryDexterity[k] + pow;
  89. _root.save.inventoryBonusPow[k] = _root.save.inventoryBonusPow[k] + pow * 5;
  90. }
  91. if(typeX == 5)
  92. {
  93. _root.save.inventoryHealth[k] = _root.save.inventoryHealth[k] + pow;
  94. _root.save.inventoryBonusPow[k] = _root.save.inventoryBonusPow[k] + pow * 5;
  95. }
  96. }
  97. else if(_root.save.inventorySubtype[j] == "Armor Mystery Enhancer")
  98. {
  99. _root.save.inventoryEnhance[k] = _root.save.inventoryEnhance[k] + 1;
  100. if(_root.save.inventoryEnhance[k] == 10)
  101. {
  102. _root.save.arenaMaxEnhance = _root.save.arenaMaxEnhance + 1;
  103. }
  104. typeX = random(5) + 1;
  105. if(typeX == 1)
  106. {
  107. _root.save.inventoryAttack[k] = _root.save.inventoryAttack[k] + pow * 2;
  108. _root.save.inventoryBonusPow[k] = _root.save.inventoryBonusPow[k] + pow * 5;
  109. }
  110. if(typeX == 2)
  111. {
  112. _root.save.inventoryDefense[k] = _root.save.inventoryDefense[k] + pow * 5;
  113. _root.save.inventoryBonusPow[k] = _root.save.inventoryBonusPow[k] + pow * 5;
  114. }
  115. if(typeX == 3)
  116. {
  117. _root.save.inventoryCrit[k] = _root.save.inventoryCrit[k] + pow;
  118. _root.save.inventoryBonusPow[k] = _root.save.inventoryBonusPow[k] + pow * 5;
  119. }
  120. if(typeX == 4)
  121. {
  122. _root.save.inventoryDexterity[k] = _root.save.inventoryDexterity[k] + pow;
  123. _root.save.inventoryBonusPow[k] = _root.save.inventoryBonusPow[k] + pow * 5;
  124. }
  125. if(typeX == 5)
  126. {
  127. _root.save.inventoryHealth[k] = _root.save.inventoryHealth[k] + pow;
  128. _root.save.inventoryBonusPow[k] = _root.save.inventoryBonusPow[k] + pow * 5;
  129. }
  130. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement