Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.22 KB | None | 0 0
  1. local t = {
  2. [8568] = {
  3. corpse = 8967,
  4. charged = 1495,
  5. inactive = 0,
  6. boss = 'Energy Overlord',
  7. effect = CONST_ME_BIGCLOUDS,
  8. summonPos = {x=33095, y=32194, z=13},
  9. pos = {
  10. {x=33094, y=32189, z=13},
  11. {x=33097, y=32189, z=13},
  12. {x=33099, y=32191, z=13},
  13. {x=33099, y=32194, z=13},
  14. {x=33097, y=32196, z=13},
  15. {x=33094, y=32196, z=13},
  16. {x=33092, y=32194, z=13},
  17. {x=33092, y=32191, z=13}
  18. }
  19. },
  20. [8569] = {
  21. corpse = 8969,
  22. charged = 8575,
  23. inactive = 8573,
  24. boss = 'Fire Overlord',
  25. effect = CONST_ME_FIREAREA,
  26. summonPos = {x=33199, y=32103, z=13},
  27. pos = {
  28. {x=33198, y=32102, z=13},
  29. {x=33201, y=32102, z=13},
  30. {x=33203, y=32104, z=13},
  31. {x=33203, y=32107, z=13},
  32. {x=33201, y=32109, z=13},
  33. {x=33198, y=32109, z=13},
  34. {x=33196, y=32107, z=13},
  35. {x=33196, y=32104, z=13}
  36. }
  37. },
  38. [8570] = {
  39. corpse = 8968,
  40. charged = 8574,
  41. inactive = 8571,
  42. boss = 'Ice Overlord',
  43. effect = CONST_ME_ICETORNADO,
  44. summonEffect = CONST_ME_ICEAREA,
  45. summonPos = {x=33286, y=32102, z=13},
  46. pos = {
  47. {x=33285, y=32097, z=13},
  48. {x=33288, y=32097, z=13},
  49. {x=33290, y=32099, z=13},
  50. {x=33290, y=32102, z=13},
  51. {x=33288, y=32104, z=13},
  52. {x=33285, y=32104, z=13},
  53. {x=33283, y=32102, z=13},
  54. {x=33283, y=32099, z=13}
  55. }
  56. },
  57. [8578] = {
  58. corpse = 8934,
  59. charged = 8576,
  60. inactive = 8572,
  61. boss = 'Earth Overlord',
  62. effect = CONST_ME_BIGPLANTS,
  63. summonPos = {x=33347, y=32208, z=13},
  64. pos = {
  65. {x=33346, y=32203, z=13},
  66. {x=33349, y=32203, z=13},
  67. {x=33351, y=32205, z=13},
  68. {x=33351, y=32208, z=13},
  69. {x=33349, y=32210, z=13},
  70. {x=33346, y=32210, z=13},
  71. {x=33344, y=32208, z=13},
  72. {x=33344, y=32205, z=13}
  73. }
  74. }
  75. }
  76. function onAddItem(moveitem, tileitem, position)
  77. local v = t[tileitem.itemid]
  78. if v and v.corpse == moveitem.itemid and getGlobalStorageValue(tileitem.itemid) < 1 then
  79. for i = 1, #v.pos do
  80. if getTileItemById(v.pos[i], v.charged).uid < 1 then
  81. return
  82. end
  83. end
  84. doRemoveItem(moveitem.uid)
  85. doSendMagicEffect(position, v.effect)
  86. doSummonCreature(v.boss, v.summonPos)
  87. doSendMagicEffect(v.summonPos, v.summonEffect or v.effect)
  88. setGlobalStorageValue(tileitem.itemid, 1)
  89. end
  90. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement