Guest User

Untitled

a guest
Jun 10th, 2016
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.62 KB | None | 0 0
  1. function widget:GetInfo()
  2. return {
  3. name= "EasyGive",
  4. desc = "Simplifys unit names for the /give cheat",
  5. author = "[TL]Beamer",
  6. date = "6/10/2016",
  7. license = "PD",
  8. layer = 0,
  9. enabled = true
  10. }
  11. end
  12.  
  13. local dic = {}
  14. dic["Conjurer"] = "armrectr"
  15. dic["Glaive"] = "armpw"
  16. dic["Scythe"] = "spherepole"
  17. dic["Rocko"] = "armrock"
  18. dic["Warrior"] = "armwar"
  19. dic["Zeus"] = "armzeus"
  20. dic["Hammer"] = "armham"
  21. dic["Spectre"] = "armsnipe"
  22. dic["Gremlin"] = "armjeth"
  23. dic["Tick"] = "armtick"
  24. dic["Eraser"] = "spherecloaker"
  25. dic["Convict"] = "cornecro"
  26. dic["Dirtbag"] = "corclog"
  27. dic["Bandit"] = "corak"
  28. dic["Rogue"] = "corstorm"
  29. dic["Thug"] = "corthud"
  30. dic["Outlaw"] = "cormak"
  31. dic["Felon"] = "shieldfelon"
  32. dic["Racketeer"] = "shieldarty"
  33. dic["Vandal"] = "corcrash"
  34. dic["Roach"] = "corroach"
  35. dic["Aspis"] = "core_spectre"
  36. dic["Freaker"] = "corfast"
  37. dic["Puppy"] = "puppy"
  38. dic["Pyro"] = "corpyro"
  39. dic["Placeholder"] = "jumpblackhole"
  40. dic["Moderator"] = "slowmort"
  41. dic["Jack"] = "corcan"
  42. dic["Sumo"] = "corsumo"
  43. dic["Firewalker"] = "firewalker"
  44. dic["Archangel"] = "armaak"
  45. dic["Skuttle"] = "corsktl"
  46. dic["Weaver"] = "arm_spider"
  47. dic["Flea"] = "armflea"
  48. dic["Hermit"] = "spiderassault"
  49. dic["Venom"] = "arm_venom"
  50. dic["Redback"] = "spiderriot"
  51. dic["Recluse"] = "armsptk"
  52. dic["Crabe"] = "armcrabe"
  53. dic["Tarantula"] = "spideraa"
  54. dic["Infiltrator"] = "armspy"
  55. dic["Mason"] = "corned"
  56. dic["Dart"] = "corfav"
  57. dic["Scorcher"] = "corgator"
  58. dic["Slasher"] = "cormist"
  59. dic["Leveler"] = "corlevlr"
  60. dic["Ravager"] = "corraid"
  61. dic["Dominatrix"] = "capturecar"
  62. dic["Wolverine"] = "corgarp"
  63. dic["Impaler"] = "armmerl"
  64. dic["Crasher"] = "vehaa"
  65. dic["Welder"] = "coracv"
  66. dic["Kodachi"] = "logkoda"
  67. dic["Panther"] = "panther"
  68. dic["Banisher"] = "tawf114"
  69. dic["Reaper"] = "correap"
  70. dic["Goliath"] = "corgol"
  71. dic["Pillager"] = "cormart"
  72. dic["Tremor"] = "trem"
  73. dic["Copperhead"] = "corsent"
  74. dic["Quill"] = "corch"
  75. dic["Dagger"] = "corsh"
  76. dic["Scalpel"] = "nsaclash"
  77. dic["Halberd"] = "hoverassault"
  78. dic["Claymore"] = "hoverdepthcharge"
  79. dic["Mace"] = "hoverriot"
  80. dic["Penetrator"] = "armmanni"
  81. dic["Flail"] = "hoveraa"
  82. dic["Conch"] = "amphcon"
  83. dic["Duck"] = "amphraider3"
  84. dic["Archer"] = "amphraider2"
  85. dic["Buoy"] = "amphfloater"
  86. dic["Scallop"] = "amphriot"
  87. dic["Grizzly"] = "amphassault"
  88. dic["Angler"] = "amphaa"
  89. dic["Djinn"] = "amphtele"
  90. dic["Crane"] = "armca"
  91. dic["Swift"] = "fighter"
  92. dic["Hawk"] = "corvamp"
  93. dic["Raven"] = "corshad"
  94. dic["Phoenix"] = "corhurc2"
  95. dic["Thunderbird"] = "armstiletto_laser"
  96. dic["Wyvern"] = "armcybr"
  97. dic["Vulture"] = "corawac"
  98. dic["Crane"] = "armca"
  99. dic["Blastwing"] = "blastwing"
  100. dic["Gnat"] = "bladew"
  101. dic["Banshee"] = "armkam"
  102. dic["Rapier"] = "corape"
  103. dic["Brawler"] = "armbrawl"
  104. dic["Black Dawn"] = "blackdawn"
  105. dic["Krow"] = "corcrw"
  106. dic["Trident"] = "gunshipaa"
  107. dic["Valkyrie"] = "corvalk"
  108. dic["Vindicator"] = "corbtrans"
  109. dic["Mariner"] = "shipcon"
  110. dic["Skeeter"] = "armpt"
  111. dic["Snake"] = "corsub"
  112. dic["Typhoon"] = "coresupp"
  113. dic["Hunter"] = "dclship"
  114. dic["Enforcer"] = "corroy"
  115. dic["Crusader"] = "armroy"
  116. dic["Sepent"] = "serpent"
  117. dic["Shredder"] = "corarch"
  118. dic["Surfboard"] = "armtboat"
  119. dic["Eos"] = "tacnuke"
  120. dic["Quake"] = "seismic"
  121. dic["Shockley"] = "empmissile"
  122. dic["Inferno"] = "napalmmissile"
  123. dic["Ultimatum"] = "armcomdgun"
  124. dic["Scorpion"] = "scorpion"
  125. dic["Dante"] = "dante"
  126. dic["Catapult"] = "armraven"
  127. dic["Funnelweb"] = "funnelweb"
  128. dic["Bantha"] = "armbanth"
  129. dic["Detriment"] = "armorco"
  130. dic["Leviathan"] = "cornukesub"
  131. dic["Reef"] = "reef"
  132. dic["Warlord"] = "corbats"
  133. dic["Aegis"] = "corjamt"
  134. dic["Defender"] = "corrl"
  135. dic["Lotus"] = "corllt"
  136. dic["Newton"] = "corgrav"
  137. dic["Faraday"] = "armartic"
  138. dic["Stardust"] = "armdeva"
  139. dic["Stinger"] = "corhlt"
  140. dic["Gauss"] = "armpb"
  141. dic["Annihilator"] = "armanni"
  142. dic["Doomsday Machine"] = "cordoom"
  143. dic["Urchin"] = "cortl"
  144. dic["Razor"] = "corrazor"
  145. dic["Hacksaw"] = "missiletower"
  146. dic["Chainsaw"] = "armcir"
  147. dic["Cobra"] = "corflak"
  148. dic["Screamer"] = "screamer"
  149. dic["Protector"] = "armamd"
  150. dic["Behemoth"] = "corbhmth"
  151. dic["Big Bertha"] = "armbrtha"
  152. dic["Silencer"] = "corsilo"
  153. dic["Starlight"] = "mahlazer"
  154. dic["Disco Rave Party"] = "raveparty"
  155. dic["Zenith"] = "zenith"
  156. dic["Cloaky Bot Factory"] = "factorycloak"
  157. dic["Shield Bot Factory"] = "factoryshield"
  158. dic["Jump/Specialist Plant"] = "factoryjump"
  159. dic["Spider Factory"] = "factoryspider"
  160. dic["Light Vehicle Factory"] = "factoryveh"
  161. dic["Heavy Tank Factory"] = "factorytank"
  162. dic["Hovercraft Platform"] = "factoryhover"
  163. dic["Amphibious Bot Plant"] = "factoryamph"
  164. dic["Airplane Plant"] = "factoryplane"
  165. dic["Gunship Plant"] = "factorygunship"
  166. dic["Shipyard"] = "factoryship"
  167. dic["Athena"] = "armcsa"
  168. dic["Missile Silo"] = "missilesilo"
  169. dic["Strider Hub"] = "striderhub"
  170. dic["Metal Extractor"] = "cormex"
  171. dic["Solar Collector"] = "armsolar"
  172. dic["Fusion Reactor"] = "armfus"
  173. dic["Singularity Reactor"] = "cafus"
  174. dic["Wind/Tidal Generator"] = "armwin"
  175. dic["Geothermal Generator"] = "geo"
  176. dic["Storage"] = "armmstor"
  177. dic["Energy Pylon"] = "armestor"
  178. dic["Caretaker"] = "armnanotc"
  179. dic["Air Repair/Rearm Pad"] = "armasp"
  180. dic["Radar Tower"] = "corrad"
  181. dic["Advanced Radar"] = "armarad"
  182. dic["Sonar Station"] = "armsonar"
  183. dic["Sneaky Pete"] = "armjamt"
  184.  
  185. function widget:TextInput(msg)
  186. local input = {}
  187. for i in string.gmatch(msg, "%S+") do
  188. input[#input + 1] = i
  189. end
  190.  
  191. if #input == 4 and string.lower(input[1]) == "/easygive" then
  192. for i, j in pairs(dic) do
  193. if string.lower(input[3]) == i then
  194. Spring.SendCommands("Say /give " .. input[2] .. " " .. j .. " " .. input[4])
  195. end
  196. end
  197. end
  198. end
Add Comment
Please, Sign In to add comment