Boeing747-8

Untitled

Jul 13th, 2017
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 39.13 KB | None | 0 0
  1. --By Fuzzyfirsdog 7/6/17
  2.  
  3.  
  4.  
  5. serialization = function(x)
  6. if type(x) == "table" then
  7. local t = x
  8. local str = ""
  9. for index,value in next,t do
  10. local prefix,tbOption = (type(value)=="string" and "_@" or type(value)=="boolean" and "_!" or type(value)=="number" and "_#" or type(value)=="table" and "_%" or ""),(type(value)~="table" and tostring(value) or "+&"..serialization(value):gsub(";","?").."&-")
  11. str = str .. ':' .. tostring(index) .. prefix .. tbOption .. ";"
  12. end
  13. return str
  14. elseif type(x) == "string" then
  15. local s = x
  16. local list = {}
  17. for str in s:gmatch("(.-);") do
  18. local varName,valueType,value = str:match(':(.-)_(%p)(.+)')
  19. if varName~=nil then
  20. varName = tonumber(varName) or varName
  21. if valueType == "@" then
  22. list[varName] = tostring(value)
  23. elseif valueType == "!" then
  24. list[varName] = value=="true"
  25. elseif valueType == "#" then
  26. list[varName] = tonumber(value)
  27. elseif valueType == "%" then
  28. list[varName] = serialization(value:gsub("+&",""):gsub("&-",""):gsub("%?",";"))
  29. end
  30. end
  31. end
  32. return list
  33. end
  34. end
  35.  
  36. countdown = 15
  37.  
  38. tfm.exec.setRoomMaxPlayers(7)
  39.  
  40. tfm.exec.disableAutoShaman(true)
  41.  
  42. data={}
  43. r2={}
  44. mice={}
  45. canRank={}
  46.  
  47. function r2:rank(name)
  48. scores = {}
  49. rank = true
  50. txt1=""
  51. txt2=""
  52. table.foreach(data, function(k, v) table.insert(scores,{name=k,score=v.score}) end)
  53. table.sort(scores, function(a, b) return a.score>b.score end)
  54. table.foreachi(scores, function(k, v) if k <= 10 then txt1 = ""..txt1.."<font color='#724C31'><br><V>"..k..") "..v.name..""
  55. txt2 = ""..txt2.."<font color='#724C31'><br><V>"..v.score.."" end end)
  56.  
  57. end
  58.  
  59. function openRank(n)
  60. rank = false
  61. canRank[n]=true
  62.  
  63. ui.addTextArea(-4, "<b><font size='9'><p align='center'><font face='Comic Sans MS'>"..txt1, nil, 675, 28, 85, 256, 0x91c444, 0x000000, 0.1, true)
  64. ui.addTextArea(-6, "<b><font size='9'><p align='center'><font face='Comic Sans MS'>"..txt2, nil, 769, 28, 26, 257, 0x91c444, 0x000000, 0.1, true)
  65. end
  66.  
  67. function closeRank(n)
  68. for areas, k in pairs({"-1","-2","-3","-4","-5","-6","-7","-8"}) do
  69. ui.removeTextArea(k, n)
  70. end
  71. rank = false
  72. canRank[n]=false
  73. end
  74. function eventLoop(g,l)
  75. rank = false
  76. canRank[n]=true
  77. ui.addTextArea(-4, "<p align='center'><font size='11'><b><J>Room Leaderboard<br>"..txt1.."", n, 91, 61, 100, 283, 0x073247, 0x073247, 0.6, true)
  78.  
  79.  
  80. end
  81.  
  82. for n,player in pairs(tfm.get.room.playerList) do
  83. tfm.exec.bindKeyboard(n,"0",true,true)
  84. tfm.exec.bindKeyboard(n,"1",true,true)
  85. tfm.exec.bindKeyboard(n,"2",true,true)
  86. tfm.exec.bindKeyboard(n,"3",true,true)
  87.  
  88.  
  89. end
  90.  
  91.  
  92.  
  93. tfm.exec.newGame('<C><P DS="m;55,315,175,315,295,315,415,315,535,315" defilante="0,0,30,1" L="4800" /><Z><S><S X="798" o="ffffff" L="3000" Y="1935" c="4" H="3000" P="0,0,0.3,0.2,0,0,0,0" T="12" /><S X="1500" o="324650" L="3000" Y="419" H="69" P="0,0,9000,0.2,0,0,0,0" T="12" /><S X="1584" o="ffffff" L="3000" Y="-1438" N="" c="4" H="3000" P="0,0,0.3,0.2,0,0,0,0" T="12" /><S X="3900" o="324650" L="1800" Y="417" H="69" P="0,0,9000,0.2,0,0,0,0" T="12" /><S X="507" o="324650" L="3000" Y="419" H="69" P="0,0,9000,0.2,0,0,0,0" T="12" /><S X="481" o="ffffff" L="3000" Y="-1013" N="" c="4" H="3000" P="0,0,0.3,0.2,0,0,0,0" T="12" /><S X="2" L="22" Y="295" H="241" P="0,0,0,0.2,0,0,0,0" T="1" /><S X="4798" L="32" Y="286" H="250" P="0,0,0,0.2,0,0,0,0" T="1" /><S X="6259" o="ffffff" L="3000" Y="39" c="4" H="3000" P="0,0,0.3,0.2,0,0,0,0" T="12" N="" /><S X="4113" o="324650" L="3000" Y="434" H="69" P="0,0,9000,0.2,0,0,0,0" T="12" /><S X="3420" o="ffffff" L="3000" Y="282" c="4" H="3000" P="0,0,0.3,0.2,0,0,0,0" T="12" N="" /><S X="0" o="46ff" L="102" Y="949" c="4" H="2000" P="0,0,0.3,0.2,0,0,0,0" T="12" N="" /><S X="1550" o="46ff" L="102" Y="0" c="4" H="3000" P="0,0,0.3,0.2,90,0,0,0" T="12" N="" /><S X="4551" o="46ff" L="102" Y="0" c="4" H="3000" P="0,0,0.3,0.2,90,0,0,0" T="12" /><S X="4800" o="46ff" L="102" Y="246" c="4" H="434" P="0,0,0.3,0.2,0,0,0,0" T="12" N="" /><S X="4735" o="ffffff" L="3000" Y="1901" c="4" H="3000" P="0,0,0.3,0.2,0,0,0,0" T="12" N="" /><S X="6351" o="ffffff" L="3000" Y="190" c="4" H="3000" P="0,0,0.3,0.2,0,0,0,0" T="12" N="" /><S X="329" o="ffffff" L="3000" Y="1901" c="4" H="3000" P="0,0,0.3,0.2,0,0,0,0" T="12" N="" /></S><D><DS X="400" Y="343" /></D><O /></Z></C>')
  94. tfm.exec.disableAutoNewGame(true)
  95.  
  96. function eventNewPlayer(n)
  97. tfm.exec.chatMessage("<ROSE>Welcome <J>"..n.."<ROSE>!",n)
  98. mice[n] = {score = 0,rank = r2.rank}
  99. data[n]={user=n,showup=0,close="Close",equip="Equip",lang="Language",help="In #DrawLand your goal is to try to get to 500 points on the leaderboard, you can get those points from placing more art on the the map, or you can also draw art for just the fun of it. To move you just use normal controls. (WASD or right, left, down, and up keys). The more wins you get, the more prizes you get, explore that for yourself by getting more wins!",credits="Made by <J>Fuzzyfirsdog. <N>Credits to <J>Bolodefchoco and Bodykudo<N> for extra coding. Credits to <BV>Ragekitteee<N> for FR translations. Credits to <BV>Fuzzyfirsdog<N> for EN translations. Credits to <BV>Bolodefchoco<N> for BR translations",leaderboardtab="Leaderboard",inventorytab="Inventory",helptab="Help",colortab="Change Color",color=math.random(0xFFFFFF),x=400,y=200,score=0,wins=0,award="",inventory="<G>Earn wins to get Items!", using="<font face='arial'><font size='25'>Using:<br><br><b><font size='14'>No Skin",allowed1="",allowed2="",allowed3="",allowed4="",allowed5="",allowed6="",allowed7=""}
  100. ui.addTextArea(-78," ",n,-500,-500,9000,9000,0xFFFFFF,0xFFFFFF,1,false)
  101. mice[n].rank(n)
  102. openRank(n)
  103.  
  104. data[n] = {}
  105. data[n].introImg = tfm.exec.addImage("15d326e0936.png", "&1", 9999, 9999, n)
  106. data[n].introImg2 = tfm.exec.addImage("15d32680864.png", "&2", 9999, 9999, n)
  107. system.newTimer(function() tfm.exec.removeImage(data[n].introImg) end,5000,false)
  108. system.newTimer(function() tfm.exec.removeImage(data[n].introImg2) end,5000,false)
  109. ui.addTextArea(-44, "<b><p align='center'><font size='13'><a href='event:fr'>Français", n, 250, 153, 87, 29, 0x324650, 0x000000, 1, true)
  110. ui.addTextArea(-47, "<b><p align='center'><font size='13'><a href='event:en'>English", n, 350, 154, 87, 29, 0x324650, 0x000000, 1, true)
  111. ui.addTextArea(-46, "<b><p align='center'><font size='13'><a href='event:br'>Português", n, 450, 154, 87, 29, 0x324650, 0x000000, 1, true)
  112.  
  113. tfm.exec.bindKeyboard(n,"0",true,true)
  114. tfm.exec.bindKeyboard(n,"1",true,true)
  115. tfm.exec.bindKeyboard(n,"2",true,true)
  116. tfm.exec.bindKeyboard(n,"3",true,true)
  117.  
  118. ui.addTextArea(-20, "<p align='center'><b><V><a href='event:lb'>"..data[n].leaderboardtab, n, 700, 369, 90, 39, 0x073247, 0x2c555c, 0.2, true)
  119. ui.addTextArea(-21, "<p align='center'><b><V><a href='event:color'>"..data[n].colortab, n, 600, 369, 90, 39, 0x073247, 0x2c555c, 0.2, true)
  120. ui.addTextArea(-24, "<p align='center'><b><V><a href='event:help'>"..data[n].helptab, n, 500, 369, 90, 39, 0x073247, 0x2c555c, 0.2, true)
  121. ui.addTextArea(-23, "<p align='center'><b><V><a href='event:inv'>"..data[n].inventorytab, n, 400, 369, 90, 39, 0x073247, 0x2c555c, 0.2, true)
  122. ui.addTextArea(-25, "<p align='center'><b><V><a href='event:lang'>"..data[n].lang, n, 300, 369, 90, 39, 0x073247, 0x2c555c, 0.2, true)
  123.  
  124. tfm.exec.respawnPlayer(n)
  125. ui.addTextArea(-973, "<font size='20'><font face='Soopafresh,Comic Sans MS,Verdana,Lucida Console'><p align='center'>#Drawland", n, 19, 35, 761, 344, 0x324650, 0x000000, 1, true)
  126. tfm.exec.addImage("15d326e0936.png", "&1", 5, 277, n)
  127. tfm.exec.addImage("15d32680864.png", "&2", 273, -15, n)
  128. end
  129.  
  130.  
  131.  
  132. table.foreach(tfm.get.room.playerList,eventNewPlayer)
  133.  
  134. function eventTextAreaCallback(ids,n,cb)
  135.  
  136.  
  137. if cb=="close" then
  138.  
  139. closeRank(n)
  140.  
  141. ui.removeTextArea(-44,n)
  142. ui.removeTextArea(-32,n)
  143. ui.removeTextArea(-33,n)
  144. ui.removeTextArea(-34,n)
  145. ui.removeTextArea(-35,n)
  146. ui.removeTextArea(-36,n)
  147. ui.removeTextArea(-37,n)
  148. ui.removeTextArea(-38,n)
  149. ui.removeTextArea(-39,n)
  150. ui.removeTextArea(-40,n)
  151. ui.removeTextArea(-41,n)
  152. ui.removeTextArea(-42,n)
  153. ui.removeTextArea(-43,n)
  154. ui.removeTextArea(-43,n)
  155. ui.removeTextArea(-45,n)
  156. ui.removeTextArea(-46,n)
  157. ui.removeTextArea(-47,n)
  158. ui.removeTextArea(-155,n)
  159. ui.removeTextArea(-156,n)
  160. ui.removeTextArea(-157,n)
  161. ui.removeTextArea(-158,n)
  162. closeRank(n)
  163. elseif cb=="lb" then
  164. mice[n].rank(n)
  165. openRank(n)
  166.  
  167.  
  168. elseif cb=="color" then
  169. ui.showColorPicker(0,n,data[n].color,"Choose your color!")
  170. ui.removeTextArea(-32,n)
  171. ui.removeTextArea(-33,n)
  172. ui.removeTextArea(-34,n)
  173. ui.removeTextArea(-35,n)
  174. ui.removeTextArea(-36,n)
  175. ui.removeTextArea(-37,n)
  176. ui.removeTextArea(-38,n)
  177. ui.removeTextArea(-39,n)
  178. ui.removeTextArea(-40,n)
  179. ui.removeTextArea(-41,n)
  180. ui.removeTextArea(-42,n)
  181. ui.removeTextArea(-43,n)
  182. ui.removeTextArea(-43,n)
  183. ui.removeTextArea(-45,n)
  184. ui.removeTextArea(-46,n)
  185. ui.removeTextArea(-47,n)
  186. ui.removeTextArea(-44,n)
  187.  
  188. elseif cb=="help" then
  189. ui.addTextArea(-1, "", n, 220, 45, 360, 313, 0x123e54, 0x123e54, 1, true)
  190. ui.addTextArea(-32, "", n, 222, 48, 356, 307, 0x042636, 0x042636, 1, true)
  191. ui.addTextArea(-33, "", n, 229, 59, 191, 287, 0x2c555c, 0x2c555c, 1, true)
  192. ui.addTextArea(-34, "<p align='center'><font size='25'>#DrawLand</i></b><VP><font size='13'><br><br>"..data[n].help, n, 231, 61, 187, 283, 0x073247, 0x073247, 1, true)
  193. ui.addTextArea(-35, "", n, 481, 59, 86, 287, 0x2c555c, 0x2c555c, 1, true)
  194. ui.addTextArea(-36, "<p align='center'><N><br><font size='10'>"..data[n].credits, n, 483, 61, 82, 283, 0x073247, 0x073247, 1, true)
  195. ui.addTextArea(-37, "", n, 348, 367, 104, 23, 0x123e54, 0x123e54, 1, true)
  196. ui.addTextArea(-38, "<p align='center'><b><R><a href='event:close'>"..data[n].close, n, 350, 369, 100, 19, 0x073247, 0x2c555c, 1, true)
  197. closeRank(n)
  198.  
  199. elseif cb=="inv" or cb=="previous" then
  200.  
  201. ui.addTextArea(-47, "<p align='center'><font size='9'>1/2", n, 300, 55, 200, 321, 0x123e54, 0x042636, 1, true)
  202. ui.addTextArea(-46, "<p align='center'><b><font size='17'>♜<font size='9'><br></b><R>10 wins", n, 438, 74, 51, 44, 0x2c555c, 0x000000, 1, true)
  203. ui.addTextArea(-45, "<p align='center'><b><font size='17'>❖<font size='9'><br></b><R>5 wins", n, 313, 74, 51, 44, 0x2c555c, 0x000000, 1, true)
  204. ui.addTextArea(-44, "<p align='center'><b><font size='17'>♚<font size='9'><br></b><R>70 wins", n, 438, 250, 51, 44, 0x2c555c, 0x000000, 1, true)
  205. ui.addTextArea(-43, "<p align='center'><b><font size='17'>⛄<font size='9'><br></b><R>15 wins", n, 313, 160, 49, 44, 0x2c555c, 0x000000, 1, true)
  206. ui.addTextArea(-42, "<p align='center'><b><font size='17'>☕<font size='9'><br></b><R>25 wins", n, 438, 160, 51, 44, 0x2c555c, 0x000000, 1, true)
  207. ui.addTextArea(-41, "<p align='center'><b><font size='17'>✨<font size='9'><br></b><R>40 wins", n, 313, 250, 51, 44, 0x2c555c, 0x000000, 1, true)
  208. ui.addTextArea(-40, "<p align='center'><b><font size='17'>♛<font size='9'><br></b><R>100 wins", n, 376, 160, 51, 44, 0x2c555c, 0x000000, 1, true)
  209. ui.addTextArea(-39, "<p align='center'><b><G>"..data[n].allowed1..""..data[n].equip, n, 289, 128, 100, 23, 0x324650, 0x000000, 0, true)
  210. ui.addTextArea(-38, "<p align='center'><b><G>"..data[n].allowed2..""..data[n].equip, n, 412, 128, 100, 23, 0x324650, 0x000000, 0, true)
  211. ui.addTextArea(-37, "<p align='center'><b><G>"..data[n].allowed3..""..data[n].equip, n, 289, 213, 100, 23, 0x324650, 0x000000, 0, true)
  212. ui.addTextArea(-36, "<p align='center'><b><G>"..data[n].allowed4..""..data[n].equip, n, 412, 213, 100, 23, 0x324650, 0x000000, 0, true)
  213. ui.addTextArea(-35, "<p align='center'><b><G>"..data[n].allowed5..""..data[n].equip, n, 289, 302, 100, 23, 0x324650, 0x000000, 0, true)
  214. ui.addTextArea(-34, "<p align='center'><b><G>"..data[n].allowed6..""..data[n].equip, n, 412, 302, 100, 23, 0x324650, 0x000000, 0, true)
  215. ui.addTextArea(-33, "<p align='center'><b><G>"..data[n].allowed7..""..data[n].equip, n, 349, 213, 100, 23, 0x324650, 0x000000, 0, true)
  216. ui.addTextArea(-32, "<p align='center'><R><a href='event:close'><b>"..data[n].close, n, 348, 337, 100, 29, 0x073247, 0x2c555c, 1, true)
  217. ui.addTextArea(-155, "<p align='center'><b><font size='17'>???<font size='9'><br></b><R>???", n, 376, 250, 51, 44, 0x2c555c, 0x000000, 1, true)
  218. ui.addTextArea(-156, "<p align='center'><b><font size='17'>???<font size='9'><br></b><R>???", n, 376, 74, 51, 44, 0x2c555c, 0x000000, 1, true)
  219. ui.addTextArea(-157, "<p align='center'><R><a href='event:next'><b><font size='17'>»", n, 456, 337, 30, 29, 0x073247, 0x2c555c, 1, true)
  220. ui.addTextArea(-158, "<p align='center'><R><G><b><font size='17'>«", n, 310, 337, 30, 29, 0x073247, 0x2c555c, 1, true)
  221. closeRank(n)
  222. elseif cb=="next" then
  223. ui.addTextArea(-47, "<p align='center'><font size='9'>2/2", n, 300, 55, 200, 321, 0x123e54, 0x042636, 1, true)
  224. ui.addTextArea(-46, "<p align='center'><b><font size='17'>???<font size='9'><br></b><R>???", n, 438, 74, 51, 44, 0x2c555c, 0x000000, 1, true)
  225. ui.addTextArea(-45, "<p align='center'><b><font size='17'>???<font size='9'><br></b><R>???", n, 313, 74, 51, 44, 0x2c555c, 0x000000, 1, true)
  226. ui.addTextArea(-44, "<p align='center'><b><font size='17'>???<font size='9'><br></b><R>???", n, 438, 250, 51, 44, 0x2c555c, 0x000000, 1, true)
  227. ui.addTextArea(-43, "<p align='center'><b><font size='17'>???<font size='9'><br></b><R>???", n, 313, 160, 49, 44, 0x2c555c, 0x000000, 1, true)
  228. ui.addTextArea(-42, "<p align='center'><b><font size='17'>???<font size='9'><br></b><R>???", n, 438, 160, 51, 44, 0x2c555c, 0x000000, 1, true)
  229. ui.addTextArea(-41, "<p align='center'><b><font size='17'>???<font size='9'><br></b><R>???", n, 313, 250, 51, 44, 0x2c555c, 0x000000, 1, true)
  230. ui.addTextArea(-40, "<p align='center'><b><font size='17'>???<font size='9'><br></b><R>???", n, 376, 160, 51, 44, 0x2c555c, 0x000000, 1, true)
  231. ui.addTextArea(-39, "<p align='center'><b><G>"..data[n].allowed1..""..data[n].equip, n, 289, 128, 100, 23, 0x324650, 0x000000, 0, true)
  232. ui.addTextArea(-38, "<p align='center'><b><G>"..data[n].allowed2..""..data[n].equip, n, 412, 128, 100, 23, 0x324650, 0x000000, 0, true)
  233. ui.addTextArea(-37, "<p align='center'><b><G>"..data[n].allowed3..""..data[n].equip, n, 289, 213, 100, 23, 0x324650, 0x000000, 0, true)
  234. ui.addTextArea(-36, "<p align='center'><b><G>"..data[n].allowed4..""..data[n].equip, n, 412, 213, 100, 23, 0x324650, 0x000000, 0, true)
  235. ui.addTextArea(-35, "<p align='center'><b><G>"..data[n].allowed5..""..data[n].equip, n, 289, 312, 100, 23, 0x324650, 0x000000, 0, true)
  236. ui.addTextArea(-34, "<p align='center'><b><G>"..data[n].allowed6..""..data[n].equip, n, 412, 312, 100, 23, 0x324650, 0x000000, 0, true)
  237. ui.addTextArea(-33, "<p align='center'><b><G>"..data[n].allowed7..""..data[n].equip, n, 349, 213, 100, 23, 0x324650, 0x000000, 0, true)
  238. ui.addTextArea(-32, "<p align='center'><R><a href='event:close'><b>"..data[n].close, n, 348, 337, 100, 29, 0x073247, 0x2c555c, 1, true)
  239. ui.addTextArea(-155, "<p align='center'><b><font size='17'>???<font size='9'><br></b><R>???", n, 376, 250, 51, 44, 0x2c555c, 0x000000, 1, true)
  240. ui.addTextArea(-156, "<p align='center'><b><font size='17'>???<font size='9'><br></b><R>???", n, 376, 74, 51, 44, 0x2c555c, 0x000000, 1, true)
  241. ui.addTextArea(-157, "<p align='center'><R><G><b><font size='17'>»", n, 456, 337, 30, 29, 0x073247, 0x2c555c, 1, true)
  242. ui.addTextArea(-158, "<p align='center'><R><a href='event:previous'><b><font size='17'>«", n, 310, 337, 30, 29, 0x073247, 0x2c555c, 1, true)
  243. elseif cb=="prize1" then
  244. data[n].award = "<font size='17'><J>❖"
  245. data[n].using = "<font face='arial'><font size='25'>Using<br><br><b><font size='20'><J>❖"
  246. ui.removeTextArea(-32,n)
  247. ui.removeTextArea(-33,n)
  248. ui.removeTextArea(-34,n)
  249. ui.removeTextArea(-35,n)
  250. ui.removeTextArea(-36,n)
  251. ui.removeTextArea(-37,n)
  252. ui.removeTextArea(-38,n)
  253. ui.removeTextArea(-39,n)
  254. ui.removeTextArea(-40,n)
  255. ui.removeTextArea(-41,n)
  256. ui.removeTextArea(-42,n)
  257. ui.removeTextArea(-43,n)
  258. ui.removeTextArea(-43,n)
  259. ui.removeTextArea(-45,n)
  260. ui.removeTextArea(-46,n)
  261. ui.removeTextArea(-47,n)
  262. ui.removeTextArea(-44,n)
  263.  
  264. elseif cb=="prize2" then
  265. ui.removeTextArea(-32,n)
  266. ui.removeTextArea(-33,n)
  267. ui.removeTextArea(-34,n)
  268. ui.removeTextArea(-35,n)
  269. ui.removeTextArea(-36,n)
  270. ui.removeTextArea(-37,n)
  271. ui.removeTextArea(-38,n)
  272. ui.removeTextArea(-39,n)
  273. ui.removeTextArea(-40,n)
  274. ui.removeTextArea(-41,n)
  275. ui.removeTextArea(-42,n)
  276. ui.removeTextArea(-43,n)
  277. ui.removeTextArea(-43,n)
  278. ui.removeTextArea(-45,n)
  279. ui.removeTextArea(-46,n)
  280. ui.removeTextArea(-47,n)
  281. ui.removeTextArea(-44,n)
  282.  
  283. data[n].award = "<font size='17'><J>♜"
  284. data[n].using = "<font face='arial'><font size='25'>Using<br><br><b><font size='20'><J>☎"
  285. ui.removeTextArea(-32,n)
  286. ui.removeTextArea(-33,n)
  287. ui.removeTextArea(-34,n)
  288. ui.removeTextArea(-35,n)
  289. ui.removeTextArea(-36,n)
  290. ui.removeTextArea(-37,n)
  291. ui.removeTextArea(-38,n)
  292.  
  293. elseif cb=="prize3" then
  294. data[n].award = "<font size='15'><J>⛄"
  295. data[n].using = "<font face='arial'><font size='25'>Using<br><br><b><font size='20'><J>▦"
  296. ui.removeTextArea(-32,n)
  297. ui.removeTextArea(-33,n)
  298. ui.removeTextArea(-34,n)
  299. ui.removeTextArea(-35,n)
  300. ui.removeTextArea(-36,n)
  301. ui.removeTextArea(-37,n)
  302. ui.removeTextArea(-38,n)
  303. ui.removeTextArea(-32,n)
  304. ui.removeTextArea(-33,n)
  305. ui.removeTextArea(-34,n)
  306. ui.removeTextArea(-35,n)
  307. ui.removeTextArea(-36,n)
  308. ui.removeTextArea(-37,n)
  309. ui.removeTextArea(-38,n)
  310. ui.removeTextArea(-39,n)
  311. ui.removeTextArea(-40,n)
  312. ui.removeTextArea(-41,n)
  313. ui.removeTextArea(-42,n)
  314. ui.removeTextArea(-43,n)
  315. ui.removeTextArea(-43,n)
  316. ui.removeTextArea(-45,n)
  317. ui.removeTextArea(-46,n)
  318. ui.removeTextArea(-47,n)
  319. ui.removeTextArea(-44,n)
  320.  
  321. elseif cb=="prize4" then
  322. data[n].award = "<font size='13'><J>☕"
  323. data[n].using = "<font face='arial'><font size='25'>Using<br><br><b><font size='20'><J>☕"
  324. ui.removeTextArea(-32,n)
  325. ui.removeTextArea(-33,n)
  326. ui.removeTextArea(-34,n)
  327. ui.removeTextArea(-35,n)
  328. ui.removeTextArea(-36,n)
  329. ui.removeTextArea(-37,n)
  330. ui.removeTextArea(-38,n)
  331. ui.removeTextArea(-39,n)
  332. ui.removeTextArea(-40,n)
  333. ui.removeTextArea(-41,n)
  334. ui.removeTextArea(-42,n)
  335. ui.removeTextArea(-43,n)
  336. ui.removeTextArea(-43,n)
  337. ui.removeTextArea(-45,n)
  338. ui.removeTextArea(-46,n)
  339. ui.removeTextArea(-47,n)
  340. ui.removeTextArea(-44,n)
  341.  
  342. elseif cb=="prize5" then
  343. data[n].award = "<font size='15'><J>✨"
  344. data[n].using = "<font face='arial'><font size='25'>Using<br><br><b><font size='20'><J>♜"
  345. ui.removeTextArea(-32,n)
  346. ui.removeTextArea(-33,n)
  347. ui.removeTextArea(-34,n)
  348. ui.removeTextArea(-35,n)
  349. ui.removeTextArea(-36,n)
  350. ui.removeTextArea(-37,n)
  351. ui.removeTextArea(-38,n)
  352. ui.removeTextArea(-39,n)
  353. ui.removeTextArea(-40,n)
  354. ui.removeTextArea(-41,n)
  355. ui.removeTextArea(-42,n)
  356. ui.removeTextArea(-43,n)
  357. ui.removeTextArea(-43,n)
  358. ui.removeTextArea(-45,n)
  359. ui.removeTextArea(-46,n)
  360. ui.removeTextArea(-47,n)
  361. ui.removeTextArea(-44,n)
  362.  
  363. elseif cb=="prize6" then
  364. data[n].award = "<font size='17'><J>♚"
  365. data[n].using = "<font face='arial'><font size='25'>Using<br><br><b><font size='20'><J>♚"
  366. ui.removeTextArea(-32,n)
  367. ui.removeTextArea(-33,n)
  368. ui.removeTextArea(-34,n)
  369. ui.removeTextArea(-35,n)
  370. ui.removeTextArea(-36,n)
  371. ui.removeTextArea(-37,n)
  372. ui.removeTextArea(-38,n)
  373. ui.removeTextArea(-39,n)
  374. ui.removeTextArea(-40,n)
  375. ui.removeTextArea(-41,n)
  376. ui.removeTextArea(-42,n)
  377. ui.removeTextArea(-43,n)
  378. ui.removeTextArea(-43,n)
  379. ui.removeTextArea(-45,n)
  380. ui.removeTextArea(-46,n)
  381. ui.removeTextArea(-47,n)
  382. ui.removeTextArea(-44,n)
  383.  
  384. elseif cb=="prize7" then
  385. data[n].award = "<font size='15'><J>♛"
  386. data[n].using = "<font face='arial'><font size='25'>Using<br><br><b><font size='20'><J>♛"
  387.  
  388.  
  389. ui.removeTextArea(-32,n)
  390. ui.removeTextArea(-33,n)
  391. ui.removeTextArea(-34,n)
  392. ui.removeTextArea(-35,n)
  393. ui.removeTextArea(-36,n)
  394. ui.removeTextArea(-37,n)
  395. ui.removeTextArea(-38,n)
  396. ui.removeTextArea(-39,n)
  397. ui.removeTextArea(-40,n)
  398. ui.removeTextArea(-41,n)
  399. ui.removeTextArea(-42,n)
  400. ui.removeTextArea(-43,n)
  401. ui.removeTextArea(-43,n)
  402. ui.removeTextArea(-45,n)
  403. ui.removeTextArea(-46,n)
  404. ui.removeTextArea(-47,n)
  405. ui.removeTextArea(-44,n)
  406.  
  407. elseif cb=="lang" then
  408. ui.addTextArea(-44, "<b><p align='center'><font size='13'><a href='event:fr'>Français", n, 250, 153, 87, 29, 0x324650, 0x000000, 1, true)
  409. ui.addTextArea(-47, "<b><p align='center'><font size='13'><a href='event:en'>English", n, 350, 154, 87, 29, 0x324650, 0x000000, 1, true)
  410. ui.addTextArea(-46, "<b><p align='center'><font size='13'><a href='event:br'>Português", n, 450, 154, 87, 29, 0x324650, 0x000000, 1, true)
  411.  
  412.  
  413. ui.removeTextArea(-32,n)
  414. ui.removeTextArea(-33,n)
  415. ui.removeTextArea(-34,n)
  416. ui.removeTextArea(-35,n)
  417. ui.removeTextArea(-36,n)
  418. ui.removeTextArea(-37,n)
  419. ui.removeTextArea(-38,n)
  420. ui.removeTextArea(-39,n)
  421. ui.removeTextArea(-40,n)
  422. ui.removeTextArea(-41,n)
  423. ui.removeTextArea(-42,n)
  424. ui.removeTextArea(-43,n)
  425. ui.removeTextArea(-43,n)
  426. ui.removeTextArea(-45,n)
  427.  
  428.  
  429. ui.removeTextArea(-155,n)
  430. ui.removeTextArea(-156,n)
  431. ui.removeTextArea(-157,n)
  432. ui.removeTextArea(-158,n)
  433. elseif cb=="en" then
  434. data[n].help = "In #DrawLand your goal is to try to get to 500 points on the leaderboard, you can get those points from placing more art on the the map, or you can also draw art for just the fun of it. To move you just use normal controls. (WASD or right, left, down, and up keys). The more wins you get, the more prizes you get, explore that for yourself by getting more wins!"
  435. data[n].credits = "Made by <J>Fuzzyfirsdog. <N>Credits to <J>Bolodefchoco and Bodykudo<N> for extra coding. Credits to <BV>Ragekitteee<N> for FR translations. Credits to <BV>Fuzzyfirsdog<N> for EN translations. Credits to <BV>Bolodefchoco<N> for BR translations"
  436.  
  437. data[n].lang = "Language"
  438. data[n].inventorytab = "Inventory"
  439. data[n].helptab = "Help"
  440. data[n].leaderboardtab = "Leaderboard"
  441. data[n].colortab = "Change Color"
  442. data[n].close = "Close"
  443. data[n].equip = "Equip"
  444.  
  445. ui.addTextArea(-27, "<p align='center'><b><V><a href='event:lb'>"..data[n].leaderboardtab, n, 700, 369, 90, 39, 0x073247, 0x2c555c, 0.2, true)
  446. ui.addTextArea(-20, "<p align='center'><b><V><a href='event:lb'>"..data[n].leaderboardtab, n, 700, 369, 90, 39, 0x073247, 0x2c555c, 0.2, true)
  447. ui.addTextArea(-21, "<p align='center'><b><V><a href='event:color'>"..data[n].colortab, n, 600, 369, 90, 39, 0x073247, 0x2c555c, 0.2, true)
  448. ui.addTextArea(-24, "<p align='center'><b><V><a href='event:help'>"..data[n].helptab, n, 500, 369, 90, 39, 0x073247, 0x2c555c, 0.2, true)
  449. ui.addTextArea(-23, "<p align='center'><b><V><a href='event:inv'>"..data[n].inventorytab, n, 400, 369, 90, 39, 0x073247, 0x2c555c, 0.2, true)
  450. ui.addTextArea(-25, "<p align='center'><b><V><a href='event:lang'>"..data[n].lang, n, 300, 369, 90, 39, 0x073247, 0x2c555c, 0.2, true)
  451.  
  452. ui.removeTextArea(-32,n)
  453. ui.removeTextArea(-33,n)
  454. ui.removeTextArea(-34,n)
  455. ui.removeTextArea(-35,n)
  456. ui.removeTextArea(-36,n)
  457. ui.removeTextArea(-37,n)
  458. ui.removeTextArea(-38,n)
  459. ui.removeTextArea(-39,n)
  460. ui.removeTextArea(-40,n)
  461. ui.removeTextArea(-41,n)
  462. ui.removeTextArea(-42,n)
  463. ui.removeTextArea(-43,n)
  464. ui.removeTextArea(-43,n)
  465. ui.removeTextArea(-45,n)
  466. ui.removeTextArea(-46,n)
  467. ui.removeTextArea(-47,n)
  468. ui.removeTextArea(-44,n)
  469.  
  470. elseif cb=="fr" then
  471.  
  472. data[n].help = "Dans #DrawLand, le but est d'essayer d'atteindre 500 points dans le tableau de classement. Tu peux gagner des points en ajoutant une touche d'art dans la map, ou en dessinant juste pour le plaisir. Pour te déplacer, il suffit d'utiliser les touches du clavier (Z/haut, Q/gauche, S/bas, D/droit). C'est en remportant le plus de victoires que les prix à recevoir se multiplient. Explore toi-même cela en remportant le plus de victoires!"
  473. data[n].credits = "Fait par <J>Fuzzyfirsdog.<N>Merci à <J>Bolodefchoco et Bodykudo<N> pour le codage supplémentaire. Merci à <BV>Ragekitteee<N> pour la traduction en FR. Merci à <BV>Fuzzyfirsdog<N> pour la traduction en EN. Merci à <BV>Bolodefchoco<N> pour la traduction en BR."
  474. data[n].inventorytab = "Inventaire"
  475. data[n].helptab = "Aide"
  476. data[n].leaderboardtab = "Classement"
  477. data[n].colortab = "Changer la couleur"
  478. data[n].close = "Fermer"
  479. data[n].equip = "Équiper"
  480. data[n].lang = "Language"
  481. ui.addTextArea(-27, "<p align='center'><b><V><a href='event:lb'>"..data[n].leaderboardtab, n, 700, 369, 90, 39, 0x073247, 0x2c555c, 0.2, true)
  482. ui.addTextArea(-20, "<p align='center'><b><V><a href='event:lb'>"..data[n].leaderboardtab, n, 700, 369, 90, 39, 0x073247, 0x2c555c, 0.2, true)
  483. ui.addTextArea(-21, "<p align='center'><b><V><a href='event:color'>"..data[n].colortab, n, 600, 369, 90, 39, 0x073247, 0x2c555c, 0.2, true)
  484. ui.addTextArea(-24, "<p align='center'><b><V><a href='event:help'>"..data[n].helptab, n, 500, 369, 90, 39, 0x073247, 0x2c555c, 0.2, true)
  485. ui.addTextArea(-23, "<p align='center'><b><V><a href='event:inv'>"..data[n].inventorytab, n, 400, 369, 90, 39, 0x073247, 0x2c555c, 0.2, true)
  486. ui.addTextArea(-25, "<p align='center'><b><V><a href='event:lang'>"..data[n].lang, n, 300, 369, 90, 39, 0x073247, 0x2c555c, 0.2, true)
  487.  
  488. ui.removeTextArea(-32,n)
  489. ui.removeTextArea(-33,n)
  490. ui.removeTextArea(-34,n)
  491. ui.removeTextArea(-35,n)
  492. ui.removeTextArea(-36,n)
  493. ui.removeTextArea(-37,n)
  494. ui.removeTextArea(-38,n)
  495. ui.removeTextArea(-39,n)
  496. ui.removeTextArea(-40,n)
  497. ui.removeTextArea(-41,n)
  498. ui.removeTextArea(-42,n)
  499. ui.removeTextArea(-43,n)
  500. ui.removeTextArea(-43,n)
  501. ui.removeTextArea(-45,n)
  502. ui.removeTextArea(-46,n)
  503. ui.removeTextArea(-47,n)
  504. ui.removeTextArea(-44,n)
  505.  
  506. elseif cb=="br" then
  507.  
  508. data[n].help = "Em #DrawLand seu objeto é tentar conseguir 500 pontos no ranking, você pode conseguir esses pontos colocando mais arte no mapa, ou você também pode desenhar apenas por diversão. Para se mover, use os controles normais. (teclas WASD ou direita, esquerda, baixo e cima). Quanto mais vitórias você conseguir, mais prêmios você conseguirá, explore você mesmo para conseguir mais vitórias!"
  509.  
  510. data[n].credits = "Feito por <J>Fuzzyfirsdog. <N>Créditos a <J>Bolodefchoco e Bodykudo<N> por códigos extras. Créditos a <BV>Ragekitteee<N> pelas traduções FR. Créditos a <BV>Fuzzyfirsdog<N> pelas traduções EN. Créditos a <BV>Bolodefchoco<N> pelas traduções BR."
  511. data[n].inventorytab = "Inventário"
  512. data[n].helptab = "Ajuda"
  513. data[n].leaderboardtab = "Ranking"
  514. data[n].colortab = "Mudar cor"
  515. data[n].close = "Fechar"
  516. data[n].equip = "Equipar"
  517. data[n].lang = "Idioma"
  518.  
  519. ui.addTextArea(-27, "<p align='center'><b><V><a href='event:lb'>"..data[n].leaderboardtab, n, 700, 369, 90, 39, 0x073247, 0x2c555c, 0.2, true)
  520.  
  521. ui.addTextArea(-20, "<p align='center'><b><V><a href='event:lb'>"..data[n].leaderboardtab, n, 700, 369, 90, 39, 0x073247, 0x2c555c, 0.2, true)
  522. ui.addTextArea(-21, "<p align='center'><b><V><a href='event:color'>"..data[n].colortab, n, 600, 369, 90, 39, 0x073247, 0x2c555c, 0.2, true)
  523. ui.addTextArea(-24, "<p align='center'><b><V><a href='event:help'>"..data[n].helptab, n, 500, 369, 90, 39, 0x073247, 0x2c555c, 0.2, true)
  524. ui.addTextArea(-23, "<p align='center'><b><V><a href='event:inv'>"..data[n].inventorytab, n, 400, 369, 90, 39, 0x073247, 0x2c555c, 0.2, true)
  525. ui.addTextArea(-25, "<p align='center'><b><V><a href='event:lang'>"..data[n].lang, n, 300, 369, 90, 39, 0x073247, 0x2c555c, 0.2, true)
  526.  
  527. ui.removeTextArea(-32,n)
  528. ui.removeTextArea(-33,n)
  529. ui.removeTextArea(-34,n)
  530. ui.removeTextArea(-35,n)
  531. ui.removeTextArea(-36,n)
  532. ui.removeTextArea(-37,n)
  533. ui.removeTextArea(-38,n)
  534. ui.removeTextArea(-39,n)
  535. ui.removeTextArea(-40,n)
  536. ui.removeTextArea(-41,n)
  537. ui.removeTextArea(-42,n)
  538. ui.removeTextArea(-43,n)
  539. ui.removeTextArea(-43,n)
  540. ui.removeTextArea(-45,n)
  541. ui.removeTextArea(-46,n)
  542. ui.removeTextArea(-47,n)
  543. ui.removeTextArea(-44,n)
  544.  
  545.  
  546. end
  547. end
  548.  
  549.  
  550.  
  551.  
  552. id=0
  553. function eventKeyboard(name,key,down,xPos,yPos)
  554.  
  555. id = id + 1
  556. ui.removeTextArea(-44,name)
  557. ui.removeTextArea(-32,name)
  558. ui.removeTextArea(-33,name)
  559. ui.removeTextArea(-34,name)
  560. ui.removeTextArea(-35,name)
  561. ui.removeTextArea(-36,name)
  562. ui.removeTextArea(-37,name)
  563. ui.removeTextArea(-38,name)
  564. ui.removeTextArea(-39,name)
  565. ui.removeTextArea(-40,name)
  566. ui.removeTextArea(-41,name)
  567. ui.removeTextArea(-42,name)
  568. ui.removeTextArea(-43,name)
  569. ui.removeTextArea(-43,name)
  570. ui.removeTextArea(-45,name)
  571. ui.removeTextArea(-46,name)
  572. ui.removeTextArea(-47,name)
  573. ui.removeTextArea(-155,name)
  574. ui.removeTextArea(-156,name)
  575. ui.removeTextArea(-157,name)
  576. ui.removeTextArea(-158,name)
  577.  
  578. if data[name].score == 500 then
  579.  
  580. ui.addTextArea(-23, "<p align='center'><b><V>"..data[name].inventorytab, name, 400, 369, 90, 39, 0x073247, 0x2c555c, 0.2, true)
  581.  
  582. data[name].x = 400
  583. data[name].y = 200
  584. countdown = 0
  585.  
  586.  
  587.  
  588.  
  589. data[name].score = 0
  590. data[name].wins = data[name].wins + 1
  591.  
  592.  
  593. tfm.exec.chatMessage("<ROSE>"..name.." has earned 1 win by getting 500 points and now has a total of <J>"..data[name].wins.."<ROSE> wins!")
  594. tfm.exec.chatMessage("<br><VP>New Round Starting in 7 seconds!")
  595.  
  596.  
  597.  
  598.  
  599.  
  600.  
  601. elseif key==0 and down then
  602. tfm.exec.setPlayerScore(name,data[name].score)
  603. data[name].x = data[name].x - 17
  604. ui.addTextArea(id,data[name].award,nil,data[name].x,data[name].y,15,15,data[name].color,data[name].color,1,false)
  605. ui.addTextArea(names[math.random(#names)]," <font color='#000001'><font size='10'>"..name.." Wins: "..data[name].wins,nil,data[name].x - 22,data[name].y - 30,200,20,0xFF7700,0xFF7700,0,false)
  606. data[name].score = data[name].score + 2
  607. mice[name].score = mice[name].score + 2
  608.  
  609.  
  610.  
  611. elseif key==2 and down then
  612. tfm.exec.setPlayerScore(name,data[name].score)
  613. data[name].score = data[name].score + 2
  614. mice[name].score = mice[name].score + 2
  615. ui.addTextArea(names[math.random(#names)]," <font color='#000001'><font size='10'>"..name.." Wins: "..data[name].wins,nil,data[name].x - 22,data[name].y - 30,200,20,data[name].color,data[name].color,0,false)
  616. data[name].x = data[name].x + 17
  617. ui.addTextArea(id,data[name].award,nil,data[name].x,data[name].y,15,15,data[name].color,data[name].color,1,false)
  618. elseif key==1 and down then
  619.  
  620. tfm.exec.setPlayerScore(name,data[name].score)
  621. data[name].score = data[name].score + 2
  622. mice[name].score = mice[name].score + 2
  623. ui.addTextArea(names[math.random(#names)]," <font color='#000001'><font size='10'>"..name.." Wins: "..data[name].wins,nil,data[name].x - 22,data[name].y - 30,200,20,data[name].color,data[name].color,0,false)
  624. data[name].y = data[name].y - 17
  625. ui.addTextArea(id,data[name].award,nil,data[name].x,data[name].y,15,15,data[name].color,data[name].color,1,false)
  626. elseif key==3 and down then
  627. data[name].score = data[name].score + 2
  628. mice[name].score = mice[name].score + 2
  629. data[name].y = data[name].y + 17
  630. ui.addTextArea(id,data[name].award,nil,data[name].x,data[name].y,15,15,data[name].color,data[name].color,1,false)
  631. ui.addTextArea(names[math.random(#names)]," <font color='#000001'><font size='10'>"..name.." Wins: "..data[name].wins,nil,data[name].x - 22,data[name].y - 30,200,20,data[name].color,data[name].color,0,false)
  632. tfm.exec.setPlayerScore(name,data[name].score)
  633.  
  634.  
  635. end
  636. end
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648. names={"hi xD"}
  649.  
  650.  
  651.  
  652. function eventColorPicked(id,n,col)
  653. if col~=1 then
  654. data[n].color=col
  655. end
  656. end
  657.  
  658. maps={'<C><P DS="m;55,315,175,315,295,315,415,315,535,315" defilante="0,0,30,1" L="4800" /><Z><S><S X="798" o="ffffff" L="3000" Y="1935" c="4" H="3000" P="0,0,0.3,0.2,0,0,0,0" T="12" /><S X="1500" o="324650" L="3000" Y="419" H="69" P="0,0,9000,0.2,0,0,0,0" T="12" /><S X="1584" o="ffffff" L="3000" Y="-1438" N="" c="4" H="3000" P="0,0,0.3,0.2,0,0,0,0" T="12" /><S X="3900" o="324650" L="1800" Y="417" H="69" P="0,0,9000,0.2,0,0,0,0" T="12" /><S X="507" o="324650" L="3000" Y="419" H="69" P="0,0,9000,0.2,0,0,0,0" T="12" /><S X="481" o="ffffff" L="3000" Y="-1013" N="" c="4" H="3000" P="0,0,0.3,0.2,0,0,0,0" T="12" /><S X="2" L="22" Y="295" H="241" P="0,0,0,0.2,0,0,0,0" T="1" /><S X="4798" L="32" Y="286" H="250" P="0,0,0,0.2,0,0,0,0" T="1" /><S X="6259" o="ffffff" L="3000" Y="39" c="4" H="3000" P="0,0,0.3,0.2,0,0,0,0" T="12" N="" /><S X="4113" o="324650" L="3000" Y="434" H="69" P="0,0,9000,0.2,0,0,0,0" T="12" /><S X="3420" o="ffffff" L="3000" Y="282" c="4" H="3000" P="0,0,0.3,0.2,0,0,0,0" T="12" N="" /><S X="0" o="46ff" L="102" Y="949" c="4" H="2000" P="0,0,0.3,0.2,0,0,0,0" T="12" N="" /><S X="1550" o="46ff" L="102" Y="0" c="4" H="3000" P="0,0,0.3,0.2,90,0,0,0" T="12" N="" /><S X="4551" o="46ff" L="102" Y="0" c="4" H="3000" P="0,0,0.3,0.2,90,0,0,0" T="12" /><S X="4800" o="46ff" L="102" Y="246" c="4" H="434" P="0,0,0.3,0.2,0,0,0,0" T="12" N="" /><S X="4735" o="ffffff" L="3000" Y="1901" c="4" H="3000" P="0,0,0.3,0.2,0,0,0,0" T="12" N="" /><S X="6351" o="ffffff" L="3000" Y="190" c="4" H="3000" P="0,0,0.3,0.2,0,0,0,0" T="12" N="" /><S X="329" o="ffffff" L="3000" Y="1901" c="4" H="3000" P="0,0,0.3,0.2,0,0,0,0" T="12" N="" /></S><D><DS X="400" Y="343" /></D><O /></Z></C>'}
  659.  
  660.  
  661.  
  662.  
  663.  
  664. function eventLoop(lx,dx)
  665.  
  666. countdown = countdown + 0.5
  667.  
  668.  
  669.  
  670.  
  671. if countdown == 7 then
  672. tfm.exec.newGame(maps[math.random(#maps)])
  673. tfm.exec.setGameTime(7,true)
  674. else
  675. for n in next,tfm.get.room.playerList do
  676. tfm.exec.movePlayer(n,data[n].x,math.random(),false,0,0,false)
  677. if canRank[n] then
  678. mice[n].rank(n)
  679.  
  680. openRank(n)
  681.  
  682. iyo="⭐"
  683.  
  684. tfm.exec.setUIMapName("<font color='#009799'>Draw Land!")
  685.  
  686. data[n].showup = data[n].showup + 0.5
  687.  
  688.  
  689. if data[n].wins == 5 then
  690. data[n].award = "<font size='12'><N><b>❖"
  691. tfm.exec.chatMessage("<VP>"..n.." has earned a new skin from getting 5 wins and 1 bonus win!")
  692. data[n].inventory = "<p align='center'><b><R><a href='event:prize1'>❖<br><br><V>Equip Skin"
  693. data[n].wins = 6
  694. data[n].allowed1 = "<a href='event:prize1'><N>"
  695. elseif data[n].wins == 10 then
  696. data[n].award = "<font size='13'>♜"
  697. tfm.exec.chatMessage("<VP>"..n.." has earned a new skin from getting 10 wins and 1 bonus win!")
  698. data[n].inventory = "<p align='center'><b><R><a href='event:prize1'>❖<br><br><V>Equip Skin<br><p align='center'><b><R><a href='event:prize2'>☎<br><br><V>Equip Skin"
  699. data[n].wins = 11
  700. data[n].allowed2 = "<a href='event:prize2'><N>"
  701.  
  702. elseif data[n].wins == 15 then
  703. data[n].award = "<font size='17'><u><J><font size='15'><N>⛄"
  704. tfm.exec.chatMessage("<VP>"..n.." has earned a new skin from getting 15 wins and a bonus extra 2 wins!")
  705. data[n].inventory = "<p align='center'><b><R><a href='event:prize1'>❖<br><br><V>Equip Skin<br><p align='center'><b><R><a href='event:prize2'>☎<br><br><V>Equip Skin<br><p align='center'><b><R><a href='event:prize3'>▦<br><br><V>Equip Skin"
  706. data[n].wins = 17
  707. data[n].allowed3 = "<a href='event:prize3'><N>"
  708.  
  709. elseif data[n].wins == 25 then
  710. data[n].award = "<font size='13'>☕"
  711. tfm.exec.chatMessage("<VP>"..n.." has earned a new skin from getting 25 wins and a bonus extra 3 wins!")
  712. data[n].inventory = "<p align='center'><b><R><a href='event:prize1'>❖<br><br><V>Equip Skin<br><p align='center'><b><R><a href='event:prize2'>☎<br><br><V>Equip Skin<br><p align='center'><b><R><a href='event:prize3'>▦<br><br><V>Equip Skin<br><p align='center'><b><R><a href='event:prize4'>☕<br><br><V>Equip Skin"
  713. data[n].wins = 28
  714. data[n].allowed4 = "<a href='event:prize4'><N>"
  715.  
  716. elseif data[n].wins == 40 then
  717. data[n].award = "<font size='15'><N>✨"
  718. tfm.exec.chatMessage("<VP>"..n.." has earned a new skin from getting 40 wins and a bonus extra 3 wins!")
  719. data[name].inventory = "<p align='center'><b><R><a href='event:prize1'>❖<br><br><V>Equip Skin<br><p align='center'><b><R><a href='event:prize2'>☎<br><br><V>Equip Skin<br><p align='center'><b><R><a href='event:prize3'>▦<br><br><V>Equip Skin<br><p align='center'><b><R><a href='event:prize4'>☕<br><br><V>Equip Skin<br><p align='center'><b><R><a href='event:prize5'>♜<br><br><V>Equip Skin"
  720. data[n].wins = 43
  721. data[n].allowed5 = "<a href='event:prize5'><N>"
  722.  
  723. elseif data[n].wins == 70 then
  724. data[name].award = "<font size='17'><N>♚"
  725. tfm.exec.chatMessage("<VP>"..n.." has earned a new skin from getting 70 wins and a bonus extra 5 wins!")
  726. data[n].inventory = "<p align='center'><b><R><a href='event:prize1'>❖<br><br><V>Equip Skin<br><p align='center'><b><R><a href='event:prize2'>☎<br><br><V>Equip Skin<br><p align='center'><b><R><a href='event:prize3'>▦<br><br><V>Equip Skin<br><p align='center'><b><R><a href='event:prize4'>☕<br><br><V>Equip Skin<br><p align='center'><b><R><a href='event:prize5'>♜<br><br><V>Equip Skin<br><p align='center'><b><R><a href='event:prize6'>♚<br><br><V>Equip Skin"
  727. data[n].wins = 75
  728. data[n].allowed6 = "<a href='event:prize6'><N>"
  729.  
  730. elseif data[n].wins == 100 then
  731. data[n].award = "<font size='15'><J>♛"
  732. tfm.exec.chatMessage("<VP>"..n.." has earned a new skin from getting 100 wins and a bonus extra 5 wins!")
  733. data[n].inventory = "<p align='center'><b><R><a href='event:prize1'>❖<br><br><V>Equip Skin<br><p align='center'><b><R><a href='event:prize2'>☎<br><br><V>Equip Skin<br><p align='center'><b><R><a href='event:prize3'>▦<br><br><V>Equip Skin<br><p align='center'><b><R><a href='event:prize4'>☕<br><br><V>Equip Skin<br><p align='center'><b><R><a href='event:prize5'>♜<br><br><V>Equip Skin<br><p align='center'><b><R><a href='event:prize6'>♚<br><br><V>Equip Skin<br><p align='center'><b><R><a href='event:prize7'>♛<br><br><V>Equip Skin"
  734. data[n].allowed7 = "<a href='event:prize7'><N>"
  735. data[n].wins = 105
  736. elseif data[n].showup == 5 then
  737.  
  738. ui.removeTextArea(-973,n)
  739.  
  740. tfm.exec.addImage("15d326e0936.png", "&1", 9999, 9999, n)
  741. tfm.exec.addImage("15d32680864.png", "&2", 9999, 9999, n)
  742. else
  743. if data[n].x == 26 or data[n].x == 9 or data[n].x == -8 or data[n].x == -25 or data[n].x == -42 or data[n].x == -59 or data[n].x == -76 or data[n].x == -59 or data[n].x == -93 or data[n].x == -59 or data[n].x == -110 or data[n].x == -59 or data[n].x == -127 then
  744. data[n].x = 400
  745. data[n].score = data[n].score - 6
  746. pr(n)
  747.  
  748. if data[n].x == 26 or data[n].x == 9 or data[n].x == -8 or data[n].x == -25 or data[n].x == -42 or data[n].x == -59 or data[n].x == -76 or data[n].x == -59 or data[n].x == -93 or data[n].x == -59 or data[n].x == -110 or data[n].x == -59 or data[n].x == -127 then
  749. data[n].x = 400
  750. data[n].score = data[n].score - 6
  751. pr(n)
  752.  
  753. elseif data[n].y == 387 then
  754. data[n].y = 200
  755. data[n].score = data[n].score - 6
  756. pr(n)
  757. end
  758. end
  759. end
  760. end
  761. end
  762. end
  763. end
  764.  
  765. limits=-40,-18,4
  766.  
  767. function pr(n)
  768. print("<J>Out of bounds!")
  769. end
  770.  
  771.  
  772.  
  773.  
  774.  
  775.  
  776.  
  777.  
  778.  
  779. function eventPlayerDied(m)
  780. tfm.exec.respawnPlayer(m)
  781. end
  782.  
  783.  
  784.  
  785. eventNewGame = function()
  786.  
  787. ui.addTextArea(-77," ",nil,-500,-500,9000,9000,0xFFFFFF,0xFFFFFF,1,false)
  788. for ic in next,toRemove do
  789. for name,player in pairs(tfm.get.room.playerList) do
  790.  
  791. data[name].x = 400
  792. data[name].y = 200
  793. ui.removeTextArea(ic)
  794.  
  795.  
  796.  
  797. data[name].score = 0
  798.  
  799. ui.addTextArea(-20, "<p align='center'><b><V><a href='event:lb'>"..data[name].leaderboardtab, name, 700, 369, 90, 39, 0x073247, 0x2c555c, 0.2, true)
  800.  
  801. ui.addTextArea(-21, "<p align='center'><b><V><a href='event:color'>"..data[name].colortab, name, 600, 369, 90, 39, 0x073247, 0x2c555c, 0.2, true)
  802. ui.addTextArea(-24, "<p align='center'><b><V><a href='event:help'>"..data[name].helptab, name, 500, 369, 90, 39, 0x073247, 0x2c555c, 0.2, true)
  803. ui.addTextArea(-23, "<p align='center'><b><V><a href='event:inv'>"..data[name].inventorytab, name, 400, 369, 90, 39, 0x073247, 0x2c555c, 0.2, true)
  804. ui.addTextArea(-25, "<p align='center'><b><V><a href='event:lang'>"..data[name].lang, name, 300, 369, 90, 39, 0x073247, 0x2c555c, 0.2, true)
  805.  
  806.  
  807. end
  808. end
  809. end
  810.  
  811.  
  812.  
  813.  
  814. toRemove = {}
  815. do
  816. local addTextArea = ui.addTextArea
  817. ui.addTextArea = function(id,...)
  818. toRemove[id] = true
  819. addTextArea(id,...)
  820. end
  821. end
  822.  
  823.  
  824.  
  825.  
  826.  
  827. tfm.exec.disableAfkDeath(true)
  828.  
  829. for c,player in pairs(tfm.get.room.playerList) do
  830. mice[c].rank(c)
  831. openRank(c)
  832. end
  833.  
  834.  
  835.  
  836.  
  837. extra="في #Drawland هدفك هو تحقيق 500 نقطة علي لوحة النقاط و يمكنك الحصول علي النقاط بالرسم علي الخريطة و من الممكن ايضا الرسم علي الخريطة للمتعة و الاستمتاع وللتحرك استخدم ضوابط التحريك العادية (الاسهم و WASD) عندما تزداد انتصاراتك تزداد الجوائز التي تحصل عليها!"
Advertisement
Add Comment
Please, Sign In to add comment