Mendenbarr

Dragon slayer vs. demon slayer

Jan 6th, 2015
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.87 KB | None | 0 0
  1. instance of movieClip {
  2.  
  3. onClipEvent (enterFrame) {
  4. fr = _root.dungeonRoomChest[_root.dungeonRoom] + 1;
  5. gotoAndStop(fr);
  6. if (Key.isDown(16)) {
  7. if (_root.dungeonRoomChest[_root.dungeonRoom] == 1) {
  8. _root.dungeonRoomChest[_root.dungeonRoom] = 2;
  9. _root.dungeonChestOpen += 1;
  10. _root.fightStat = 'Treasure Chests: ' + _root.dungeonChestOpen + ' / 10';
  11. if (Math.random() < 0.01 * _root.dungeonChestOpen) {
  12. _root.incDt2();
  13. _root.house.arena.stuffHolder.attachMovie('newLoot9', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': 2});
  14. }
  15. if (_root.dungeonChestOpen == 1) {
  16. valueX = 100000 * _root.endlessFloor;
  17. _root.incDt2();
  18. _root.house.arena.stuffHolder.attachMovie('newLoot7', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': valueX});
  19. } else {
  20. if (_root.dungeonChestOpen == 2) {
  21. valueX = 200000 * _root.endlessFloor;
  22. _root.incDt2();
  23. _root.house.arena.stuffHolder.attachMovie('newLoot7', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': valueX});
  24. } else {
  25. if (_root.dungeonChestOpen == 3) {
  26. valueX = 300000 * _root.endlessFloor;
  27. _root.incDt2();
  28. _root.house.arena.stuffHolder.attachMovie('newLoot7', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': valueX});
  29. _root.incDt2();
  30. _root.house.arena.stuffHolder.attachMovie('newLoot11', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': 1});
  31. } else {
  32. if (_root.dungeonChestOpen == 4) {
  33. valueX = 400000 * _root.endlessFloor;
  34. _root.incDt2();
  35. _root.house.arena.stuffHolder.attachMovie('newLoot7', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': valueX});
  36. _root.incDt2();
  37. _root.house.arena.stuffHolder.attachMovie('newLoot11', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': 1});
  38. } else {
  39. if (_root.dungeonChestOpen == 5) {
  40. valueX = 500000 * _root.endlessFloor;
  41. _root.incDt2();
  42. _root.house.arena.stuffHolder.attachMovie('newLoot7', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': valueX});
  43. _root.incDt2();
  44. _root.house.arena.stuffHolder.attachMovie('newLoot11', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': 1});
  45. } else {
  46. if (_root.dungeonChestOpen == 6) {
  47. valueX = 600000 * _root.endlessFloor;
  48. _root.incDt2();
  49. _root.house.arena.stuffHolder.attachMovie('newLoot7', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': valueX});
  50. _root.incDt2();
  51. _root.house.arena.stuffHolder.attachMovie('newLoot11', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': 1});
  52. } else {
  53. if (_root.dungeonChestOpen == 7) {
  54. valueX = 700000 * _root.endlessFloor;
  55. _root.incDt2();
  56. _root.house.arena.stuffHolder.attachMovie('newLoot7', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': valueX});
  57. _root.incDt2();
  58. _root.house.arena.stuffHolder.attachMovie('newLoot11', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': 1});
  59. } else {
  60. if (_root.dungeonChestOpen == 8) {
  61. valueX = 800000 * _root.endlessFloor;
  62. _root.incDt2();
  63. _root.house.arena.stuffHolder.attachMovie('newLoot7', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': valueX});
  64. _root.incDt2();
  65. _root.house.arena.stuffHolder.attachMovie('newLoot11', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': 2});
  66. } else {
  67. if (_root.dungeonChestOpen == 9) {
  68. valueX = 900000 * _root.endlessFloor;
  69. _root.incDt2();
  70. _root.house.arena.stuffHolder.attachMovie('newLoot7', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': valueX});
  71. _root.incDt2();
  72. _root.house.arena.stuffHolder.attachMovie('newLoot11', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': 2});
  73. } else {
  74. if (_root.dungeonChestOpen == 10) {
  75. if (_root.endlessFloor < 10) {
  76. valueX = 1000000 * _root.endlessFloor;
  77. _root.incDt2();
  78. _root.house.arena.stuffHolder.attachMovie('newLoot7', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': valueX});
  79. _root.incDt2();
  80. _root.house.arena.stuffHolder.attachMovie('newLoot11', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': 2});
  81. } else {
  82. itemToGet = random(5) + 1;
  83. if (_root.worstMoon == true || _root.endlessFloor % 5 == 0) {
  84. itemToGet = random(10) + 1;
  85. }
  86. holyNoLife = true;
  87. if (_root.save.arenaHardcore == true && _root.endlessFloor >= 5) {
  88. holyNoLife = false;
  89. }
  90. holyUnob = 6;
  91. if (_root.save.arenaHardcore == true) {
  92. holyUnob += 4;
  93. }
  94. if (_root.worstMoon == true) {
  95. holyUnob += 10;
  96. }
  97. if (_root.apocalypse == true) {
  98. holyUnob += 10;
  99. }
  100. _root.incDt2();
  101. if (itemToGet == 1) {
  102. _root.house.arena.stuffHolder.attachMovie('invenLoot', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'type': 'Armor', 'frame': 175, 'name': 'Dragon Slayer Hat', 'reqRank': 363, 'subtype': 'Hat', 'attack': 40 + _root.endlessFloor * 4, 'defense': 400 + _root.endlessFloor * 40, 'speed': 0, 'crit': 20 + _root.endlessFloor * 2, 'dexterity': 10 + _root.endlessFloor * 1, 'health': 10 + _root.endlessFloor * 1, 'bonus': 'Spawn Rate', 'ability': 'Attack', 'moreBonus': 'Attack Power', 'maxLevel': 44, 'expTNL': 700000000, 'sell': 1000000 * _root.endlessFloor, 'expiry': (50 + _root.endlessFloor) * 86400000, 'enhance': 4, 'bonusPow': _root.endlessFloor * 70, 'unob': holyUnob, 'noBonus': false, 'noLife': holyNoLife, 'noRecycle': false, 'noFuse': false, 'spirit': false, 'desc': 'An item awarded for opening all 10 Treasure Chests on Floor ' + _root.endlessFloor + ' of Endless Dungeon.'});
  103. }
  104. if (itemToGet == 2) {
  105. _root.house.arena.stuffHolder.attachMovie('invenLoot', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'type': 'Armor', 'frame': 175, 'name': 'Dragon Slayer Shirt', 'reqRank': 363, 'subtype': 'Shirt', 'attack': 40 + _root.endlessFloor * 4, 'defense': 400 + _root.endlessFloor * 40, 'speed': 0, 'crit': 20 + _root.endlessFloor * 2, 'dexterity': 10 + _root.endlessFloor * 1, 'health': 10 + _root.endlessFloor * 1, 'bonus': 'Spawn Rate', 'ability': 'Attack', 'moreBonus': 'Attack Power', 'maxLevel': 44, 'expTNL': 700000000, 'sell': 1000000 * _root.endlessFloor, 'expiry': (50 + _root.endlessFloor) * 86400000, 'enhance': 4, 'bonusPow': _root.endlessFloor * 70, 'unob': holyUnob, 'noBonus': false, 'noLife': holyNoLife, 'noRecycle': false, 'noFuse': false, 'spirit': false, 'desc': 'An item awarded for opening all 10 Treasure Chests on Floor ' + _root.endlessFloor + ' of Endless Dungeon.'});
  106. }
  107. if (itemToGet == 3) {
  108. _root.house.arena.stuffHolder.attachMovie('invenLoot', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'type': 'Armor', 'frame': 175, 'name': 'Dragon Slayer Gloves', 'reqRank': 363, 'subtype': 'Gloves', 'attack': 40 + _root.endlessFloor * 4, 'defense': 400 + _root.endlessFloor * 40, 'speed': 0, 'crit': 20 + _root.endlessFloor * 2, 'dexterity': 10 + _root.endlessFloor * 1, 'health': 10 + _root.endlessFloor * 1, 'bonus': 'Spawn Rate', 'ability': 'Attack', 'moreBonus': 'Attack Power', 'maxLevel': 44, 'expTNL': 700000000, 'sell': 1000000 * _root.endlessFloor, 'expiry': (50 + _root.endlessFloor) * 86400000, 'enhance': 4, 'bonusPow': _root.endlessFloor * 70, 'unob': holyUnob, 'noBonus': false, 'noLife': holyNoLife, 'noRecycle': false, 'noFuse': false, 'spirit': false, 'desc': 'An item awarded for opening all 10 Treasure Chests on Floor ' + _root.endlessFloor + ' of Endless Dungeon.'});
  109. }
  110. if (itemToGet == 4) {
  111. _root.house.arena.stuffHolder.attachMovie('invenLoot', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'type': 'Armor', 'frame': 175, 'name': 'Dragon Slayer Pants', 'reqRank': 363, 'subtype': 'Pants', 'attack': 40 + _root.endlessFloor * 4, 'defense': 400 + _root.endlessFloor * 40, 'speed': 0, 'crit': 20 + _root.endlessFloor * 2, 'dexterity': 10 + _root.endlessFloor * 1, 'health': 10 + _root.endlessFloor * 1, 'bonus': 'Spawn Rate', 'ability': 'Attack', 'moreBonus': 'Attack Power', 'maxLevel': 44, 'expTNL': 700000000, 'sell': 1000000 * _root.endlessFloor, 'expiry': (50 + _root.endlessFloor) * 86400000, 'enhance': 4, 'bonusPow': _root.endlessFloor * 70, 'unob': holyUnob, 'noBonus': false, 'noLife': holyNoLife, 'noRecycle': false, 'noFuse': false, 'spirit': false, 'desc': 'An item awarded for opening all 10 Treasure Chests on Floor ' + _root.endlessFloor + ' of Endless Dungeon.'});
  112. }
  113. if (itemToGet == 5) {
  114. _root.house.arena.stuffHolder.attachMovie('invenLoot', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'type': 'Armor', 'frame': 175, 'name': 'Dragon Slayer Shoes', 'reqRank': 363, 'subtype': 'Shoes', 'attack': 40 + _root.endlessFloor * 4, 'defense': 400 + _root.endlessFloor * 40, 'speed': 0, 'crit': 20 + _root.endlessFloor * 2, 'dexterity': 10 + _root.endlessFloor * 1, 'health': 10 + _root.endlessFloor * 1, 'bonus': 'Spawn Rate', 'ability': 'Attack', 'moreBonus': 'Attack Power', 'maxLevel': 44, 'expTNL': 700000000, 'sell': 1000000 * _root.endlessFloor, 'expiry': (50 + _root.endlessFloor) * 86400000, 'enhance': 4, 'bonusPow': _root.endlessFloor * 70, 'unob': holyUnob, 'noBonus': false, 'noLife': holyNoLife, 'noRecycle': false, 'noFuse': false, 'spirit': false, 'desc': 'An item awarded for opening all 10 Treasure Chests on Floor ' + _root.endlessFloor + ' of Endless Dungeon.'});
  115. }
  116. if (itemToGet == 6) {
  117. _root.house.arena.stuffHolder.attachMovie('invenLoot', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'type': 'Armor', 'frame': 176, 'name': 'Demon Slayer Hat', 'reqRank': 413, 'subtype': 'Hat', 'attack': 60 + _root.endlessFloor * 6, 'defense': 600 + _root.endlessFloor * 60, 'speed': 0, 'crit': 30 + _root.endlessFloor * 3, 'dexterity': 20 + _root.endlessFloor * 2, 'health': 20 + _root.endlessFloor * 2, 'bonus': 'Spawn Rate', 'ability': 'Attack', 'moreBonus': 'Attack Power', 'maxLevel': 66, 'expTNL': 2700000000.0, 'sell': 10000000 * _root.endlessFloor, 'expiry': (50 + _root.endlessFloor) * 86400000, 'enhance': 6, 'bonusPow': _root.endlessFloor * 110, 'unob': holyUnob, 'noBonus': false, 'noLife': holyNoLife, 'noRecycle': false, 'noFuse': false, 'spirit': false, 'desc': 'An item awarded for opening all 10 Treasure Chests on Floor ' + _root.endlessFloor + ' of Endless Dungeon.'});
  118. }
  119. if (itemToGet == 7) {
  120. _root.house.arena.stuffHolder.attachMovie('invenLoot', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'type': 'Armor', 'frame': 176, 'name': 'Demon Slayer Shirt', 'reqRank': 413, 'subtype': 'Shirt', 'attack': 60 + _root.endlessFloor * 6, 'defense': 600 + _root.endlessFloor * 60, 'speed': 0, 'crit': 30 + _root.endlessFloor * 3, 'dexterity': 20 + _root.endlessFloor * 2, 'health': 20 + _root.endlessFloor * 2, 'bonus': 'Spawn Rate', 'ability': 'Attack', 'moreBonus': 'Attack Power', 'maxLevel': 66, 'expTNL': 2700000000.0, 'sell': 10000000 * _root.endlessFloor, 'expiry': (50 + _root.endlessFloor) * 86400000, 'enhance': 6, 'bonusPow': _root.endlessFloor * 110, 'unob': holyUnob, 'noBonus': false, 'noLife': holyNoLife, 'noRecycle': false, 'noFuse': false, 'spirit': false, 'desc': 'An item awarded for opening all 10 Treasure Chests on Floor ' + _root.endlessFloor + ' of Endless Dungeon.'});
  121. }
  122. if (itemToGet == 8) {
  123. _root.house.arena.stuffHolder.attachMovie('invenLoot', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'type': 'Armor', 'frame': 176, 'name': 'Demon Slayer Gloves', 'reqRank': 413, 'subtype': 'Gloves', 'attack': 60 + _root.endlessFloor * 6, 'defense': 600 + _root.endlessFloor * 60, 'speed': 0, 'crit': 30 + _root.endlessFloor * 3, 'dexterity': 20 + _root.endlessFloor * 2, 'health': 20 + _root.endlessFloor * 2, 'bonus': 'Spawn Rate', 'ability': 'Attack', 'moreBonus': 'Attack Power', 'maxLevel': 66, 'expTNL': 2700000000.0, 'sell': 10000000 * _root.endlessFloor, 'expiry': (50 + _root.endlessFloor) * 86400000, 'enhance': 6, 'bonusPow': _root.endlessFloor * 110, 'unob': holyUnob, 'noBonus': false, 'noLife': holyNoLife, 'noRecycle': false, 'noFuse': false, 'spirit': false, 'desc': 'An item awarded for opening all 10 Treasure Chests on Floor ' + _root.endlessFloor + ' of Endless Dungeon.'});
  124. }
  125. if (itemToGet == 9) {
  126. _root.house.arena.stuffHolder.attachMovie('invenLoot', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'type': 'Armor', 'frame': 176, 'name': 'Demon Slayer Pants', 'reqRank': 413, 'subtype': 'Pants', 'attack': 60 + _root.endlessFloor * 6, 'defense': 600 + _root.endlessFloor * 60, 'speed': 0, 'crit': 30 + _root.endlessFloor * 3, 'dexterity': 20 + _root.endlessFloor * 2, 'health': 20 + _root.endlessFloor * 2, 'bonus': 'Spawn Rate', 'ability': 'Attack', 'moreBonus': 'Attack Power', 'maxLevel': 66, 'expTNL': 2700000000.0, 'sell': 10000000 * _root.endlessFloor, 'expiry': (50 + _root.endlessFloor) * 86400000, 'enhance': 6, 'bonusPow': _root.endlessFloor * 110, 'unob': holyUnob, 'noBonus': false, 'noLife': holyNoLife, 'noRecycle': false, 'noFuse': false, 'spirit': false, 'desc': 'An item awarded for opening all 10 Treasure Chests on Floor ' + _root.endlessFloor + ' of Endless Dungeon.'});
  127. }
  128. if (itemToGet == 10) {
  129. _root.house.arena.stuffHolder.attachMovie('invenLoot', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'type': 'Armor', 'frame': 176, 'name': 'Demon Slayer Shoes', 'reqRank': 413, 'subtype': 'Shoes', 'attack': 60 + _root.endlessFloor * 6, 'defense': 600 + _root.endlessFloor * 60, 'speed': 0, 'crit': 30 + _root.endlessFloor * 3, 'dexterity': 20 + _root.endlessFloor * 2, 'health': 20 + _root.endlessFloor * 2, 'bonus': 'Spawn Rate', 'ability': 'Attack', 'moreBonus': 'Attack Power', 'maxLevel': 66, 'expTNL': 2700000000.0, 'sell': 10000000 * _root.endlessFloor, 'expiry': (50 + _root.endlessFloor) * 86400000, 'enhance': 6, 'bonusPow': _root.endlessFloor * 110, 'unob': holyUnob, 'noBonus': false, 'noLife': holyNoLife, 'noRecycle': false, 'noFuse': false, 'spirit': false, 'desc': 'An item awarded for opening all 10 Treasure Chests on Floor ' + _root.endlessFloor + ' of Endless Dungeon.'});
  130. }
  131. }
  132. }
  133. }
  134. }
  135. }
  136. }
  137. }
  138. }
  139. }
  140. }
  141. }
  142. }
  143. }
  144. }
  145.  
  146. onClipEvent (release) {
  147. if (_root.dungeonRoomChest[_root.dungeonRoom] == 1) {
  148. _root.dungeonRoomChest[_root.dungeonRoom] = 2;
  149. _root.dungeonChestOpen += 1;
  150. _root.fightStat = 'Treasure Chests: ' + _root.dungeonChestOpen + ' / 10';
  151. if (Math.random() < 0.01 * _root.dungeonChestOpen) {
  152. _root.incDt2();
  153. _root.house.arena.stuffHolder.attachMovie('newLoot9', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': 2});
  154. }
  155. if (_root.dungeonChestOpen == 1) {
  156. valueX = 100000 * _root.endlessFloor;
  157. _root.incDt2();
  158. _root.house.arena.stuffHolder.attachMovie('newLoot7', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': valueX});
  159. } else {
  160. if (_root.dungeonChestOpen == 2) {
  161. valueX = 200000 * _root.endlessFloor;
  162. _root.incDt2();
  163. _root.house.arena.stuffHolder.attachMovie('newLoot7', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': valueX});
  164. } else {
  165. if (_root.dungeonChestOpen == 3) {
  166. valueX = 300000 * _root.endlessFloor;
  167. _root.incDt2();
  168. _root.house.arena.stuffHolder.attachMovie('newLoot7', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': valueX});
  169. _root.incDt2();
  170. _root.house.arena.stuffHolder.attachMovie('newLoot11', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': 1});
  171. } else {
  172. if (_root.dungeonChestOpen == 4) {
  173. valueX = 400000 * _root.endlessFloor;
  174. _root.incDt2();
  175. _root.house.arena.stuffHolder.attachMovie('newLoot7', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': valueX});
  176. _root.incDt2();
  177. _root.house.arena.stuffHolder.attachMovie('newLoot11', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': 1});
  178. } else {
  179. if (_root.dungeonChestOpen == 5) {
  180. valueX = 500000 * _root.endlessFloor;
  181. _root.incDt2();
  182. _root.house.arena.stuffHolder.attachMovie('newLoot7', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': valueX});
  183. _root.incDt2();
  184. _root.house.arena.stuffHolder.attachMovie('newLoot11', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': 1});
  185. } else {
  186. if (_root.dungeonChestOpen == 6) {
  187. valueX = 600000 * _root.endlessFloor;
  188. _root.incDt2();
  189. _root.house.arena.stuffHolder.attachMovie('newLoot7', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': valueX});
  190. _root.incDt2();
  191. _root.house.arena.stuffHolder.attachMovie('newLoot11', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': 1});
  192. } else {
  193. if (_root.dungeonChestOpen == 7) {
  194. valueX = 700000 * _root.endlessFloor;
  195. _root.incDt2();
  196. _root.house.arena.stuffHolder.attachMovie('newLoot7', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': valueX});
  197. _root.incDt2();
  198. _root.house.arena.stuffHolder.attachMovie('newLoot11', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': 1});
  199. } else {
  200. if (_root.dungeonChestOpen == 8) {
  201. valueX = 800000 * _root.endlessFloor;
  202. _root.incDt2();
  203. _root.house.arena.stuffHolder.attachMovie('newLoot7', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': valueX});
  204. _root.incDt2();
  205. _root.house.arena.stuffHolder.attachMovie('newLoot11', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': 2});
  206. } else {
  207. if (_root.dungeonChestOpen == 9) {
  208. valueX = 900000 * _root.endlessFloor;
  209. _root.incDt2();
  210. _root.house.arena.stuffHolder.attachMovie('newLoot7', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': valueX});
  211. _root.incDt2();
  212. _root.house.arena.stuffHolder.attachMovie('newLoot11', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': 2});
  213. } else {
  214. if (_root.dungeonChestOpen == 10) {
  215. if (_root.endlessFloor < 10) {
  216. valueX = 1000000 * _root.endlessFloor;
  217. _root.incDt2();
  218. _root.house.arena.stuffHolder.attachMovie('newLoot7', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': valueX});
  219. _root.incDt2();
  220. _root.house.arena.stuffHolder.attachMovie('newLoot11', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'lootValue': 2});
  221. } else {
  222. itemToGet = random(5) + 1;
  223. if (_root.worstMoon == true || _root.endlessFloor % 5 == 0 && _root.endlessFloor >= 30) {
  224. itemToGet = random(10) + 1;
  225. }
  226. holyNoLife = true;
  227. if (_root.save.arenaHardcore == true && _root.endlessFloor >= 5) {
  228. holyNoLife = false;
  229. }
  230. holyUnob = 6;
  231. if (_root.save.arenaHardcore == true) {
  232. holyUnob += 4;
  233. }
  234. if (_root.worstMoon == true) {
  235. holyUnob += 10;
  236. }
  237. if (_root.apocalypse == true) {
  238. holyUnob += 10;
  239. }
  240. _root.incDt2();
  241. if (itemToGet == 1) {
  242. _root.house.arena.stuffHolder.attachMovie('invenLoot', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'type': 'Armor', 'frame': 175, 'name': 'Dragon Slayer Hat', 'reqRank': 363, 'subtype': 'Hat', 'attack': 40 + _root.endlessFloor * 4, 'defense': 400 + _root.endlessFloor * 40, 'speed': 0, 'crit': 20 + _root.endlessFloor * 2, 'dexterity': 10 + _root.endlessFloor * 1, 'health': 10 + _root.endlessFloor * 1, 'bonus': 'Spawn Rate', 'ability': 'Attack', 'moreBonus': 'Attack Power', 'maxLevel': 44, 'expTNL': 700000000, 'sell': 1000000 * _root.endlessFloor, 'expiry': (50 + _root.endlessFloor) * 86400000, 'enhance': 4, 'bonusPow': _root.endlessFloor * 70, 'unob': holyUnob, 'noBonus': false, 'noLife': holyNoLife, 'noRecycle': false, 'noFuse': false, 'spirit': false, 'desc': 'An item awarded for opening all 10 Treasure Chests on Floor ' + _root.endlessFloor + ' of Endless Dungeon.'});
  243. }
  244. if (itemToGet == 2) {
  245. _root.house.arena.stuffHolder.attachMovie('invenLoot', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'type': 'Armor', 'frame': 175, 'name': 'Dragon Slayer Shirt', 'reqRank': 363, 'subtype': 'Shirt', 'attack': 40 + _root.endlessFloor * 4, 'defense': 400 + _root.endlessFloor * 40, 'speed': 0, 'crit': 20 + _root.endlessFloor * 2, 'dexterity': 10 + _root.endlessFloor * 1, 'health': 10 + _root.endlessFloor * 1, 'bonus': 'Spawn Rate', 'ability': 'Attack', 'moreBonus': 'Attack Power', 'maxLevel': 44, 'expTNL': 700000000, 'sell': 1000000 * _root.endlessFloor, 'expiry': (50 + _root.endlessFloor) * 86400000, 'enhance': 4, 'bonusPow': _root.endlessFloor * 70, 'unob': holyUnob, 'noBonus': false, 'noLife': holyNoLife, 'noRecycle': false, 'noFuse': false, 'spirit': false, 'desc': 'An item awarded for opening all 10 Treasure Chests on Floor ' + _root.endlessFloor + ' of Endless Dungeon.'});
  246. }
  247. if (itemToGet == 3) {
  248. _root.house.arena.stuffHolder.attachMovie('invenLoot', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'type': 'Armor', 'frame': 175, 'name': 'Dragon Slayer Gloves', 'reqRank': 363, 'subtype': 'Gloves', 'attack': 40 + _root.endlessFloor * 4, 'defense': 400 + _root.endlessFloor * 40, 'speed': 0, 'crit': 20 + _root.endlessFloor * 2, 'dexterity': 10 + _root.endlessFloor * 1, 'health': 10 + _root.endlessFloor * 1, 'bonus': 'Spawn Rate', 'ability': 'Attack', 'moreBonus': 'Attack Power', 'maxLevel': 44, 'expTNL': 700000000, 'sell': 1000000 * _root.endlessFloor, 'expiry': (50 + _root.endlessFloor) * 86400000, 'enhance': 4, 'bonusPow': _root.endlessFloor * 70, 'unob': holyUnob, 'noBonus': false, 'noLife': holyNoLife, 'noRecycle': false, 'noFuse': false, 'spirit': false, 'desc': 'An item awarded for opening all 10 Treasure Chests on Floor ' + _root.endlessFloor + ' of Endless Dungeon.'});
  249. }
  250. if (itemToGet == 4) {
  251. _root.house.arena.stuffHolder.attachMovie('invenLoot', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'type': 'Armor', 'frame': 175, 'name': 'Dragon Slayer Pants', 'reqRank': 363, 'subtype': 'Pants', 'attack': 40 + _root.endlessFloor * 4, 'defense': 400 + _root.endlessFloor * 40, 'speed': 0, 'crit': 20 + _root.endlessFloor * 2, 'dexterity': 10 + _root.endlessFloor * 1, 'health': 10 + _root.endlessFloor * 1, 'bonus': 'Spawn Rate', 'ability': 'Attack', 'moreBonus': 'Attack Power', 'maxLevel': 44, 'expTNL': 700000000, 'sell': 1000000 * _root.endlessFloor, 'expiry': (50 + _root.endlessFloor) * 86400000, 'enhance': 4, 'bonusPow': _root.endlessFloor * 70, 'unob': holyUnob, 'noBonus': false, 'noLife': holyNoLife, 'noRecycle': false, 'noFuse': false, 'spirit': false, 'desc': 'An item awarded for opening all 10 Treasure Chests on Floor ' + _root.endlessFloor + ' of Endless Dungeon.'});
  252. }
  253. if (itemToGet == 5) {
  254. _root.house.arena.stuffHolder.attachMovie('invenLoot', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'type': 'Armor', 'frame': 175, 'name': 'Dragon Slayer Shoes', 'reqRank': 363, 'subtype': 'Shoes', 'attack': 40 + _root.endlessFloor * 4, 'defense': 400 + _root.endlessFloor * 40, 'speed': 0, 'crit': 20 + _root.endlessFloor * 2, 'dexterity': 10 + _root.endlessFloor * 1, 'health': 10 + _root.endlessFloor * 1, 'bonus': 'Spawn Rate', 'ability': 'Attack', 'moreBonus': 'Attack Power', 'maxLevel': 44, 'expTNL': 700000000, 'sell': 1000000 * _root.endlessFloor, 'expiry': (50 + _root.endlessFloor) * 86400000, 'enhance': 4, 'bonusPow': _root.endlessFloor * 70, 'unob': holyUnob, 'noBonus': false, 'noLife': holyNoLife, 'noRecycle': false, 'noFuse': false, 'spirit': false, 'desc': 'An item awarded for opening all 10 Treasure Chests on Floor ' + _root.endlessFloor + ' of Endless Dungeon.'});
  255. }
  256. if (itemToGet == 6) {
  257. _root.house.arena.stuffHolder.attachMovie('invenLoot', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'type': 'Armor', 'frame': 176, 'name': 'Demon Slayer Hat', 'reqRank': 413, 'subtype': 'Hat', 'attack': 60 + _root.endlessFloor * 6, 'defense': 600 + _root.endlessFloor * 60, 'speed': 0, 'crit': 30 + _root.endlessFloor * 3, 'dexterity': 20 + _root.endlessFloor * 2, 'health': 20 + _root.endlessFloor * 2, 'bonus': 'Spawn Rate', 'ability': 'Attack', 'moreBonus': 'Attack Power', 'maxLevel': 66, 'expTNL': 2700000000.0, 'sell': 10000000 * _root.endlessFloor, 'expiry': (50 + _root.endlessFloor) * 86400000, 'enhance': 6, 'bonusPow': _root.endlessFloor * 110, 'unob': holyUnob, 'noBonus': false, 'noLife': holyNoLife, 'noRecycle': false, 'noFuse': false, 'spirit': false, 'desc': 'An item awarded for opening all 10 Treasure Chests on Floor ' + _root.endlessFloor + ' of Endless Dungeon.'});
  258. }
  259. if (itemToGet == 7) {
  260. _root.house.arena.stuffHolder.attachMovie('invenLoot', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'type': 'Armor', 'frame': 176, 'name': 'Demon Slayer Shirt', 'reqRank': 413, 'subtype': 'Shirt', 'attack': 60 + _root.endlessFloor * 6, 'defense': 600 + _root.endlessFloor * 60, 'speed': 0, 'crit': 30 + _root.endlessFloor * 3, 'dexterity': 20 + _root.endlessFloor * 2, 'health': 20 + _root.endlessFloor * 2, 'bonus': 'Spawn Rate', 'ability': 'Attack', 'moreBonus': 'Attack Power', 'maxLevel': 66, 'expTNL': 2700000000.0, 'sell': 10000000 * _root.endlessFloor, 'expiry': (50 + _root.endlessFloor) * 86400000, 'enhance': 6, 'bonusPow': _root.endlessFloor * 110, 'unob': holyUnob, 'noBonus': false, 'noLife': holyNoLife, 'noRecycle': false, 'noFuse': false, 'spirit': false, 'desc': 'An item awarded for opening all 10 Treasure Chests on Floor ' + _root.endlessFloor + ' of Endless Dungeon.'});
  261. }
  262. if (itemToGet == 8) {
  263. _root.house.arena.stuffHolder.attachMovie('invenLoot', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'type': 'Armor', 'frame': 176, 'name': 'Demon Slayer Gloves', 'reqRank': 413, 'subtype': 'Gloves', 'attack': 60 + _root.endlessFloor * 6, 'defense': 600 + _root.endlessFloor * 60, 'speed': 0, 'crit': 30 + _root.endlessFloor * 3, 'dexterity': 20 + _root.endlessFloor * 2, 'health': 20 + _root.endlessFloor * 2, 'bonus': 'Spawn Rate', 'ability': 'Attack', 'moreBonus': 'Attack Power', 'maxLevel': 66, 'expTNL': 2700000000.0, 'sell': 10000000 * _root.endlessFloor, 'expiry': (50 + _root.endlessFloor) * 86400000, 'enhance': 6, 'bonusPow': _root.endlessFloor * 110, 'unob': holyUnob, 'noBonus': false, 'noLife': holyNoLife, 'noRecycle': false, 'noFuse': false, 'spirit': false, 'desc': 'An item awarded for opening all 10 Treasure Chests on Floor ' + _root.endlessFloor + ' of Endless Dungeon.'});
  264. }
  265. if (itemToGet == 9) {
  266. _root.house.arena.stuffHolder.attachMovie('invenLoot', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'type': 'Armor', 'frame': 176, 'name': 'Demon Slayer Pants', 'reqRank': 413, 'subtype': 'Pants', 'attack': 60 + _root.endlessFloor * 6, 'defense': 600 + _root.endlessFloor * 60, 'speed': 0, 'crit': 30 + _root.endlessFloor * 3, 'dexterity': 20 + _root.endlessFloor * 2, 'health': 20 + _root.endlessFloor * 2, 'bonus': 'Spawn Rate', 'ability': 'Attack', 'moreBonus': 'Attack Power', 'maxLevel': 66, 'expTNL': 2700000000.0, 'sell': 10000000 * _root.endlessFloor, 'expiry': (50 + _root.endlessFloor) * 86400000, 'enhance': 6, 'bonusPow': _root.endlessFloor * 110, 'unob': holyUnob, 'noBonus': false, 'noLife': holyNoLife, 'noRecycle': false, 'noFuse': false, 'spirit': false, 'desc': 'An item awarded for opening all 10 Treasure Chests on Floor ' + _root.endlessFloor + ' of Endless Dungeon.'});
  267. }
  268. if (itemToGet == 10) {
  269. _root.house.arena.stuffHolder.attachMovie('invenLoot', 'newLoot' + _root.summonCount, _root.antiLag2 + 100, {'x': 340, 'y': 150, 'type': 'Armor', 'frame': 176, 'name': 'Demon Slayer Shoes', 'reqRank': 413, 'subtype': 'Shoes', 'attack': 60 + _root.endlessFloor * 6, 'defense': 600 + _root.endlessFloor * 60, 'speed': 0, 'crit': 30 + _root.endlessFloor * 3, 'dexterity': 20 + _root.endlessFloor * 2, 'health': 20 + _root.endlessFloor * 2, 'bonus': 'Spawn Rate', 'ability': 'Attack', 'moreBonus': 'Attack Power', 'maxLevel': 66, 'expTNL': 2700000000.0, 'sell': 10000000 * _root.endlessFloor, 'expiry': (50 + _root.endlessFloor) * 86400000, 'enhance': 6, 'bonusPow': _root.endlessFloor * 110, 'unob': holyUnob, 'noBonus': false, 'noLife': holyNoLife, 'noRecycle': false, 'noFuse': false, 'spirit': false, 'desc': 'An item awarded for opening all 10 Treasure Chests on Floor ' + _root.endlessFloor + ' of Endless Dungeon.'});
  270. }
  271. }
  272. }
  273. }
  274. }
  275. }
  276. }
  277. }
  278. }
  279. }
  280. }
  281. }
  282. }
  283. }
  284. }
Advertisement
Add Comment
Please, Sign In to add comment