Advertisement
Guest User

Untitled

a guest
May 5th, 2015
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.22 KB | None | 0 0
  1. So, in Scripts, after all SVO stuff I have:
  2.  
  3. 1.
  4. Script name: osvjezibox
  5. Registered Event Handlers: svo done with prompt
  6. Code:
  7. function osvjezibox()
  8. targetBox()
  9. allyBox()
  10. udBox()
  11. end
  12.  
  13. 2.
  14. Script name: Boxes
  15.  
  16. Code:
  17. function targetBox()
  18. WindowWidth = 10;
  19. WindowHeight = 0;
  20. WindowWidth, WindowHeight = getMainWindowSize();
  21.  
  22. createMiniConsole("tars",WindowWidth-1000,0,200,200)
  23. clearWindow("tars")
  24. setBackgroundColor("tars",50,0,0,255)
  25. setMiniConsoleFontSize("tars", 8)
  26. setWindowWrap("tars", 40)
  27. setTextFormat("tars",255,255,0,0,0,0,0,0,0)
  28. moveWindow("tars",WindowWidth-150-20,350)
  29. resizeWindow("tars",150,150)
  30. handleWindowResizeEvent()
  31. if t1 then
  32. cecho("tars","\nt1: " ..t1.."\n")
  33. end
  34. if t2 then
  35. cecho("tars","t2: " ..t2.."\n")
  36. end
  37. if t3 then
  38. cecho("tars","t3: " ..t3.."\n")
  39. end
  40. if t4 then
  41. cecho("tars","t4: " ..t4.."\n")
  42. end
  43. if t5 then
  44. cecho("tars","t5: " ..t5.."\n")
  45. end
  46. if t6 then
  47. cecho("tars","t6: " ..t6.."\n")
  48. end
  49. if t7 then
  50. cecho("tars","t7: " ..t7.."\n")
  51. end
  52. if t8 then
  53. cecho("tars","t8: " ..t8.."\n")
  54. end
  55. if tud then
  56. cecho("tars","tud: " ..tud.."\n")
  57. end
  58. if fbacked then
  59. cecho("tars","Feedback at: "..fbacked.."\n")
  60. end
  61. if arcen then
  62. cecho("tars","Arcane energy: "..arcen.."\n")
  63. end
  64. end
  65.  
  66. showWindow("tars")
  67.  
  68. function udBox()
  69. WindowWidth = 10;
  70. WindowHeight = 0;
  71. WindowWidth, WindowHeight = getMainWindowSize();
  72.  
  73. createMiniConsole("udos",WindowWidth-1000,0,200,200)
  74. clearWindow("udos")
  75. setBackgroundColor("udos",50,0,0,255)
  76. setMiniConsoleFontSize("udos", 8)
  77. setWindowWrap("udos", 40)
  78. setTextFormat("udos",255,255,0,0,0,0,0,0,0)
  79. moveWindow("udos",WindowWidth-150-20,135)
  80. resizeWindow("udos",150,210)
  81. handleWindowResizeEvent()
  82. if stanjedn then
  83. cecho("udos","\nrleg: " ..stanjedn.."\n")
  84. end
  85. if stanjeln then
  86. cecho("udos","lleg: " ..stanjeln.."\n")
  87. end
  88. if stanjedr then
  89. cecho("udos","rarm: " ..stanjedr.."\n")
  90. end
  91. if stanjelr then
  92. cecho("udos","larm: " ..stanjelr.."\n")
  93. end
  94. if stanjetr then
  95. cecho("udos","torso: " ..stanjetr.."\n")
  96. end
  97. if stanjegl then
  98. cecho("udos","head: " ..stanjegl.."\n")
  99. end
  100. if vichashea then
  101. if vichashea == 0 then
  102. cecho("udos","<red>hearing: "..vichashea.."\n")
  103. else
  104. cecho("udos","<green>hearing: "..vichashea.."\n")
  105. end
  106. end
  107. if vichassen then
  108. if vichassen == 0 then
  109. cecho("udos","<red>sensitivity: "..vichassen.."\n")
  110. elseif vichassen == 1 then
  111. cecho("udos","<green>sensitivity: "..vichassen.."\n")
  112. else
  113. cecho("udos","<orange>sensitivity: "..vichassen.."\n")
  114. end
  115. end
  116. if vichasclu then
  117. if vichasclu == 0 then
  118. cecho("udos","<red>clumsiness: "..vichasclu.."\n")
  119. elseif vichasclu == 1 then
  120. cecho("udos","<green>clumsiness: "..vichasclu.."\n")
  121. else
  122. cecho("udos","<orange>clumsiness: "..vichasclu.."\n")
  123. end
  124. end
  125. if vichasdiz then
  126. if vichasdiz == 0 then
  127. cecho("udos","<red>dizziness: "..vichasdiz.."\n")
  128. elseif vichasdiz == 1 then
  129. cecho("udos","<green>dizziness: "..vichasdiz.."\n")
  130. else
  131. cecho("udos","<orange>dizziness: "..vichasdiz.."\n")
  132. end
  133. end
  134. if vichashle then
  135. if vichashle == 0 then
  136. cecho("udos","<red>healthleech: "..vichashle.."\n")
  137. elseif vichashle == 1 then
  138. cecho("udos","<green>healthleech: "..vichashle.."\n")
  139. else
  140. cecho("udos","<orange>healthleech: "..vichashle.."\n")
  141. end
  142. end
  143. if vichasepi then
  144. if vichasepi == 0 then
  145. cecho("udos","<red>epilepsy: "..vichasepi.."\n")
  146. elseif vichasepi == 1 then
  147. cecho("udos","<green>epilepsy: "..vichasepi.."\n")
  148. else
  149. cecho("udos","<orange>epilepsy: "..vichasepi.."\n")
  150. end
  151. end
  152. if vichasast then
  153. if vichasast == 0 then
  154. cecho("udos","<red>asthma: "..vichasast.."\n")
  155. elseif vichasast == 1 then
  156. cecho("udos","<green>asthma: "..vichasast.."\n")
  157. else
  158. cecho("udos","<orange>asthma: "..vichasast.."\n")
  159. end
  160. end
  161. if vichaswea then
  162. if vichaswea == 0 then
  163. cecho("udos","<red>weariness: "..vichaswea.."\n")
  164. elseif vichaswea == 1 then
  165. cecho("udos","<green>weariness: "..vichaswea.."\n")
  166. else
  167. cecho("udos","<orange>weariness: "..vichaswea.."\n")
  168. end
  169. end
  170. if vichasimp then
  171. if vichasimp == 0 then
  172. cecho("udos","<red>impatience: "..vichasimp.."\n")
  173. elseif vichasimp == 1 then
  174. cecho("udos","<green>impatience: "..vichasimp.."\n")
  175. else
  176. cecho("udos","<orange>impatience: "..vichasimp.."\n")
  177. end
  178. end
  179. if vichaspar then
  180. if vichaspar == 0 then
  181. cecho("udos","<red>paralysis: "..vichaspar.."\n")
  182. elseif vichaspar == 1 then
  183. cecho("udos","<green>paralysis: "..vichaspar.."\n")
  184. else
  185. cecho("udos","<orange>paralysis: "..vichaspar.."\n")
  186. end
  187. end
  188. end
  189.  
  190. showWindow("udos")
  191.  
  192.  
  193. function allyBox()
  194. WindowWidth = 10;
  195. WindowHeight = 0;
  196. WindowWidth, WindowHeight = getMainWindowSize();
  197.  
  198. createMiniConsole("alls",WindowWidth-1000,0,200,200)
  199. clearWindow("alls")
  200. setBackgroundColor("alls",50,0,0,255)
  201. setMiniConsoleFontSize("alls", 8)
  202. setWindowWrap("alls", 40)
  203. setTextFormat("alls",255,255,0,0,0,0,0,0,0)
  204. moveWindow("alls",WindowWidth-150-20,10)
  205. resizeWindow("alls",150,120)
  206. handleWindowResizeEvent()
  207. if a1 then
  208. if refl1 == 1 then
  209. cecho("alls","<green>a1 " .. a1.."\n")
  210. else
  211. cecho("alls","<red>a1: " ..a1.."\n")
  212. end
  213. end
  214. if a2 then
  215. if refl2 == 1 then
  216. cecho("alls","<green>a2 " .. a2.."\n")
  217. else
  218. cecho("alls","<red>a2: " ..a2.."\n")
  219. end
  220. end
  221. if a3 then
  222. if refl3 == 1 then
  223. cecho("alls","<green>a3 " .. a3.."\n")
  224. else
  225. cecho("alls","<red>a3: " ..a3.."\n")
  226. end
  227. end
  228. if a4 then
  229. if refl4 == 1 then
  230. cecho("alls","<green>a4 " .. a4.."\n")
  231. else
  232. cecho("alls","<red>a4: " ..a4.."\n")
  233. end
  234. end
  235. if a5 then
  236. if refl5 == 1 then
  237. cecho("alls","<green>a5 " .. a5.."\n")
  238. else
  239. cecho("alls","<red>a5: " ..a5.."\n")
  240. end
  241. end
  242. if a6 then
  243. if refl6 == 1 then
  244. cecho("alls","<green>a6 " .. a6.."\n")
  245. else
  246. cecho("alls","<red>a6: " ..a6.."\n")
  247. end
  248. end
  249. if a7 then
  250. if refl7 == 1 then
  251. cecho("alls","<green>a7 " .. a7.."\n")
  252. else
  253. cecho("alls","<red>a7: " ..a7.."\n")
  254. end
  255. end
  256. if a8 then
  257. if refl8 == 1 then
  258. cecho("alls","<green>a8 " .. a8.."\n")
  259. else
  260. cecho("alls","<red>a8: " ..a8.."\n")
  261. end
  262. end
  263. if ref0 == 1 then
  264. cecho("alls","<green>marv\n")
  265. else
  266. cecho("alls","<red>marv\n")
  267. end
  268. end
  269. showWindow("alls")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement