Arena Theme Changer

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Arena Theme Changer

      Hi Zusammen

      Hier möchte ich Euch mein Script zur Verfügung stellen welches Euch die PvP Arena der Gurubashi fürs PvP etwas Verschönert

      Ihr könnt dort 5 Verschiedene Themen wählen undzwar Wald Thema, Marsh Thema, Ozean Thema, Horde Thema und Mystic Thema.

      Im weiteren Verlauf werde Ich Euch Screens und auch die Sql für die Gameobjecte zukommen lassen.

      Arena Meister:





      Wald Thema:



      Ihr könnt nun NICHT einfach was neues aussuchen zuerst müsst Ihr das Vorige Thema Despawnen:





      Nun geht es weiter.

      Marsh Thema:



      Ozean Thema:



      Horde Thema:



      Mystic Thema:



      Hier das Script dazu:



      C Source Code: Themechanger.lua

      1. --[[ Scripted by Batidadekill ]]--
      2. local reset_time = 900 -- Time the theme will reset to normal and another theme can be chosen (900 = 15 min).
      3. local entry_id = 700010 -- Put the entry id of your npc here.
      4. local r_time
      5. local go_table = {}
      6. local forest_theme = 1
      7. local marsh_theme = 2
      8. local ocean_theme = 3
      9. local horde_theme = 4
      10. local mystic_theme = 5
      11. local theme_table = {
      12. [forest_theme] = {
      13. {30000,-13213.6,305.464,21.858,4.84185,0},
      14. {30000,-13172.7,268.138,21.858,0.242687,0},
      15. {30000,-13208.6,244.124,21.858,1.22051,0},
      16. {30000,-13213.9,277.515,21.858,0.200561,0},
      17. {30001,-13213.4,271.912,21.8571,1.75389,0},
      18. {30001,-13211.8,272.494,21.8571,2.05783,0},
      19. {30001,-13215.2,272.05,21.8571,1.37847,0},
      20. {30001,-13213.6,300.406,21.8571,1.86934,0},
      21. {30001,-13212.9,300.537,21.8571,1.76567,0},
      22. {30001,-13175.8,271.679,21.8571,5.41614,0},
      23. {30001,-13176.3,271.227,21.8571,5.4397,0},
      24. {30001,-13174.8,272.873,21.8571,5.35174,0},
      25. {30001,-13176.4,272.202,21.8571,4.50351,0},
      26. {30001,-13202.8,243.211,21.8571,3.12121,0},
      27. {30001,-13202.9,244.207,21.8571,3.23116,0},
      28. {30001,-13211.2,248.314,21.858,5.39022,0},
      29. {30001,-13212.1,247.563,21.858,5.28027,0},
      30. {30001,-13213,246.845,21.858,5.43735,0},
      31. {30002,-13236.2,280.967,21.857,0.479923,0},
      32. {30003,-13191.8,289.481,21.8567,5.86461,0},
      33. {30003,-13195.3,292.13,21.8567,5.14519,0},
      34. {30003,-13187.2,288.549,21.8567,4.70223,0},
      35. {30003,-13179.3,266.729,21.8567,5.53475,0},
      36. {30003,-13176.7,261.065,21.8567,1.46717,0},
      37. {30003,-13203.4,249.716,21.8567,3.76053,0},
      38. {30003,-13209.4,250.895,21.8567,1.94626,0},
      39. {30003,-13221.8,308.571,21.8567,0.842777,0},
      40. {30003,-13217.4,312.036,21.8567,6.06568,0},
      41. {30003,-13207.7,312.2,21.8567,2.49997,0},
      42. {30003,-13219.4,281.345,21.8576,5.03288,0},
      43. {30003,-13220.3,275.993,21.8576,0.948807,0},
      44. {30003,-13188.8,297.035,21.8571,1.2072,0},
      45. {30003,-13183.2,292.458,21.8571,3.02342,0}
      46. },
      47. [marsh_theme] = {
      48. {30004,-13187.7,239.463,21.8582,3.77539,0,250},
      49. {30004,-13180.5,291.8,21.8582,3.22953,0,250},
      50. {30004,-13178.4,283.759,21.8579,4.64874,0,250},
      51. {30004,-13227.1,278.129,21.8582,5.76243,0,250},
      52. {30004,-13173.3,295.848,21.8579,4.20499,0,250},
      53. {30004,-13202.6,244.986,21.8579,2.8816,0,250},
      54. {30004,-13186.4,291.49,21.8579,5.90144,0,250},
      55. {30004,-13192.9,235.159,21.8582,3.5437,0,250},
      56. {30004,-13173.4,255.883,21.8582,4.31731,0,250},
      57. {30004,-13205.5,250.809,21.8582,2.8329,0,250},
      58. {30004,-13218.7,268.308,21.8582,5.81348,0,250},
      59. {30004,-13170.4,287.805,21.8582,2.30276,0,250},
      60. {30004,-13228,249.127,21.8582,5.77814,0,250},
      61. {30004,-13215.8,312.145,21.8582,0.928307,0,250},
      62. {30004,-13180.1,239.075,21.8579,5.35167,0,250},
      63. {30004,-13221.7,274.7,21.8571,4.26782,0,250},
      64. {30004,-13167.4,256.948,21.8579,6.12921,0,250},
      65. {30004,-13170.8,249.312,21.8579,5.68546,0,250},
      66. {30004,-13184.4,274.314,21.8582,5.65248,0,250},
      67. {30004,-13210.4,283.529,21.8582,5.86061,0,250},
      68. {30004,-13198.1,271.543,21.8582,2.64048,0,250},
      69. {30004,-13193.6,258.863,21.8582,2.69153,0,250},
      70. {30004,-13199.2,314.904,21.8582,1.06968,0,250},
      71. {30004,-13203.6,298.728,21.8582,6.15121,0,250},
      72. {30004,-13231.4,261.383,21.8571,4.62517,0,250},
      73. {30004,-13175.7,274.391,21.8579,5.77107,0,250},
      74. {30004,-13177.2,267.055,21.8579,0.591363,0,250},
      75. {30004,-13180.3,245.738,21.8582,3.9521,0,250},
      76. {30004,-13210.4,302.124,21.8582,4.39192,0,250},
      77. {30004,-13233.7,262.174,21.8582,4.16415,0,250},
      78. {30004,-13173.5,260.887,21.8582,5.30691,0,250},
      79. {30004,-13186.7,282.938,21.8582,4.39585,0,250},
      80. {30004,-13242.4,276.602,21.8573,0.159389,0,250},
      81. {30004,-13238.3,281.879,21.8573,0.921225,0,250},
      82. {30004,-13225.4,300.29,21.8573,3.53268,0,250},
      83. {30004,-13214.3,292.125,21.8573,4.3652,0,250},
      84. {30004,-13220.4,307.884,21.8573,1.96581,0,250},
      85. {30004,-13176.7,304.866,21.8573,1.06653,0,250},
      86. {30005,-13205.5,274.828,28.9149,4.27407,0,1300},
      87. {30006,-13205.8,274.844,27.6802,4.30156, 0},
      88. {30008,-13168.6,275.081,21.8574,2.72372, 0},
      89. {30007,-13233.6,293.37,21.8573,5.66896, 0}
      90. },
      91. [ocean_theme] = {
      92. {30010,-13206.5,275.269,37.9933,4.24822,0,1300},
      93. {30011,-13195.5,278.584,22.0169,4.09114,0},
      94. {30011,-13199.7,274.619,21.8572,4.22073,0},
      95. {30011,-13192.9,272.035,21.9394,2.42216,0},
      96. {30012,-13176.6,279.44,21.8575,2.01925,0},
      97. {30012,-13229.4,271.519,21.8575,5.45144,0},
      98. {30012,-13164.8,256.585,21.8575,0.376984,0},
      99. {30012,-13206.9,254.713,21.8575,0.296088,0},
      100. {30012,-13226.7,250.354,21.8575,5.45144,0},
      101. {30012,-13220.6,293.657,21.8575,4.73516,0},
      102. {30012,-13184.1,247.726,21.8575,0.140579,0},
      103. {30012,-13211.2,311.107,21.8575,4.90088,0},
      104. {30012,-13202.5,289.774,21.8575,3.59633,0},
      105. {30012,-13183.6,297.988,21.8575,2.87533,0},
      106. {30013,-13204.8,269.917,21.8582,3.97977,0},
      107. {30014,-13171,258.625,30.0242,3.61221,0},
      108. {30014,-13230.3,270.862,23.0879,6.02417,0},
      109. {30014,-13188.2,278.39,29.0579,4.97331,0},
      110. {30014,-13214.2,261.639,28.8775,5.76027,0},
      111. {30014,-13225.4,242.14,30.0242,5.76027,0},
      112. {30014,-13178.3,295.883,29.1114,2.5582,0},
      113. {30014,-13220.6,299.088,29.1114,5.54743,0},
      114. {30014,-13195.3,245.248,30.0242,1.5906,0},
      115. {30015,-13217.1,251.336,31.2398,5.3927,0}
      116. },
      117. [horde_theme] = {
      118. {30016,-13195.2,278.438,21.8573,1.54162,0},
      119. {30016,-13203.1,285.581,21.8575,2.63725,0},
      120. {30016,-13213.9,282.499,21.8573,3.64705,0},
      121. {30016,-13208.9,285.838,21.8577,3.66309,0},
      122. {30016,-13197.8,282.83,21.8574,2.63725,0},
      123. {30016,-13216.6,277.711,21.858,4.7318,0},
      124. {30016,-13216.5,271.729,21.8577,4.7318,0},
      125. {30016,-13213.8,266.83,21.8573,5.82186,0},
      126. {30016,-13208.4,264.131,21.8581,5.82186,0},
      127. {30017,-13205.7,275.016,7.16591,4.23756,0 },
      128. {30019,-13232.3,239.939,33.4345,1.0336,0},
      129. {30019,-13216.6,231.872,33.419,1.03282,0},
      130. {30018,-13237.2,273.418,21.8574,5.14202,0},
      131. {30018,-13176.9,254.606,21.8578,3.58929,0}
      132. },
      133. [mystic_theme] = {
      134. {185491,-13216.81,246.61,21.86,1.3,0,10},
      135. {185491,-13232.33,285.526,21.86,6.03,0,10},
      136. {185491,-13196.26,303.53,21.86,4.35,0,10},
      137. {185491,-13172.15,265.79,21.86,2.83,0,10},
      138. {177414,-13197,274.56,21.86,2.83,0,200},
      139. {177414,-13208.54,268.58,21.86,1.25,0,200},
      140. {177414,-13214.16,279.74,21.86,5.97,0,200},
      141. {177414,-13203.11,286.16,21.86,4.45,0,200},
      142. {181360,-13205.65,277.48,21.86,4.38,0},
      143. {177415,-13205.65,277.48,21.86,4.38,0},
      144. {178964,-13205.65,277.48,21.86,4.38,0,1600},
      145. {177414,-13205.65,277.48,21.86,4.38,0,3000},
      146. {3267260,-13205.8,277.73,29.33,1.2,0,500},
      147. {3267417,-13235.75,268.24,21.86,5.8,0,200}
      148. }
      149. }
      150. function on_theme_speak(pUnit, _, plr)
      151. if not (r_time) or (os.time() >= r_time) then
      152. pUnit:GossipCreateMenu(50020, plr, 0)
      153. pUnit:GossipMenuAddItem(0, "Wald Thema", 1, 0)
      154. pUnit:GossipMenuAddItem(0, "Marsh Thema", 2, 0)
      155. pUnit:GossipMenuAddItem(0, "Ozean Thema", 3, 0)
      156. pUnit:GossipMenuAddItem(0, "Horde Thema", 4, 0)
      157. pUnit:GossipMenuAddItem(0, "Mystik Thema", 5, 0)
      158. pUnit:GossipSendMenu(plr)
      159. elseif (plr:CanUseCommand("a")) then
      160. pUnit:GossipCreateMenu(50020, plr, 0)
      161. pUnit:GossipMenuAddItem(0, "Despawn Thema", 6, 0)
      162. pUnit:GossipSendMenu(plr)
      163. else
      164. plr:SendBroadcastMessage("Du musst noch "..r_time - os.time().." Sekunden warten.")
      165. end
      166. end
      167. function on_theme_spawn(pUnit, _, plr, _, intid)
      168. if (intid == 6) then
      169. r_time = os.time();
      170. return plr:GossipComplete();
      171. end
      172. local tbl = theme_table[intid]
      173. for info in pairs(tbl) do
      174. local object = pUnit:SpawnGameObject(unpack(tbl[info]))
      175. table.insert(go_table, object)
      176. end
      177. r_time = os.time() + reset_time
      178. plr:GossipComplete()
      179. end
      180. function on_theme_delete()
      181. if (r_time) and (os.time() >= r_time) then
      182. for k, object in pairs(go_table) do
      183. if (object:IsInWorld()) then
      184. object:Despawn(0, 0)
      185. go_table[k] = nil;
      186. end
      187. end
      188. r_time = nil;
      189. end
      190. end
      191. RegisterTimedEvent("on_theme_delete", 1000, 0)
      192. RegisterUnitGossipEvent(entry_id, 1, "on_theme_speak")
      193. RegisterUnitGossipEvent(entry_id, 2, "on_theme_spawn")
      Display All


      Und hier die Sql für gameobject_names



      C Source Code: gameobject_names

      1. INSERT INTO `gameobject_names` VALUES ('30000', '5', '7341', 'forest_tree', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0');
      2. INSERT INTO `gameobject_names` VALUES ('30001', '5', '7277', 'forest_bush', '', '', '', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '0', '0', '0', '0', '0', '0');
      3. INSERT INTO `gameobject_names` VALUES ('30002', '5', '4315', 'forest_boulder', '', '', '', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '0', '0', '0', '0', '0', '0');
      4. INSERT INTO `gameobject_names` VALUES ('30003', '5', '7285', 'forest_grass', '', '', '', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '0', '0', '0', '0', '0', '0');
      5. INSERT INTO `gameobject_names` VALUES ('30004', '5', '7285', 'marsh_grass', '', '', '', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '0', '0', '0', '0', '0', '0');
      6. INSERT INTO `gameobject_names` VALUES ('30005', '5', '7331', 'marsh_water', '', '', '', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '0', '0', '0', '0', '0', '0');
      7. INSERT INTO `gameobject_names` VALUES ('30006', '14', '7051', 'marsh_bridge', '', '', '', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '0', '0', '0', '0', '0', '0');
      8. INSERT INTO `gameobject_names` VALUES ('30007', '5', '6826', 'marsh_log', '', '', '', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '0', '0', '0', '0', '0', '0');
      9. INSERT INTO `gameobject_names` VALUES ('30008', '5', '223', 'marsh_boat', '', '', '', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '0', '0', '0', '0', '0', '0');
      10. INSERT INTO `gameobject_names` VALUES ('30010', '5', '7331', 'ocean_water', '', '', '', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '0', '0', '0', '0', '0', '0');
      11. INSERT INTO `gameobject_names` VALUES ('30011', '5', '887', 'ocean_coral1', '', '', '', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '0', '0', '0', '0', '0', '0');
      12. INSERT INTO `gameobject_names` VALUES ('30012', '5', '2251', 'ocean_coral2', '', '', '', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '0', '0', '0', '0', '0', '0');
      13. INSERT INTO `gameobject_names` VALUES ('30013', '5', '4011', 'ocean_anchor', '', '', '', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '0', '0', '0', '0', '0', '0');
      14. INSERT INTO `gameobject_names` VALUES ('30014', '5', '6291', 'ocean_fish', '', '', '', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '0', '0', '0', '0', '0', '0');
      15. INSERT INTO `gameobject_names` VALUES ('30015', '5', '124', 'ocean_boat', '', '', '', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '0', '0', '0', '0', '0', '0');
      16. INSERT INTO `gameobject_names` VALUES ('30016', '5', '5834', 'horde_spikes', '', '', '', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '0', '0', '0', '0', '0', '0');
      17. INSERT INTO `gameobject_names` VALUES ('30017', '14', '629', 'horde_tower', '', '', '', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '0', '0', '0', '0', '0', '0');
      18. INSERT INTO `gameobject_names` VALUES ('30018', '5', '131', 'horde_catapult', '', '', '', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '0', '0', '0', '0', '0', '0');
      19. INSERT INTO `gameobject_names` VALUES ('30019', '5', '5773', 'horde_banner', '', '', '', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '0', '0', '0', '0', '0', '0');
      20. INSERT INTO `gameobject_names` VALUES ('185491', '5', '7321', 'Emerald Dream Tree 001', '', '', '', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0.07', '0', '0', '0', '0', '0', '0');
      21. INSERT INTO `gameobject_names` VALUES ('177414', '5', '2770', 'Gem of Elune', '', '', '', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '0', '0', '0', '0', '0', '0');
      22. INSERT INTO `gameobject_names` VALUES ('177415', '5', '3271', 'Light of Elune', '', '', '', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '0', '0', '0', '0', '0', '0');
      23. INSERT INTO `gameobject_names` VALUES ('181360', '1', '6749', 'Night Elf Moon Crystal', '', '', '', '1', '0', '0', '0', '0', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1.87', '0', '0', '0', '0', '0', '0');
      24. INSERT INTO `gameobject_names` VALUES ('178964', '5', '230', 'Celebras Blue Aura', '', '', '', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '4', '0', '0', '0', '0', '0', '0');
      25. INSERT INTO `gameobject_names` VALUES ('3267260', '14', '7260', 'Lightning_Ball', '', '', '', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '0', '0', '0', '0', '0', '0');
      26. INSERT INTO `gameobject_names` VALUES ('3267417', '14', '7417', 'MOONWELLLIGHT', '', '', '', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '0', '0', '0', '0', '0', '0');
      Display All

      Viel Spass damit
      mfg Batida :thumbsup: