Guest User

fuel mod 1.1

a guest
Sep 6th, 2014
286
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --default editing
  2. elements.property(elements.DEFAULT_PT_ACID, "Flammable", 0)
  3. elements.property(elements.DEFAULT_PT_DMND, "MenuSection", 9)
  4. elements.property(elements.DEFAULT_PT_MORT, "MenuVisible", 1)
  5. elements.property(elements.DEFAULT_PT_MORT, "MenuSection", 8)
  6. elements.property(elements.DEFAULT_PT_INSL, "Hardness", 0)
  7. elements.property(elements.DEFAULT_PT_INSL, "Flammable", 0)
  8. elements.property(elements.DEFAULT_PT_LN2, "HighTemperature", 76)
  9. elements.property(elements.DEFAULT_PT_WATR, "Hardness", 0.25)
  10. elements.property(elements.DEFAULT_PT_DSTW, "Hardness", 0)
  11. elements.property(elements.DEFAULT_PT_SLTW, "Hardness", 0)
  12. elements.property(elements.DEFAULT_PT_BUBW, "Hardness", 0)
  13. elements.property(elements.DEFAULT_PT_WATR, "Weight", 32)
  14. elements.property(elements.DEFAULT_PT_DSTW, "Weight", 32)
  15. elements.property(elements.DEFAULT_PT_SLTW, "Weight", 32)
  16. elements.property(elements.DEFAULT_PT_BUBW, "Weight", 32)
  17. elements.property(elements.DEFAULT_PT_ACID, "Weight", 32)
  18. elements.property(elements.DEFAULT_PT_ACID, "Diffusion", 1.2)
  19. elements.property(elements.DEFAULT_PT_ACID, "Description", "Bubbling caustic liquid.")
  20. elements.property(elements.DEFAULT_PT_ACID, "Gravity", 0.62)
  21. elements.property(elements.DEFAULT_PT_DESL, "HighPressure", 256)
  22.  
  23. --petrol
  24. local antifrzz = elements.allocate("JWARD", "AFRZ")
  25. local petrolgas = elements.allocate("JWARD", "PTLV")
  26. local petrol = elements.allocate("JWARD", "PTRL")
  27. elements.element(elements.JWARD_PT_PTRL, elements.element(elements.DEFAULT_PT_GEL))
  28. elements.property(elements.JWARD_PT_PTRL, "Name", "PTRL")
  29. elements.property(elements.JWARD_PT_PTRL, "Description", "Petrol. Highly flammable liquid.")
  30. elements.property(elements.JWARD_PT_PTRL, "Colour", 0x0A4A5C)
  31. elements.property(elements.JWARD_PT_PTRL, "MenuSection", SC_LIQUID)
  32. elements.property(elements.JWARD_PT_PTRL, "Gravity", 0.6)
  33. elements.property(elements.JWARD_PT_PTRL, "Flammable", 65)
  34. elements.property(elements.JWARD_PT_PTRL, "Explosive", 0)
  35. elements.property(elements.JWARD_PT_PTRL, "Loss", 0.8)
  36. elements.property(elements.JWARD_PT_PTRL, "AirLoss", 0.94)
  37. elements.property(elements.JWARD_PT_PTRL, "AirDrag", 0.02)
  38. elements.property(elements.JWARD_PT_PTRL, "Advection", 0.8)
  39. elements.property(elements.JWARD_PT_PTRL, "Weight", 12)
  40. elements.property(elements.JWARD_PT_PTRL, "Diffusion", 0)
  41. elements.property(elements.JWARD_PT_PTRL, "Meltable", 0)
  42. elements.property(elements.JWARD_PT_PTRL, "Hardness", 0)
  43. elements.property(elements.JWARD_PT_PTRL, "Falldown", 2)
  44. elements.property(elements.JWARD_PT_PTRL, "Properties", TYPE_LIQUID)
  45. elements.property(elements.JWARD_PT_PTRL, "State", ST_LIQUID)
  46. elements.property(elements.JWARD_PT_PTRL, "Temperature", 295.15)
  47. elements.property(elements.JWARD_PT_PTRL, "HeatConduct", 78)
  48. elements.property(elements.JWARD_PT_PTRL, "HighTemperature", 333.15)
  49. elements.property(elements.JWARD_PT_PTRL, "HighTemperatureTransition", elements.JWARD_PT_PTLV)
  50. elements.property(elements.JWARD_PT_PTRL, "LowTemperature", 225.15)
  51. elements.property(elements.JWARD_PT_PTRL, "LowTemperatureTransition", elements.DEFAULT_PT_ICE)
  52.  
  53. elements.element(elements.JWARD_PT_PTLV, elements.element(elements.DEFAULT_PT_HYGN))
  54. elements.property(elements.JWARD_PT_PTLV, "Name", "PTLV")
  55. elements.property(elements.JWARD_PT_PTLV, "Description", "petrol gas")
  56. elements.property(elements.JWARD_PT_PTLV, "Colour", 0x0A4A5C)
  57. elements.property(elements.JWARD_PT_PTLV, "MenuVisible", 0)
  58. elements.property(elements.JWARD_PT_PTLV, "Gravity", -0.02)
  59. elements.property(elements.JWARD_PT_PTLV, "Flammable", 100)
  60. elements.property(elements.JWARD_PT_PTLV, "Explosive", 1)
  61. elements.property(elements.JWARD_PT_PTLV, "Loss", 0.75)
  62. elements.property(elements.JWARD_PT_PTLV, "AirLoss", 0.97)
  63. elements.property(elements.JWARD_PT_PTLV, "AirDrag", 0.01)
  64. elements.property(elements.JWARD_PT_PTLV, "Advection", 1)
  65. elements.property(elements.JWARD_PT_PTLV, "Weight", 0)
  66. elements.property(elements.JWARD_PT_PTLV, "Diffusion", 0.7)
  67. elements.property(elements.JWARD_PT_PTLV, "Meltable", 0)
  68. elements.property(elements.JWARD_PT_PTLV, "Hardness", 0)
  69. elements.property(elements.JWARD_PT_PTLV, "Falldown", 0)
  70. elements.property(elements.JWARD_PT_PTLV, "Properties", TYPE_GAS)
  71. elements.property(elements.JWARD_PT_PTLV, "State", ST_GAS)
  72. elements.property(elements.JWARD_PT_PTLV, "Temperature", 343.15)
  73. elements.property(elements.JWARD_PT_PTLV, "HeatConduct", 80)
  74. elements.property(elements.JWARD_PT_PTLV, "LowTemperature", 333.14)
  75. elements.property(elements.JWARD_PT_PTLV, "LowTemperatureTransition", elements.JWARD_PT_PTRL)
  76.  
  77. elements.element(elements.JWARD_PT_AFRZ, elements.element(elements.DEFAULT_PT_GEL))
  78. elements.property(elements.JWARD_PT_AFRZ, "Name", "AFRZ")
  79. elements.property(elements.JWARD_PT_AFRZ, "Description", "antifreeze, keeps your fuel nice and toasty. methnol")
  80. elements.property(elements.JWARD_PT_AFRZ, "Colour", 0x0C3F5B)
  81. elements.property(elements.JWARD_PT_AFRZ, "MenuSection", SC_LIQUID)
  82. elements.property(elements.JWARD_PT_AFRZ, "Gravity", 0.6)
  83. elements.property(elements.JWARD_PT_AFRZ, "Flammable", 65)
  84. elements.property(elements.JWARD_PT_AFRZ, "Explosive", 0)
  85. elements.property(elements.JWARD_PT_AFRZ, "Loss", 0.8)
  86. elements.property(elements.JWARD_PT_AFRZ, "AirLoss", 0.94)
  87. elements.property(elements.JWARD_PT_AFRZ, "AirDrag", 0.02)
  88. elements.property(elements.JWARD_PT_AFRZ, "Advection", 0.8)
  89. elements.property(elements.JWARD_PT_AFRZ, "Weight", 12)
  90. elements.property(elements.JWARD_PT_AFRZ, "Diffusion", 0)
  91. elements.property(elements.JWARD_PT_AFRZ, "Meltable", 0)
  92. elements.property(elements.JWARD_PT_AFRZ, "Hardness", 0)
  93. elements.property(elements.JWARD_PT_AFRZ, "Falldown", 2)
  94. elements.property(elements.JWARD_PT_AFRZ, "Properties", TYPE_LIQUID)
  95. elements.property(elements.JWARD_PT_AFRZ, "State", ST_LIQUID)
  96. elements.property(elements.JWARD_PT_AFRZ, "Temperature", 295.15)
  97. elements.property(elements.JWARD_PT_AFRZ, "HeatConduct", 78)
  98. function AFRZ(i,x,y,s,n)
  99. warm = tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
  100. warm2 = tpt.get_property("temp",x,y)
  101. if warm == petrol and warm2 < 276 then
  102. tpt.set_property('temp', 296 ,x, y)
  103. end
  104. if warm == tpt.el.desl.id and warm2 < 276 then
  105. tpt.set_property('temp', 296 ,x, y)
  106. end
  107. if warm == BioDiesel and warm2 < 276 then
  108. tpt.set_property('temp', 296 ,x, y)
  109. end
  110. if warm == jetfuel and warm2 < 276 then
  111. tpt.set_property('temp', 296 ,x, y)
  112. end
  113. if warm == tpt.el.ice.id and warm2 < 276 then
  114. tpt.set_property('temp', 296 ,x, y)
  115. end
  116. end
  117. tpt.element_func(AFRZ, tpt.element('AFRZ'))
  118.  
  119. --diesel & bio diesel
  120. local Dieselgas = elements.allocate("JWARD", "DSLV")
  121. local potash_lye = elements.allocate("JWARD", "PLYE")
  122. local cooking_oil = elements.allocate("JWARD", "COIL")
  123. local BioDiesel = elements.allocate("JWARD", "BDSL")
  124.  
  125. elements.element(elements.JWARD_PT_DSLV, elements.element(elements.DEFAULT_PT_HYGN))
  126. elements.property(elements.JWARD_PT_DSLV, "Name", "DSLV")
  127. elements.property(elements.JWARD_PT_DSLV, "Description", "diesel gas")
  128. elements.property(elements.JWARD_PT_DSLV, "Colour", 0x440000)
  129. elements.property(elements.JWARD_PT_DSLV, "MenuVisible", 0)
  130. elements.property(elements.JWARD_PT_DSLV, "Gravity", -0.02)
  131. elements.property(elements.JWARD_PT_DSLV, "Flammable", 100)
  132. elements.property(elements.JWARD_PT_DSLV, "Explosive", 1)
  133. elements.property(elements.JWARD_PT_DSLV, "Loss", 0.75)
  134. elements.property(elements.JWARD_PT_DSLV, "AirLoss", 0.97)
  135. elements.property(elements.JWARD_PT_DSLV, "AirDrag", 0.01)
  136. elements.property(elements.JWARD_PT_DSLV, "Advection", 1)
  137. elements.property(elements.JWARD_PT_DSLV, "Weight", 0)
  138. elements.property(elements.JWARD_PT_DSLV, "Diffusion", 0.7)
  139. elements.property(elements.JWARD_PT_DSLV, "Meltable", 0)
  140. elements.property(elements.JWARD_PT_DSLV, "Hardness", 0)
  141. elements.property(elements.JWARD_PT_DSLV, "Falldown", 0)
  142. elements.property(elements.JWARD_PT_DSLV, "Properties", TYPE_GAS)
  143. elements.property(elements.JWARD_PT_DSLV, "State", ST_GAS)
  144. elements.property(elements.JWARD_PT_DSLV, "Temperature", 483.15)
  145. elements.property(elements.JWARD_PT_DSLV, "HeatConduct", 80)
  146. elements.property(elements.JWARD_PT_DSLV, "LowTemperature", 473.15)
  147. elements.property(elements.JWARD_PT_DSLV, "LowTemperatureTransition", elements.DEFAULT_PT_DESL)
  148.  
  149. elements.element(elements.JWARD_PT_COIL, elements.element(elements.DEFAULT_PT_GEL))
  150. elements.property(elements.JWARD_PT_COIL, "Name", "COIL")
  151. elements.property(elements.JWARD_PT_COIL, "Description", "Cooking oil")
  152. elements.property(elements.JWARD_PT_COIL, "Colour", 0xA57214)
  153. elements.property(elements.JWARD_PT_COIL, "MenuSection", 7)
  154. elements.property(elements.JWARD_PT_COIL, "Gravity", 0.6)
  155. elements.property(elements.JWARD_PT_COIL, "Flammable", 1)
  156. elements.property(elements.JWARD_PT_COIL, "Explosive", 0)
  157. elements.property(elements.JWARD_PT_COIL, "Loss", 0.7)
  158. elements.property(elements.JWARD_PT_COIL, "AirLoss", 0.91)
  159. elements.property(elements.JWARD_PT_COIL, "AirDrag", 0.02)
  160. elements.property(elements.JWARD_PT_COIL, "Advection", 0.9)
  161. elements.property(elements.JWARD_PT_COIL, "Weight", 10)
  162. elements.property(elements.JWARD_PT_COIL, "Meltable", 0)
  163. elements.property(elements.JWARD_PT_COIL, "Hardness", 86)
  164. elements.property(elements.JWARD_PT_COIL, "Falldown", 2)
  165. elements.property(elements.JWARD_PT_COIL, "Properties", TYPE_LIQUID)
  166. elements.property(elements.JWARD_PT_COIL, "State", ST_LIQUID)
  167. elements.property(elements.JWARD_PT_COIL, "Temperature", 295.15)
  168. elements.property(elements.JWARD_PT_COIL, "HeatConduct", 100)
  169. function COIL(i,x,y,s,n)
  170. cx = math.random(-3,3)
  171. cy = math.random(-5,1)
  172. reaction = tpt.get_property("temp",x,y)
  173. bio = tpt.get_property("type",x + math.random(-2,2), y + math.random(-2,2))
  174. bioo = tpt.get_property("type",x + math.random(-2,2), y + math.random(-2,2))
  175. biooo = tpt.get_property("type",x + cy, y + cx)
  176. local noncatalyst = tpt.get_property("life",x,y)
  177. if reaction > 363.15 and biooo ~= true then
  178. tpt.delete(x,y)
  179. tpt.create(x + cx, y + cy, 'COIL')
  180. end
  181. if bio == potash_lye and bioo == antifrzz then
  182. tpt.parts[i].type = tpt.element('BDSL')
  183. end
  184. end
  185. tpt.element_func(COIL, tpt.element('COIL'))
  186.  
  187. elements.element(elements.JWARD_PT_BDSL, elements.element(elements.DEFAULT_PT_GEL))
  188. elements.property(elements.JWARD_PT_BDSL, "Name", "BDSL")
  189. elements.property(elements.JWARD_PT_BDSL, "Description", "Bio Diesel. Made from cooking oil.")
  190. elements.property(elements.JWARD_PT_BDSL, "Colour", 0x331000)
  191. elements.property(elements.JWARD_PT_BDSL, "MenuSection", SC_LIQUID)
  192. elements.property(elements.JWARD_PT_BDSL, "Gravity", 0.6)
  193. elements.property(elements.JWARD_PT_BDSL, "Flammable", 35)
  194. elements.property(elements.JWARD_PT_BDSL, "Explosive", 0)
  195. elements.property(elements.JWARD_PT_BDSL, "Loss", 0.8)
  196. elements.property(elements.JWARD_PT_BDSL, "AirLoss", 0.94)
  197. elements.property(elements.JWARD_PT_BDSL, "AirDrag", 0.02)
  198. elements.property(elements.JWARD_PT_BDSL, "Advection", 0.8)
  199. elements.property(elements.JWARD_PT_BDSL, "Weight", 12)
  200. elements.property(elements.JWARD_PT_BDSL, "Diffusion", 0)
  201. elements.property(elements.JWARD_PT_BDSL, "Meltable", 0)
  202. elements.property(elements.JWARD_PT_BDSL, "Hardness", 0)
  203. elements.property(elements.JWARD_PT_BDSL, "Falldown", 2)
  204. elements.property(elements.JWARD_PT_BDSL, "Properties", TYPE_LIQUID)
  205. elements.property(elements.JWARD_PT_BDSL, "State", ST_LIQUID)
  206. elements.property(elements.JWARD_PT_BDSL, "Temperature", 295.15)
  207. elements.property(elements.JWARD_PT_BDSL, "HeatConduct", 99)
  208. function BDSL(i,x,y,s,n)
  209. findcoil = tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
  210. if findcoil == cooking_oil then
  211. tpt.set_property('life', 2 ,x, y)
  212. end
  213. end
  214. tpt.element_func(BDSL, tpt.element('BDSL'))
  215.  
  216. elements.element(elements.JWARD_PT_PLYE, elements.element(elements.DEFAULT_PT_BCOL))
  217. elements.property(elements.JWARD_PT_PLYE, "Name", "PLYE")
  218. elements.property(elements.JWARD_PT_PLYE, "Description", "potash lye")
  219. elements.property(elements.JWARD_PT_PLYE, "Colour", 0xCCCCCC)
  220. elements.property(elements.JWARD_PT_PLYE, "MenuSection", 8)
  221. elements.property(elements.JWARD_PT_PLYE, "Gravity", .35)
  222. elements.property(elements.JWARD_PT_PLYE, "Flammable", 0)
  223. elements.property(elements.JWARD_PT_PLYE, "Explosive", 0)
  224. elements.property(elements.JWARD_PT_PLYE, "Loss", 0.15)
  225. elements.property(elements.JWARD_PT_PLYE, "AirLoss", 0.96)
  226. elements.property(elements.JWARD_PT_PLYE, "AirDrag", 0.03)
  227. elements.property(elements.JWARD_PT_PLYE, "Advection", 0.4)
  228. elements.property(elements.JWARD_PT_PLYE, "Weight", 60)
  229. elements.property(elements.JWARD_PT_PLYE, "Diffusion", 0)
  230. elements.property(elements.JWARD_PT_PLYE, "Falldown", 1)
  231. elements.property(elements.JWARD_PT_PLYE, "Hardness", 0)
  232. elements.property(elements.JWARD_PT_PLYE, "HeatConduct", 62)
  233. elements.property(elements.JWARD_PT_PLYE, "Properties", elem.PROP_DEADLY)
  234. function PLYE(i,x,y,s,n)
  235. cy = math.random(-1,1)
  236. cx = math.random(-1,1)
  237. reaction = tpt.get_property("type",x+cx,y+cy)
  238. if reaction == tpt.el.acid.id then
  239. tpt.create(x, y + 2, 'hygn')
  240. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'SLTW')
  241. tpt.delete(x,y)
  242. end
  243. end
  244. tpt.element_func(PLYE, tpt.element('PLYE'))
  245.  
  246. --o0o NITROGEN o0o--
  247. local nitrogen = elements.allocate("JWARD", "N2")
  248. local Diazane = elements.allocate("JWARD", "N2H4")
  249. local DinitrogenTetroxide = elements.allocate("JWARD", "N2O4")
  250. local nitrous = elements.allocate("JWARD", "N2O")
  251. local need4speed = elements.allocate("JWARD", "LN2O")
  252. elements.element(elements.JWARD_PT_LN2O, elements.element(elements.DEFAULT_PT_GEL))
  253. elements.property(elements.JWARD_PT_LN2O, "Name", "LN2O")
  254. elements.property(elements.JWARD_PT_LN2O, "Description", "Liquid Nitrous Oxide. Burns very quickly and very hot.")
  255. elements.property(elements.JWARD_PT_LN2O, "Colour", 0x33C1F5)
  256. elements.property(elements.JWARD_PT_LN2O, "MenuSection", 7)
  257. elements.property(elements.JWARD_PT_LN2O, "Gravity", 0.8)
  258. elements.property(elements.JWARD_PT_LN2O, "Flammable", 6000)
  259. elements.property(elements.JWARD_PT_LN2O, "Explosive", 0)
  260. elements.property(elements.JWARD_PT_LN2O, "Loss", 0.5)
  261. elements.property(elements.JWARD_PT_LN2O, "AirLoss", 0.94)
  262. elements.property(elements.JWARD_PT_LN2O, "AirDrag", 0.03)
  263. elements.property(elements.JWARD_PT_LN2O, "Advection", 0.7)
  264. elements.property(elements.JWARD_PT_LN2O, "Weight", 43)
  265. elements.property(elements.JWARD_PT_LN2O, "Diffusion", 0)
  266. elements.property(elements.JWARD_PT_LN2O, "Meltable", 0)
  267. elements.property(elements.JWARD_PT_LN2O, "Hardness", 0)
  268. elements.property(elements.JWARD_PT_LN2O, "Falldown", 2)
  269. elements.property(elements.JWARD_PT_LN2O, "Properties", TYPE_LIQUID)
  270. elements.property(elements.JWARD_PT_LN2O, "State", ST_LIQUID)
  271. elements.property(elements.JWARD_PT_LN2O, "Temperature", 174)
  272. elements.property(elements.JWARD_PT_LN2O, "HeatConduct", 58)
  273. elements.property(elements.JWARD_PT_LN2O, "HighTemperature", 184)
  274. elements.property(elements.JWARD_PT_LN2O, "HighTemperatureTransition", elements.JWARD_PT_N2O)
  275.  
  276. elements.element(elements.JWARD_PT_N2O, elements.element(elements.DEFAULT_PT_CO2))
  277. elements.property(elements.JWARD_PT_N2O, "Name", "N2O")
  278. elements.property(elements.JWARD_PT_N2O, "Description", "Nitrous Oxide. Highly flammable RACE CAR oxidizer!!!.")
  279. elements.property(elements.JWARD_PT_N2O, "Colour", 0x43DAFF)
  280. elements.property(elements.JWARD_PT_N2O, "MenuSection", 6)
  281. elements.property(elements.JWARD_PT_N2O, "Gravity", 0)
  282. elements.property(elements.JWARD_PT_N2O, "Flammable", 5500)
  283. elements.property(elements.JWARD_PT_N2O, "Explosive", 0)
  284. elements.property(elements.JWARD_PT_N2O, "Loss", 0.7)
  285. elements.property(elements.JWARD_PT_N2O, "AirLoss", 0.91)
  286. elements.property(elements.JWARD_PT_N2O, "AirDrag", 0.02)
  287. elements.property(elements.JWARD_PT_N2O, "Advection", 0.9)
  288. elements.property(elements.JWARD_PT_N2O, "Weight", 0)
  289. elements.property(elements.JWARD_PT_N2O, "Diffusion", 1.5)
  290. elements.property(elements.JWARD_PT_N2O, "Meltable", 0)
  291. elements.property(elements.JWARD_PT_N2O, "Hardness", 0)
  292. elements.property(elements.JWARD_PT_N2O, "Falldown", 0)
  293. elements.property(elements.JWARD_PT_N2O, "Properties", TYPE_GAS)
  294. elements.property(elements.JWARD_PT_N2O, "State", ST_GAS)
  295. elements.property(elements.JWARD_PT_N2O, "Temperature", 295.15)
  296. elements.property(elements.JWARD_PT_N2O, "HeatConduct", 80)
  297. elements.property(elements.JWARD_PT_N2O, "LowTemperature", 184.67)
  298. elements.property(elements.JWARD_PT_N2O, "LowTemperatureTransition", elements.JWARD_PT_LN2O)
  299. function N2O(i,x,y,s,n)
  300. reaction = tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
  301. if reaction == tpt.el.oxyg.id then
  302. tpt.parts[i].type = tpt.element('N2O4')
  303. reaction = nil
  304. end
  305. end
  306. tpt.element_func(N2O,nitrous)
  307.  
  308. elements.element(elements.JWARD_PT_N2O4, elements.element(elements.DEFAULT_PT_GEL))
  309. elements.property(elements.JWARD_PT_N2O4, "Name", "N2O4")
  310. elements.property(elements.JWARD_PT_N2O4, "Description", "Dinitrogen Tetroxide rocket oxidizer")
  311. elements.property(elements.JWARD_PT_N2O4, "Colour", 0x30CEC6)
  312. elements.property(elements.JWARD_PT_N2O4, "MenuSection", 5)
  313. elements.property(elements.JWARD_PT_N2O4, "Gravity", 0.8)
  314. elements.property(elements.JWARD_PT_N2O4, "Flammable", 7500)
  315. elements.property(elements.JWARD_PT_N2O4, "Explosive", 1)
  316. elements.property(elements.JWARD_PT_N2O4, "Loss", 0.7)
  317. elements.property(elements.JWARD_PT_N2O4, "AirLoss", 0.91)
  318. elements.property(elements.JWARD_PT_N2O4, "AirDrag", 0.03)
  319. elements.property(elements.JWARD_PT_N2O4, "Advection", 0.6)
  320. elements.property(elements.JWARD_PT_N2O4, "Weight", 46)
  321. elements.property(elements.JWARD_PT_N2O4, "Diffusion", 1.5)
  322. elements.property(elements.JWARD_PT_N2O4, "Meltable", 0)
  323. elements.property(elements.JWARD_PT_N2O4, "Hardness", 0)
  324. elements.property(elements.JWARD_PT_N2O4, "Falldown", 2)
  325. elements.property(elements.JWARD_PT_N2O4, "Properties", TYPE_LIQUID)
  326. elements.property(elements.JWARD_PT_N2O4, "State", ST_LIQUID)
  327. elements.property(elements.JWARD_PT_N2O4, "Temperature", 295.15)
  328. elements.property(elements.JWARD_PT_N2O4, "HeatConduct", 78)
  329. function N2O4(i,x,y,s,n)
  330. rocket = tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
  331. if rocket == Diazane then
  332. tpt.create(x+math.random(-1,1), y+math.random(-1,1), 'plsm')
  333. end
  334. end
  335. tpt.element_func(N2O4,DinitrogenTetroxide)
  336.  
  337. elements.element(elements.JWARD_PT_N2H4, elements.element(elements.DEFAULT_PT_GEL))
  338. elements.property(elements.JWARD_PT_N2H4, "Name", "N2H4")
  339. elements.property(elements.JWARD_PT_N2H4, "Description", "Hydrazine rocket fuel")
  340. elements.property(elements.JWARD_PT_N2H4, "Colour", 0xB6F064)
  341. elements.property(elements.JWARD_PT_N2H4, "MenuSection", 5)
  342. elements.property(elements.JWARD_PT_N2H4, "Gravity", 0.8)
  343. elements.property(elements.JWARD_PT_N2H4, "Flammable", 1)
  344. elements.property(elements.JWARD_PT_N2H4, "Explosive", 1)
  345. elements.property(elements.JWARD_PT_N2H4, "Loss", 0.7)
  346. elements.property(elements.JWARD_PT_N2H4, "AirLoss", 0.91)
  347. elements.property(elements.JWARD_PT_N2H4, "AirDrag", 0.03)
  348. elements.property(elements.JWARD_PT_N2H4, "Advection", 0.6)
  349. elements.property(elements.JWARD_PT_N2H4, "Weight", 46)
  350. elements.property(elements.JWARD_PT_N2H4, "Diffusion", 1.5)
  351. elements.property(elements.JWARD_PT_N2H4, "Meltable", 0)
  352. elements.property(elements.JWARD_PT_N2H4, "Hardness", 0)
  353. elements.property(elements.JWARD_PT_N2H4, "Falldown", 2)
  354. elements.property(elements.JWARD_PT_N2H4, "Properties", TYPE_LIQUID)
  355. elements.property(elements.JWARD_PT_N2H4, "State", ST_LIQUID)
  356. elements.property(elements.JWARD_PT_N2H4, "Temperature", 295.15)
  357. elements.property(elements.JWARD_PT_N2H4, "HeatConduct", 83)
  358. N2H4Update = function(i, x, y, s, n)
  359.  local clife = tpt.get_property('life', x, y)
  360.  if clife > 1 then
  361.  for cx = -1, 1, 2 do
  362.  for cy = -1, 1, 2 do
  363.  tpt.create(x + cx, y + cy, 'fire')
  364.  tpt.set_property('temp', 1700, x, y)
  365.  tpt.set_pressure(x, y, 2, 2, 200)
  366.  end
  367.  end
  368.  tpt.set_property('life', clife - 1, x, y)
  369.  elseif clife == 1 then
  370.  tpt.set_property('type', 0, x, y)
  371.  elseif s > 0 then
  372.  for cx = -1, 1, 2 do
  373.  for cy = -1, 1, 2 do
  374.  if tpt.get_property('type', x + cx, y + cy) == 4 or tpt.get_property('type', x + cx, y + cy) == 49 then
  375.  tpt.set_property('life', 500, x, y)
  376.  return true
  377.  end
  378.  end
  379.  end
  380.  end
  381. end
  382. tpt.element_func(N2H4Update, tpt.element('N2H4'))
  383.  
  384. elements.element(elements.JWARD_PT_N2, elements.element(elements.DEFAULT_PT_CO2))
  385. elements.property(elements.JWARD_PT_N2, "Name", "N2")
  386. elements.property(elements.JWARD_PT_N2, "Description", "Nitrogen Gas. Combines with WATR to make N2O + H2.")
  387. elements.property(elements.JWARD_PT_N2, "Colour", 0x5E52FF)
  388. elements.property(elements.JWARD_PT_N2, "MenuSection", SC_GAS)
  389. elements.property(elements.JWARD_PT_N2, "Gravity", 0)
  390. elements.property(elements.JWARD_PT_N2, "Flammable", 0)
  391. elements.property(elements.JWARD_PT_N2, "Explosive", 1)
  392. elements.property(elements.JWARD_PT_N2, "Loss", 0.3)
  393. elements.property(elements.JWARD_PT_N2, "AirLoss", 0.99)
  394. elements.property(elements.JWARD_PT_N2, "AirDrag", 0.01)
  395. elements.property(elements.JWARD_PT_N2, "Advection", 2.0)
  396. elements.property(elements.JWARD_PT_N2, "Weight", 0)
  397. elements.property(elements.JWARD_PT_N2, "Diffusion", 2.75)
  398. elements.property(elements.JWARD_PT_N2, "State", ST_GAS)
  399. elements.property(elements.JWARD_PT_N2, "Properties", elem.TYPE_GAS)
  400. elements.property(elements.JWARD_PT_N2, "LowTemperatureTransition", elements.DEFAULT_PT_LN2)
  401. elements.property(elements.JWARD_PT_N2, "LowTemperature", 76)
  402. elements.property(elements.JWARD_PT_N2, "HeatConduct", 80)
  403. function N2(i,x,y,s,n)
  404. water = tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
  405. if water == tpt.el.dstw.id then
  406. tpt.parts[i].type = tpt.element('N2O')
  407. water = nil
  408. end
  409. end
  410. tpt.element_func(N2,nitrogen)
  411. --extra
  412. local propane = elements.allocate("JWARD", "PROP")
  413. elements.element(elements.JWARD_PT_PROP, elements.element(elements.DEFAULT_PT_CO2))
  414. elements.property(elements.JWARD_PT_PROP, "Name", "PRPN")
  415. elements.property(elements.JWARD_PT_PROP, "Description", "Propane. Explodes very easily.")
  416. elements.property(elements.JWARD_PT_PROP, "Colour", 0xF4A26A)
  417. elements.property(elements.JWARD_PT_PROP, "MenuSection", 5)
  418. elements.property(elements.JWARD_PT_PROP, "Gravity", -0.02)
  419. elements.property(elements.JWARD_PT_PROP, "Flammable", 3000)
  420. elements.property(elements.JWARD_PT_PROP, "Explosive", 2.5)
  421. elements.property(elements.JWARD_PT_PROP, "Loss", 0.75)
  422. elements.property(elements.JWARD_PT_PROP, "AirLoss", 0.97)
  423. elements.property(elements.JWARD_PT_PROP, "AirDrag", 0.01)
  424. elements.property(elements.JWARD_PT_PROP, "Advection", 1)
  425. elements.property(elements.JWARD_PT_PROP, "Weight", 0)
  426. elements.property(elements.JWARD_PT_PROP, "Diffusion", 0.7)
  427. elements.property(elements.JWARD_PT_PROP, "Meltable", 0)
  428. elements.property(elements.JWARD_PT_PROP, "Hardness", 0)
  429. elements.property(elements.JWARD_PT_PROP, "Falldown", 0)
  430. elements.property(elements.JWARD_PT_PROP, "Properties", TYPE_GAS)
  431. elements.property(elements.JWARD_PT_PROP, "State", ST_GAS)
  432. elements.property(elements.JWARD_PT_PROP, "Temperature", 295.15)
  433. elements.property(elements.JWARD_PT_PROP, "HeatConduct", 95)
  434. elements.property(elements.JWARD_PT_PROP, "HighTemperature", 353.15)
  435. elements.property(elements.JWARD_PT_PROP, "HighTemperatureTransition", tpt.el.fire.id)
  436. elements.property(elements.JWARD_PT_PROP, "LowTemperatureTransition", NT)
  437.  
  438. --kerosene
  439. local KEROSENEGAS = elements.allocate("JWARD", "KERV")
  440. local KEROSENE = elements.allocate("JWARD", "KERO")
  441. elements.element(elements.JWARD_PT_KERO, elements.element(elements.DEFAULT_PT_GEL))
  442. elements.property(elements.JWARD_PT_KERO, "Name", "KERO")
  443. elements.property(elements.JWARD_PT_KERO, "Description", "KERO BURNS HOT AND QUICK")
  444. elements.property(elements.JWARD_PT_KERO, "Colour", 0x01B3D7)
  445. elements.property(elements.JWARD_PT_KERO, "MenuSection", 5)
  446. elements.property(elements.JWARD_PT_KERO, "Gravity", .04)
  447. elements.property(elements.JWARD_PT_KERO, "Flammable", 500)
  448. elements.property(elements.JWARD_PT_KERO, "Explosive", 1)
  449. elements.property(elements.JWARD_PT_KERO, "Loss", 1)
  450. elements.property(elements.JWARD_PT_KERO, "AirLoss", .5)
  451. elements.property(elements.JWARD_PT_KERO, "AirDrag", .01)
  452. elements.property(elements.JWARD_PT_KERO, "Advection", .01)
  453. elements.property(elements.JWARD_PT_KERO, "Weight", 5)
  454. elements.property(elements.JWARD_PT_KERO, "State", ST_liquid)
  455. elements.property(elements.JWARD_PT_KERO, "Properties", elem.TYPE_LIQUID+elem.PROP_DEADLY)
  456. elements.property(elements.JWARD_PT_KERO, "HighTemperature", 393.15)
  457. elements.property(elements.JWARD_PT_KERO, "HighTemperatureTransition", elements.JWARD_PT_KERV)
  458. function KERO(i,x,y,s,n)
  459. reaction = tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
  460. if reaction == petrol then
  461. tpt.parts[i].type = tpt.element('JETB')
  462. reaction = nil
  463. end
  464. end
  465. tpt.element_func(KERO,KEROSENE)
  466. tpt.register_mouseclick(KERO)
  467.  
  468. elements.element(elements.JWARD_PT_KERV, elements.element(elements.DEFAULT_PT_HYGN))
  469. elements.property(elements.JWARD_PT_KERV, "Name", "KERV")
  470. elements.property(elements.JWARD_PT_KERV, "Description", "kerosene gas")
  471. elements.property(elements.JWARD_PT_KERV, "Colour", 0x01B3D7)
  472. elements.property(elements.JWARD_PT_KERV, "MenuVisible", 0)
  473. elements.property(elements.JWARD_PT_KERV, "Gravity", -0.02)
  474. elements.property(elements.JWARD_PT_KERV, "Flammable", 600)
  475. elements.property(elements.JWARD_PT_KERV, "Explosive", 1)
  476. elements.property(elements.JWARD_PT_KERV, "Loss", 0.75)
  477. elements.property(elements.JWARD_PT_KERV, "AirLoss", 0.97)
  478. elements.property(elements.JWARD_PT_KERV, "AirDrag", 0.01)
  479. elements.property(elements.JWARD_PT_KERV, "Advection", 1)
  480. elements.property(elements.JWARD_PT_KERV, "Weight", 0)
  481. elements.property(elements.JWARD_PT_KERV, "Diffusion", 0.7)
  482. elements.property(elements.JWARD_PT_KERV, "Meltable", 0)
  483. elements.property(elements.JWARD_PT_KERV, "Hardness", 0)
  484. elements.property(elements.JWARD_PT_KERV, "Falldown", 0)
  485. elements.property(elements.JWARD_PT_KERV, "Properties", TYPE_GAS)
  486. elements.property(elements.JWARD_PT_KERV, "State", ST_GAS)
  487. elements.property(elements.JWARD_PT_KERV, "Temperature", 403.15)
  488. elements.property(elements.JWARD_PT_KERV, "HeatConduct", 195)
  489. elements.property(elements.JWARD_PT_KERV, "LowTemperature", 393.15)
  490. elements.property(elements.JWARD_PT_KERV, "LowTemperatureTransition", elements.JWARD_PT_KERO)
  491.  
  492. --jetfuel
  493. local JETFUEL = elements.allocate("JWARD", "JETB")
  494. elements.element(elements.JWARD_PT_JETB, elements.element(elements.DEFAULT_PT_GEL))
  495. elements.property(elements.JWARD_PT_JETB, "Name", "JETB")
  496. elements.property(elements.JWARD_PT_JETB, "Description", "Jet b type fuel-blend of Kero and Ptrl for jet engines")
  497. elements.property(elements.JWARD_PT_JETB, "Colour", 0x676601)
  498. elements.property(elements.JWARD_PT_JETB, "MenuSection", 5)
  499. elements.property(elements.JWARD_PT_JETB, "Gravity", .04)
  500. elements.property(elements.JWARD_PT_JETB, "Flammable", 5000)
  501. elements.property(elements.JWARD_PT_JETB, "Explosive", 1)
  502. elements.property(elements.JWARD_PT_JETB, "Loss", 0.8)
  503. elements.property(elements.JWARD_PT_JETB, "AirLoss", 0.94)
  504. elements.property(elements.JWARD_PT_JETB, "AirDrag", 0.02)
  505. elements.property(elements.JWARD_PT_JETB, "Advection", 0.8)
  506. elements.property(elements.JWARD_PT_JETB, "HighTemperature", 353.15)
  507. elements.property(elements.JWARD_PT_JETB, "Weight", 13)
  508. elements.property(elements.JWARD_PT_JETB, "State", ST_liquid)
  509. elements.property(elements.JWARD_PT_JETB, "Properties", elem.TYPE_LIQUID+elem.PROP_DEADLY)
  510. elements.property(elements.JWARD_PT_JETB, "LowTemperature", 225.15)
  511. elements.property(elements.JWARD_PT_JETB, "LowTemperatureTransition", elements.DEFAULT_PT_ICE)
  512.  
  513. --tar
  514. local TARGAS = elements.allocate("JWARD", "TARV")
  515. local TAR = elements.allocate("JWARD", "TAR")
  516. elements.element(elements.JWARD_PT_TAR, elements.element(elements.DEFAULT_PT_SOAP))
  517. elements.property(elements.JWARD_PT_TAR, "Name", "TAR")
  518. elements.property(elements.JWARD_PT_TAR, "Description", "tar hard to burn")
  519. elements.property(elements.JWARD_PT_TAR, "Colour", 0x0D0D03)
  520. elements.property(elements.JWARD_PT_TAR, "MenuSection", 5)
  521. elements.property(elements.JWARD_PT_TAR, "Gravity", .1)
  522. elements.property(elements.JWARD_PT_TAR, "Flammable", 2)
  523. elements.property(elements.JWARD_PT_TAR, "Explosive", 0)
  524. elements.property(elements.JWARD_PT_TAR, "Loss", 1)
  525. elements.property(elements.JWARD_PT_TAR, "AirLoss", .5)
  526. elements.property(elements.JWARD_PT_TAR, "AirDrag", .01)
  527. elements.property(elements.JWARD_PT_TAR, "Advection", .01)
  528. elements.property(elements.JWARD_PT_TAR, "Diffusion", 0.01)
  529. elements.property(elements.JWARD_PT_TAR, "State", ST_liquid)
  530. elements.property(elements.JWARD_PT_TAR, "Weight", 50)
  531. elements.property(elements.JWARD_PT_TAR, "Properties", elem.TYPE_LIQUID+elem.PROP_DEADLY)
  532. elements.property(elements.JWARD_PT_TAR, "HighTemperature", 873.15)
  533. elements.property(elements.JWARD_PT_TAR, "HighTemperatureTransition", elements.JWARD_PT_TARV)
  534.  
  535. elements.element(elements.JWARD_PT_TARV, elements.element(elements.DEFAULT_PT_HYGN))
  536. elements.property(elements.JWARD_PT_TARV, "Name", "TARV")
  537. elements.property(elements.JWARD_PT_TARV, "Description", "tar gas")
  538. elements.property(elements.JWARD_PT_TARV, "Colour", 0x4C2D20)
  539. elements.property(elements.JWARD_PT_TARV, "MenuVisible", 0)
  540. elements.property(elements.JWARD_PT_TARV, "Gravity", -0.02)
  541. elements.property(elements.JWARD_PT_TARV, "Flammable", 10)
  542. elements.property(elements.JWARD_PT_TARV, "Explosive", 0)
  543. elements.property(elements.JWARD_PT_TARV, "Loss", 0.75)
  544. elements.property(elements.JWARD_PT_TARV, "AirLoss", 0.97)
  545. elements.property(elements.JWARD_PT_TARV, "AirDrag", 0.01)
  546. elements.property(elements.JWARD_PT_TARV, "Advection", 1)
  547. elements.property(elements.JWARD_PT_TARV, "Weight", 0)
  548. elements.property(elements.JWARD_PT_TARV, "Diffusion", 0.7)
  549. elements.property(elements.JWARD_PT_TARV, "Meltable", 0)
  550. elements.property(elements.JWARD_PT_TARV, "Hardness", 0)
  551. elements.property(elements.JWARD_PT_TARV, "Falldown", 0)
  552. elements.property(elements.JWARD_PT_TARV, "Properties", TYPE_GAS)
  553. elements.property(elements.JWARD_PT_TARV, "State", ST_GAS)
  554. elements.property(elements.JWARD_PT_TARV, "Temperature", 403.15)
  555. elements.property(elements.JWARD_PT_TARV, "HeatConduct", 195)
  556. elements.property(elements.JWARD_PT_TARV, "LowTemperature", 873.15)
  557. elements.property(elements.JWARD_PT_TARV, "LowTemperatureTransition", elements.JWARD_PT_TAR)
  558.  
  559. --wax
  560. local WAXGAS = elements.allocate("JWARD", "WAXV")
  561. elements.element(elements.JWARD_PT_WAXV, elements.element(elements.DEFAULT_PT_HYGN))
  562. elements.property(elements.JWARD_PT_WAXV, "Name", "WAXV")
  563. elements.property(elements.JWARD_PT_WAXV, "Description", "wax gas")
  564. elements.property(elements.JWARD_PT_WAXV, "Colour", 0xF0F0BB)
  565. elements.property(elements.JWARD_PT_WAXV, "MenuSection", SC_GAS)
  566. elements.property(elements.JWARD_PT_WAXV, "Gravity", -0.02)
  567. elements.property(elements.JWARD_PT_WAXV, "Flammable", 500)
  568. elements.property(elements.JWARD_PT_WAXV, "Explosive", 0)
  569. elements.property(elements.JWARD_PT_WAXV, "Loss", 0.75)
  570. elements.property(elements.JWARD_PT_WAXV, "AirLoss", 0.97)
  571. elements.property(elements.JWARD_PT_WAXV, "AirDrag", 0.01)
  572. elements.property(elements.JWARD_PT_WAXV, "Advection", 1)
  573. elements.property(elements.JWARD_PT_WAXV, "Weight", 0)
  574. elements.property(elements.JWARD_PT_WAXV, "Diffusion", 0.7)
  575. elements.property(elements.JWARD_PT_WAXV, "Meltable", 0)
  576. elements.property(elements.JWARD_PT_WAXV, "Hardness", 0)
  577. elements.property(elements.JWARD_PT_WAXV, "Falldown", 0)
  578. elements.property(elements.JWARD_PT_WAXV, "Properties", TYPE_GAS)
  579. elements.property(elements.JWARD_PT_WAXV, "State", ST_GAS)
  580. elements.property(elements.JWARD_PT_WAXV, "Temperature", 833.15)
  581. elements.property(elements.JWARD_PT_WAXV, "HeatConduct", 195)
  582. elements.property(elements.JWARD_PT_WAXV, "LowTemperature", 823.15)
  583. elements.property(elements.JWARD_PT_WAXV, "LowTemperatureTransition", elements.DEFAULT_PT_WAX)
  584.  
  585. --coke
  586. local CoalCoke = elements.allocate("JWARD", "COKE")
  587. elements.element(elements.JWARD_PT_COKE, elements.element(elements.DEFAULT_PT_BCOL))
  588. elements.property(elements.JWARD_PT_COKE, "Name", "COKE")
  589. elements.property(elements.JWARD_PT_COKE, "Description", "COAL COKE. Burns for a long time and hot.")
  590. elements.property(elements.JWARD_PT_COKE, "Colour", 0xAAAAAA)
  591. elements.property(elements.JWARD_PT_COKE, "MenuSection", 5)
  592. elements.property(elements.JWARD_PT_COKE, "Gravity", .35)
  593. elements.property(elements.JWARD_PT_COKE, "Flammable", 0)
  594. elements.property(elements.JWARD_PT_COKE, "Explosive", 0)
  595. elements.property(elements.JWARD_PT_COKE, "Loss", 0.15)
  596. elements.property(elements.JWARD_PT_COKE, "AirLoss", 0.96)
  597. elements.property(elements.JWARD_PT_COKE, "AirDrag", 0.03)
  598. elements.property(elements.JWARD_PT_COKE, "Advection", 0.4)
  599. elements.property(elements.JWARD_PT_COKE, "Weight", 78)
  600. elements.property(elements.JWARD_PT_COKE, "Diffusion", 0)
  601. elements.property(elements.JWARD_PT_COKE, "Falldown", 1)
  602. COKEUpdate = function(i, x, y, s, n)
  603.  local clife = tpt.get_property('life', x, y)
  604.  if clife > 1 then
  605.  for cx = -1, 1, 2 do
  606.  for cy = -1, 1, 2 do
  607.  tpt.create(x + cx, y + cy, 'fire')
  608.  tpt.set_property('temp', 1700, x, y)
  609.  end
  610.  end
  611.  tpt.set_property('life', clife - 1, x, y)
  612.  elseif clife == 1 then
  613.  tpt.set_property('type', 0, x, y)
  614.  elseif s > 0 then
  615.  for cx = -1, 1, 2 do
  616.  for cy = -1, 1, 2 do
  617.  if tpt.get_property('type', x + cx, y + cy) == 4 or tpt.get_property('type', x + cx, y + cy) == 49 then
  618.  tpt.set_property('life', 500, x, y)
  619.  return true
  620.  end
  621.  end
  622.  end
  623.  end
  624. end
  625. tpt.element_func(COKEUpdate, tpt.element('coke'))
  626.  
  627. local CreosoteGas = elements.allocate("JWARD", "CRTV")
  628. elements.element(elements.JWARD_PT_CRTV, elements.element(elements.DEFAULT_PT_BOYL))
  629. elements.property(elements.JWARD_PT_CRTV, "Name", "CRTV")
  630. elements.property(elements.JWARD_PT_CRTV, "Description", "creosote gas")
  631. elements.property(elements.JWARD_PT_CRTV, "Colour", 0x585117)
  632. elements.property(elements.JWARD_PT_CRTV, "MenuVisible", 0)
  633. elements.property(elements.JWARD_PT_CRTV, "Gravity", -0.02)
  634. elements.property(elements.JWARD_PT_CRTV, "Explosive", 0)
  635. elements.property(elements.JWARD_PT_CRTV, "Loss", 0.75)
  636. elements.property(elements.JWARD_PT_CRTV, "AirDrag", 0.01)
  637. elements.property(elements.JWARD_PT_CRTV, "Advection", 1)
  638. elements.property(elements.JWARD_PT_CRTV, "Weight", 0)
  639. elements.property(elements.JWARD_PT_CRTV, "Diffusion", 0.7)
  640. elements.property(elements.JWARD_PT_CRTV, "Hardness", 0)
  641. elements.property(elements.JWARD_PT_CRTV, "Falldown", 0)
  642. elements.property(elements.JWARD_PT_CRTV, "Properties", elem.TYPE_GAS)
  643. elements.property(elements.JWARD_PT_CRTV, "State", ST_GAS)
  644. elements.property(elements.JWARD_PT_CRTV, "Temperature", 883.15)
  645. elements.property(elements.JWARD_PT_CRTV, "HeatConduct", 81)
  646. elements.property(elements.JWARD_PT_CRTV, "LowTemperature", 873)
  647. elements.property(elements.JWARD_PT_CRTV, "LowTemperatureTransition", elements.JWARD_PT_CRST)
  648.  
  649. local Creosote = elements.allocate("JWARD", "CRST")
  650. elements.element(elements.JWARD_PT_CRST, elements.element(elements.DEFAULT_PT_GEL))
  651. elements.property(elements.JWARD_PT_CRST, "Name", "CRST")
  652. elements.property(elements.JWARD_PT_CRST, "Description", "creosote ")
  653. elements.property(elements.JWARD_PT_CRST, "Colour", 0x0F0E04)
  654. elements.property(elements.JWARD_PT_CRST, "MenuSection", SC_LIQUID)
  655. elements.property(elements.JWARD_PT_CRST, "Gravity", .04)
  656. elements.property(elements.JWARD_PT_CRST, "Flammable", 10)
  657. elements.property(elements.JWARD_PT_CRST, "Explosive", 0)
  658. elements.property(elements.JWARD_PT_CRST, "Loss", 1)
  659. elements.property(elements.JWARD_PT_CRST, "AirLoss", .5)
  660. elements.property(elements.JWARD_PT_CRST, "AirDrag", .01)
  661. elements.property(elements.JWARD_PT_CRST, "Advection", .01)
  662. elements.property(elements.JWARD_PT_CRST, "Weight", 5)
  663. elements.property(elements.JWARD_PT_CRST, "State", ST_liquid)
  664. elements.property(elements.JWARD_PT_CRST, "Properties", elem.TYPE_LIQUID)
  665. elements.property(elements.JWARD_PT_CRST, "HighTemperature", 872)
  666. elements.property(elements.JWARD_PT_CRST, "HighTemperatureTransition", elements.JWARD_PT_CRTV)
  667. --crude oil
  668. local OILCRUDE = elements.allocate("JWARD", "OILC")
  669. elements.element(elements.JWARD_PT_OILC, elements.element(elements.DEFAULT_PT_GEL))
  670. elements.property(elements.JWARD_PT_OILC, "Name", "OILC")
  671. elements.property(elements.JWARD_PT_OILC, "Description", "Crude oil can be distilled, didn't name it coil for a reason")
  672. elements.property(elements.JWARD_PT_OILC, "Colour", 0x35350D)
  673. elements.property(elements.JWARD_PT_OILC, "MenuSection", 7)
  674. elements.property(elements.JWARD_PT_OILC, "Gravity", .04)
  675. elements.property(elements.JWARD_PT_OILC, "Flammable", 50)
  676. elements.property(elements.JWARD_PT_OILC, "Explosive", 0)
  677. elements.property(elements.JWARD_PT_OILC, "Loss", 1)
  678. elements.property(elements.JWARD_PT_OILC, "AirLoss", .5)
  679. elements.property(elements.JWARD_PT_OILC, "AirDrag", .01)
  680. elements.property(elements.JWARD_PT_OILC, "Advection", .01)
  681. elements.property(elements.JWARD_PT_OILC, "Weight", 5)
  682. elements.property(elements.JWARD_PT_OILC, "State", ST_liquid)
  683. elements.property(elements.JWARD_PT_OILC, "Properties", elem.TYPE_LIQUID+elem.PROP_DEADLY)
  684. function OILC(i,x,y,s,n)
  685.  dis = tpt.get_property('temp', x, y)
  686.  if dis > 973.15 then
  687.  tpt.set_property('tmp', math.random(2,9), x, y)
  688. end
  689. oillife = tpt.get_property('tmp', x, y)
  690.   if oillife == 9 then
  691.   tpt.parts[i].type = tpt.element('crtv')
  692.   oillife = nil
  693.   end
  694.   if oillife == 8 then
  695.   tpt.parts[i].type = tpt.element('gas')
  696.   oillife = nil
  697.   end
  698.   if oillife == 7 then
  699.   tpt.parts[i].type = tpt.element('kerv')
  700.   oillife = nil
  701.   end
  702.   if oillife == 6 then
  703.   tpt.parts[i].type = tpt.element('ptlv')
  704.   oillife = nil
  705.   end
  706.   if oillife == 5 then
  707.   tpt.parts[i].type = tpt.element('dslv')
  708.   oillife = nil
  709.   end
  710.   if oillife == 4 then
  711.   tpt.parts[i].type = tpt.element('waxv')
  712.   oillife = nil
  713.   end
  714.   if oillife == 3 then
  715.   tpt.parts[i].type = tpt.element('coke')
  716.   oillife = nil
  717.   end
  718.   if oillife == 2 then
  719.   tpt.parts[i].type = tpt.element('tarv')
  720.   oillife = nil
  721.   end
  722. end
  723. tpt.element_func(OILC,OILCRUDE)
  724.  
  725. --more default
  726. elements.property(elements.DEFAULT_PT_GAS, "HighPressureTransition", 256)
  727. elements.property(elements.DEFAULT_PT_GAS, "LowTemperature", 573.15)
  728. elements.property(elements.DEFAULT_PT_GAS, "HotAir", 0)
  729. elements.property(elements.DEFAULT_PT_GAS, "LowTemperatureTransition", elements.DEFAULT_PT_OIL)
  730. elements.property(elements.DEFAULT_PT_GAS, "Temperature", 583.15)
  731. elements.property(elements.DEFAULT_PT_GAS, "HighTemperature", 10000)
  732. elements.property(elements.DEFAULT_PT_BCOL, "HighTemperatureTransition", elements.JWARD_PT_COKE)
  733. elements.property(elements.DEFAULT_PT_BCOL, "HighTemperature", 773.15)
  734. elements.property(elements.DEFAULT_PT_COAL, "HighTemperatureTransition", elements.JWARD_PT_COKE)
  735. elements.property(elements.DEFAULT_PT_COAL, "HighTemperature", 773.15)
  736. elements.property(elements.DEFAULT_PT_LN2, "HighTemperatureTransition", elements.JWARD_PT_N2)
  737. elements.property(elements.DEFAULT_PT_OIL, "HighTemperature", 573.15)
  738. elements.property(elements.DEFAULT_PT_OIL, "HighTemperatureTransition", elements.DEFAULT_PT_GAS)
  739. elements.property(elements.DEFAULT_PT_DESL, "HighTemperatureTransition", elements.JWARD_PT_DSLV)
  740. elements.property(elements.DEFAULT_PT_DESL, "HighTemperature", 473.15)
  741. elements.property(elements.DEFAULT_PT_DESL, "LowTemperature", 255.15)
  742. elements.property(elements.DEFAULT_PT_DESL, "LowTemperatureTransition", elements.DEFAULT_PT_ICE)
  743. elements.property(elements.DEFAULT_PT_DESL, "Weight", 12)
  744. elements.property(elements.DEFAULT_PT_MWAX, "HighTemperatureTransition", elements.JWARD_PT_WAXV)
  745. elements.property(elements.DEFAULT_PT_MWAX, "HighTemperature", 823.15)
  746. elements.property(elements.DEFAULT_PT_WAX, "HeatConduct", 25)
  747. --button
  748. --http://powdertoy.co.uk/Wiki/W/Lua.html
  749. topress = 0
  750. thx = 0
  751.  
  752.  
  753. function tick()
  754.  if thx == 1 then
  755.  tpt.message_box("thanks "..tpt.get_name().." for your purchase,","construction or theft of jward's fuel mod")
  756.  thx = 0
  757.  end
  758.  if tpt.version.jacob1s_mod then
  759.  tpt.drawrect(597, 1, 14, 14, 255, 255, 255)
  760.  tpt.fillrect(597, 1, 14, 14, 0, 0, 0, 255)
  761.  tpt.drawtext(598, 5, "JW", 255, 255, 255, 255)
  762.  topress = 1
  763. end
  764. if toopress == 1 then
  765.  tpt.fillrect(597, 1, 14, 14, 255, 255, 255, 255)
  766.  tpt.drawtext(598, 5, "JW", 0, 0, 0, 255)
  767.  tpt.drawrect(0, 0, 200, 200, 255, 255, 255)
  768.  tpt.fillrect(0, 0, 200, 200, 0, 0, 0, 255)
  769.  tpt.drawtext(10, 5, "JWARD's Mod options", 255, 255, 255, 255)
  770.  tpt.drawrect(10, 174, 60, 16, 255, 255, 255)
  771.  tpt.drawtext(25, 178, "close", 255, 255, 255, 255)
  772.  tpt.drawrect(10, 150, 15, 15, 255, 255, 255)
  773.  tpt.drawrect(35, 150, 15, 15, 255, 255, 255)
  774.  tpt.drawtext(13, 154, "on", 255, 255, 255, 255)
  775.  tpt.drawtext(37, 154, "off", 255, 255, 255, 255)
  776.  tpt.drawtext(10, 135, "antisave breaking", 255, 255, 255, 255)
  777.  tpt.drawrect(80, 174, 60, 16, 255, 255, 255)
  778.  tpt.drawtext(88, 178, ">THanKs<", 255, 255, 255, 255)
  779. end
  780. end
  781. function pressthingy()
  782. if topress == 1 then
  783.  if tpt.mousex >= 597 and tpt.mousey >= 1 and tpt.mousex <= 611 and tpt.mousey <= 14 then
  784.  open = 1
  785.  windowclick = 1
  786.  end
  787.  if  tpt.mousex >= 0 and tpt.mousey >= 0 and tpt.mousex <= 200 and tpt.mousey <= 200 and windowclick == 1 then
  788.  open = 1
  789.  end
  790.  if open == 1 then
  791.  if  tpt.mousex >= 10 and tpt.mousey >= 174 and tpt.mousex <= 70 and tpt.mousey <= 190 then
  792.  open = 0
  793.  toopress = 0
  794.  windowclick = 0
  795.  end
  796.  if  tpt.mousex >= 80 and tpt.mousey >= 174 and tpt.mousex <= 150 and tpt.mousey <= 190 then
  797.  thx = 1
  798.  end
  799.  if  tpt.mousex >= 10 and tpt.mousey >= 150 and tpt.mousex <= 25 and tpt.mousey <= 165 then
  800.  elements.property(elements.DEFAULT_PT_ACID, "Diffusion", 0)
  801. elements.property(elements.DEFAULT_PT_ACID, "Gravity", 0.1)
  802. elements.property(elements.DEFAULT_PT_ACID, "Description", "Dissolves almost everything.")
  803. elements.property(elements.DEFAULT_PT_ACID, "Flammable", 40)
  804. elements.property(elements.DEFAULT_PT_INSL, "Hardness", 10)
  805. elements.property(elements.DEFAULT_PT_INSL, "Flammable", 7)
  806. elements.property(elements.DEFAULT_PT_LN2, "HighTemperature", 77)
  807. elements.property(elements.DEFAULT_PT_LN2, "HighTemperatureTransition", elements.DEFAULT_PT_NONE)
  808. elements.property(elements.DEFAULT_PT_WATR, "Hardness", 20)
  809. elements.property(elements.DEFAULT_PT_WATR, "Weight", 30)
  810. elements.property(elements.DEFAULT_PT_DSTW, "Hardness", 20)
  811. elements.property(elements.DEFAULT_PT_DSTW, "Weight", 30)
  812. elements.property(elements.DEFAULT_PT_SLTW, "Hardness", 20)
  813. elements.property(elements.DEFAULT_PT_SLTW, "Weight", 35)
  814. elements.property(elements.DEFAULT_PT_BUBW, "Hardness", 20)
  815. elements.property(elements.DEFAULT_PT_BUBW, "Weight", 30)
  816. elements.property(elements.DEFAULT_PT_GAS, "HighPressureTransition", elements.DEFAULT_PT_OIL)
  817. elements.property(elements.DEFAULT_PT_GAS, "LowTemperature", 0)
  818. elements.property(elements.DEFAULT_PT_GAS, "HotAir", 0.001)
  819. elements.property(elements.DEFAULT_PT_GAS, "LowTemperatureTransition", DEFAULT_PT_GAS)
  820. elements.property(elements.DEFAULT_PT_GAS, "HighTemperatureTransition", elements.DEFAULT_PT_FIRE)
  821. elements.property(elements.DEFAULT_PT_GAS, "Temperature", 273.15)
  822. elements.property(elements.DEFAULT_PT_GAS, "HighTemperature", 573)
  823. elements.property(elements.DEFAULT_PT_GAS, "HighPressure", 6)
  824. elements.property(elements.DEFAULT_PT_BCOL, "HighTemperatureTransition", NT)
  825. elements.property(elements.DEFAULT_PT_BCOL, "HighTemperature", 10000)
  826. elements.property(elements.DEFAULT_PT_COAL, "HighTemperatureTransition", NT)
  827. elements.property(elements.DEFAULT_PT_COAL, "HighTemperature", ITL)
  828. elements.property(elements.DEFAULT_PT_OIL, "HighTemperature", 333)
  829. elements.property(elements.DEFAULT_PT_OIL, "HighTemperatureTransition", elements.DEFAULT_PT_GAS)
  830. elements.property(elements.DEFAULT_PT_DESL, "LowTemperature", NT)
  831. elements.property(elements.DEFAULT_PT_DESL, "LowTemperatureTransition", ITL)
  832. elements.property(elements.DEFAULT_PT_DESL, "Weight", 15)
  833. elements.property(elements.DEFAULT_PT_DESL, "HighPressure", 2)
  834.  end
  835.  if  tpt.mousex >= 35 and tpt.mousey >= 150 and tpt.mousex <= 50 and tpt.mousey <= 165 then
  836.  elements.property(elements.DEFAULT_PT_ACID, "Diffusion", 1.2)
  837. elements.property(elements.DEFAULT_PT_ACID, "Gravity", 0.62)
  838. elements.property(elements.DEFAULT_PT_ACID, "Description", "Bubbling caustic liquid.")
  839. elements.property(elements.DEFAULT_PT_ACID, "Flammable", 0)
  840. elements.property(elements.DEFAULT_PT_INSL, "Hardness", 0)
  841. elements.property(elements.DEFAULT_PT_INSL, "Flammable", 0)
  842. elements.property(elements.DEFAULT_PT_LN2, "HighTemperature", 76)
  843. elements.property(elements.DEFAULT_PT_LN2, "HighTemperatureTransition", elements.JWARD_PT_N2)
  844. elements.property(elements.DEFAULT_PT_WATR, "Hardness", 0.25)
  845. elements.property(elements.DEFAULT_PT_WATR, "Weight", 32)
  846. elements.property(elements.DEFAULT_PT_DSTW, "Hardness", 0)
  847. elements.property(elements.DEFAULT_PT_DSTW, "Weight", 32)
  848. elements.property(elements.DEFAULT_PT_SLTW, "Hardness", 0)
  849. elements.property(elements.DEFAULT_PT_SLTW, "Weight", 32)
  850. elements.property(elements.DEFAULT_PT_BUBW, "Hardness", 0)
  851. elements.property(elements.DEFAULT_PT_BUBW, "Weight", 32)
  852. elements.property(elements.DEFAULT_PT_GAS, "HighPressureTransition", 256)
  853. elements.property(elements.DEFAULT_PT_GAS, "LowTemperature", 573.15)
  854. elements.property(elements.DEFAULT_PT_GAS, "HotAir", 0)
  855. elements.property(elements.DEFAULT_PT_GAS, "LowTemperatureTransition", elements.DEFAULT_PT_OIL)
  856. elements.property(elements.DEFAULT_PT_GAS, "HighTemperatureTransition", NT)
  857. elements.property(elements.DEFAULT_PT_GAS, "Temperature", 583.15)
  858. elements.property(elements.DEFAULT_PT_GAS, "HighTemperature", 10000)
  859. elements.property(elements.DEFAULT_PT_BCOL, "HighTemperatureTransition", elements.JWARD_PT_COKE)
  860. elements.property(elements.DEFAULT_PT_BCOL, "HighTemperature", 773.15)
  861. elements.property(elements.DEFAULT_PT_COAL, "HighTemperatureTransition", elements.JWARD_PT_COKE)
  862. elements.property(elements.DEFAULT_PT_COAL, "HighTemperature", 773.15)
  863. elements.property(elements.DEFAULT_PT_OIL, "HighTemperature", 573.15)
  864. elements.property(elements.DEFAULT_PT_OIL, "HighTemperatureTransition", elements.DEFAULT_PT_GAS)
  865. elements.property(elements.DEFAULT_PT_DESL, "HighTemperatureTransition", elements.JWARD_PT_DSLV)
  866. elements.property(elements.DEFAULT_PT_DESL, "HighTemperature", 473.15)
  867. elements.property(elements.DEFAULT_PT_DESL, "LowTemperature", 255.15)
  868. elements.property(elements.DEFAULT_PT_DESL, "LowTemperatureTransition", elements.DEFAULT_PT_ICE)
  869. elements.property(elements.DEFAULT_PT_DESL, "Weight", 12)
  870. elements.property(elements.DEFAULT_PT_DESL, "HighPressure", 256)
  871.  end
  872.  tpt.hud(0)
  873.  tpt.set_pause(1)
  874.  toopress = 1
  875.  else
  876.  toopress = 0
  877.  tpt.set_pause(0)
  878.  tpt.hud(1)
  879. end
  880. end
  881. end
  882.  
  883.  
  884. tpt.register_mouseclick(pressthingy)
  885. tpt.register_step(tick)
  886. local a = "1"
  887. local b = Window:new(-1,-1,200,200)
  888. local c = Label:new(10,5,140,16, "JWARD's Mod options")
  889. local d = Label:new(10,25,121,16, "")
  890. local e =       Label:new(10,85,170,16,"")
  891. local f =       Label:new(135,5,88,16, "")
  892. local g = Label:new(10,95,180,16, "")
  893. local h = Label:new(10,105,170,16,"")
  894. local i = Label:new(10,125,180,16,"")
  895. local j = Label:new(10,135,170,16,"antisave breaking")
  896.  
  897.  
  898. local Close = Button:new(10, 174, 60, 16, "Close")
  899. local thanks = Button:new(80, 174, 60, 16, ">THanKs<")
  900. local on = Button:new(10, 150, 15, 15, "on")
  901. local off = Button:new(35, 150, 15, 15, "off")
  902.  
  903. Close:action(function() interface.closeWindow(b) end)
  904. b:onTryExit(function() interface.closeWindow(b) end)
  905.  
  906. thanks:action(function()
  907. interface.closeWindow(b)
  908. thx = 1
  909. end)
  910. --on off old save option thingy
  911. on:action(
  912. function()
  913. elements.property(elements.DEFAULT_PT_ACID, "Diffusion", 0)
  914. elements.property(elements.DEFAULT_PT_ACID, "Gravity", 0.1)
  915. elements.property(elements.DEFAULT_PT_ACID, "Description", "Dissolves almost everything.")
  916. elements.property(elements.DEFAULT_PT_ACID, "Flammable", 40)
  917. elements.property(elements.DEFAULT_PT_INSL, "Hardness", 10)
  918. elements.property(elements.DEFAULT_PT_INSL, "Flammable", 7)
  919. elements.property(elements.DEFAULT_PT_LN2, "HighTemperature", 77)
  920. elements.property(elements.DEFAULT_PT_LN2, "HighTemperatureTransition", elements.DEFAULT_PT_NONE)
  921. elements.property(elements.DEFAULT_PT_WATR, "Hardness", 20)
  922. elements.property(elements.DEFAULT_PT_WATR, "Weight", 30)
  923. elements.property(elements.DEFAULT_PT_DSTW, "Hardness", 20)
  924. elements.property(elements.DEFAULT_PT_DSTW, "Weight", 30)
  925. elements.property(elements.DEFAULT_PT_SLTW, "Hardness", 20)
  926. elements.property(elements.DEFAULT_PT_SLTW, "Weight", 35)
  927. elements.property(elements.DEFAULT_PT_BUBW, "Hardness", 20)
  928. elements.property(elements.DEFAULT_PT_BUBW, "Weight", 30)
  929. elements.property(elements.DEFAULT_PT_GAS, "HighPressureTransition", elements.DEFAULT_PT_OIL)
  930. elements.property(elements.DEFAULT_PT_GAS, "LowTemperature", 0)
  931. elements.property(elements.DEFAULT_PT_GAS, "HotAir", 0.001)
  932. elements.property(elements.DEFAULT_PT_GAS, "LowTemperatureTransition", DEFAULT_PT_GAS)
  933. elements.property(elements.DEFAULT_PT_GAS, "HighTemperatureTransition", elements.DEFAULT_PT_FIRE)
  934. elements.property(elements.DEFAULT_PT_GAS, "Temperature", 273.15)
  935. elements.property(elements.DEFAULT_PT_GAS, "HighTemperature", 573)
  936. elements.property(elements.DEFAULT_PT_GAS, "HighPressure", 6)
  937. elements.property(elements.DEFAULT_PT_BCOL, "HighTemperatureTransition", NT)
  938. elements.property(elements.DEFAULT_PT_BCOL, "HighTemperature", 10000)
  939. elements.property(elements.DEFAULT_PT_COAL, "HighTemperatureTransition", NT)
  940. elements.property(elements.DEFAULT_PT_COAL, "HighTemperature", ITL)
  941. elements.property(elements.DEFAULT_PT_OIL, "HighTemperature", 333)
  942. elements.property(elements.DEFAULT_PT_OIL, "HighTemperatureTransition", elements.DEFAULT_PT_GAS)
  943. elements.property(elements.DEFAULT_PT_DESL, "LowTemperature", NT)
  944. elements.property(elements.DEFAULT_PT_DESL, "LowTemperatureTransition", ITL)
  945. elements.property(elements.DEFAULT_PT_DESL, "Weight", 15)
  946. elements.property(elements.DEFAULT_PT_DESL, "HighPressure", 2)
  947. end
  948. )
  949.  
  950. off:action(
  951. function()
  952. elements.property(elements.DEFAULT_PT_ACID, "Diffusion", 1.2)
  953. elements.property(elements.DEFAULT_PT_ACID, "Gravity", 0.62)
  954. elements.property(elements.DEFAULT_PT_ACID, "Description", "Bubbling caustic liquid.")
  955. elements.property(elements.DEFAULT_PT_ACID, "Flammable", 0)
  956. elements.property(elements.DEFAULT_PT_INSL, "Hardness", 0)
  957. elements.property(elements.DEFAULT_PT_INSL, "Flammable", 0)
  958. elements.property(elements.DEFAULT_PT_LN2, "HighTemperature", 76)
  959. elements.property(elements.DEFAULT_PT_LN2, "HighTemperatureTransition", elements.JWARD_PT_N2)
  960. elements.property(elements.DEFAULT_PT_WATR, "Hardness", 0.25)
  961. elements.property(elements.DEFAULT_PT_WATR, "Weight", 32)
  962. elements.property(elements.DEFAULT_PT_DSTW, "Hardness", 0)
  963. elements.property(elements.DEFAULT_PT_DSTW, "Weight", 32)
  964. elements.property(elements.DEFAULT_PT_SLTW, "Hardness", 0)
  965. elements.property(elements.DEFAULT_PT_SLTW, "Weight", 32)
  966. elements.property(elements.DEFAULT_PT_BUBW, "Hardness", 0)
  967. elements.property(elements.DEFAULT_PT_BUBW, "Weight", 32)
  968. elements.property(elements.DEFAULT_PT_GAS, "HighPressureTransition", 256)
  969. elements.property(elements.DEFAULT_PT_GAS, "LowTemperature", 573.15)
  970. elements.property(elements.DEFAULT_PT_GAS, "HotAir", 0)
  971. elements.property(elements.DEFAULT_PT_GAS, "LowTemperatureTransition", elements.DEFAULT_PT_OIL)
  972. elements.property(elements.DEFAULT_PT_GAS, "HighTemperatureTransition", NT)
  973. elements.property(elements.DEFAULT_PT_GAS, "Temperature", 583.15)
  974. elements.property(elements.DEFAULT_PT_GAS, "HighTemperature", 10000)
  975. elements.property(elements.DEFAULT_PT_BCOL, "HighTemperatureTransition", elements.JWARD_PT_COKE)
  976. elements.property(elements.DEFAULT_PT_BCOL, "HighTemperature", 773.15)
  977. elements.property(elements.DEFAULT_PT_COAL, "HighTemperatureTransition", elements.JWARD_PT_COKE)
  978. elements.property(elements.DEFAULT_PT_COAL, "HighTemperature", 773.15)
  979. elements.property(elements.DEFAULT_PT_OIL, "HighTemperature", 573.15)
  980. elements.property(elements.DEFAULT_PT_OIL, "HighTemperatureTransition", elements.DEFAULT_PT_GAS)
  981. elements.property(elements.DEFAULT_PT_DESL, "HighTemperatureTransition", elements.JWARD_PT_DSLV)
  982. elements.property(elements.DEFAULT_PT_DESL, "HighTemperature", 473.15)
  983. elements.property(elements.DEFAULT_PT_DESL, "LowTemperature", 255.15)
  984. elements.property(elements.DEFAULT_PT_DESL, "LowTemperatureTransition", elements.DEFAULT_PT_ICE)
  985. elements.property(elements.DEFAULT_PT_DESL, "Weight", 12)
  986. elements.property(elements.DEFAULT_PT_DESL, "HighPressure", 256)
  987. end
  988. )
  989.  
  990. b:addComponent(Close);
  991. b:addComponent(on);
  992. b:addComponent(off);
  993. b:addComponent(thanks);
  994.  
  995. local Button1 = Button:new(613, 113, 15, 15, "JW", "Options for jward's mods")
  996.  
  997. Button1:action(function() interface.showWindow(b) end)
  998.  
  999. bb = Label:new(10,45,138,16, "")
  1000. cc = Label:new(10,55,60,16, "")
  1001. dd = Label:new(10,65,57,16, "")
  1002.  
  1003. b:addComponent(bb)
  1004. b:addComponent(dd)
  1005. b:addComponent(cc)
  1006. b:addComponent(c)
  1007. b:addComponent(d)
  1008. b:addComponent(e)
  1009. b:addComponent(f)
  1010. b:addComponent(g)
  1011. b:addComponent(h)
  1012. b:addComponent(i)
  1013. b:addComponent(j)
  1014.  
  1015. interface.addComponent(Button1)
  1016.  
  1017. local a1 = "2"
  1018. local b1 = Window:new(-1,-1,200,200)
  1019. local c1 = Label:new(10,5,80,16, "SECRET MODE")
  1020. local d1 = Label:new(10,15,121,16, "Created By RadioActiveLua")
  1021. local f1 =      Label:new(135,5,88,16, ("RAM V."..a))
  1022.  
  1023. local Close1 = Button:new(10, 174, 60, 16, "Close")
  1024.  
  1025. local Start1 = Button:new(10, 194, 60, 16, "Enter")
  1026.  
  1027. Close1:action(function() interface.closeWindow(b1) end)
  1028. b1:onTryExit(function() interface.closeWindow(b1) end)
  1029.  
  1030. b1:addComponent(Close1);
RAW Paste Data