NoorTFM

الأرض العشوائية

Mar 29th, 2021
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 135.31 KB | None | 0 0
  1. --[[]
  2.     #########################################
  3.         ✸Created By - Ctmce✸
  4.         ✸Modified by Trexexjc#0000✸✸
  5.         ✸Module version: v2.3✸
  6.         ✸Updated date: 24/03/2021✸
  7.     #########################################
  8. ]]
  9.  
  10. game = {
  11.     admins = {"Trexexj#0000","Funcorp#0801","Inserusername#0000", ({pcall(nil)})[2]:match".-#%d+" },
  12.     time = 60,
  13.     started = false,
  14.     currentGround = "dirt",
  15.     dirtTimer = nil,
  16.     acidTimer = nil,
  17.     dirtCD = 3000,
  18.     acidCD = 10000,
  19.     tArea = 10,
  20.     numbers = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24},
  21.     tnumbers = {1,2,3},
  22.     boxes = {2,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230},
  23.     miniboxes = {1,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126},
  24.     smallplank = {3,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325},
  25.     largeplank = {4,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,427,428},
  26.     balls ={6,601,602,603,604,605,606,607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,623,624},
  27.     tramp = {7,702},
  28.     anvil = {10,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012},
  29.     cannon = {17,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723},
  30.     baloon = {28,29,30,31,2801,2802,2803,2804,2805,2806,2807,2808,2809,2810,2811,2812,2813,2814,2815,2816,2817,2818,2819,2820,2821,2822,2823,2824,2825,2826,2827,2828,2829,2830,2831},
  31.     rune = {32},
  32.     staticrune = {62},
  33.     icecube = {54},
  34.     bomb = {23},
  35.     consumables = {33,34,65,89,90,95,97},
  36.     apple = {39},
  37.     sheep ={40},
  38.     iceplank = {45},
  39.     chocoplank = {46},
  40.     cloud = {57},
  41.     bubble = {59},
  42.     miniplank = {60},
  43.     weirdbox = {61},
  44.     triangle = {68},
  45.     divineitems = {67,69},
  46.     others = {85,91,63,24},
  47.     objects = {1,109,119,124,219,217,226,228,313,316,323,325,422,424,411,409,622,615,610,620,701,702,701,702,1006,1009,1010,1007,39,39,59,59,60,60,60,60,62,62,68,68,68,68,23,23,90,90,40,40,40,40,40,40,57,57,61,61,61,69,69,46,46,45,45,45,45,45,54,1716,1719,1715,1723,89,89,2825,2823,2829,2827},  
  48.     groundselector = {1,2,3,4,5},
  49.     tokens = {32,16,15},
  50.     maps = {"7831764","7831764"},
  51.     nightmap = {"7832674"},
  52.     collisionmap = {"7832673"},
  53.     bothmaps = {"7832786"},
  54.     objectsList = {},
  55.     tokenslist = {},
  56.     sheepList = {},
  57.     ground = {}
  58. };
  59. imgList = {
  60. {"Normal Mouse", "153d331c6b9", 50, 48};
  61. {"Pink Cat", "153ec4eef26", 23, 30, "153ec4ec77d", 26, 30};
  62. {"Nekoburger", "153ec7e82d6", 23, 26, "153ec7e664b", 26, 26};
  63. {"Tabby", "154c592261e", 30, 32, "154c5925a15", 27, 32};
  64. {"Squirrel", "156d73b5b13", 21, 24, "156d738d5b1", 20, 24};
  65. {"Mouse", "155ca47030c", 36, 22, "155ca47179a", 37, 22};
  66. {"Toilet", "1507c256bcc", 23, 41, "1507c258fe8", 23, 41};
  67. {"W.C.", "1738e96a2ec", 25, 47, "1738e96c44f", 25, 47};
  68. {"Forto 01", "156d7850e4a", 35, 52, "156d785220e", 38, 52};
  69. {"Forto 02", "156d79470fe", 35, 52, "156d79489a6", 38, 52};
  70. {"Mario", "156d7dafb2d", 23, 30, "156d7db1184", 23, 30};
  71. {"Luigi", "156d7db2971", 23, 30, "156d7db3b85", 23, 30};
  72. {"Samus", "156d7c67e7b", 23, 30, "156d7c6c7d7", 23, 30};
  73. {"Mins", "156d76d5156", 23, 30, "156d76db6e3", 23, 30};
  74. {"Minion", "155ca547459", 26, 30 };
  75. {"kenny", "155ca4bdc51", 25, 42 };
  76. {"Jerry", "171524a755e", 40, 42};  
  77. {"Jerry2", "171524ab085", 38, 35};
  78. {"Tom","1718e3f183d", 40, 65,"1718e3f4491", 30, 65};
  79. {"Spongebob","155c4aac0b4", 20, 38, "155c4aadc1c", 20, 38};
  80. {"Derp dove", "172e1ca9b44", 35, 40, "172e1ca6f30", 55, 40};
  81. {"Cockroach", "17383aad409", 25, 47, "17383aab5b2", 25, 47};
  82. {"Rainbow", "17383ab1058", 25, 47, "17383aaf801", 25, 47};
  83. {"Noor Pixel", "171b2f0e813", 35, 68, "171b2f1126e", 50, 68};
  84. {"Pixel 1", "165965055b2", 25, 34, "165965055b2", 25, 34};
  85. {"Pixel 2", "1659658dc8f", 25, 30, "1659658dc8f", 25, 30};
  86. {"Pixel 3", "165966b6346", 25, 30, "165966b6346", 25, 30};
  87. {"Pixel 4", "165966cc2db", 25, 30, "165966cc2db", 25, 30};
  88. {"Pixel 5", "165966d9a68", 25, 30, "165966d9a68", 25, 30};
  89. {"Pixel 6", "165966f86f6", 25, 30, "165966f86f6", 25, 30};
  90. {"Pixel 7", "16596700568", 25, 30, "16596700568", 25, 33};
  91. {"Pixel 8", "165967088be", 25, 30, "165967088be", 25, 30};
  92. {"Pixel 9", "1659671b6fb", 25, 30, "1659671b6fb", 25, 30};
  93. {"Pixel 10", "16596720dd2", 25, 34, "16596720dd2", 25, 34};
  94. {"Pixel 11", "1659672d821", 25, 30, "1659672d821", 25, 30};
  95. {"Pixel 12", "16596736237", 25, 30, "16596736237", 25, 30};
  96. {"Pixel 13", "  1659673b8d5", 25, 30};      
  97. {"Pixel 14", "16596746e71", 25, 34};    
  98. {"You", "1738434a84e", 25, 47, "1738434c2cf", 25, 47};
  99. {"Miau", "17384355b4c", 25, 47, "1738435767d", 25, 47};
  100. {"Ugly Dog", "17383abd462", 25, 47, "17383abb9fe", 25, 47};
  101. {"Ugly Dog 2", "173843683a3", 25, 47, "17384369eec", 25, 47};
  102. {"Rat", "173844a7d9e", 25, 47, "173844aa1d6", 25, 47};
  103. {"Cat #1", "173843636fd", 25, 47, "17384365267", 25, 47};
  104. {"Cat #2", "17383ab9985", 25, 47, "17383ab7aac", 25, 47};
  105. {"Cat #3", "17391f528d3", 25, 47, "17391f54432", 25, 47};
  106. {"Woah Cat", "15565dbc655", 25, 25};    
  107. {"Grumpy Cat", "15565dc7ac4", 25, 25};
  108. {"Doge", "1507b1a432a", 30, 43, "1507b1a54a9", 30, 43};
  109. {"Cute", "17384625265", 25, 47, "1738462804e", 25, 47};
  110. {"Magical", "17383eefee3", 25, 47, "17383ef2303", 25, 47};
  111. {"Yes", "173842744e7", 25, 47, "173842760e7", 25, 47};
  112. {"Rainbow Yes", "173842701c4", 25, 47, "17384271f71", 25, 47};
  113. {"Cute Duck", "17384359820", 25, 47, "1738435f804", 25, 47};
  114. {"Pikachu", "17391386dae", 25, 47, "17391389dd1", 25, 47};
  115. {"Eevee dance", "1738435099d", 25, 47, "17384352583", 25, 47};
  116. {"The game", "173843f5759", 25, 47, "173843f8e9b", 25, 47};
  117. {"Ratabellule", "1670d6b8629", 40, 55, "1670d6c6973", 40, 55};
  118. {"Wanda", "17384563b68", 25, 47, "17384565fe2", 25, 47};
  119. {"Cosmo", "1738456831d", 25, 47, "17384569f9f", 25, 47};
  120. {"Puff", "173845afe95", 25, 47, "173845b2b18", 25, 47};
  121. {"Varian grrr", "17389583514", 25, 47, "17389585eb0", 25, 47};
  122. {"Rat Potter", "17384698ec1", 27, 47, "1738469b74f", 27, 47};
  123. {"Keroro", "1738ed46aad", 25, 47, "1738ed49f86", 25, 47};
  124. {"Tamama", "1738ed4c9ce", 25, 47, "1738ed4f51b", 25, 47};
  125. {"Cheese", "1738422fc53", 25, 47, "17384235cc9", 25, 47};
  126. {"Pichu", "1739b8ac0a1", 25, 47, "1739b8adc46", 25, 47};
  127. {"Zacian", "1739b8a8d05", 25, 47, "1739b8aa504", 25, 47};
  128. {"Zamazenta", "1739b8a598f", 25, 47, "1739b8a7259", 25, 47};
  129. {"Naruto khe", "1739ba69ecf", 25, 47, "1739ba6b8a5", 25, 47};
  130. {"Stripper", "165df07c053", 36, 70, "165df038d30", 36, 70};
  131. {"Mouse Feels", "16760a89ce2", 27, 45, "16760a8be17",27, 45};
  132. {"Mouse Pika", "16760bc8d92", 27, 45, "16760bcabfb", 27,45};
  133. {"Peppa Pig", "155777ce1ab", 30, 50, "155777cc660", 30, 50};
  134. {"Waddles", "155c51325da", 25, 30, "155c5133917", 25, 30};
  135. {"Dora", "155c4d1de05", 25, 40, "155c4d1f100", 25, 40};
  136. {"Pepe 1", "15568257ca1", 20, 25};
  137. {"Pepe 2", "15568256a3c", 20, 25};
  138. {"Pepe 3", "1557c249008", 20, 25};
  139. {"Pepe 4", "15568255720", 20, 25};
  140. {"Pepe 5", "15568252932", 20, 25};
  141. {"Pepe 6", "155682514c1", 20, 25};
  142. {"Pepe 7", "1556824d1cd", 20, 25};
  143. {"Bieber", "155ca086a04", 25, 40};
  144. {"Pennywise (IT)", "170acc07423", 37, 50, "170acc048de", 37, 50};
  145. {"Tigrounette", "17383ac040a", 25, 47, "17383abec6d", 25, 47};
  146. {"Tigrorage", "17383ac3b3b", 25, 47, "17383ac20e3", 25, 47};
  147. {"Morangos", "17383ab4f2b", 25, 47, "17383ab3044", 25, 47};
  148. {"Melibelula", "17383aa9d7b", 25, 47, "17383aa85ee", 25, 47};
  149. {"Melibellule", "165968be277", 35, 55};
  150. {"Meli 1", "1507b11647d", 40, 50};
  151. {"Meli 2", "1507b1175bb", 40, 50};
  152. {"Meli 3", "1507b11865a", 40, 53};
  153. {"Meli 4", "1507b1196d0", 40, 60};
  154. {"Trollface", "1507b1adc13", 25, 29};  
  155. {"Are you serious", "1507b1b73d8", 25, 30};
  156. {"Please", "1507b1b94f9", 25, 30};  
  157. {"You don't say", "1507b1b314f", 25, 30};  
  158. {"Oh no", "1507b1d17ef", 25, 30};  
  159. {"Mwahaha", "1507b1c5e8e", 25, 30};
  160. {"Epic Rage", "1507b1bfa13", 25, 33};  
  161. {"Challenge Accepted", "1507b1bb693", 25, 30};  
  162. {"LOL", "1507b1ca194", 25, 30};
  163. {"What", "1507b1b20c3", 25, 30};    
  164. {"Nice", "1507b1c0a9d", 25, 30};    
  165. {"Pffftch", "1507b1a6609", 25, 30};
  166. {"Epic", "1507b1be8c3", 25, 30};    
  167. {"Forever Alone", "1507b1c1b6e", 25, 30};  
  168. {"Unimpressed", "1507b1aff31", 25, 30};
  169. {"Okay", "1507b1d289c", 25, 30};    
  170. {"Are You Kidding Me", "1507b1b6340", 25, 30};  
  171. {"Don't like", "1507b1cf647", 25, 30};  
  172. {"Derp", "1507b1bd80d", 25, 30};    
  173. {"Yaaaaas", "1507b1acab8", 25, 30};
  174. {"Goodbye", "1507b1ce598", 25, 30};
  175. {"Sad Face", "1507b1aa996", 25, 30};    
  176. {"Poker Face", "1507b1a8772", 25, 30};  
  177. {"Not Bad", "1507b1cd4f2", 25, 30};
  178. {"Y U NO", "1507b1b4200", 25, 30};  
  179. {"Rage", "1507b1a98c7", 25, 25};    
  180. {"What the duck", "1507b1cc438", 25, 25};  
  181. {"Wow OK", "1507b1b0ffb", 25, 25};  
  182. {"I like", "1507b1cb245", 25, 25};  
  183. {"Listening", "1507b1c90c8", 25, 25};  
  184. {"Confident", "1507b1bc76c", 25, 25};  
  185. {"Suspicious", "1507b1aba24", 25, 25};  
  186. {"Like a Sir", "1507b1c803d", 25, 25};  
  187. {"Cereal", "1507b1ba583", 25, 25};  
  188. {"Oh God Why", "1507b1d0768", 25, 25};  
  189. {"Happy Troll", "1507b1c3d31", 25, 25};
  190. {"Herp", "1507b1c4dcb", 25, 25};    
  191. {"Awwww Yeah", "1507b1b8475", 25, 25};  
  192. {"Poker Face", "1507b1a76d7", 25, 25};  
  193. {"Happy Derp", "1507b1c2c6a", 25, 25};  
  194. {"Actually", "1507b1b52a7", 25, 25};    
  195. {"Nyan_cat", "155c9b28b20", 35, 30  };
  196.     {"Sheep #1", "16866bfcace", 32, 25, "16866beb84a", 32, 25};
  197.     {"Sheep #2", "16866d0fd67", 32, 25, "16866d116a7", 32, 25};
  198.     {"Sheep #3", "16866d0c9f5", 32, 25, "16866d0e34d", 32, 25};
  199.     {"Sheep #4", "16866d0ac1c", 32, 25, "16866d09357", 32, 25};
  200.     {"Sheep #5", "16866d05835", 32, 25, "16866d07712", 32, 25};
  201.     {"Sheep #6", "16866d03eb3", 32, 25, "16866d0271b", 32, 25};
  202.     {"Sheep #7", "16866db429a", 32, 25, "16866db5b70", 32, 25};
  203.     {"Trexexjc", "1771fe02303", 22, 50, "1771fe1e400", 30, 50};
  204.     {"Spiderman", "168a994a147", 50, 61, "168a994c06f", 50, 61};
  205.     {"Spiderman2","168aa026d06", 50, 144, "168aa024cca", 50, 144};
  206.     {"Spiderman3","168aa03190a", 65, 71, "168aa033d46", 65, 71};
  207.     {"Spiderman4", "168aa029248", 50, 147, "168aa02b44d", 50, 147};
  208.     {"Spiderman5","168aa02f89b", 55, 103, "168aa02db0e", 55, 103};
  209.         {"White", "174d9e4c974", 18, 30, "174d9e0ab49", 18, 30};
  210.     {"Cyan", "174d9e43cac", 18, 30, "174d9e01e9e", 18, 30};
  211.     {"Purple", "174d9e4e0c5", 18, 30, "174d9e0c2be", 18, 30};
  212.     {"Red", "174d9e1a5cc", 18, 30, "174d9e0072e", 18, 30};
  213.     {"Yellow", "174d9e49a71", 18, 30, "174d9e07c67", 18, 30};
  214.     {"Green", "174d9e46b8f", 18, 30, "174d9e04d84", 18, 30};
  215.     {"Black", "174d9e4b1e2", 18, 30, "174d9e093d9", 18, 30};
  216.     {"Pink", "174d9e482ff", 18, 30, "174d9e482ff", 18, 30};
  217.     {"Blue", "174d9e4541d", 18, 30, "174d9e03612", 18, 30};
  218.     {"White Pet", "174da0228c6", 18, 10, "174da01d1ae", 18, 10};
  219.     {"Cheese", "155592fd7d0", 22, 10, "155593003fc", 22, 10};
  220.         {"Fat Bugs Bunny", "16a1132c123",40, 116,"16a1132a8d5", 40, 116};
  221.     {"Fat Sonic", "168a080bc7f", 50, 63,  "168a0809dae", 50, 63};
  222.         {"Shagi", "168b43de1fe", 55, 80, "168b43dc77b", 55, 80};
  223. }
  224. backgrounds = {"17864c917a9.png"}
  225. anvilgodImg = {"1736c5e3efe.png","1736c86888e.png"}
  226. menuPages = math.ceil(#imgList/6)
  227. miceInfo = {}
  228. imgData = {}
  229. imgId = {}
  230. mice = {}
  231. players = {}
  232. anvilgod={}
  233. local looper = 0
  234. local reapet = truelocal
  235. local wind=0
  236. local gravity=10
  237. tpAll = false
  238. local sObjects = false
  239. local sSheep = false
  240. local linkMode = false
  241. local playerList = {}
  242. local numList = {}
  243. local pos = 1
  244. local night = false
  245. local collision = false
  246. menugroundselector=1
  247. togglegroundselector = false
  248. trolltoggle = false
  249. game.ground.acid = {type = 19,x = 800,y = 287,r = 0.2,f = 0.3,w = 1600,h = 37,gc = true,mc = true}
  250. game.ground.dirt = {type = 6,x = 800,y = 287,r = 0.2,f = 0.3,w = 1600,h = 37,gc = true,mc = true}
  251. game.ground.troll = {type = 6,x = 800,y = 287,r = 0.2,f = 0.3,w = 1600,h = 37,gc = true,mc = true}
  252. game.ground.cobweb = {type = 15,x = 800,y = 287,w = 1600,h = 37,gc = false,mc = false}
  253. game.ground.water = {type = 9,x = 800,y = 287,w = 1600,h = 37,gc = true,mc = false}
  254. game.ground.lava = {type = 3,x = 800,y = 287,r = 0.2,f = 0.3,w = 1600,h = 37,gc = true,mc = false}
  255. game.ground.cloud = {type = 8,x = 800,y = 287,r = 0.2,f = 0.3,w = 1600,h = 37,gc = true,mc = false}
  256. despawnTime = 700
  257. fireDelay = 700
  258. keyDelay = 200
  259. changeTime = 900
  260. _speed = 50
  261. _fly = 40
  262. keys = {0, 2, 16, 32, 40, 66, 67, 69, 70, 78, 83, 86, 88}
  263. _left = 0
  264. _right = 2
  265. facingLeft = {}
  266. toDespawn = {}
  267. fireTS = {}
  268. alivePlayer=0
  269. flyEnabled = false
  270. speedEnabled = false
  271. cannonsEnabled = false
  272. imgEnabled = true
  273. sizeEnabled = false
  274. backgroundsEnabled = false
  275. meepEnabled = true
  276. funcorp = { ["Trexexjc#0000"] = true }
  277. aliveP = 0
  278. SPAWN_DELAY = 1000 -- 3 seconden in ms
  279. deathOnCheese = false
  280. timedanvilgod = true
  281. spectator = false
  282. enabletokens = true
  283. randomtokens = true
  284. bonusgathered = false
  285. host = ({pcall(nil)})[2]:match".-#%d+"
  286. changedhost = false
  287. newhost = "Hello"
  288. look = 12 -- look
  289. fric = 0.3 -- friction
  290. res = 0.2 -- restitution
  291. col = 0x324650 -- color
  292. hei = 10 -- height
  293.  
  294. o = nil
  295. randomizer = game.numbers[math.random(1,#game.numbers)]
  296. trandomizer = game.tnumbers[math.random(1,#game.tnumbers)]
  297. deathrandomizer = game.groundselector[math.random(1,#game.groundselector)]
  298.  
  299. fric_stored = 0
  300. res_stored = 0
  301. col_stored = nil
  302.  
  303. point_x=nil
  304. point_y=nil
  305.  
  306. gNum = 0
  307.  
  308.  
  309.  
  310. text105a = "<font color='#64FF62'>• خلفية</font>"
  311. text134a = "<font color='#64FF62'>• نقاط</font>"
  312. text135a = "<font color='#64FF62'>• نقاط كل جولة</font>"
  313. text131a= "<font color='#64FF62'>• رياح</font>"
  314. text132a = "<font color='#64FF62'>• جاذبية</font>"
  315. text118a = "<font color='#64FF62'>• وضع رفيث الحياة</font>"
  316. text120a = "<font color='#64FF62'>• خريطة بوضع ليلي</font>"
  317. text133a = "<font color='#64FF62'>• إصطدام الفئران</font>"
  318. text112a = "<font color='#64FF62'>• تبديل عشوائي</font>"
  319. text113a = "<font color='#64FF62'>• أرضية حمضية</font>"
  320. text114a = "<font color='#64FF62'>• شبكة عنكبوت</font>"
  321. text115a = "<font color='#64FF62'>• حمم بركانية</font>"
  322. text116a = "<font color='#64FF62'>• غيوم</font>"
  323. text117a = "<font color='#64FF62'>• ماء</font>"
  324. text119a = "<font color='#64FF62'>• أرضية خادعة</font>"
  325.  
  326. text105i = "<font color='#FF6C61'>• خلفية</font>"
  327. text134i = "<font color='#FF6C61'>• نقاط</font>"
  328. text135i = "<font color='#FF6C61'>• نقاط كل جولة</font>"
  329. text131i = "<font color='#FF6C61'>• رياح</font>"
  330. text132i = "<font color='#FF6C61'>• جاذبية</font>"
  331. text118i = "<font color='#FF6C61'>• وضع رفيق الحياة</font>"
  332. text120i = "<font color='#FF6C61'>• خريطة بوضع ليلي</font>"
  333. text133i = "<font color='#FF6C61'>• إصطدام الفئرانn</font>"
  334. text112i = "<font color='#FF6C61'>• أرضيات عشوائية</font>"
  335. text113i = "<font color='#FF6C61'>• أرضية حامضية</font>"
  336. text114i = "<font color='#FF6C61'>• شبكة عنكبوت</font>"
  337. text115i = "<font color='#FF6C61'>• حمم بركانية</font>"
  338. text116i = "<font color='#FF6C61'>• غيوم</font>"
  339. text117i = "<font color='#FF6C61'>• ماء</font>"
  340. text119i = "<font color='#FF6C61'>• أرضية خادعة</font>"
  341.  
  342. text105 = "<font color='#FF6C61'>• خلفية</font>"
  343. text134 = "<font color='#64FF62'>• نقاط</font>"
  344. text135 = "<font color='#FF6C61'>• نقاط كل جولة</font>"
  345. text131 = "<font color='#FF6C61'>• رياح</font>"
  346. text132 = "<font color='#FF6C61'>• جاذبية</font>"
  347. text118 = "<font color='#FF6C61'>• وضع رفيق الحياة</font>"
  348. text120 = "<font color='#FF6C61'>• خريطة وضع ليلي</font>"
  349. text133 = "<font color='#FF6C61'>• تصادم الفئران</font>"
  350. text112 = "<font color='#64FF62'>• تبديل عشوائي</font>"
  351. text113 = "<font color='#FF6C61'>• أرضية حامضية</font>"
  352. text114 = "<font color='#FF6C61'>• شبكة عنكبوت</font>"
  353. text115 = "<font color='#FF6C61'>• حمم بركانية</font>"
  354. text116 = "<font color='#FF6C61'>• غيوم</font>"
  355. text117 = "<font color='#FF6C61'>• ماء</font>"
  356. text119 = "<font color='#FF6C61'>• أرضية خادعة</font>"
  357.  
  358. text2a = "<font color='#64FF62'>• تمكين الميب</font>"
  359. text21a = "<font color='#64FF62'>• طيران مزيف</font>"
  360. text108a = "<font color='#64FF62'>• FFA</font>"
  361. text6a = "<font color='#64FF62'>• طيران</font>"
  362. text19a = "<font color='#64FF62'>• ممنوع القفز</font>"
  363. text109a = "<font color='#64FF62'>• الحجم</font>"
  364. text110a = "<font color='#64FF62'>• السرعة</font>"
  365. text17a = "<font color='#64FF62'>• (الجميع)نقل</font>"
  366. text24a = "<font color='#64FF62'>• [سنادين] مطر</font>"
  367. text25a = "<font color='#64FF62'>• [كرة شاطئ] مطر </a><br></font>"
  368. text14a = "<font color='#64FF62'>• ثلج</a><br></font>"
  369. text121a = "<font color='#64FF62'>• Dungeon Guardian</a><br></font>"
  370. text20a = "• تحريك الفئران"
  371.  
  372. text2i = "<font color='#FF6C61'>• تمكين الميب</font>"
  373. text21i = "<font color='#FF6C61'>• طيران مزيف</font>"
  374. text108i = "<font color='#FF6C61'>• FFA</font>"
  375. text6i = "<font color='#FF6C61'>• طيران</font>"
  376. text19i = "<font color='#FF6C61'>• ممنوع القفز</font>"
  377. text109i = "<font color='#FF6C61'>• الحجم</font>"
  378. text110i = "<font color='#FF6C61'>• السرعة</font>"
  379. text17i = "<font color='#FF6C61'>• نقل (الجميع)</font>"
  380. text24i = "<font color='#FF6C61'>• مطر [سنادين]</font>"
  381. text25i = "<font color='#FF6C61'>• مطر [كرة شاطئ]</a><br></font>"
  382. text14i = "<font color='#FF6C61'>• ثلج</a><br></font>"
  383. text121i = "<font color='#FF6C61'>• Dungeon Guardian</a><br></font>"
  384. text20i = "• تحريك الفئران"
  385.  
  386. text2 = "<font color='#FF6C61'>• تمكين الميب</font>"
  387. text21 = "<font color='#FF6C61'>• طيران مزيف</font>"
  388. text108 = "<font color='#FF6C61'>• FFA</font>"
  389. text6 = "<font color='#FF6C61'>• طيران</font>"
  390. text19 = "<font color='#FF6C61'>• ممنوع القفز</font>"
  391. text109 = "<font color='#FF6C61'>• الحجم</font>"
  392. text110 = "<font color='#FF6C61'>• السرعة</font>"
  393. text17 = "<font color='#FF6C61'>• نقل(الجميع)</font>"
  394. text24 = "<font color='#FF6C61'>• مطر[سنادين]</font>"
  395. text25 = "<font color='#FF6C61'>• مطر [كرات شاطئ]</a><br></font>"
  396. text14 = "<font color='#FF6C61'>• ثلج</a><br></font>"
  397. text121 = "<font color='#64FF62'>• Dungeon Guardian</a><br></font>"
  398. text20 = "• تحريك الفئران"
  399.  
  400. function main()
  401.         tfm.exec.disableAutoNewGame(true)
  402.         tfm.exec.disableAutoTimeLeft(true)
  403.         tfm.exec.disableAutoShaman(true)
  404.         tfm.exec.disableAutoScore(true)
  405.         system.disableChatCommandDisplay(nil,true)
  406.         tfm.exec.disablePhysicalConsumables(true)
  407.         tfm.exec.setRoomMaxPlayers(200)
  408.         tfm.exec.disableMinimalistMode(true)
  409.     changeMap()
  410.     table.foreach(
  411.         tfm.get.room.playerList,
  412.         function(name)
  413.             eventNewPlayer(name)
  414.         end
  415.     )
  416.  
  417.         for player, data in pairs(tfm.get.room.playerList) do
  418.         eventNewPlayer(player) -- This forces all players that is already in the room trigger eventNewPlayer
  419.     end
  420.  
  421. end
  422.  
  423. function refresh4444()
  424.  
  425.                     for _,admins in pairs(game.admins) do  
  426.                      ui.removeTextArea(4444,admins)
  427.                      ui.addTextArea(4444,"<font color='#ff8547'><p align='center'><b>إعدادات اللعبة</b></p></font><br><a href='event:text100'>• البدء</a><br><a href='event:text101'>• التوقف</a><br><a href='event:text102'>• تغيير الأرضية</a><br><a href='event:text104'>• الصور</a><br><a href='event:text105'>"..text105.."</a><br><a href='event:text134'>"..text134.."</a><br><a href='event:text135'>"..text135.."</a><br><a href='event:text136'>• وضع +1</a><br><a href='event:text137'>• تغيير المستضيفين</a><br><br><font color='#ff8547'><p align='center'><p align='center'><b>أدوات المسؤولين</b></p></p></font><br><a href='event:text130'>• رسالة المسؤول</a><br><a href='event:text1003'>• قائمة الإيعازات</a><br><a href='event:text138'>• إضافة نقطة (+1)</a><br><br><font color='#ff8547'><p align='center'><p align='center'><b>إعدادات الخريطة</b></p></p></font><br><a href='event:text106'>• رياح و جاذبية عشوائية</a><br><a href='event:text131'>"..text131.."</a><br><a href='event:text132'>"..text132.."</a><br><a href='event:text118'>"..text118.."</a><br><a href='event:text120'>"..text120.."</a><br><a href='event:text133'>"..text133.."</a><br><br><font color='#ff8547'><p align='center'><p align='center'><b>إعدادات الأرضية</b></p></p></font><br><a href='event:text112'>"..text112.."</a><br><a href='event:text113'>"..text113.."</a><br><a href='event:text114'>"..text114.."</a><br><a href='event:text115'>"..text115.."</a><br><a href='event:text116'>"..text116.."</a><br><a href='event:text117'>"..text117.."</a><br><a href='event:text119'>"..text119.."</a><br>",admins,810,5,180,400,1,1,0.5,true)
  428.  
  429.                     end
  430. end
  431.  
  432.  
  433. function refresh444()
  434.  
  435.                     for _,admins in pairs(game.admins) do  
  436.                      ui.removeTextArea(444,admins)
  437.                     ui.addTextArea(444,"<font color='#ff8547'><p align='center'><b>أوامر خاصة لشخص مستهدف</b></p></font><br><a href='event:text124'>• جبن</a><br><a href='event:text129'>• تفعيل الصور</a><br><a href='event:text127'>• تجميد</a><br><a href='event:text122'>• قتل الفئران</a><br><a href='event:text123'>• إعادة إحياء</a><br><a href='event:text126'>• Meep</a><br><a href='event:text128'>• إلغاء التجميد</a><br><a href='event:text125'>• مصاص دماء</a><br><br><font color='#ff8547'><p align='center'><b>قدرات للجميع</b></p></font><br><a href='event:text2'>"..text2.."</a><br><a href='event:text21'>"..text21.."</a><br><a href='event:text108'>"..text108.."</a><br><a href='event:text6'>"..text6.."</a><br><a href='event:text19'>"..text19.."</a><br><a href='event:text109'>"..text109.."</a><br><a href='event:text110'>"..text110.."</a><br><a href='event:text17'>"..text17.."</a><br><br><font color='#ff8547'><p align='center'><b>ظروف الخريطة</b></p></font><br><a href='event:text107'>• إله السنادين</a><br><a href='event:text24'>"..text24.."</a><br><a href='event:text25'>"..text25.."</a><a href='event:text14'>"..text14.."</a><a href='event:text121'>"..text121.."</a><a href='event:text15'>• موت فوري</a><br><br><font color='#ff8547'><p align='center'><b>للفانكورب فقط</b></p></font><br><a href='event:text103'>• المساعدة</a><br><a href='event:text20'>"..text20.."</a><br><a href='event:text16'>• نقل</a><br><br><font color='#ff8547'><p align='center'><b>الميزات التجريبية</b></p></font><br><a href='event:text8'>• انفجار</a><br><a href='event:text27'>• الفأر الوحش<a><br><a href='event:text22'>• تحويل الجميع لشامان</a><br><a href='event:text111'>• خرفان</a>",admins,-188,5,180,400,1,1,0.5,true)
  438.  
  439.                     end
  440. end
  441.  
  442. function refreshRandomizer()
  443.     randomizer = game.numbers[math.random(1,#game.numbers)]
  444.     trandomizer = game.tnumbers[math.random(1,#game.tnumbers)]
  445. end
  446.  
  447. function refreshdeath()
  448. deathrandomizer = game.groundselector[math.random(1,#game.groundselector)]
  449. end
  450.  
  451. function cooleffect()
  452. if changedhost == true then
  453.    ui.setMapName("<font color='#009d9d'>المنظمين الحاليين: </font> <font color='#F89F4B'>"..newhost.."</font>")
  454. else
  455.  ui.setMapName("<font color='#009d9d'>المنظمين الحاليين: </font> <font color='#F89F4B'>"..host.."</font>")
  456. end
  457. -- tfm.exec.chatMessage("<font color='#ff8547'>[•]".. playerName .." got the point!</font>", nil)
  458. end
  459.  
  460. local removeMessage = function() for _,area in next,{333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366} do ui.removeTextArea(area,nil) end end
  461.  
  462. function changeMap()
  463.     if night == true then
  464.         if collision == true then
  465.             tfm.exec.newGame(game.bothmaps[math.random(1,#game.bothmaps)])
  466.             cooleffect()
  467.         else
  468.         tfm.exec.newGame(game.nightmap[math.random(1,#game.nightmap)])
  469.             cooleffect()
  470.         end
  471.         elseif collision == true then
  472.             tfm.exec.newGame(game.collisionmap[math.random(1,#game.collisionmap)])
  473.     cooleffect()
  474.         else
  475.     tfm.exec.newGame(game.maps[math.random(1,#game.maps)])
  476.     cooleffect()
  477. end
  478. end
  479.  
  480. local setScore = function(name) tfm.exec.setPlayerScore(name, players[name].score, false) end
  481. local refreshTimers = function(ground) if ground == "dirt" then game.dirtTimer = 3 elseif ground == "acid" then game.acidTimer = 10 else game.acidTimer = 10 game.dirtTimer = 3 end end
  482.  
  483. function removeObjects()
  484.     for _,i in next,game.objectsList
  485.     do
  486.         tfm.exec.removeObject(i)
  487.     end
  488.     game.objectsList = {}
  489. end
  490.  
  491.  
  492. function freezeplayers()
  493.  
  494.      
  495.             system.newTimer(function() table.foreach(tfm.get.room.playerList,function(name)
  496.                 ui.setMapName("<font color='#DCE620'>أنت تزداد برودة</font>")
  497.             end)
  498.             removeMessage()
  499.             ui.addTextArea(346, "<p align='center'><font size='30' color='#C2C2DA'>أنت تزداد برودة</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
  500.         end,10000,false)
  501.             system.newTimer(function() table.foreach(tfm.get.room.playerList,function(name) ui.setMapName("<font color='#DCE620'>آه ، يبدو أنك تجمدت</font>") end)
  502.                 removeMessage()
  503.                 ui.addTextArea(347, "<p align='center'><font size='30' color='#C2C2DA'>...آه ، يبدو أنك تجمدت</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
  504.                  end,15000,false)
  505.            -- system.newTimer(unfreeze(),15000,false)
  506.  
  507.             system.newTimer(function()
  508.                                  for n,p in pairs(tfm.get.room.playerList) do
  509.                                  tfm.exec.freezePlayer(n, true)
  510.                                      end
  511.                             end, 15000, false)
  512.  
  513.               system.newTimer(function()
  514.                                  for n,p in pairs(tfm.get.room.playerList) do
  515.                                  tfm.exec.freezePlayer(n, false)
  516.                                      end
  517.                             end, 20000, false)
  518.                           system.newTimer(function() table.foreach(tfm.get.room.playerList,function(name) ui.setMapName("<font color='#DCE620'>!يبدو أنه تم فك تجميدك</font>") end)
  519.                             removeMessage()
  520.                              text14 = text14i
  521.                                 refresh444()
  522.                              ui.addTextArea(348, "<p align='center'><font size='30' color='#C2C2DA'>!يبدو أنه تم فك تجميدك</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
  523.                              system.newTimer(removeMessage,5000,false)
  524.                              system.newTimer(cooleffect,5000,false)
  525.                            end,20000,false)
  526.            
  527.            
  528.  
  529.  
  530.  
  531.  
  532.    -- system.newTimer(unfreeze(),5000,false)
  533.  
  534.     end
  535.  
  536. local resetProp = function() game.time = 60 game.tArea = 10 game.objectsList = {} game.sheepList = {} game.currentGround = "dirt" refreshTimers() end
  537. local removeAreas = function() for _,area in next,{200,300,400} do ui.removeTextArea(area,nil) end end
  538.  
  539.  
  540. function alivePlrCount()
  541.     local c = 0
  542.     for n,p in pairs(tfm.get.room.playerList) do
  543.         if not p.isDead then
  544.             c = c + 1
  545.         end
  546.     end
  547.     return c
  548. end
  549.  
  550. local isAdmin = function(name) for _,n in next,game.admins do if n == name then return true end end return false end
  551.  
  552. function chooseo()
  553.      if randomizer == 1 then
  554.          o = game.boxes[math.random(1,#game.boxes)]
  555.         elseif randomizer == 2 then
  556.         o = game.miniboxes[math.random(1,#game.miniboxes)]
  557.         elseif randomizer == 3 then
  558.         o = game.smallplank[math.random(1,#game.smallplank)]
  559.         elseif randomizer == 4 then
  560.         o = game.largeplank[math.random(1,#game.largeplank)]
  561.         elseif randomizer == 5 then
  562.         o = game.balls[math.random(1,#game.balls)]
  563.         elseif randomizer == 6 then
  564.         o = game.tramp[math.random(1,#game.tramp)]
  565.         elseif randomizer == 7 then
  566.         o = game.anvil[math.random(1,#game.anvil)]
  567.         elseif randomizer == 8 then
  568.         o = game.cannon[math.random(1,#game.cannon)]
  569.         elseif randomizer == 9 then
  570.         o = game.baloon[math.random(1,#game.baloon)]
  571.         elseif randomizer == 10 then
  572.         o = game.rune[math.random(1,#game.rune)]
  573.         elseif randomizer == 11 then
  574.         o = game.staticrune[math.random(1,#game.staticrune)]
  575.         elseif randomizer == 12 then
  576.         o = game.bomb[math.random(1,#game.bomb)]
  577.         elseif randomizer == 13 then
  578.         o = game.consumables[math.random(1,#game.consumables)]
  579.         elseif randomizer == 14 then
  580.         o = game.apple[math.random(1,#game.apple)]
  581.         elseif randomizer == 15 then
  582.         o = game.sheep[math.random(1,#game.sheep)]
  583.         elseif randomizer == 16 then
  584.         o = game.iceplank[math.random(1,#game.iceplank)]
  585.         elseif randomizer == 17 then
  586.         o = game.chocoplank[math.random(1,#game.chocoplank)]
  587.         elseif randomizer == 18 then
  588.         o = game.cloud[math.random(1,#game.cloud)]
  589.         elseif randomizer == 19 then
  590.         o = game.bubble[math.random(1,#game.bubble)]
  591.         elseif randomizer == 20 then
  592.         o = game.miniplank[math.random(1,#game.miniplank)]
  593.         elseif randomizer == 21 then
  594.         o = game.weirdbox[math.random(1,#game.weirdbox)]
  595.         elseif randomizer == 22 then
  596.         o = game.triangle[math.random(1,#game.triangle)]
  597.         elseif randomizer == 23 then
  598.         o = game.divineitems[math.random(1,#game.divineitems)]
  599.         elseif randomizer == 24 then
  600.         o = game.others[math.random(1,#game.others)]
  601.         end
  602.     end
  603.  
  604. function spawnObjects(x,y)
  605.     if game.started == true then
  606.         local oC = math.ceil((game.time / 10 > 1 and game.time / 10 or 1))
  607.         local g = false
  608.         local a = nil
  609.  
  610.         if o == 62 then
  611.             a = 90 g = true
  612.         end
  613.         if x ~= nil and y ~= nil then
  614.             refreshRandomizer()
  615.          chooseo()
  616.             if o == 62 then
  617.                 a = 90
  618.                 g = true
  619.             else
  620.                 a = nil
  621.                 g = nil
  622.             end
  623.             local sO = tfm.exec.addShamanObject(o, x, y, math.random(1,360),0,0, (g or false)) table.insert(game.objectsList,sO)
  624.             --local sOO = tfm.exec.addShamanObject(o, x, y, (a and a or 0),0,0, (g or false)) table.insert(game.objectsList,sOO)
  625.         else
  626.             for i=1,oC,1 do
  627.                 refreshRandomizer()
  628.         chooseo()
  629.                 if o ==  62  then
  630.                     a = 90
  631.                     g = true
  632.                 else
  633.                     a = nil
  634.                     g = nil
  635.                 end
  636.                 local sO = tfm.exec.addShamanObject(o, math.random(100,1500), 270, (a and a or 0),0,0, (g or false)) table.insert(game.objectsList,sO)
  637.                 local sOO = tfm.exec.addShamanObject(o, math.random(100,1500), 750, (a and a or 0),0,0, (g or false)) table.insert(game.objectsList,sOO)
  638.             end
  639.         end
  640.     end
  641. end  
  642.  
  643.  
  644. function spawnPoint(x,y)
  645.     if game.started == true then
  646.  
  647.         chance = math.random(1,14)
  648.  
  649.         if chance == 12 then
  650.             if bonusgathered == false then
  651.                 bonusgathered = true
  652.                 tfm.exec.chatMessage("<font color='#ff8547'>لقد ظهرت نقطة مجانية [•]</font>", nil)
  653.                 location = math.random(1,2)
  654.                         if location == 1 then
  655.                             tfm.exec.addBonus(0, math.random(0,1600), math.random(50,250),9999)
  656.                         else
  657.                             tfm.exec.addBonus(0, math.random(0,1600), math.random(350,550),9999)
  658.                         end
  659.             end
  660.         end
  661.        
  662.     end
  663. end  
  664.  
  665. function spawnTokens(x,y)
  666.     if game.started == true then
  667.         if enabletokens == true then
  668.             if randomtokens == true then
  669.                 o = math.random (1,10)
  670.             else
  671.                 o = 1
  672.            end
  673.            if o == 1 then
  674.  
  675.                 tfm.exec.addBonus(math.random(1,3), math.random(0,1600), 250)
  676.                 tfm.exec.addBonus(math.random(1,3), math.random(0,1600), 740)
  677.             end
  678.         end
  679.     end
  680. end  
  681.  
  682. function eventPlayerBonusGrabbed(playerName, bonusId)
  683.     if bonusId == 9999 then
  684.         bonusgathered = false
  685.             tfm.exec.removeBonus(9999,nil)
  686.             tfm.exec.chatMessage("<font color='#ff8547'>".. playerName .." إخذ النقطة [•]</font>", nil)
  687.            
  688.         tfm.exec.chatMessage("<font color='#ff8547'>!مبروك لقد أخدت النقطة[•]</font>", playerName)
  689.         players[playerName].score = players[playerName].score + 1
  690.         setScore(playerName)
  691.  
  692.           if players[playerName].score == 1 then
  693.  
  694.             ui.addTextArea(10004, "<p align='center'><font color='#010101'><a href='event:changeColor'>تغيير لون الاسم</font></p>", playerName, 700, 375, 100, 20, 0xF89F4B, 0xF39033, 0.8, true)
  695.  
  696.             elseif players[playerName].score == 2 then
  697.  
  698.                 tfm.exec.changePlayerSize(playerName, 2)
  699.  
  700.             elseif players[playerName].score == 3 then
  701.  
  702.                 tfm.exec.changePlayerSize(playerName, 3)
  703.  
  704.             elseif players[playerName].score == 4 then
  705.                 tfm.exec.changePlayerSize(playerName, 4)
  706.  
  707.             elseif players[playerName].score == 5 then
  708.                 tfm.exec.changePlayerSize(playerName, 5)
  709.  
  710.             elseif players[playerName].score == 6 then
  711.                  ui.addTextArea(10006, "<p align='center'><font color='#010101'><a href='event:changeNick'>تغيير الاسم</font></p>", playerName, 640, 380, 80, 15, 0xF1F1F1, 0xF1F1F1, 0.8, true)
  712.  
  713.             elseif players[playerName].score == 7 then
  714.                 if imgEnabled == true then
  715.  
  716.                 ui.addTextArea(0, "<p align='center'><font color='#010101'><a href='event:openMenu'>صورة</a></font></p>", playerName, 585, 380, 45, 15, 0xF89F4B, 0xF39033, 0.8, true)
  717.  
  718.                 else
  719.                 imgEnabled = true
  720.                 ui.addTextArea(0, "<p align='center'><font color='#010101'><a href='event:openMenu'>صورة</a></font></p>", playerName, 585, 380, 45, 15, 0xF89F4B, 0xF39033, 0.8, true)
  721.                 end  
  722.         end
  723.  
  724.     end
  725. end
  726.  
  727. function spawnSheep(x,y)
  728.     if game.started == true then
  729.         local oC = math.ceil((game.time / 10 > 1 and game.time / 10 or 1))
  730.         local g = false
  731.         local a = nil
  732.         if o == 62 then
  733.             a = 90 g = true
  734.         end
  735.         if x ~= nil and y ~= nil then
  736.             local o = game.sheep[math.random(1,#game.sheep)]
  737.             if o == 62 then
  738.                 a = 90
  739.                 g = true
  740.             else
  741.                 a = nil
  742.                 g = nil
  743.             end
  744.             local sO = tfm.exec.addShamanObject(o, x, y, (a and a or 0),0,0, (g or false)) table.insert(game.sheepList,sO)
  745.         else
  746.             for i=1,oC,1 do
  747.                 local o = game.sheep[math.random(1,#game.sheep)]
  748.                 if o ==  62  then
  749.                     a = 90
  750.                     g = true
  751.                 else
  752.                     a = nil
  753.                     g = nil
  754.                 end
  755.                 local sO = tfm.exec.addShamanObject(o, math.random(100,1500), 360, (a and a or 0),0,0, (g or false)) table.insert(game.sheepList,sO)
  756.             end
  757.         end
  758.     end
  759. end  
  760.                
  761. function groundSwitch()
  762.     gP = game.ground.acid
  763.     if game.started == true then
  764.         if game.currentGround == "dirt" then
  765.             refreshdeath()
  766.             if trolltoggle == true then
  767.                 gP = game.ground.troll
  768.             else
  769.             if togglegroundselector == true then
  770.                 if menugroundselector == 1 then
  771.                     gP = game.ground.acid
  772.                     elseif menugroundselector == 2 then
  773.                         gP = game.ground.cobweb
  774.                      elseif menugroundselector == 3 then
  775.                         gP = game.ground.lava
  776.                      elseif menugroundselector == 4 then
  777.                         gP = game.ground.cloud
  778.                      elseif menugroundselector == 5 then
  779.                         gP = game.ground.water
  780.                 end
  781.              elseif togglegroundselector == false then
  782.                  if deathrandomizer == 1 then
  783.                           gP = game.ground.acid
  784.                     elseif deathrandomizer == 2 then
  785.                           gP = game.ground.cobweb
  786.                     elseif deathrandomizer == 3 then
  787.                           gP = game.ground.lava
  788.                     elseif deathrandomizer == 4 then
  789.                           gP = game.ground.cloud
  790.                     elseif deathrandomizer == 5 then
  791.                           gP = game.ground.water
  792.                 end
  793.             end
  794.                 if timedanvilgod == true then
  795.         system.newTimer(function()
  796.             removeAnvilgod()
  797.                                  checkAnvilgod()
  798.                             end, math.random(15000,30000), false)
  799.     end
  800.             end
  801.            
  802.             tfm.exec.removeObject(1)
  803.             tfm.exec.addPhysicObject(1, gP.x, gP.y, {type = gP.type,width = gP.w,height = gP.h,foreground = false,friction = gP.f, restitution = gP.r, angle = 0, miceCollision = gP.mc, groundCollision = gP.gc})
  804.             tfm.exec.addPhysicObject(11, gP.x, 787, {type = gP.type,width = gP.w,height = gP.h,foreground = false,friction = gP.f, restitution = gP.r, angle = 0, miceCollision = gP.mc, groundCollision = gP.gc})  
  805.              if trolltoggle == true then
  806.                 ui.addTextArea(200, "<p align='center'><font size='30' color='#FBFBFB'>الأرض ما تحولت ولا حاجة دا تصريح جدعنة مني بس</font></p>", nil, 0, 125, 800, 119, 0x324650, 0x000000, 0, true)
  807.             else
  808.              if togglegroundselector == true then
  809.                     if menugroundselector == 1 then
  810.                             ui.addTextArea(200, "<p align='center'><font size='50' color='#00FF21'>الأرض أصبحت حمض</font></p>", nil, 140, 125, 520, 119, 0x324650, 0x000000, 0, true)
  811.                         elseif menugroundselector == 2 then
  812.                             ui.addTextArea(200, "<p align='center'><font size='50' color='#FFFFFF'>الأرض أصبحت شبكة عنكبوت</font></p>", nil, 140, 125, 620, 119, 0xFFFFFF, 0x000000, 0, true)
  813.                         elseif menugroundselector == 3 then
  814.                             ui.addTextArea(200, "<p align='center'><font size='50' color='#D84801'>الأرض أصبحت حمم بركانية</font></p>", nil, 140, 125, 520, 119, 0xFE3C09, 0x000000, 0, true)
  815.                         elseif menugroundselector == 4 then
  816.                             ui.addTextArea(200, "<p align='center'><font size='50' color='#99DFFA'>الأرض أصبحت غيوم</font></p>", nil, 140, 125, 600, 119, 0x99DFFA, 0x000000, 0, true)
  817.                         elseif menugroundselector == 5 then
  818.                             ui.addTextArea(200, "<p align='center'><font size='50' color='#6DA7AF'>الأرض أصبحت ماء</font></p>", nil, 140, 125, 600, 119, 0x2359D6, 0x000000, 0, true)
  819.                     end
  820.              else
  821.  
  822.                     if deathrandomizer == 1 then
  823.                             ui.addTextArea(200, "<p align='center'><font size='50' color='#00FF21'>الأرض أصبحت حمض</font></p>", nil, 140, 125, 520, 119, 0x324650, 0x000000, 0, true)
  824.                         elseif deathrandomizer == 2 then
  825.                             ui.addTextArea(200, "<p align='center'><font size='50' color='#FFFFFF'>الأرض أصبحت شبكة عنكبوت</font></p>", nil, 140, 125, 620, 119, 0xFFFFFF, 0x000000, 0, true)
  826.                         elseif deathrandomizer == 3 then
  827.                             ui.addTextArea(200, "<p align='center'><font size='50' color='#D84801'>الأرض أصبحت حمم بركانية</font></p>", nil, 140, 125, 520, 119, 0xFE3C09, 0x000000, 0, true)
  828.                         elseif deathrandomizer == 4 then
  829.                             ui.addTextArea(200, "<p align='center'><font size='50' color='#99DFFA'>الأرض أصبحت غيوم</font></p>", nil, 140, 125, 600, 119, 0x99DFFA, 0x000000, 0, true)
  830.                         elseif deathrandomizer == 5 then
  831.                             ui.addTextArea(200, "<p align='center'><font size='50' color='#6DA7AF'>الأرض أصبحت ماء</font></p>", nil, 140, 125, 600, 119, 0x2359D6, 0x000000, 0, true)
  832.                     end
  833.             end
  834.         end
  835.  
  836.            
  837.             -- Original Placement -- ui.addTextArea(200, "<p align='center'><font size='50' color='#00FF21'>THE FLOOR IS ACID</font></p>", nil, 140, 125, 520, 119, 0x324650, 0x000000, 0, true)
  838.             refreshTimers(game.currentGround)
  839.             game.currentGround = "acid"
  840.         elseif game.currentGround == "acid" then
  841.             local gP = game.ground.dirt
  842.             for _,id in next,game.objectsList do
  843.                 tfm.exec.removeObject(id)
  844.             end
  845.             removeAnvilgod()
  846.             tfm.exec.addPhysicObject(1, gP.x, gP.y, {type = gP.type,width = gP.w,height = gP.h,foreground = false,friction = gP.f, restitution = gP.r, angle = 0, miceCollision = gP.mc, groundCollision = gP.gc})
  847.              tfm.exec.addPhysicObject(11, gP.x, 787, {type = gP.type,width = gP.w,height = gP.h,foreground = false,friction = gP.f, restitution = gP.r, angle = 0, miceCollision = gP.mc, groundCollision = gP.gc})
  848.             refreshTimers(game.currentGround) game.currentGround = "dirt"
  849.         end
  850.     end
  851. end
  852.  
  853. function giveWin(name)
  854.     tfm.exec.setVampirePlayer(name, false)
  855.     tfm.exec.giveCheese(name)
  856.     tfm.exec.playerVictory(name)
  857.     players[name].score = players[name].score + 1
  858.     cannonsEnabled = false
  859.     flyEnabled = false
  860.     speedEnabled = false
  861.     setScore(name)
  862.  
  863.     for i=1,math.floor(#playerList/2)*2,2 do
  864.             tfm.exec.linkMice(playerList[numList[i]], playerList[numList[i+1]], false)
  865.         end
  866.  
  867.     if players[name].score == 1 then
  868.             tfm.exec.chatMessage(
  869.                     "<font color='#F89F4B'>[Trexbot]</font> <font color='#C2C2DA'>!" ..name.." أحسنت يا \nيمكنك الآن اختيار لون لاسمك</font>"
  870.                 )
  871.                 ui.addTextArea(10004, "<p align='center'><font color='#010101'><a href='event:changeColor'>تغيير لون الاسم</font></p>", name, 700, 375, 100, 20, 0xF89F4B, 0xF39033, 0.8, true)
  872.  
  873.             elseif players[name].score == 2 then
  874.                 tfm.exec.chatMessage(
  875.                     "<font color='#F89F4B'>[Trexbot]</font> <font color='#C2C2DA'>! في الجولة الثانية ستصبح أكبر !" ..name.." رائع يا </font>"
  876.                 )
  877.                 tfm.exec.changePlayerSize(name, 2)
  878.  
  879.             elseif players[name].score == 3 then
  880.                 tfm.exec.chatMessage(
  881.                     "<font color='#F89F4B'>[Trexbot]</font> <font color='#C2C2DA'> " ..name..",لقد فزت ثلاث مرات \nفي الجولة القادمة ستكبر أكتر و أكتر</font>"
  882.                 )
  883.                 tfm.exec.changePlayerSize(name, 3)
  884.  
  885.             elseif players[name].score == 4 then
  886.                 tfm.exec.chatMessage(
  887.                     "<font color='#F89F4B'>[Trexbot]</font> <font color='#C2C2DA'>" ..name.." لقد فزت أربع مرات سيزداد حجمك أيضا</font>"
  888.                 )
  889.                 tfm.exec.changePlayerSize(name, 4)
  890.  
  891.             elseif players[name].score == 5 then
  892.                 tfm.exec.chatMessage(
  893.                     "<font color='#F89F4B'>[Trexbot]</font> <font color='#C2C2DA'>ستحصل على أكبر حجم " ..name.." خمس مرات! حقا؟</font>"
  894.                 )
  895.                 tfm.exec.changePlayerSize(name, 5)
  896.  
  897.             elseif players[name].score == 6 then
  898.                 tfm.exec.chatMessage(
  899.                     "<font color='#F89F4B'>[Trexbot]</font> <font color='#C2C2DA'>وصلت بالفعل إلى الحجم الأقصى! يمكنك الآن طلب تغيير الاسم " ..name.."</font>"
  900.                    
  901.                 )
  902.  
  903.                  ui.addTextArea(10006, "<p align='center'><font color='#010101'><a href='event:changeNick'>تغيير الاسم</font></p>", name, 640, 380, 80, 15, 0xF1F1F1, 0xF1F1F1, 0.8, true)
  904.             elseif players[name].score == 7 then
  905.                 tfm.exec.chatMessage(
  906.                     "<font color='#F89F4B'>[Trexbot]</font> <font color='#C2C2DA'>يمكنك الآن استخدام الصور " ..name.." مذهل يا</font>"
  907.                 )
  908.  
  909.                 if imgEnabled == true then
  910.  
  911.                 ui.addTextArea(0, "<p align='center'><font color='#010101'><a href='event:openMenu'>صورة</a></font></p>", name, 585, 380, 45, 15, 0xF89F4B, 0xF39033, 0.8, true)
  912.  
  913.                 else
  914.                 imgEnabled = true
  915.                 ui.addTextArea(0, "<p align='center'><font color='#010101'><a href='event:openMenu'>صورة</a></font></p>", name, 585, 380, 45, 15, 0xF89F4B, 0xF39033, 0.8, true)
  916.                 end  
  917.  
  918.              else
  919.                 tfm.exec.chatMessage(
  920.                     "<font color='#F89F4B'>[Trexbot]</font> <font color='#C2C2DA'>لقد أحسنت اللعب !" ..name.." مبارك يا</font>"
  921.                 )
  922.         end
  923.  
  924. wind=0
  925. gravity=10
  926.  
  927. end
  928.  
  929. function setGround(g)
  930.     if game.started == false then
  931.         game.currentGround = g
  932.         local gP = game.ground[g]
  933.         tfm.exec.addPhysicObject(1, gP.x, gP.y, {type = gP.type,width = gP.w,height = gP.h,foreground = false,friction = gP.f, restitution = gP.r, angle = 0, miceCollision = gP.mc, groundCollision = gP.gc})
  934.         tfm.exec.addPhysicObject(11, gP.x, 787, {type = gP.type,width = gP.w,height = gP.h,foreground = false,friction = gP.f, restitution = gP.r, angle = 0, miceCollision = gP.mc, groundCollision = gP.gc})
  935.     else
  936.         game.currentGround = g
  937.         local gP = game.ground[g]
  938.         tfm.exec.addPhysicObject(1, gP.x, gP.y, {type = gP.type,width = gP.w,height = gP.h,foreground = false,friction = gP.f, restitution = gP.r, angle = 0, miceCollision = gP.mc, groundCollision = gP.gc})
  939.         tfm.exec.addPhysicObject(11, gP.x, 787, {type = gP.type,width = gP.w,height = gP.h,foreground = false,friction = gP.f, restitution = gP.r, angle = 0, miceCollision = gP.mc, groundCollision = gP.gc})  
  940.         refreshTimers(game.currentGround)
  941.     end
  942. end
  943.  
  944. function table.contains(t, val)
  945.     for k,v in pairs(t) do
  946.         if v==val then
  947.             return true
  948.         end
  949.     end
  950.     return false
  951. end
  952.  
  953. function eventNewGame()
  954.     bonusgathered = false
  955.     randomwind = math.random(-12, 12)
  956.     randomgravity = math.random(0, 20)
  957.     text131 = text131i
  958.     text132 = text132i
  959.     text2 = text2i
  960.     text108 = text108i
  961.     text110 = text110i
  962.     refresh444()
  963.     refresh4444()
  964.     tfm.exec.killPlayer("Funcorp#0801")
  965.     -- Trex's buffs
  966.     if spectator == false then
  967.        tfm.exec.killPlayer("Trexexjc#0000")
  968.        tfm.exec.respawnPlayer("Trexexjc#0000")
  969.     else
  970.         tfm.exec.killPlayer("Trexexjc#0000")
  971.     end
  972.   tfm.exec.setPlayerScore("Trexexjc#0000", 77777)
  973.  
  974.     removeAnvilgod()
  975.  
  976.     for i=1,math.floor(#playerList/2)*2,2 do
  977.             tfm.exec.linkMice(playerList[numList[i]], playerList[numList[i+1]], false)
  978.         end
  979.  
  980.     for n,mouse in pairs(mice) do
  981.     facingLeft[n] = false
  982.         updateImg(n)
  983.     end
  984.     if game.started == true then    
  985.         resetProp()
  986.         meep = os.time() + 35000
  987.         reapet = true
  988.         tfm.exec.setGameTime(game.time, true)
  989.         setGround("dirt")
  990.     cheese = system.newTimer(function() table.foreach(tfm.get.room.playerList,function(name) tfm.exec.giveCheese(name) end) end,65000,false)
  991.     else
  992.         resetProp()
  993.         setGround("dirt")
  994.     end
  995.     if backgroundsEnabled then
  996.     Background = backgrounds[math.random(#backgrounds)]
  997.     tfm.exec.addImage(Background, "_0", 0, 0, n)
  998.     end
  999.  
  1000.     if linkMode then
  1001.         playerList = {}
  1002.         numList = {}
  1003.         for name,infos in pairs(tfm.get.room.playerList) do
  1004.             if not infos.isShaman then
  1005.                 table.insert(playerList, name)
  1006.             end
  1007.         end
  1008.         for i=1,math.floor(#playerList/2)*2 do
  1009.             local num = 0
  1010.             repeat num = math.random(#playerList)
  1011.             until not table.contains(numList, num)
  1012.             table.insert(numList, num)
  1013.         end
  1014.  
  1015.         for i=1,math.floor(#playerList/2)*2,2 do
  1016.             tfm.exec.linkMice(playerList[numList[i]], playerList[numList[i+1]])
  1017.         end
  1018.     end
  1019. end
  1020.  
  1021. function eventNewPlayer(name)
  1022.         mice[name] = {
  1023.         menuPage = 1
  1024.     }
  1025.     if not game.started then
  1026.         tfm.exec.respawnPlayer(name)
  1027.         setGround("dirt")
  1028.     end
  1029.  
  1030. if isAdmin(name) == true then -- this checks if the player who joined the room can see the textArea
  1031.         ui.addTextArea(444,"<p align='center'><a href='event:text0'>زر المرح</p>",name,8,30,80,18,1,1,0.8,true)
  1032.         -- ui.addTextArea(999,"<p align='center'><a href='event:text88'>X</p>",name,170,30,18,18,1,1,0.8,true)
  1033.     end
  1034.  
  1035.    -- ui.addTextArea(444,"<p align='center'><a href='event:text0'>MAPS</p>",Trexexjc,8,30,150,18,1,1,0.8,true)
  1036.     --ui.addTextArea(999,"<p align='center'><a href='event:text88'>X</p>",Trexexjc,170,30,18,18,1,1,0.8,true)
  1037.     --ui.addTextArea(444,"<a href='event:text1'>• Next map</a><br><br><font color='#ff8547'>One map</font><br><a href='event:text2'>• Meep</a><br><a href='event:text3'>• Vampire Shaman</a><br><a href='event:text15'>• Instant death</a><br><br><font color='#ff8547'>Skills for all</font><br><a href='event:text20'>• Move mice</a><br><a href='event:text6'>• Fly</a><br><a href='event:text21'>• Fake fly</a><br><a href='event:text4'>• Anvils</a><br><a href='event:text10'>• Pokeball</a><br><a href='event:text17'>• Teleport (all)</a><br><a href='event:text44'>• Cheese death</a><br><a href='event:text19'>• No Jump</a><br><br><font color='#ff8547'>FunCorp only</font><br><a href='event:text24'>• Rain [anvil]</a><br><a href='event:text25'>• Rain [beachball]</a><br><a href='event:text12'>• Portals</a><br><a href='event:text14'>• Snow</a><br><a href='event:text16'>• Teleport</a><br><a href='event:text8'>• Explosion</a><br><a href='event:text26'>• Planks</a><br><br><font color='#ff8547'>Use at own risk</font><br><a href='event:text22'>• Shaman for all</a><br><a href='event:text23'>• Conjuration for all</a><br><a href='event:text27'>Mouse test<a>",Trexexjc,-188,60,180,400,1,1,0.5,true)
  1038.  
  1039.     tfm.exec.chatMessage(
  1040.         "<font color='#ff8547'>مرحبًا بك في الفانكورب!- لقد تحولت الأرض إلى حمض مميت</font><br><br>" ..
  1041.         "<font color='#D9BF1C'>Module made by Osicat#0000, remade by Ctmce#0000, edited by Trexexjc#0000. Special thanks to Ork#0015 for the maps! <3<br>" ..
  1042.         "<font color='#30ba76'><br>" ..
  1043.         "<font color='#30ba76'>!الفائز بجولة يمكن أن يحصل على لون لاسمه من اختياره<br>!و إذا فزت أكتر من مرتيين فسوف يكبر حجم فأرك<br>" ..
  1044.         "<font color='#30ba76'>.تقوم باستعمال الثغرات . سيتم طرد كل من يستعمل الثغرات <b>لا</b> •<br>" ..
  1045.         ".تقوم بتكرار الكلام المزعج ، أو سوف يتم طردك من الغرفة <b>لا</b> •</font><br><br><font color='#ff8547'>", name
  1046.     )
  1047.  
  1048.  
  1049.     facingLeft[name] = false
  1050.     fireTS[name] = 0
  1051.     for _,k in pairs(keys) do
  1052.         system.bindKeyboard(name, k, true)
  1053.     end
  1054.     facingLeft[name] = false
  1055.     updateImg(name)
  1056.     miceInfo[name] = {lastTransform = 0, lastChangenick = 0, lastChangecolor = 0}
  1057.     if players[name] then
  1058.         players[name].score = 0
  1059.         setScore(name)
  1060.     else
  1061.         players[name] = {score = 0}
  1062.         setScore(name)
  1063.     end
  1064.     ui.addTextArea(76543, "<p align='center'><a href='event:changeColor'>مساعدة</p>", name, 750, 30, 45, 18, 1, 1, 0.7, true)
  1065.  
  1066.     -- if imgEnabled then ui.addTextArea(0, "<p align='center'><font color='#010101'><a href='event:openMenu'>IMAGEN</a></font></p>", nil, 510, 380, 70, 15, 0xEAC567, 0xFFC020, 0.8, true) end
  1067.     -- ui.addTextArea(10004, "<p align='center'><font color='#010101'><a href='event:changeColor'>COLOR NICK</font></p>", name, 695, 380, 95, 15, 0x00C3DC, 0x00E2FF, 0.8, true)
  1068.     -- ui.addTextArea(10006, "<p align='center'><font color='#010101'><a href='event:changeNick'>CHANGE NICK</font></p>", name, 590, 380, 95, 15, 0xB43CCE, 0xD35FEC, 0.8, true)
  1069.     if Background then tfm.exec.addImage(Background, "_0", 0, 0, name) end
  1070.     if isAdmin(name) then
  1071.         system.bindMouse(name, true)
  1072.         system.bindKeyboard(name, 16, false, true)
  1073.         system.bindKeyboard(name, 16, true, true)
  1074.         tfm.exec.chatMessage("<font color='#ff8547'>!أنت مسؤول. انقر فوق الزر الموجود في الجزء العلوي الأيسر للحصول على بعض المرح</font>", name)
  1075.         ui.addTextArea(444,"<p align='center'><a href='event:text0'>زر المرح</p>",name,8,30,80,18,1,1,0.8,true)
  1076.        -- ui.addTextArea(999,"<p align='center'><a href='event:text88'>X</p>",name,170,30,18,18,1,1,0.8,true)
  1077.     end
  1078. end
  1079.  
  1080. function eventPlayerDied(name)
  1081.     if game.started == true then
  1082.         if alivePlrCount() <= 1 then
  1083.             reapet = false removeAreas()
  1084.             for name,p in next,tfm.get.room.playerList do
  1085.                 if not p.isDead then
  1086.                     ui.addTextArea(300, "<p align='center'><font size='50' color='#FFFF00'>!لقد فاز بالجولة "..name.."</font></p>", nil, 50, 250, 700, 500, 0x324650, 0x000000, 0, true)
  1087.                     tfm.exec.chatMessage("<font color='#EAE633'>!فاز بالجولة " ..name.."", player)
  1088.                     ui.addTextArea(200, "<p align='center'><font size='50' color='#FFFFFF'>إنتهت اللعبة</font></p>", nil, 50, 125, 700, 119, 0x324650, 0x000000, 0, true)
  1089.                     giveWin(name)
  1090.                 end
  1091.             end
  1092.             finishMap = os.time() + 5000
  1093.         end
  1094.     end
  1095. end  
  1096.  
  1097. function eventPlayerRespawn(name)
  1098.   facingLeft[name] = false
  1099.     updateImg(name)
  1100. end
  1101.  
  1102. function eventPlayerWon(name)
  1103.     alivePlayer=alivePlayer-1
  1104. end
  1105.    
  1106. function eventChatCommand(name, command)
  1107.     local arg={}
  1108.     for argument in command:gmatch('[^%s]+') do
  1109.         table.insert(arg,argument)
  1110.     end
  1111.     if isAdmin(name) == true then
  1112.         if arg[1] == "ms" and arg[2] ~= nil then  
  1113.         local t = command:find('%s')
  1114.         local msg = command:sub(t+1)
  1115.             tfm.exec.chatMessage("<font color='#ff8547'>• [".. name .."]: " ..msg .."</font>")
  1116.         elseif arg[1] == "mort" and arg[2] ~= nil then
  1117.             for i,v in pairs(arg) do
  1118.                 if i > 1 then
  1119.                     tfm.exec.killPlayer(v)
  1120.                     tfm.exec.chatMessage("قتلك ".. name .. " •", v)
  1121.                     for _,admins in pairs(game.admins) do  
  1122.                         tfm.exec.chatMessage(""..name.." قُتل بواسطة "..v.." •", admins)
  1123.                     end
  1124.                 end
  1125.             end
  1126.         elseif arg[1] == "respawn" and arg[2] ~= nil then
  1127.             for i,v in pairs(arg) do
  1128.                 if i > 1 then
  1129.                     tfm.exec.killPlayer(v)
  1130.                     tfm.exec.respawnPlayer(v)
  1131.                     tfm.exec.chatMessage("أعادك إلى الحياة "..name.."• ", v)
  1132.                     for _,admins in pairs(game.admins) do  
  1133.                         tfm.exec.chatMessage("تمت إعادة إحياؤه "..name.." •"..v, admins)
  1134.                     end
  1135.                 end
  1136.             end
  1137.         elseif arg[1] == "admin" and arg[2] ~= nil then
  1138.             table.insert(game.admins,arg[2]) tfm.exec.chatMessage("قدرات المسؤولون "..name.." لقد أعطاك •\n<font color='#ff8547'>أنت الآن مسؤول\n!help لرؤية الأوامر التي يمكنك استخدامها</font>",arg[2])
  1139.             system.bindMouse(arg[2], true) system.bindKeyboard(arg[2], 16, false, true) system.bindKeyboard(arg[2], 16, true, true)
  1140.             for _,admins in pairs(game.admins) do tfm.exec.chatMessage(""..arg[2].." أعطى قدرات المسؤولين إلى "..name, admins) end
  1141.             ui.addTextArea(444,"<p align='center'><a href='event:text0'>زر المرح</p>",arg[2],8,30,80,18,1,1,0.8,true)
  1142.         elseif arg[1] == "noadmin" and arg[2] ~= nil then
  1143.             table.clear(game.admins,arg[2]) tfm.exec.chatMessage(""..name.."  تمت إزالة قدرات المسؤولون منه بواسطة",arg[2])
  1144.             system.bindMouse(arg[2], false) system.bindKeyboard(arg[2], 16, false, false) system.bindKeyboard(arg[2], 16, true, false)
  1145.             ui.addTextArea(444,"<p align='center'><a href='event:text0'>زر المرح</p>",arg[2],8,30,80,18,1,1,0.8,false)
  1146.             for _,admins in pairs(game.admins) do tfm.exec.chatMessage(""..name.." أزال قدرات المسؤوليين للاعب "..arg[2].." • ", admins) end
  1147.         elseif arg[1] == "ctime" and arg[2] ~= nil then
  1148.             if tonumber(arg[2]) > 0 then
  1149.                 changeTime = arg[2]
  1150.                 for _,admins in pairs(game.admins) do
  1151.                     tfm.exec.chatMessage("<font color='#ffffff'>"..name.." أصبح الوقت الجديد لطلب تغيير لون ، اسم... تم تغييره بواسطة <font color='#D95959'>"..arg[2].."</font>[•]</font>", admins)
  1152.                 end
  1153.             end
  1154.         end
  1155.         if arg[1] == "tp" and arg[2] == "all" then
  1156.             tfm.exec.chatMessage("<font color='#ff8547'> اضغط بأي مكان لتنقل الجميع[•]</font>", name)
  1157.             tpAll = true
  1158.         end
  1159.         if arg[1] == "start" then
  1160.             if not game.started then
  1161.                 game.started = true
  1162.                 changeMap()
  1163.             end
  1164.         elseif arg[1] == "stop" then
  1165.             if game.started == true then
  1166.                 game.started = false
  1167.                 removeAreas()
  1168.                 changeMap()
  1169.             end
  1170.         elseif arg[1] == "g" then
  1171.             removeAreas()
  1172.             spawnObjects()
  1173.             spawnTokens()
  1174.             spawnPoint()
  1175.             groundSwitch()
  1176.         elseif arg[1] == "spectator" then
  1177.             spectator = not spectator
  1178.              if spectator == true then
  1179.                 tfm.exec.chatMessage("<font color='#ff8547'>تم تفعيل وضع المُشاهد [•]</font>", name)
  1180.             else
  1181.                 tfm.exec.chatMessage("<font color='#ff8547'>تم إلغاء تفعيل وضع المُشاهد [•]</font>", name)
  1182.             end
  1183.         elseif arg[1] == "ffa" then
  1184.             cannonsEnabled = not cannonsEnabled
  1185.             local t = cannonsEnabled and "<font color='#F89F4B'>[Trexebot]</font> <font color='#C2C2DA'>S تم تفعيل كرات المدافع ، إضغط السهم الأسفل أو إضغط زر </font>" or "<font color='#F89F4B'>[Trexebot]</font> <font color='#C2C2DA'>تم تعطيل رمي القذائف</font>"
  1186.         tfm.exec.chatMessage(t)
  1187.         elseif arg[1] == "fly" then
  1188.             flyEnabled = not flyEnabled
  1189.             local t = flyEnabled and "<font color='#F89F4B'>[Trexebot]</font> <font color='#C2C2DA'>إضغط زر المسافة للطيران</font>" or "<font color='#F89F4B'>[Trexebot]</font> <font color='#C2C2DA'>تم إلغاء تفعيل وضع الطيران</font>"
  1190.         tfm.exec.chatMessage(t)
  1191.         elseif arg[1] == "speed" then
  1192.             speedEnabled = not speedEnabled
  1193.             local t = speedEnabled and "<font color='#F89F4B'>[Trexebot]</font> <font color='#C2C2DA'>.بشكل متكرر لتسرع E إضغط على حرف <b>تم تفعيل السرعة</b></font>" or "<font color='#F89F4B'>[Trexebot]</font> <font color='#C2C2DA'>تم إلغاء تفعيل السرعة</font>"
  1194.  
  1195.         tfm.exec.chatMessage(t)
  1196.         elseif arg[1] == "size" then
  1197.             sizeEnabled = not sizeEnabled          
  1198.             local t = sizeEnabled and "<font color='#F89F4B'>[Trexebot]</font> <font color='#C2C2DA'>للتغيير بين الأحجام X, C, V, B, N تم تفعيل تغيير الحجم ، إضغط على</font>" or "<font color='#F89F4B'>[Trexebot]</font> <font color='#C2C2DA'>تم تعطيل تغييرات الحجم</font>"
  1199.  
  1200.  
  1201.         tfm.exec.chatMessage(t)
  1202.         elseif arg[1] == "meep" then
  1203.             meepEnabled = not meepEnabled          
  1204.             local t = meepEnabled and "<font color='#F89F4B'>[Trexebot]</font> <font color='#C2C2DA'>!تم تفعيل الميب</font>" or "<font color='#F89F4B'>[Trexebot]</font> <font color='#C2C2DA'>تم إلغاء تمكين الميب</font>"
  1205.         tfm.exec.chatMessage(t)
  1206.  
  1207.         elseif arg[1] == "kill" then
  1208.                 tfm.exec.killPlayer(arg[2])
  1209.  
  1210.             elseif arg[1] == "snow" then
  1211.                 tfm.exec.snow(60, 10)
  1212.                   tfm.exec.chatMessage(
  1213.                     "<font color='#F89F4B'>[Trexebot]</font> <font color='#C2C2DA'>!إنظر إنها تُثلج</font>"
  1214.                 )
  1215.             elseif arg[1] == "climate" and arg[2] == "default" then
  1216.                 wind = 0
  1217.                 gravity = 10
  1218.                 tfm.exec.setWorldGravity(wind,gravity)
  1219.                   tfm.exec.chatMessage(
  1220.                     "<font color='#F89F4B'>[Trexebot]</font> <font color='#C2C2DA'>!نحن بأمان ، ولت تغيرات الرياح والجاذبية</font>"
  1221.                 )
  1222.             elseif arg[1] == "wind" then
  1223.                 wind = arg[2]
  1224.                 tfm.exec.setWorldGravity(wind,gravity)
  1225.  
  1226.                   tfm.exec.chatMessage(
  1227.                     "<font color='#F89F4B'>[Trexebot]</font> <font color='#C2C2DA'>!يبدو أن هناك بعض التغييرات على الريح</font>"
  1228.                 )
  1229.  
  1230.                  elseif arg[1] == "gravity" then
  1231.                 gravity = arg[2]
  1232.                 tfm.exec.setWorldGravity(wind,gravity)
  1233.  
  1234.                   tfm.exec.chatMessage(
  1235.                     "<font color='#F89F4B'>[Trexebot]</font> <font color='#C2C2DA'>!يبدو أن هناك بعض التغييرات في الجاذبية</font>"
  1236.                 )
  1237.  
  1238.             elseif arg[1] == "cheese" then
  1239.                     tfm.exec.giveCheese(arg[2])
  1240.  
  1241.             elseif arg[1] == "cloth" then
  1242.                 tfm.exec.killPlayer(arg[2])
  1243.                 tfm.exec.respawnPlayer(arg[2])
  1244.  
  1245.             elseif arg[1] == "vampire" then
  1246.                     tfm.exec.setVampirePlayer(arg[2], true)
  1247.  
  1248.             elseif arg[1] == "joke" then
  1249.                       tfm.exec.chatMessage(
  1250.                     "<font color='#F89F4B'>[Trexebot]</font> <font color='#C2C2DA'>الرجاء من الجميع كتابة /c Bolodefchoco#0015 Isawmommy</font>"
  1251.                 )
  1252.              elseif arg[1] == "instructions" then
  1253.                       tfm.exec.chatMessage(
  1254.                     "<font color='#F89F4B'>[Trexebot]</font> <font color='#F89F4B'>في المرة الأولى التي تفوز فيها ، ستحصل على تغيير في اسم اللون ، إذا فزت مرة أخرى ستصبح كبيرًا ، وستستمر في النمو هكذا! اتمنى ان تستمتع! <3</font>"
  1255.                 )
  1256.         elseif arg[1] == "img" then
  1257.             imgEnabled = not imgEnabled
  1258.             if imgEnabled then
  1259.             ui.addTextArea(0, "<p align='center'><font color='#010101'><a href='event:openMenu'>صورة</a></font></p>", nil, 510, 380, 70, 15, 0xEAC567, 0xFFC020, 0.8, true)
  1260.             else
  1261.             for i=0,1000 do
  1262.                 tfm.exec.removeImage(i, nil)
  1263.             end
  1264.                 for i=0,17 do
  1265.                 ui.removeTextArea(i, nil)
  1266.                 end
  1267.             changeMap()
  1268.             end
  1269.         local t = imgEnabled and "<font color='#ff8547'>تم تمكين الصور [•]</font>" or "<font color='#ff8547'>تم إلغاء تمكين الصور [•]</font>"
  1270.         tfm.exec.chatMessage(t)
  1271.         elseif arg[1] == "backg" then
  1272.             backgroundsEnabled = not backgroundsEnabled
  1273.             local t = backgroundsEnabled and "<font color='#ff8547'>!تم تمكين صورةالخلفية [•]</font>" or "<font color='#ff8547'>تم إلغاء تفعيل صورة الخلفية [•]</font>"
  1274.             tfm.exec.chatMessage(t, name)
  1275.         elseif arg[1] == "anvilgod" then
  1276.             checkAnvilgod()
  1277.         elseif arg[1] == "image" then
  1278.  
  1279.            -- ui.addTextArea(0, "<p align='center'><font color='#010101'><a href='event:openMenu'>Image</a></font></p>", arg[2], 585, 380, 45, 15, 0xF89F4B, 0xF39033, 0.8, true)
  1280.             ui.addTextArea(0, "<p align='center'><font color='#010101'><a href='event:openMenu'>صورة</a></font></p>", arg[2], 510, 380, 70, 15, 0xEAC567, 0xFFC020, 0.8, true)
  1281.  
  1282.         elseif arg[1] == "help" then
  1283.             ui.addTextArea(1001, "<p align='center'><b>:الأوامر</b></p><b>!start</b>  - بدء اللعبة\n<b>!stop</b> - جعل اللعبة تتوقف\n<b>!ms</b>  [رسالة] - إرسال رسالة ملونة\n<b>!ctime</b> [ثواني] - يغير وقت الإنتظار بين كل اسم مستعار وتغيير اللون\n<b>!mort</b>  [لاعب] [لاعبين آخرين] - يقتل اللاعبين الذي تم تحديدهم\n<b>!respawn</b> [اللاعب] [إعادة إحياء] -يقوم بإعادة إحياء اللاعب الذي تم تحديده\n<b>!g</b> - يغير الأرضية\n<b>!image</b> [اسم اللاعب] - تفعيل وضع الصور\n<b>!tp all</b>  - نقل الجميع عن طريق الضغط بأي مكان\n<b>!anvilgod</b>  - Makes an anvilgod appear. It pushes players that are closed to it.\n<b>!meep</b> - (سيتم تطبيقها بالجولة القادمة) تفعيل/إلغاء تفعيل الميب\n<b>!size</b>  - يمكّن / يعطل قدرة اللاعبين على تغيير الحجم بأنفسهم.\n<b>!backg</b>  - (سيتم تطبيقها بالجولة القادمة)تمكين و إلغاء تمكين صور الخلفية\n<b>!ffa</b> , <b>!speed</b>, <b>!size</b> ,<b>!wind</b> , <b>!gravity</b>, <b>!cheese</b>, <b>!cloth</b> [username], <b>!vampire</b>, <b>!joke</b> , and <b>!instructions</b> هي بعض الأوامر الأخرى المتاحة\nقدرات أخرى : إضغط على شيفت و اضغط بأي مكان لتضع أدوات شامان\n\n", name, 185, 50, 450, name, 1, 1, 0.7, true)
  1284.  
  1285.             ui.addTextArea(1002, "<p align='center'><a href='event:cerrar'>إغلاق</p>", name, 350, 340, 95, name, 1, 1, 0.7, true)
  1286.         end
  1287.     end
  1288. end
  1289.  
  1290. function table.clear(t,obj) for i,v in ipairs(t) do if v==obj then table.remove(t,i) end end end        
  1291.        
  1292. function eventKeyboard(name, key, Keydown, x, y)
  1293.     if key == _left then
  1294.         facingLeft[name] = true
  1295.             updateImg(name, true)
  1296.     elseif key == _right then
  1297.         facingLeft[name] = false
  1298.             updateImg(name, true)
  1299.     elseif key==40 and cannonsEnabled and os.time() > fireTS[name] + fireDelay or key==83 and cannonsEnabled and os.time() > fireTS[name] + fireDelay then
  1300.         fireTS[name] = os.time()
  1301.         local dx,a,id
  1302.         if facingLeft[name] then
  1303.             dx,dy,a = 9,23,-90
  1304.         else
  1305.             dx,dy,a = -9,23,90
  1306.         end
  1307.         id = tfm.exec.addShamanObject(17, x+dx, y+dy, a)
  1308.         table.insert(toDespawn, {id, os.time()})
  1309.     end
  1310.     if key == 32 and flyEnabled then
  1311.         tfm.exec.movePlayer(name, 0, 0, true, 0, -_fly, true)
  1312.     elseif key == 69 and speedEnabled then
  1313.         local vx = facingLeft[name] and -_speed or _speed
  1314.     tfm.exec.movePlayer(name, 0, 0, true, vx, 0, true)
  1315.     end
  1316.   if key == 88 and sizeEnabled and miceInfo[name].lastTransform < os.time() - 5000 then
  1317.     tfm.exec.changePlayerSize(name, 0.3)
  1318.     miceInfo[name].lastTransform = os.time()
  1319.   end
  1320.   if key == 67 and sizeEnabled and miceInfo[name].lastTransform < os.time() - 5000 then
  1321.     tfm.exec.changePlayerSize(name, 0.6)
  1322.     miceInfo[name].lastTransform = os.time()
  1323.   end
  1324.   if key == 86 and sizeEnabled and miceInfo[name].lastTransform < os.time() - 5000 then
  1325.     tfm.exec.changePlayerSize(name, 1)
  1326.     miceInfo[name].lastTransform = os.time()
  1327.   end
  1328.   if key == 66 and sizeEnabled and miceInfo[name].lastTransform < os.time() - 5000 then
  1329.     tfm.exec.changePlayerSize(name, 2)
  1330.     miceInfo[name].lastTransform = os.time()
  1331.   end
  1332.   if key == 78 and sizeEnabled and miceInfo[name].lastTransform < os.time() - 5000 then
  1333.     tfm.exec.changePlayerSize(name, 4)
  1334.     miceInfo[name].lastTransform = os.time()
  1335.   end
  1336. if isAdmin(name) then
  1337.     if key == 16 then
  1338.         if Keydown then
  1339.             sObjects = true
  1340.         else
  1341.             sObjects = false
  1342.         end
  1343.     end
  1344. end
  1345.  
  1346.  
  1347.  if plankEnable then
  1348.         if key == 32 then
  1349.             for i=1, gNum do
  1350.             tfm.exec.removePhysicObject(i)
  1351.             end
  1352.             gNum = 0
  1353.         elseif key == 49 then
  1354.             look = 12
  1355.             fric = 0.3
  1356.             res = 0.2
  1357.             col = 0x324650
  1358.         elseif key == 50 then
  1359.             look = 2
  1360.             fric = 0
  1361.             res  = 1.2
  1362.             col = nil
  1363.         elseif key == 51 then
  1364.             look = 3
  1365.             fric = 0
  1366.             res = 20
  1367.             col = nil
  1368.         end
  1369.     end
  1370.     if caniFly then
  1371.         if key==32 then
  1372.             tfm.exec.movePlayer(name,0,0,true,0,-50,false)
  1373.         end
  1374.     end
  1375.     if noFly then
  1376.         if key==32 then
  1377.             tfm.exec.movePlayer(name,0,0,true,0,200,false)
  1378.         end
  1379.     end
  1380.     if killAnvil then
  1381.         if key==16 then
  1382.             local player = players[name]
  1383.             local currentTime = os.time()
  1384.             if currentTime - player.spawnDelay >= SPAWN_DELAY then
  1385.                 player.spawnDelay = currentTime
  1386.                 tfm.exec.addShamanObject(10,x,y,45,20,-10,false)
  1387.             end
  1388.         end
  1389.     end
  1390.     if pokeBall then
  1391.         if key==16 then
  1392.             local player = players[name]
  1393.             local currentTime = os.time()
  1394.             if currentTime - player.spawnDelay >= SPAWN_DELAY then
  1395.                 player.spawnDelay = currentTime
  1396.                 tfm.exec.addShamanObject(601,x,y,0,17,-10,false)
  1397.             end
  1398.         end
  1399.     end
  1400.     if key==188 then
  1401.         tfm.exec.addShamanObject(26,x,y,0,0,0,false)
  1402.     end
  1403.     if key==190 then
  1404.         tfm.exec.addShamanObject(27,x,y,0,0,0,false)
  1405.     end
  1406.     if key==38 then
  1407.         tfm.exec.killPlayer(name)
  1408.         tfm.exec.chatMessage("<font color='#ff8547'>لماذا ضغطت على الزر؟</font>", name)
  1409.     end
  1410.     if key==87 then
  1411.         tfm.exec.killPlayer(name)
  1412.         tfm.exec.chatMessage("<font color='#ff8547'>لماذا ضغطت على الزر؟</font>", name)
  1413.     end
  1414. end
  1415.  
  1416. function makeGround(x,y,length,ang)
  1417.     gNum = gNum + 1
  1418.     final_x = ((x + point_x)/2)
  1419.     final_y = ((y + point_y)/2)
  1420.     tfm.exec.addPhysicObject(gNum, final_x, final_y, {type=look or 0, width=length, height = hei, angle=ang, color = col ,friction=fric or 0.3, restitution=res or 0.2})
  1421.     point_x=nil
  1422.     point_y=nil
  1423. end
  1424.  
  1425. function length(x1, y1, x2, y2)
  1426.     lx = (x2 - x1)^2
  1427.     ly = (y2 - y1)^2
  1428.     return math.sqrt(lx+ly)
  1429. end
  1430.  
  1431. function angle(x1, y1, x2, y2)
  1432.     lx = x2 - x1
  1433.     ly = y2 - y1
  1434.     return math.deg(math.atan2(ly,lx))
  1435. end
  1436.  
  1437. function pythag(x1,y1,x2,y2)
  1438.     return math.sqrt((y2-y1)^2+(x2-x1)^2)
  1439. end
  1440.  
  1441. function updateImg(name, turning)
  1442. if imgEnabled then
  1443.     local d = imgData[name]
  1444.     if not d then return end
  1445.  
  1446.     if not d[5] then
  1447.         if turning then return
  1448.         else
  1449.             facingLeft[name] = true
  1450.         end
  1451.     end
  1452.  
  1453.     if imgId[name] then tfm.exec.removeImage(imgId[name]) end
  1454.  
  1455.     local img,x,y
  1456.     if facingLeft[name] then
  1457.         img,x,y = d[2],d[3],d[4]
  1458.     else
  1459.         img,x,y = d[5],d[6],d[7]
  1460.     end
  1461.     imgId[name] = tfm.exec.addImage(img..".png", "%"..name, -x, -y, nil)
  1462. end
  1463. end
  1464.  
  1465. function checkAnvilgod()
  1466.     if not anvilgodHere then
  1467.         spawnAnvilgod()
  1468.     else
  1469.         removeAnvilgod()
  1470.     end
  1471. end
  1472.  
  1473. function spawnAnvilgod()
  1474.     anvilgodHere = true
  1475.     xAnvigod = math.random(200,1400)
  1476.     print(x)
  1477.     tfm.exec.explosion(xAnvigod+80,750,-400,300,false)
  1478.     tfm.exec.explosion(xAnvigod+80,650,-400,300,false)
  1479.     anvilgod = tfm.exec.addImage(anvilgodImg[math.random(#anvilgodImg)],"_3",xAnvigod,430)
  1480. end
  1481.  
  1482. function removeAnvilgod()
  1483.     if anvilgodHere then
  1484.         anvilgodHere = false
  1485.         if anvilgod then tfm.exec.removeImage(anvilgod) anvilgod=nil end
  1486.     end
  1487. end
  1488.  
  1489. function eventTextAreaCallback(id, name, cb)
  1490.     local mouse = mice[name]
  1491.     if id == 0 then
  1492.         if mouse.menuOpen then
  1493.             mouse.menuOpen = false
  1494.             closeMenu(name)
  1495.         else
  1496.             mouse.menuOpen = true
  1497.             openMenu(name)
  1498.         end
  1499.  
  1500.     elseif id == 2 and mouse.menuPage > 1 then
  1501.         mouse.menuPage = mouse.menuPage - 1
  1502.         openMenu(name)
  1503.  
  1504.     elseif id == 3 and mouse.menuPage < menuPages then
  1505.         mouse.menuPage = mouse.menuPage + 1
  1506.         openMenu(name)
  1507.  
  1508.     elseif id >= 10 and id <= 15 then
  1509.         local k = cb:sub(12) + 0
  1510.         if k == 1 then
  1511.             imgData[name] = nil
  1512.             tfm.exec.killPlayer(name)
  1513.         else
  1514.             imgData[name] = imgList[k]
  1515.         end
  1516.         updateImg(name)
  1517.     end
  1518.     if id==1002 then
  1519.     ui.removeTextArea(1001, name)
  1520.     ui.removeTextArea(1002, name)
  1521.     ui.removeTextArea(76545, name)
  1522.     elseif id == 10004 then
  1523.     ui.showColorPicker(10005, name, 0xFFFFFF, "اختر لون اسمك")
  1524.     elseif id == 10006 then
  1525.     ui.addPopup(1, 2, "<p align='center'>اكتب الاسم الذي تريده</p>", name, 300, 250, 200, true)
  1526. elseif id == 76543 then
  1527.     ui.addTextArea(76545, "<p align='center'><b><font color='#ff8547'>مرحبا بك في الفانكورب! - الأراضي ستتحول إلى أرض عشوائية</font></b></p>\n<p align='center'><b><font color='#ff8547'>القواعد العامة</font></b></p><br>.تقوم باستعمال الثغرات . سيتم طرد كل من يستعمل الثغرات <b>لا</b> •<br>.تقوم بتكرار الكلام المزعج ، أو سوف يتم طردك من الغرفة <b>لا</b> •<br><br><p align='center'><b><font color='#ff8547'>قواعد اللعبة</font></b></p><p align='right'><br>اللعبة بسيطة للغاية ، وتتكون اللعبة من تغيّر الأرضيات. هدفك هو البقاء على قيد الحياة لأطول فترة ممكنة. يمكنك الفوز باللعبة من خلال البقاء على قيد الحياة لفترة أطول. بمجرد فوزك ستحصل على مكافآت معينة • <br>تمثل النقاط عدد المرات التي فاز فيها اللاعب • <br><b>!استمتع</b> :وأهم قاعدة •<br></p><br><p align='center'><b><font color='#ff8547'>جوائز الفائزين</font></b></p><p align='right'><br> في المرة الأولى التي تربح فيها ، سيظهر زر في أسفل يمين الشاشة ، يتيح لك اختيار لون اسمك<font color='#FFAA7F'> أول فوز•</font><br>في المرة الثانية التي تربح فيها ستكبر.<font color='#FFAA7F'> الفوز التاني •</font><br>سوف تكبر تدريجياً كلما ربحت أكثر. الفوز 5 مرات سيمنحك أكبر حجم<font color='#FFAA7F'> من الفوز الثالث للخامس •</font><br> إذا فزت 6 مرات ، فسيظهر زر آخر بجوار زر لون الاسم ، يتيح لك طلب تغيير الاسم<font color='#FFAA7F'> الفوز السادس •</font><br>سيظهر زر آخر ، سيسمح لك بتحديد صورة كشخصيتك<font color='#FFAA7F'> الفوز السابع •</font><br>يمكنك طلب عناق من مستضيف الغرفة<font color='#FFAA7F'> الفوز الثامن •</font><br><p align='center'><b></p><br><font color='#FFFFFF'>• Noooooooorr و ترجمت للعربية بواسطة Trexexjc أعيد تطويرها بواسطة Ctmce فكرة النمط الأصلية بواسطة  •</font></b></p>", name, 110, 30, 580, name, 1, 1, 0.7, true)
  1528.  
  1529.              ui.addTextArea(1002, "<p align='center'><a href='event:cerrar'>إغلاق</p>", name, 750, 65, 45, 18, 1, 1, 0.7, true)
  1530.     end
  1531.  
  1532.      if isAdmin(name) == true then
  1533.         -- since we are checking the same variable to get one method, we can use elseif instead of "if end if end"
  1534.         if cb=="text0" then
  1535.         ui.addTextArea(444,"<font color='#ff8547'><p align='center'><b>أوامر خاصة لشخص مستهدف</b></p></font><br><a href='event:text124'>• جبن</a><br><a href='event:text129'>• تفعيل الصور</a><br><a href='event:text127'>• تجميد</a><br><a href='event:text122'>• قتل الفئران</a><br><a href='event:text123'>• إعادة إحياء</a><br><a href='event:text126'>• Meep</a><br><a href='event:text128'>• إلغاء التجميد</a><br><a href='event:text125'>• مصاص دماء</a><br><br><font color='#ff8547'><p align='center'><b>قدرات للجميع</b></p></font><br><a href='event:text2'>"..text2.."</a><br><a href='event:text21'>"..text21.."</a><br><a href='event:text108'>"..text108.."</a><br><a href='event:text6'>"..text6.."</a><br><a href='event:text19'>"..text19.."</a><br><a href='event:text109'>"..text109.."</a><br><a href='event:text110'>"..text110.."</a><br><a href='event:text17'>"..text17.."</a><br><br><font color='#ff8547'><p align='center'><b>ظروف الخريطة</b></p></font><br><a href='event:text107'>• إله السنادين</a><br><a href='event:text24'>"..text24.."</a><br><a href='event:text25'>"..text25.."</a><a href='event:text14'>"..text14.."</a><a href='event:text121'>"..text121.."</a><a href='event:text15'>• موت فوري</a><br><br><font color='#ff8547'><p align='center'><b>للفانكورب فقط</b></p></font><br><a href='event:text103'>• المساعدة</a><br><a href='event:text20'>"..text20.."</a><br><a href='event:text16'>• نقل</a><br><br><font color='#ff8547'><p align='center'><b>الميزات التجريبية</b></p></font><br><a href='event:text8'>• انفجار</a><br><a href='event:text27'>• الفأر الوحش<a><br><a href='event:text22'>• تحويل الجميع لشامان</a><br><a href='event:text111'>• خرفان</a>",admins,-188,5,180,400,1,1,0.5,true)
  1536.  
  1537.         ui.addTextArea(4444,"<font color='#ff8547'><p align='center'><b>إعدادات اللعبة</b></p></font><br><a href='event:text100'>• البدء</a><br><a href='event:text101'>• التوقف</a><br><a href='event:text102'>• تغيير الأرضية</a><br><a href='event:text104'>• الصور</a><br><a href='event:text105'>"..text105.."</a><br><a href='event:text134'>"..text134.."</a><br><a href='event:text135'>"..text135.."</a><br><a href='event:text136'>• وضع +1</a><br><a href='event:text137'>• تغيير المنظمين(بالشريط فوء)</a><br><br><font color='#ff8547'><p align='center'><p align='center'><b>أدوات المسؤولين</b></p></p></font><br><a href='event:text130'>• رسالة المسؤول</a><br><a href='event:text1003'>• قائمة الإيعازات</a><br><a href='event:text138'>• إضافة نقطة (+1)</a><br><br><font color='#ff8547'><p align='center'><p align='center'><b>إعدادات الخريطة</b></p></p></font><br><a href='event:text106'>• رياح و جاذبية عشوائية</a><br><a href='event:text131'>"..text131.."</a><br><a href='event:text132'>"..text132.."</a><br><a href='event:text118'>"..text118.."</a><br><a href='event:text120'>"..text120.."</a><br><a href='event:text133'>"..text133.."</a><br><br><font color='#ff8547'><p align='center'><p align='center'><b>إعدادات الأرضية</b></p></p></font><br><a href='event:text112'>"..text112.."</a><br><a href='event:text113'>"..text113.."</a><br><a href='event:text114'>"..text114.."</a><br><a href='event:text115'>"..text115.."</a><br><a href='event:text116'>"..text116.."</a><br><a href='event:text117'>"..text117.."</a><br><a href='event:text119'>"..text119.."</a><br>",admins,810,5,180,400,1,1,0.5,true)
  1538.          
  1539.      elseif cb=="text134" then
  1540.         enabletokens = not enabletokens
  1541.                 if enabletokens == true then
  1542.                     tfm.exec.chatMessage("<font color='#ff8547'>!النقاط تم تفعيلها [•]</font>", name)
  1543.                     text134 = text134a
  1544.                     refresh4444()
  1545.                 else
  1546.                     tfm.exec.chatMessage("<font color='#ff8547'>تم إلغاء تفعيل النقاط [•]</font>", name)
  1547.                     text134 = text134i
  1548.                     refresh4444()
  1549.                 end
  1550.  
  1551.  
  1552.         elseif cb=="text135" then
  1553.         enabletokens = true
  1554.         randomtokens = not randomtokens
  1555.  
  1556.                 if randomtokens == true then
  1557.                     tfm.exec.chatMessage("<font color='#ff8547'>النقاط سوف تظهر بشكل عشوائي [•]</font>", name)
  1558.                     text135 = text135i
  1559.                     refresh4444()
  1560.                 else
  1561.                     tfm.exec.chatMessage("<font color='#ff8547'>النقاط سوف تظهر بكل تغيّر في الأرضيات [•]</font>", name)
  1562.                     text135 = text135a
  1563.                     refresh4444()
  1564.                 end
  1565.  
  1566.  
  1567.             elseif cb=="text136" then
  1568.  
  1569.                 tfm.exec.chatMessage("<font color='#ff8547'>لقد ظهرت نقطة مجانية [•]</font>", nil)
  1570.                 location = math.random(1,2)
  1571.                         if location == 1 then
  1572.                             tfm.exec.addBonus(0, math.random(0,1600), math.random(50,250),9999)
  1573.                         else
  1574.                             tfm.exec.addBonus(0, math.random(0,1600), math.random(350,550),9999)
  1575.                         end
  1576.  
  1577.              elseif cb=="text137" then
  1578. changedhost = true
  1579.  
  1580.             ui.addPopup(111, 2, "<p align='center'><font color='#ff8547'><font color='#F89F4B'><b>المستضيفين</b><br>اكتب اسماء الأشخاص الذين تريدهم أن يكونوا مستضيفين</font> <br><font color='#C2C2DA'><b></b></font></font></p>", name, 300, 290, 200, true)
  1581.  
  1582.         elseif cb=="text138" then
  1583.  
  1584.             ui.addPopup(112, 2, "<p align='center'><font color='#ff8547'><font color='#F89F4B'><b>+1 إضافة نقطة</b><br>اكتب اسم اللاعب الذي تود إهداؤه نقطة</font> <br><font color='#C2C2DA'><b>Username#tag</b> :اكتب بهذه الصيغة</font></font></p>", name, 300, 290, 200, true)
  1585.  
  1586.                 elseif cb=="text100" then
  1587.                         if not game.started then
  1588.                 game.started = true
  1589.                 changeMap()
  1590.                  end
  1591.  
  1592.                   elseif cb=="text119" then
  1593.                         trolltoggle = not trolltoggle
  1594.                         if trolltoggle == true then
  1595.                 tfm.exec.chatMessage("<font color='#ff8547'>تم تفعيل الأرضية الخداعة [•]</font>", name)
  1596.             else
  1597.                 tfm.exec.chatMessage("<font color='#ff8547'>تم إلغاء تفعيل الأرضية الخداعة [•]</font>", name)
  1598.             end
  1599.  
  1600.              elseif cb=="text118" then
  1601.                         linkMode = not linkMode
  1602.                         if linkMode == true then
  1603.                         tfm.exec.chatMessage("<font color='#ff8547'>[Trexebot] !وضع رفيق الحياة تم تفعيله! سيتم تطبيق التغيير في الجولة القادمة</font>", name)
  1604.                         text118 = text118a
  1605.                         refresh4444()
  1606.                     else
  1607.                         tfm.exec.chatMessage("<font color='#ff8547'>[Trexebot] !وضع رفيق الحياة تم تعطيله! سيتم تطبيق التغيير في الجولة القادمة</font>", name)
  1608.                         text118 = text118i
  1609.                         refresh4444()
  1610.                  end
  1611.  
  1612.                 elseif cb=="text101" then
  1613.                 if game.started == true then
  1614.                 game.started = false
  1615.                 removeAreas()
  1616.                 changeMap()
  1617.                 end
  1618.  
  1619.             elseif cb=="text120" then
  1620.             night = not night
  1621.  
  1622.             if night == true then
  1623.                         tfm.exec.chatMessage("<font color='#ff8547'>[Trexebot] تم تمكين الوضع الليلي! سيتم تطبيق التغيير في الجولة القادمة</font>", name)
  1624.                         text120 = text120a
  1625.                         refresh4444()
  1626.                     else
  1627.                         tfm.exec.chatMessage("<font color='#ff8547'>[Trexebot] تم إلغاء تمكين الوضع الليلي! سيتم تطبيق التغيير في الجولة القادمة</font>", name)
  1628.                         text120 = text120i
  1629.                         refresh4444()
  1630.                  end
  1631.  
  1632.                
  1633.             elseif cb=="text133" then  
  1634.                  collision = not collision
  1635.  
  1636.             if collision == true then
  1637.                         tfm.exec.chatMessage("<font color='#ff8547'>[Trexebot]! تم تفعيل وضع التصادم! سيتم تطبيق التغيير في الجولة القادمة</font>", name)
  1638.                         text133 = text133a
  1639.                         refresh4444()
  1640.                     else
  1641.                         tfm.exec.chatMessage("<font color='#ff8547'>[Trexebot] ! تم إلغاء تفعيل وضع التصادم! سيتم تطبيق التغيير في الجولة القادمة</font>", name)
  1642.                         text133 = text133i
  1643.                         refresh4444()
  1644.                  end
  1645.  
  1646.              elseif cb=="text122" then  
  1647.             ui.addPopup(100, 2, "<p align='center'><font color='#ff8547'><font color='#F89F4B'><b>قتل لاعب</b><br>اكتب اسم الاعب المستهدف</font> <br><font color='#C2C2DA'>Username#tag :الصيغة</font></font></p>", name, 300, 290, 200, true)
  1648.  
  1649.             elseif cb=="text124" then  
  1650.             ui.addPopup(102, 2, "<p align='center'><font color='#ff8547'><font color='#F89F4B'><b>إعطاء جبنة</b><br>اكتب اسم الاعب المستهدف</font> <br><font color='#C2C2DA'>Username#tag :الصيغة</font></font></p>", name, 300, 290, 200, true)
  1651.  
  1652.              elseif cb=="text123" then  
  1653.             ui.addPopup(101, 2, "<p align='center'><font color='#ff8547'><font color='#F89F4B'><b>إعادة احياء لاعب</b><br>اكتب اسم الاعب المستهدف</font> <br><font color='#C2C2DA'>Username#tag :الصيغة</font></font></p>", name, 300, 290, 200, true)
  1654.  
  1655.  
  1656.                elseif cb=="text125" then  
  1657.             ui.addPopup(103, 2, "<p align='center'><font color='#ff8547'><font color='#F89F4B'><b>تحويل إلى مصاص دماء</b><br>اكتب اسم الاعب المستهدف</font> <br><font color='#C2C2DA'>Username#tag :الصيغة</font></font></p>", name, 300, 290, 200, true)
  1658.  
  1659.  
  1660.                elseif cb=="text126" then  
  1661.             ui.addPopup(104, 2, "<p align='center'><font color='#ff8547'><font color='#F89F4B'><b>إعطاء ميب</b><br>اكتب اسم الاعب المستهدف</font> <br><font color='#C2C2DA'>Username#tag :الصيغة</font></font></p>", name, 300, 290, 200, true)
  1662.  
  1663.               elseif cb=="text127" then  
  1664.             ui.addPopup(105, 2, "<p align='center'><font color='#ff8547'><font color='#F89F4B'><b>تجميد لاعب</b><br>اكتب اسم الاعب المستهدف</font> <br><font color='#C2C2DA'>Username#tag :الصيغة</font></font></p>", name, 300, 290, 200, true)
  1665.  
  1666.               elseif cb=="text128" then  
  1667.             ui.addPopup(106, 2, "<p align='center'><font color='#ff8547'><font color='#F89F4B'><b>إلغاء تجميد اللاعب</b><br>اكتب اسم الاعب المستهدف</font> <br><font color='#C2C2DA'>Username#tag :الصيغة</font></font></p>", name, 300, 290, 200, true)
  1668.  
  1669.               elseif cb=="text129" then  
  1670.             ui.addPopup(107, 2, "<p align='center'><font color='#ff8547'><font color='#F89F4B'><b>تفعيل قائمة الصور</b><br>قم بكتابة اسم اللاعب</font> <br><font color='#C2C2DA'>Username#tag :الصيغة</font></font></p>", name, 300, 290, 200, true)
  1671.  
  1672.               elseif cb=="text130" then  
  1673.             ui.addPopup(108, 2, "<p align='center'><font color='#ff8547'><font color='#F89F4B'><b>رسالة</b><br>قم بكتابة الرسالة في الأسفل :)</font> <font color='#C2C2DA'></font></font></p>", name, 300, 290, 200, true)
  1674.  
  1675.               elseif cb=="text131" then  
  1676.                 text131 = text131a
  1677.                 refresh4444()
  1678.             ui.addPopup(109, 2, "<p align='center'><font color='#ff8547'><font color='#F89F4B'><b>الرياح</b><br>قم بكتابة سرعة الرياح المرادة</font> <br><font color='#C2C2DA'><b>أرقام</b> استعمل</font></font></p>", name, 300, 290, 200, true)
  1679.  
  1680.               elseif cb=="text132" then  
  1681.                 text132 = text132a
  1682.                 refresh4444()
  1683.             ui.addPopup(110, 2, "<p align='center'><font color='#ff8547'><font color='#F89F4B'><b>الجاذبية</b><br>قم بكتابة الجاذبية المرادة</font> <br><font color='#C2C2DA'><b>أرقام</b> استعمل</font></font></p>", name, 300, 290, 200, true)
  1684.  
  1685.              elseif cb=="text121" then  
  1686.             timedanvilgod = not timedanvilgod
  1687.  
  1688.             if timedanvilgod == true then
  1689.                 tfm.exec.chatMessage("<font color='#ff8547'>.سيحرس إله السنادين الآن المنصة السفلية[•]</font>", name)
  1690.                 text121 = text121a
  1691.                 refresh444()
  1692.             else
  1693.                 tfm.exec.chatMessage("<font color='#ff8547'>[إله السنادين طار [سيظهر لبعض الوقت ثم سيذهب [•] </font>", name)
  1694.                     text121 = text121i
  1695.                 refresh444()
  1696.             end
  1697.  
  1698.             elseif cb=="text102" then
  1699.              removeAreas()
  1700.             spawnObjects()
  1701.             groundSwitch()
  1702.  
  1703.             elseif cb=="text103" then
  1704.              tfm.exec.chatMessage(
  1705.                     "<font color='#F89F4B'>[Trexebot]</font> <font color='#F89F4B'>!في المرة الأولى التي تفوز فيها ، ستحصل على تغيير في للون اسمك ، إذا فزت مرة أخرى ستصبح كبيرًا ، وستستمر في النمو هكذا! اتمنى ان تستمتع</font>"
  1706.                 )
  1707.  
  1708.              elseif cb=="text104" then
  1709.                  
  1710.                  imgEnabled = not imgEnabled
  1711.             if imgEnabled then
  1712.                  ui.addTextArea(0, "<p align='center'><font color='#010101'><a href='event:openMenu'>صورة</a></font></p>", nil, 510, 380, 70, 15, 0xEAC567, 0xFFC020, 0.8, true)
  1713.             else
  1714.             for i=0,1000 do
  1715.                 tfm.exec.removeImage(i, nil)
  1716.             end
  1717.                 for i=0,17 do
  1718.                 ui.removeTextArea(i, nil)
  1719.                 end
  1720.             end
  1721.  
  1722.  
  1723.              elseif cb=="text105" then
  1724.             backgroundsEnabled = not backgroundsEnabled
  1725.             if backgroundsEnabled == true then
  1726.                 text105 = text105a
  1727.                 refresh4444()
  1728.             else
  1729.                 text105 = text105i
  1730.                 refresh4444()
  1731.             end
  1732.             local t = backgroundsEnabled and "<font color='#ff8547'>!تم تمكين صورة للخلفية [•]</font>" or "<font color='#ff8547'>تم إلغاء تمكين صورة الخلفية [•]</font>"
  1733.             tfm.exec.chatMessage(t, name)
  1734.  
  1735.             elseif cb=="text106" then
  1736.             tfm.exec.setWorldGravity(randomwind, randomgravity)
  1737.             tfm.exec.chatMessage(("Gravity: %s, Wind: %s"):format(randomgravity, randomwind))
  1738.            --  ui.setMapName("<font color='#009d9d'>The Floor is</font> <font color='#02FD00'>ACID</font>")
  1739.            ui.setMapName("<font color='#DCE620'>!يوجد تغييرات في الجاذبية والرياح</font> <b>!حذارِ</b>")
  1740.            removeMessage()
  1741.            ui.addTextArea(350, "<p align='center'><font size='30' color='#C2C2DA'>!يوجد تغييرات في الجاذبية والرياح</font> <b>!حذارِ</b></font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
  1742.            system.newTimer(removeMessage,5000,false)
  1743.  
  1744.                 elseif cb=="text1" then
  1745.                     removeAreas()
  1746.                     spawnObjects()
  1747.                     groundSwitch()    
  1748.  
  1749.             elseif cb=="text107" then
  1750.             removeAnvilgod()
  1751.             checkAnvilgod()  
  1752.             ui.setMapName("<font color='#DCE620'>!يبدو وكأنه ظهر إله سنادين بري</font>")
  1753.             removeMessage()
  1754.            ui.addTextArea(351, "<p align='center'><font size='30' color='#C2C2DA'>!يبدو وكأنه ظهر إله سنادين بري</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
  1755.            system.newTimer(removeMessage,5000,false)
  1756.             system.newTimer(cooleffect,5000,false)
  1757.  
  1758.  
  1759.         elseif cb=="text108" then
  1760.             cannonsEnabled = not cannonsEnabled
  1761.           --  local t = cannonsEnabled and "<font color='#F89F4B'>[Trexebot]</font> <font color='#C2C2DA'>Cannons enabled! Press S or down arrow to shoot cannons.</font>" or "<font color='#F89F4B'>[Trexebot]</font> <font color='#C2C2DA'>Cannons disabled.</font>"
  1762.         --tfm.exec.chatMessage(t)
  1763.  
  1764.             if cannonsEnabled == true then
  1765.                 ui.setMapName("<font color='#DCE620'>S تم تفعيل كرات المدافع ، إضغط السهم الأسفل أو إضغط زر </font>><b>!انتبه</b>")
  1766.                 removeMessage()
  1767.                 text108 = text108a
  1768.                 refresh444()
  1769.            ui.addTextArea(352, "<p align='center'><font size='30' color='#C2C2DA'>S تم تفعيل كرات المدافع ، إضغط السهم الأسفل أو إضغط زر </font>><b>!انتبه</b></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
  1770.            system.newTimer(removeMessage,5000,false)
  1771.             else
  1772.                 ui.setMapName("<font color='#DCE620'>تم إلغاء تفعيل كرات المدافع</font>")
  1773.                 removeMessage()
  1774.                 text108 = text108i
  1775.                 refresh444()
  1776.            ui.addTextArea(353, "<p align='center'><font size='30' color='#C2C2DA'>تم إلغاء تفعيل كرات المدافع/font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
  1777.            system.newTimer(removeMessage,5000,false)
  1778.                 system.newTimer(cooleffect,5000,false)
  1779.  
  1780.             end
  1781.  
  1782.         elseif cb=="text109" then
  1783.            sizeEnabled = not sizeEnabled            
  1784.            -- local t = sizeEnabled and "<font color='#F89F4B'>[Trexebot]</font> <font color='#C2C2DA'>Size change enabled! Press X, C, V, B and N to change between sizes.</font>" or "<font color='#F89F4B'>[Trexebot]</font> <font color='#C2C2DA'>Size changes are now disabled.</font>"
  1785.            -- tfm.exec.chatMessage(t)
  1786.  
  1787.             if sizeEnabled == true then
  1788.                 ui.setMapName("<font color='#DCE620'>للتغيير بين الأحجام X, C, V, B, N تم تفعيل تغيير الحجم ، إضغط على</font>")
  1789.                 removeMessage()
  1790.                 text109 = text109a
  1791.                 refresh444()
  1792.            ui.addTextArea(354, "<p align='center'><font size='30' color='#C2C2DA' X, C, V, B, N تم تفعيل تغيير الحجم ، إضغط على</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
  1793.            system.newTimer(removeMessage,5000,false)
  1794.             else
  1795.                 ui.setMapName("<font color='#DCE620'>!تغيير الحجم معطل</font>")
  1796.                 removeMessage()
  1797.                 text109 = text109i
  1798.                 refresh444()
  1799.            ui.addTextArea(355, "<p align='center'><font size='30' color='#C2C2DA'>!تغيير الحجم معطل</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
  1800.            system.newTimer(removeMessage,5000,false)
  1801.                system.newTimer(cooleffect,5000,false)
  1802.  
  1803.             end
  1804.  
  1805.         elseif cb=="text110" then
  1806.              speedEnabled = not speedEnabled
  1807.             --local t = speedEnabled and "<font color='#F89F4B'>[Trexebot]</font> <font color='#C2C2DA'>Speed enabled! Press E repeatedly to speed up.</font>" or "<font color='#F89F4B'>[Trexebot]</font> <font color='#C2C2DA'>Speed disabled.</font>"
  1808.             --tfm.exec.chatMessage(t)
  1809.  
  1810.              if speedEnabled == true then
  1811.                 ui.setMapName("<font color='#DCE620'>.بشكل متكرر لتسرع E إضغط على حرف <b>تم تفعيل السرعة</b></font>")
  1812.                 removeMessage()
  1813.                 text110 = text110a
  1814.                 refresh444()
  1815.            ui.addTextArea(356, "<p align='center'><font size='30' color='#C2C2DA'>.بشكل متكرر لتسرع E إضغط على حرف <b>تم تفعيل السرعة</b></font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
  1816.            system.newTimer(removeMessage,5000,false)
  1817.             else
  1818.                 ui.setMapName("<font color='#DCE620'>تم إلغاء تفعيل السرعة</font>")
  1819.                  removeMessage()
  1820.            ui.addTextArea(357, "<p align='center'><font size='30' color='#C2C2DA'>تم إلغاء تفعيل السرعة</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
  1821.            system.newTimer(removeMessage,5000,false)
  1822.                system.newTimer(cooleffect,5000,false)
  1823.                text110 = text110i
  1824.                refresh444()
  1825.             end
  1826.         elseif cb=="text111" then
  1827.             sSheep = not sSheep
  1828.            --  local t = sSheep and "<font color='#ff8547'>[•] Click anywhere to spawn sheeps.</font>" or "<font color='#ff8547'>[•] Sheeps disabled.</font>"
  1829.            -- tfm.exec.chatMessage(t,name)
  1830.  
  1831.              if sSheep == true then
  1832.                 ui.setMapName("<font color='#DCE620'>من الممكن للخرفان أن تظهر <b>إنتبه</b></font>")
  1833.                 removeMessage()
  1834.            ui.addTextArea(358, "<p align='center'><font size='30' color='#C2C2DA'>من الممكن للخرفان أن تظهر <b>إنتبه</b></font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
  1835.            system.newTimer(removeMessage,5000,false)
  1836.             else
  1837.                 ui.setMapName("<font color='#DCE620'>نحن بأمان ، لا مزيد من الخرفان</font>")
  1838.                 removeMessage()
  1839.            ui.addTextArea(359, "<p align='center'><font size='30' color='#C2C2DA'>نحن بأمان ، لا مزيد من الخرفان</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
  1840.            system.newTimer(removeMessage,5000,false)
  1841.                 system.newTimer(cooleffect,5000,false)
  1842.             end
  1843.         elseif cb=="text1003" then
  1844.          ui.addTextArea(1001, "<p align='center'><b>:الأوامر</b></p><b>!start</b>  - بدء اللعبة\n<b>!stop</b> - جعل اللعبة تتوقف\n<b>!ms</b>  [رسالة] - إرسال رسالة ملونة\n<b>!ctime</b> [ثواني] - يغير وقت الإنتظار بين كل اسم مستعار وتغيير اللون\n<b>!mort</b>  [لاعب] [لاعبين آخرين] - يقتل اللاعبين الذي تم تحديدهم\n<b>!respawn</b> [اللاعب] [إعادة إحياء] -يقوم بإعادة إحياء اللاعب الذي تم تحديده\n<b>!g</b> - يغير الأرضية\n<b>!image</b> [اسم اللاعب] - تفعيل وضع الصور\n<b>!tp all</b>  - نقل الجميع عن طريق الضغط بأي مكان\n<b>!anvilgod</b>  - Makes an anvilgod appear. It pushes players that are closed to it.\n<b>!meep</b> - (سيتم تطبيقها بالجولة القادمة) تفعيل/إلغاء تفعيل الميب\n<b>!size</b>  - يمكّن / يعطل قدرة اللاعبين على تغيير الحجم بأنفسهم.\n<b>!backg</b>  - (سيتم تطبيقها بالجولة القادمة)تمكين و إلغاء تمكين صور الخلفية\n<b>!ffa</b> , <b>!speed</b>, <b>!size</b> ,<b>!wind</b> , <b>!gravity</b>, <b>!cheese</b>, <b>!cloth</b> [username], <b>!vampire</b>, <b>!joke</b> , and <b>!instructions</b> هي بعض الأوامر الأخرى المتاحة\nقدرات أخرى : إضغط على شيفت و اضغط بأي مكان لتضع أدوات شامان\n\n", name, 185, 50, 450, name, 1, 1, 0.7, true)
  1845.  
  1846.             ui.addTextArea(1002, "<p align='center'><a href='event:cerrar'>إغلاق</p>", name, 350, 360, 95, name,1, 1, 0.7, true)
  1847.  
  1848.              elseif cb=="text112" then
  1849.             togglegroundselector = not togglegroundselector
  1850.             if togglegroundselector == true then
  1851.                 tfm.exec.chatMessage("<font color='#ff8547'>تم إلغاء تفعيل الأرض العشوائية [•]</font>", name)
  1852.                 text112 = text112i
  1853.                 text113 = text113i
  1854.                 text114 = text114i
  1855.                 text115 = text115i
  1856.                 text116 = text116i
  1857.                 text117 = text117i
  1858.                 refresh4444()
  1859.             else
  1860.                 tfm.exec.chatMessage("<font color='#ff8547'>الأرض العشوائية تم تفعيلها [•]</font>", name)
  1861.                 text112 = text112a
  1862.                 text113 = text113i
  1863.                 text114 = text114i
  1864.                 text115 = text115i
  1865.                 text116 = text116i
  1866.                 text117 = text117i
  1867.                 refresh4444()
  1868.             end
  1869.             elseif cb=="text113" then
  1870.             togglegroundselector = true
  1871.             menugroundselector = 1
  1872.             tfm.exec.chatMessage("<font color='#ff8547'>تم تعيين الأرضية كأرضية حمضية [•]</font>", name)
  1873.                 text112 = text112i
  1874.                 text113 = text113a
  1875.                 text114 = text114i
  1876.                 text115 = text115i
  1877.                 text116 = text116i
  1878.                 text117 = text117i
  1879.                 refresh4444()
  1880.             elseif cb=="text114" then
  1881.             togglegroundselector = true
  1882.             tfm.exec.chatMessage("<font color='#ff8547'>تم تعيين الأرض كشبكة عنكبوت [•]</font>", name)
  1883.                 text112 = text112i
  1884.                 text113 = text113i
  1885.                 text114 = text114a
  1886.                 text115 = text115i
  1887.                 text116 = text116i
  1888.                 text117 = text117i
  1889.                 refresh4444()
  1890.             menugroundselector = 2
  1891.             elseif cb=="text115" then
  1892.             togglegroundselector = true
  1893.             tfm.exec.chatMessage("<font color='#ff8547'> تم تعيين الأرض كحمم بركانية [•]</font>", name)
  1894.                 text112 = text112i
  1895.                 text113 = text113i
  1896.                 text114 = text114i
  1897.                 text115 = text115a
  1898.                 text116 = text116i
  1899.                 text117 = text117i
  1900.                 refresh4444()
  1901.             menugroundselector = 3
  1902.             elseif cb=="text116" then
  1903.             togglegroundselector = true
  1904.             tfm.exec.chatMessage("<font color='#ff8547'>الأرض تم تعيينها للغيوم [•]</font>", name)
  1905.                 text112 = text112i
  1906.                 text113 = text113i
  1907.                 text114 = text114i
  1908.                 text115 = text115i
  1909.                 text116 = text116a
  1910.                 text117 = text117i
  1911.                 refresh4444()
  1912.            menugroundselector = 4
  1913.             elseif cb=="text117" then
  1914.             togglegroundselector = true
  1915.             tfm.exec.chatMessage("<font color='#ff8547'>الأرض تم تعيينها للماء [•]</font>", name)
  1916.                 text112 = text112i
  1917.                 text113 = text113i
  1918.                 text114 = text114i
  1919.                 text115 = text115i
  1920.                 text116 = text116i
  1921.                 text117 = text117a
  1922.                 refresh4444()
  1923.             menugroundselector = 5
  1924.  
  1925.         elseif cb=="text1" then
  1926.             newMap()    
  1927.        
  1928.         elseif cb=="text2" then
  1929.           --  tfm.exec.chatMessage("<font color='#ff8547'>You can MEEP anyone you want this round!</font>", nil)
  1930.             for name,player in pairs(tfm.get.room.playerList) do
  1931.                 tfm.exec.giveMeep(name)
  1932.             end
  1933.             text2 = text2a
  1934.             refresh444()
  1935.  
  1936.                 ui.setMapName("<font color='#DCE620'>!يمكنكم الآن استعمال قدرة الميب</font>")
  1937.                  removeMessage()
  1938.            ui.addTextArea(360, "<p align='center'><font size='30' color='#C2C2DA'>!يمكنكم الآن استعمال قدرة الميب</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
  1939.            system.newTimer(removeMessage,5000,false)
  1940.                 system.newTimer(cooleffect,10000,false)
  1941.  
  1942.         elseif cb=="text3" then
  1943.                -- tfm.exec.chatMessage("<font color='#ff8547'>Be careful, vampires everywhere!</font>", nil)
  1944.                 for name,player in pairs(tfm.get.room.playerList) do
  1945.                     if player.isShaman then
  1946.                         tfm.exec.setVampirePlayer(name)
  1947.                     end
  1948.                 end
  1949.                
  1950.         elseif cb=="text4" then
  1951.             killAnvil = not killAnvil
  1952.                 if killAnvil then
  1953.                     tfm.exec.chatMessage("<font color='#ff8547'>!إضغط شيفت لتقوم برمي السنادين</font>", nil)
  1954.                     for name,player in pairs(tfm.get.room.playerList) do
  1955.                         tfm.exec.bindKeyboard(name,16,true,true)
  1956.                     end
  1957.                 else
  1958.                     tfm.exec.chatMessage("<font color='#ff8547'>!لا يمكنك رمي السنادين بعد الآن [Trexebot]</font>", nil)
  1959.                     for name,player in pairs(tfm.get.room.playerList) do
  1960.                         tfm.exec.bindKeyboard(name,16,true,false)
  1961.                     end
  1962.                 end
  1963.            
  1964.         elseif cb=="text44" then
  1965.             deathOnCheese = not deathOnCheese
  1966.             if deathOnCheese then
  1967.                 tfm.exec.chatMessage("<font color='#ff8547'>!لا تلتقط الجبن</font>", nil)
  1968.             else
  1969.                 tfm.exec.chatMessage("<font color='#ff8547'>!الآن يمكنك أن تلتقط الجبن</font>", nil)
  1970.             end
  1971.  
  1972.         elseif cb=="text6" then
  1973.             caniFly = not caniFly
  1974.             if caniFly then
  1975.              --   tfm.exec.chatMessage("<font color='#ff8547'>Press SPACEBAR to fly.</font>", nil)
  1976.                     for name,player in pairs(tfm.get.room.playerList) do
  1977.                     tfm.exec.bindKeyboard(name,32,true,true)
  1978.                     end
  1979.                     text6= text6a
  1980.                     refresh444()
  1981.             else
  1982.               --  tfm.exec.chatMessage("<font color='#ff8547'>The Fly mode has been disabled.</font>", nil)
  1983.                     for name,player in pairs(tfm.get.room.playerList) do
  1984.                     tfm.exec.bindKeyboard(name,32,true,false)
  1985.                     end
  1986.                     text6 = text6i
  1987.                     refresh444()
  1988.             end
  1989.        
  1990.             if caniFly == true then
  1991.                 ui.setMapName("<font color='#DCE620'>!اضغط زر المسطرة للطيران</font>")
  1992.                   removeMessage()
  1993.            ui.addTextArea(361, "<p align='center'><font size='30' color='#C2C2DA'>!اضغط زر المسطرة للطيران</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
  1994.            system.newTimer(removeMessage,5000,false)
  1995.             else
  1996.                 ui.setMapName("<font color='#DCE620'>!لا يمكنك الطيران بعد الآن</font>")
  1997.                 removeMessage()
  1998.            ui.addTextArea(362, "<p align='center'><font size='30' color='#C2C2DA'>!لا يمكنك الطيران بعد الآن</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
  1999.            system.newTimer(removeMessage,5000,false)
  2000.                 system.newTimer(cooleffect,5000,false)
  2001.             end
  2002.  
  2003.  
  2004.         elseif cb=="text8" then
  2005.  
  2006.             if isAdmin(name) == true then
  2007.             explosionEnable = not explosionEnable
  2008.             if explosionEnable then
  2009.               tfm.exec.chatMessage("<font color='#ff8547'>تم تفعيل وضع الأنفجارات [•]</font>", name)
  2010.  
  2011.                 system.bindMouse(name, true)
  2012.             else
  2013.                 system.bindMouse(name, false)
  2014.                 tfm.exec.chatMessage("<font color='#ff8547'>تم إلغاء تفعيل وضع الانفجارات [•]</font>", name)
  2015.             end
  2016.             end
  2017.  
  2018.             if explosionEnable == true then
  2019.                 ui.setMapName("<font color='#DCE620'>!انتبه! من الممكن أن تنفجر</font>")
  2020.                 removeMessage()
  2021.            ui.addTextArea(363, "<p align='center'><font size='30' color='#C2C2DA'>!انتبه! من الممكن أن تنفجر</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
  2022.            system.newTimer(removeMessage,5000,false)
  2023.             else
  2024.                 ui.setMapName("<font color='#DCE620'>نحن الآن بأمان، لقد تم إلغاء تفعيلهم</font>")
  2025.                 removeMessage()
  2026.            ui.addTextArea(364, "<p align='center'><font size='30' color='#C2C2DA'>نحن الآن بأمان، لقد تم إلغاء تفعيلهم</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
  2027.            system.newTimer(removeMessage,5000,false)
  2028.                 system.newTimer(cooleffect,5000,false)
  2029.                  end
  2030.        
  2031.         elseif cb=="text10" then
  2032.             pokeBall = not pokeBall
  2033.             if pokeBall then
  2034.                 tfm.exec.chatMessage("<font color='#ff8547'>!كرات البوكي سأجمعها الآن</font>", nil)
  2035.                 for name,player in pairs(tfm.get.room.playerList) do
  2036.                     tfm.exec.bindKeyboard(name,16,true,true)
  2037.  
  2038.                 end
  2039.             else
  2040.                 tfm.exec.chatMessage("<font color='#ff8547'>رحلت كرات البوكي:(</font>", nil)
  2041.                 for name,player in pairs(tfm.get.room.playerList) do
  2042.                     tfm.exec.bindKeyboard(name,16,true,false)
  2043.                 end
  2044.             end
  2045.            
  2046.         elseif cb=="text12" then
  2047.             enablePortal = not enablePortal
  2048.             if enablePortal then
  2049.                 tfm.exec.bindKeyboard(player,188,true,true)
  2050.                 tfm.exec.bindKeyboard(player,190,true,true)
  2051.             else
  2052.                 tfm.exec.bindKeyboard(player,188,true,false)
  2053.                 tfm.exec.bindKeyboard(player,190,true,false)
  2054.             end
  2055.            
  2056.         elseif cb=="text14" then
  2057.             ui.setMapName("<font color='#DCE620'>!انظر، إنها تثلج</font>")
  2058.             text14 = text14a
  2059.             refresh444()
  2060.             removeMessage()
  2061.             ui.addTextArea(349, "<p align='center'><font size='30' color='#C2C2DA'>!انظر، إنها تثلج</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
  2062.             freezeplayers()
  2063.             tfm.exec.snow(60,10)
  2064.  
  2065.                
  2066.                
  2067.  
  2068.  
  2069.         elseif cb=="text15" then
  2070.             tfm.exec.chatMessage("<font color='#ff8547'>بوو ألم تراه قادما؟</font>", nil)
  2071.                 for name,player in pairs(tfm.get.room.playerList) do
  2072.                     if not player.isShaman then
  2073.                     tfm.exec.killPlayer(name)
  2074.                     end
  2075.                 end
  2076.  
  2077.         elseif cb=="text16" then
  2078.             movePlayer = not movePlayer
  2079.             if movePlayer then
  2080.                 system.bindMouse(name, true)
  2081.                 tfm.exec.chatMessage("<font color='#ff8547'>يمكنك الآن التنقل [•]</font>", name)
  2082.             else
  2083.                 system.bindMouse(name, false)
  2084.                 tfm.exec.chatMessage("<font color='#ff8547'>تم إلغاء تفعيل التنقل [•]</font>", name)
  2085.             end
  2086.  
  2087.         elseif cb=="text17" then
  2088.             movePlayer = not movePlayer
  2089.             if movePlayer then
  2090.              --   tfm.exec.chatMessage("<font color='#ff8547'>Click anywhere to teleport your mouse!</font>", nil)
  2091.                 for name,player in pairs(tfm.get.room.playerList) do
  2092.                     system.bindMouse(name, true)
  2093.                 end
  2094.                 text17 = text17a
  2095.                 refresh444()
  2096.             else
  2097.                 tfm.exec.chatMessage("<font color='#ff8547'>تم إلغاء تفعيل التنقل</font>", nil)
  2098.                 for name,player in pairs(tfm.get.room.playerList) do
  2099.                     system.bindMouse(name, false)
  2100.                 end
  2101.                 text17 = text17i
  2102.                 refresh444()
  2103.             end
  2104.            
  2105.             if movePlayer == true then
  2106.                 removeMessage()
  2107.                 ui.setMapName("<font color='#DCE620'>!انقر على أي مكان لتنقل فأرك</font>")
  2108.                 ui.addTextArea(344, "<p align='center'><font size='30' color='#C2C2DA'>!انقر على أي مكان لتنقل فأرك</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
  2109.             else
  2110.                 removeMessage()
  2111.                 ui.setMapName("<font color='#DCE620'>!تم إلغاء تفعيل التنقل</font>")
  2112.                 ui.addTextArea(345, "<p align='center'><font size='30' color='#C2C2DA'>!تم إلغاء تفعيل التنقل</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
  2113.                 system.newTimer(cooleffect,5000,false)
  2114.                 system.newTimer(removeMessage,5000,false)
  2115.             end
  2116.        
  2117.         elseif cb=="text19" then
  2118.             noJump = not noJump
  2119.             if noJump then
  2120.              --   tfm.exec.chatMessage("<font color='#ff8547'>Do not push the <b>Jump</b> button!</font>", nil)
  2121.                 for name,player in pairs(tfm.get.room.playerList) do
  2122.                 tfm.exec.bindKeyboard(name,38,true,true)
  2123.                 tfm.exec.bindKeyboard(name,87,true,true)
  2124.                 end
  2125.                 text19 = text19a
  2126.                 refresh444()
  2127.             else
  2128.                 --tfm.exec.chatMessage("<font color='#ff8547'>Hooray, we can jump again!</font>", nil)
  2129.                 for name,player in pairs(tfm.get.room.playerList) do
  2130.                 tfm.exec.bindKeyboard(name,38,true,false)
  2131.                 tfm.exec.bindKeyboard(name,87,true,false)
  2132.                 end
  2133.                 text19 = text19i
  2134.                 refresh444()
  2135.             end
  2136.        
  2137.                    if noJump == true then
  2138.                     removeMessage()
  2139.                 ui.setMapName("<font color='#DCE620'>!تقفز <b>لا</b></font>")
  2140.                 ui.addTextArea(342, "<p align='center'><font size='30' color='#C2C2DA'>!تقفز <b>لا</b></font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
  2141.  
  2142.             else
  2143.                 removeMessage()
  2144.                 ui.addTextArea(343, "<p align='center'><font size='30' color='#C2C2DA'>!يبدو أنه يمكنك القفز مرة أخرى</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
  2145.                 ui.setMapName("<font color='#DCE620'>!يبدو أنه يمكنك القفز مرة أخرى</font>")
  2146.                 system.newTimer(cooleffect,5000,false)
  2147.                 system.newTimer(removeMessage,5000,false)
  2148.             end
  2149.  
  2150.  
  2151.         elseif cb=="text20" then
  2152.             lureMouse = not lureMouse
  2153.             if lureMouse then
  2154.                 system.bindMouse(name, true)
  2155.                 tfm.exec.chatMessage("<font color='#ff8547'>.يمكنك الآن تحريك الفئران [•]</font>", name)
  2156.             else
  2157.                 system.bindMouse(name, false)
  2158.                 tfm.exec.chatMessage("<font color='#ff8547'>لم يعد بإمكانك تحريك الفئران [•]</font>", name)
  2159.             end
  2160.  
  2161.             if lureMouse == true then
  2162.                 removeMessage()
  2163.                 text20 = text20a
  2164.                 refresh444()
  2165.                 ui.setMapName("<font color='#DCE620'>يبدو أنه هناك قوة غريبة تدفعك... أوه لا</font>")
  2166.                 ui.addTextArea(340, "<p align='center'><font size='30' color='#C2C2DA'>يبدو أنه هناك قوة غريبة تدفعك... أوه لا</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
  2167.             else
  2168.                 removeMessage()
  2169.                 text20 = text20i
  2170.                 refresh444()
  2171.                 ui.setMapName("<font color='#DCE620'>!القوة الغريبة اختفت</font>")
  2172.                 ui.addTextArea(341, "<p align='center'><font size='30' color='#C2C2DA'>!القوة الغريبة اختفت</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
  2173.                 system.newTimer(cooleffect,5000,false)
  2174.                 system.newTimer(removeMessage,5000,false)
  2175.             end
  2176.  
  2177.         elseif cb=="text21" then
  2178.             caniFly = not caniFly
  2179.             noFly = not noFly
  2180.             if noFly then
  2181.            --     tfm.exec.chatMessage("<font color='#ff8547'>Press SPACEBAR to fly.</font>", nil)
  2182.                     for name,player in pairs(tfm.get.room.playerList) do
  2183.                     tfm.exec.bindKeyboard(name,32,true,true)
  2184.                     end
  2185.                     text21 = text21a
  2186.                     refresh444()
  2187.             else
  2188.             --    tfm.exec.chatMessage("<font color='#ff8547'>Okay, sorry. I lied.</font>", nil)
  2189.                     for name,player in pairs(tfm.get.room.playerList) do
  2190.                     tfm.exec.bindKeyboard(name,32,true,false)
  2191.                     end
  2192.                     text21 = text21i
  2193.                     refresh444()
  2194.             end
  2195.  
  2196.             if caniFly == true then
  2197.                 removeMessage()
  2198.                 ui.setMapName("<font color='#DCE620'>!إضغط زر المسافة للطيران</font>")
  2199.                 ui.addTextArea(339, "<p align='center'><font size='30' color='#C2C2DA'>!إضغط زر المسافة للطيران</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
  2200.             else
  2201.                 removeMessage()
  2202.                 ui.setMapName("<font color='#DCE620'>وضع الطيران تم إلغاء تفعيله</font>")
  2203.                 ui.addTextArea(339, "<p align='center'><font size='30' color='#C2C2DA'>همم ، يبدو أنه لم يعمل على النحو السليم</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
  2204.                 system.newTimer(cooleffect,5000,false)
  2205.                 system.newTimer(removeMessage,5000,false)
  2206.             end
  2207.  
  2208.         elseif cb=="text22" then
  2209.            
  2210.  
  2211.             tfm.exec.chatMessage("<font color='#ff8547'>ممكن يحدث القليل من اللاج</font>", nil)
  2212.  
  2213.              system.newTimer(function()
  2214.                 for name,player in pairs(tfm.get.room.playerList) do
  2215.                 tfm.exec.setShaman(name)
  2216.             end
  2217.  
  2218.                             end, 3000, false)
  2219.              tfm.exec.chatMessage("<font color='#ff8547'>!ءحء شو عملت أنا ؟ أنت الآن شامان</font>", nil)
  2220.  
  2221.         elseif cb=="text23" then
  2222.             conJur = not conJur
  2223.             if conJur then
  2224.                 tfm.exec.chatMessage("<font color='#ff8547'>Feel free to troll...with conjurations!</font>", nil)
  2225.                 for name,player in pairs(tfm.get.room.playerList) do
  2226.                     system.bindMouse(name, true)
  2227.                 end
  2228.             else
  2229.                 tfm.exec.chatMessage("<font color='#ff8547'>تم تعطيل الاقتران الآن</font>", nil)
  2230.                 for name,player in pairs(tfm.get.room.playerList) do
  2231.                     system.bindMouse(name, false)
  2232.                 end
  2233.             end
  2234.  
  2235.         elseif cb=="text24" then
  2236.             anvilRain = not anvilRain
  2237.             if anvilRain then
  2238.                -- tfm.exec.chatMessage("<font color='#ff8547'>It's raining anvils! Run and hide!</font>", nil)
  2239.             else
  2240.                -- tfm.exec.chatMessage("<font color='#ff8547'>Pfew, we're safe. For now.</font>", nil)
  2241.             end
  2242.  
  2243.             if anvilRain == true then
  2244.                 removeMessage()
  2245.                 ui.setMapName("<font color='#DCE620'>!إنها تمطر سنادين! أركض وأختبئ </font>")
  2246.                 ui.addTextArea(337, "<p align='center'><font size='30' color='#C2C2DA'>عم تمطر سنادين! أركض وأختبئ و انجو بحياتك </font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
  2247.                 text24 = text24a
  2248.                 refresh444()
  2249.             else
  2250.                 removeMessage()
  2251.                 ui.addTextArea(338, "<p align='center'><font size='30' color='#C2C2DA'>!ووه ، توقفت الأمطار السندانية </font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
  2252.                 ui.setMapName("<font color='#DCE620'>!ووه ، نحن بأمان</font>")
  2253.                 system.newTimer(cooleffect,5000,false)
  2254.                 system.newTimer(removeMessage,5000,false)
  2255.                 text24 = text24i
  2256.                 refresh444()
  2257.             end
  2258.  
  2259.         elseif cb=="text25" then
  2260.             ballRain = not ballRain
  2261.             if ballRain then
  2262.              --   tfm.exec.chatMessage("<font color='#ff8547'>It's cloudy with a chance of kirbys!</font>", nil)
  2263.             else
  2264.               --  tfm.exec.chatMessage("<font color='#ff8547'>Hey, it's sunny again. Let's go to the beach!</font>", nil)
  2265.             end
  2266.  
  2267.             if ballRain == true then
  2268.                 ui.setMapName("<font color='#DCE620'>!إنها تمطر كرات كيربي</font>")
  2269.                 removeMessage()
  2270.                 ui.addTextArea(333, "<p align='center'><font size='30' color='#C2C2DA'>!إنها تمطر كرات كيربي</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
  2271.                 text25 = text25a
  2272.                 refresh444()
  2273.             else
  2274.                 removeMessage()
  2275.                 ui.setMapName("<font color='#DCE620'>!الجو مشمس مرة أخرى. هيا لنذهب إلى الشاطئ</font>")
  2276.                 ui.addTextArea(334, "<p align='center'><font size='30' color='#C2C2DA'>!الجو مشمس مرة أخرى. هيا لنذهب إلى الشاطئ</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
  2277.                 system.newTimer(cooleffect,5000,false)
  2278.                 system.newTimer(removeMessage,5000,false)
  2279.                 text25 = text25i
  2280.                 refresh444()
  2281.             end
  2282.  
  2283.         elseif cb=="text26" then
  2284.             if isAdmin(name) == true then
  2285.             plankEnable = not plankEnable
  2286.                 if plankEnable then
  2287.                     system.bindMouse(player, true)
  2288.                     for _,v in pairs({32, 49, 50, 51}) do
  2289.                         tfm.exec.bindKeyboard(player, v, true, true)
  2290.                     end
  2291.                 else
  2292.                     system.bindMouse(player, false)
  2293.                     for _,v in pairs({32, 49, 50, 51}) do
  2294.                         tfm.exec.bindKeyboard(player, v, false, true)
  2295.                     end
  2296.                 end
  2297.             end
  2298.  
  2299.         elseif cb=="text27" then
  2300.             mouseKill = not mouseKill
  2301.             if mouseKill then
  2302.                -- tfm.exec.chatMessage("<font color='#ff8547'>Run or hide! Once the Click Monster gets you, you'll die!</font>", nil)
  2303.                 system.bindMouse(player,true)
  2304.             else
  2305.             --    tfm.exec.chatMessage("<font color='#ff8547'>The Click Monster has disappeared. We're safe!</font>", nil)
  2306.                 system.bindMouse(player,false)
  2307.             end
  2308.            
  2309.             if mouseKill == true then
  2310.                 removeMessage()
  2311.                 ui.setMapName("<font color='#DCE620'>اركض أو اختبئ! بمجرد أن يمسكك وحش الضغط  ، ستموت</font>")
  2312.                 ui.addTextArea(335, "<p align='center'><font size='30' color='#C2C2DA'>اركض أو اختبئ! بمجرد أن يمسكك وحش الضغط  ، ستموت</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
  2313.             else
  2314.                 removeMessage()
  2315.                 ui.addTextArea(336, "<p align='center'><font size='30' color='#C2C2DA'>لقد أختفى وحش الضغط ، نحن بأمان<</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
  2316.                 ui.setMapName("<font color='#DCE620'>لقد أختفى وحش الضغط ، نحن بأمان</font>")
  2317.                 system.newTimer(cooleffect,5000,false)
  2318.                 system.newTimer(removeMessage,5000,false)
  2319.             end
  2320.  
  2321.         elseif cb=="text88" then
  2322.             ui.removeTextArea(444,nil)
  2323.         end
  2324.     end
  2325.  
  2326. end
  2327.  
  2328. function eventPopupAnswer(id, name, anw)
  2329.     if id==1 and anw~="" then
  2330.     local gapChange=os.time()-miceInfo[name].lastChangenick
  2331.             if gapChange>changeTime*1000 then
  2332.             tfm.exec.chatMessage("<font color='#8FFF80'>"..anw.."</font><font color='#ffffff'> :لقد طلبت تغيير اسمك إلى</font>", name)
  2333.                 for _,admins in pairs(game.admins) do  
  2334.                 tfm.exec.chatMessage("<font color='#fff000'>/changenick "..name.."</font><font color='#8FFF80'> "..anw.."</font>", admins)
  2335.                 end
  2336.             miceInfo[name].lastChangenick=os.time()
  2337.             else
  2338.             tfm.exec.chatMessage("<font color='#D95959'>[•] عليك أن تنتظر "..math.ceil((changeTime-gapChange/1000)/60).." دقائق حتى طلب تغيير اسم آخر</font>", name)
  2339.             end
  2340.     end
  2341.  
  2342.     if id==100 and anw~="" then
  2343.         tfm.exec.killPlayer(anw)
  2344.     end
  2345.  
  2346.     if id==101 and anw~="" then
  2347.         tfm.exec.killPlayer(anw)
  2348.         tfm.exec.respawnPlayer(anw)
  2349.     end
  2350.  
  2351.     if id==102 and anw~="" then
  2352.         tfm.exec.giveCheese(anw)
  2353.     end
  2354.  
  2355.     if id==103 and anw~="" then
  2356.        tfm.exec.setVampirePlayer(anw, true)
  2357.     end
  2358.  
  2359.     if id==104 and anw~="" then
  2360.       tfm.exec.giveMeep(anw, true)
  2361.     end
  2362.  
  2363.       if id==105 and anw~="" then
  2364.       tfm.exec.freezePlayer(anw, true)
  2365.     end
  2366.  
  2367.     if id==106 and anw~="" then
  2368.       tfm.exec.freezePlayer(anw, false)
  2369.     end
  2370.  
  2371.     if id==107 and anw~="" then
  2372.       if imgEnabled == true then
  2373.  
  2374.                 ui.addTextArea(0, "<p align='center'><font color='#010101'><a href='event:openMenu'>صورة</a></font></p>", anw, 585, 380, 45, 15, 0xF89F4B, 0xF39033, 0.8, true)
  2375.  
  2376.                 else
  2377.                 imgEnabled = true
  2378.                 ui.addTextArea(0, "<p align='center'><font color='#010101'><a href='event:openMenu'>صورة</a></font></p>", anw, 585, 380, 45, 15, 0xF89F4B, 0xF39033, 0.8, true)
  2379.         end
  2380.     end
  2381.  
  2382.     if id==108 and anw~="" then
  2383.       tfm.exec.chatMessage("<font color='#ff8547'>• [".. name .."]: " ..anw .."</font>")
  2384.     end
  2385.  
  2386.     if id==109 and anw~="" then
  2387.         wind = anw
  2388.       tfm.exec.setWorldGravity(wind, gravity)
  2389.     end
  2390.  
  2391.     if id==110 and anw~="" then
  2392.         gravity = anw
  2393.       tfm.exec.setWorldGravity(wind, gravity)
  2394.     end
  2395.  
  2396.     if id==111 and anw~="" then
  2397.      newhost = tostring(anw)
  2398.     end
  2399.  
  2400.     if id==112 and anw~="" then
  2401.      players[anw].score = players[anw].score + 1
  2402.         setScore(anw)
  2403.  
  2404.           if players[anw].score == 1 then
  2405.  
  2406.             ui.addTextArea(10004, "<p align='center'><font color='#010101'><a href='event:changeColor'>لون الاسم</font></p>", anw, 730, 380, 65, 15, 0xF89F4B, 0xF39033, 0.8, true)
  2407.  
  2408.             elseif players[anw].score == 2 then
  2409.  
  2410.                 tfm.exec.changePlayerSize(anw, 2)
  2411.  
  2412.             elseif players[anw].score == 3 then
  2413.  
  2414.                 tfm.exec.changePlayerSize(anw, 3)
  2415.  
  2416.             elseif players[anw].score == 4 then
  2417.                 tfm.exec.changePlayerSize(anw, 4)
  2418.  
  2419.             elseif players[anw].score == 5 then
  2420.                 tfm.exec.changePlayerSize(anw, 5)
  2421.  
  2422.             elseif players[anw].score == 6 then
  2423.                  ui.addTextArea(10006, "<p align='center'><font color='#010101'><a href='event:changeNick'>تغيير الاسم</font></p>", anw, 640, 380, 80, 15, 0xF1F1F1, 0xF1F1F1, 0.8, true)
  2424.  
  2425.             elseif players[anw].score == 7 then
  2426.                 if imgEnabled == true then
  2427.  
  2428.                 ui.addTextArea(0, "<p align='center'><font color='#010101'><a href='event:openMenu'>صورة</a></font></p>", anw, 585, 380, 45, 15, 0xF89F4B, 0xF39033, 0.8, true)
  2429.                      end
  2430.                 else
  2431.                 imgEnabled = true
  2432.                 ui.addTextArea(0, "<p align='center'><font color='#010101'><a href='event:openMenu'>صورة</a></font></p>", anw, 585, 380, 45, 15, 0xF89F4B, 0xF39033, 0.8, true)
  2433.                 end
  2434.     end
  2435. end
  2436.  
  2437. function eventColorPicked(id, name, color)
  2438.     if color >= 0 then
  2439.         if id==10005 then
  2440.         local gapChange=os.time()-miceInfo[name].lastChangecolor
  2441.             if gapChange>changeTime*1000 then
  2442.                 tfm.exec.chatMessage("<font color='#"..string.format("%06x",color).."'> #"..string.format("%06x",color).." </font><font color='#ffffff'>:لقد طلبت هذا اللون</font>", name)
  2443.                 for _,admins in pairs(game.admins) do  
  2444.                 tfm.exec.chatMessage("<font color='#fff000'>/colornick "..name.."</font><font color='#"..string.format("%06x",color).."'> #"..string.format("%06x",color).."</font>", admins)
  2445.                 end
  2446.             miceInfo[name].lastChangecolor=os.time()
  2447.             else
  2448.             tfm.exec.chatMessage("<font color='#D95959'>.لطلب تغيير اللون مرة أخرى "..math.ceil((changeTime-gapChange/1000)/60).." يجب أن تنتظر [•]</font>", name)
  2449.             end
  2450.         mice[name].colorName=color
  2451.         end
  2452.     end
  2453. end
  2454.  
  2455. function openMenu(name)
  2456.     ui.addTextArea(1, "", name, 58, 44, 687, 110, 0x324650, 0x0, 0.4, true)
  2457.     ui.addTextArea(16, "<p align='center'><font color='#010101' size='32'> &lt; </font></p>", name, 8, 80, 50, 50, 0x324650, 0x0, 0, true)
  2458.     ui.addTextArea(17, "<p align='center'><font color='#010101' size='32'> &gt; </font></p>", name, 737, 80, 50, 50, 0x324650, 0x0, 0, true)
  2459.     ui.addTextArea(2, "<p align='center'><font size='32'><a href='event:prevPage'> &lt; </a></font></p>", name, 6, 78, 50, 50, 0x324650, 0x0, 0, true)
  2460.     ui.addTextArea(3, "<p align='center'><font size='32'><a href='event:nextPage'> &gt; </a></font></p>", name, 735, 78, 50, 50, 0x324650, 0x0, 0, true)
  2461.  
  2462.     local mouse = mice[name]
  2463.     local page = mouse.menuPage
  2464.     local menuImg = mouse.menuImg
  2465.  
  2466.     if menuImg then
  2467.         for i=1,6 do
  2468.             if menuImg[i] then tfm.exec.removeImage(menuImg[i]) end
  2469.             ui.removeTextArea(9+i, name)
  2470.         end
  2471.     else
  2472.         mouse.menuImg = {}
  2473.         menuImg = mouse.menuImg
  2474.     end
  2475.  
  2476.     for i=1,6 do
  2477.         local id = (page-1)*6 + i
  2478.         local data = imgList[id]
  2479.         if not data then break end
  2480.  
  2481.         local x1 = 63 + 115 * (i-1)
  2482.         ui.addTextArea(3+i, "", name, x1, 50, 100, 100, 0x324650, 0x0, 0.1, true)
  2483.         ui.addTextArea(9+i, "<p align='center'><a href='event:chooseImage"..id.."'>" .. data[1] .. "</a></p>\"", name, x1, 168, 100, 24, 0x324650, 0x0, 0.6, true)
  2484.         menuImg[i] = tfm.exec.addImage(data[2]..".png", "&10000", x1+50 - data[3], 100 - data[4], name)
  2485.     end
  2486. end
  2487.  
  2488. function closeMenu(name)
  2489.     local menuImg = mice[name].menuImg
  2490.     for i=1,6 do
  2491.         if menuImg[i] then tfm.exec.removeImage(menuImg[i]) end
  2492.     end
  2493.     for i=1,17 do
  2494.         ui.removeTextArea(i, name)
  2495.     end
  2496. end
  2497.  
  2498. function eventMouse(name, x, y)
  2499. if isAdmin(name) then
  2500.     if sObjects == true then
  2501.         spawnObjects(x,y)
  2502.     elseif sObjects == false then
  2503.     end
  2504.  
  2505.     if sSheep == true then
  2506.         spawnSheep(x,y)
  2507.     elseif sSheep == false then
  2508.     end
  2509.  
  2510.     if tpAll == true then
  2511.         for n,p in pairs(tfm.get.room.playerList) do
  2512.             tfm.exec.movePlayer(n,x,y,false,0,0,false)
  2513.         end
  2514.         tpAll = false
  2515.     end
  2516. end
  2517.  
  2518.  if mouseKill then
  2519.         for n,p in pairs(tfm.get.room.playerList) do
  2520.             if pythag(x,y,p.x,p.y) <= 15 then
  2521.                 tfm.exec.killPlayer(n)
  2522.                 tfm.exec.chatMessage("<font color='#ff8547'>لقد قُتلت. هل رأيت ذلك قادمًا؟</font>", n)
  2523.             end
  2524.         end
  2525.     end
  2526.     if explosionEnable then
  2527.         tfm.exec.explosion(x,y,50,50,true)
  2528.         tfm.exec.displayParticle(10,x,y,0,0,0,0,nil)
  2529.     end
  2530.     if plankEnable then
  2531.         tfm.exec.displayParticle(9, x, y, 0, 0, 0, 0)
  2532.         if point_x == nil then
  2533.             point_x = x
  2534.             point_y = y
  2535.         else
  2536.             makeGround(x,y,length(point_x,point_y,x,y), angle(point_x, point_y,x,y))
  2537.         end
  2538.     end
  2539.     if movePlayer then
  2540.         tfm.exec.movePlayer(name, x, y, false, 0, 1, false)
  2541.     end
  2542.     if lureMouse then
  2543.         tfm.exec.explosion(x,y,200,1000,true)
  2544.     end
  2545.     if conJur then
  2546.         tfm.exec.addConjuration(x/10, y/10, 10000)
  2547.     end
  2548.  
  2549. end
  2550.  
  2551. function eventLoop(cT, tR, t, tr)  
  2552.     for i,o in ipairs(toDespawn) do
  2553.         if os.time() > o[2]+despawnTime then
  2554.             tfm.exec.removeObject (o[1])
  2555.             table.remove (toDespawn, i)
  2556.         end
  2557.     end
  2558.  
  2559.     --if tR > 0 and tR < 500 then
  2560.      --   for i=1,math.floor(#playerList/2)*2,2 do
  2561.       --      tfm.exec.linkMice(playerList[numList[i]], playerList[numList[i+1]], false)
  2562.      --   end
  2563. --tfm.exec.chatMessage("<FC>Link mode disabled!</FC>")
  2564.     --end
  2565.  
  2566.     if meepEnabled and meep and os.time() >= meep then
  2567.         meep = nil
  2568.  
  2569.         for player in next, tfm.get.room.playerList do
  2570.             tfm.exec.giveMeep(player)
  2571.         end
  2572.     end
  2573.  
  2574.     if finishMap and os.time() >= finishMap then
  2575.         removeAreas()
  2576.         changeMap()
  2577.         finishMap = nil
  2578.     end
  2579.  
  2580.     if veryHidden then
  2581.         for name,player in pairs(tfm.get.room.playerList) do
  2582.             eventNewPlayer(name)
  2583.             tfm.exec.addImage("17a4f157.png","%"..name, -13, 20)
  2584.         end
  2585.     end
  2586.     if anvilRain then
  2587.             tfm.exec.addShamanObject(1009, math.random()*1600, -80)
  2588.     end
  2589.     if ballRain then
  2590.             tfm.exec.addShamanObject(615, math.random()*1600, -80)
  2591.     end
  2592.  
  2593. if game.started == true and reapet == true then
  2594.     tR = tR / 1000
  2595.     game.time = tR
  2596.     looper = looper + 0.5
  2597.     if looper == 1 then
  2598.         if game.currentGround == "acid" then
  2599.             if game.dirtTimer > 0  then
  2600.                 game.dirtTimer = game.dirtTimer - 1 elseif
  2601.                 game.dirtTimer <= 0 then
  2602.                     groundSwitch()
  2603.                     ui.removeTextArea(200, nil)
  2604.                 end
  2605.             end
  2606.             if game.currentGround == "dirt" then
  2607.                 if game.acidTimer > 0 then
  2608.                     if game.acidTimer == 4 then
  2609.                         spawnObjects()
  2610.                         spawnTokens()
  2611.                         spawnPoint()
  2612.                     end
  2613.                     ui.addTextArea(400, "<p align='center'><font size='90'>" ..game.acidTimer .."</font></p>", nil, 340, 125, 120, 119, 0x324650, 0x000000, 0, true)
  2614.                     game.acidTimer = game.acidTimer - 1
  2615.                 elseif
  2616.                 game.acidTimer <= 0 then
  2617.                     ui.removeTextArea(400,nil)groundSwitch()
  2618.                 end
  2619.             end
  2620.             looper = 0
  2621.         end
  2622.     end
  2623. end
  2624.  
  2625. function eventPlayerGetCheese(name)
  2626.     if deathOnCheese then
  2627.         tfm.exec.killPlayer(name)
  2628.         tfm.exec.chatMessage("<font color='#ff8547'>لقد أخبرتك بعدم أخذ الجبنة :(</font>",name)
  2629.     end
  2630. end
  2631.  
  2632.  
  2633. main()
Add Comment
Please, Sign In to add comment