Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[]
- #########################################
- ✸Created By - Ctmce✸
- ✸Modified by Trexexjc#0000✸✸
- ✸Module version: v2.3✸
- ✸Updated date: 24/03/2021✸
- #########################################
- ]]
- game = {
- admins = {"Trexexj#0000","Funcorp#0801","Inserusername#0000", ({pcall(nil)})[2]:match".-#%d+" },
- time = 60,
- started = false,
- currentGround = "dirt",
- dirtTimer = nil,
- acidTimer = nil,
- dirtCD = 3000,
- acidCD = 10000,
- tArea = 10,
- 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},
- tnumbers = {1,2,3},
- 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},
- 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},
- 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},
- 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},
- 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},
- tramp = {7,702},
- anvil = {10,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012},
- 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},
- 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},
- rune = {32},
- staticrune = {62},
- icecube = {54},
- bomb = {23},
- consumables = {33,34,65,89,90,95,97},
- apple = {39},
- sheep ={40},
- iceplank = {45},
- chocoplank = {46},
- cloud = {57},
- bubble = {59},
- miniplank = {60},
- weirdbox = {61},
- triangle = {68},
- divineitems = {67,69},
- others = {85,91,63,24},
- 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},
- groundselector = {1,2,3,4,5},
- tokens = {32,16,15},
- maps = {"7831764","7831764"},
- nightmap = {"7832674"},
- collisionmap = {"7832673"},
- bothmaps = {"7832786"},
- objectsList = {},
- tokenslist = {},
- sheepList = {},
- ground = {}
- };
- imgList = {
- {"Normal Mouse", "153d331c6b9", 50, 48};
- {"Pink Cat", "153ec4eef26", 23, 30, "153ec4ec77d", 26, 30};
- {"Nekoburger", "153ec7e82d6", 23, 26, "153ec7e664b", 26, 26};
- {"Tabby", "154c592261e", 30, 32, "154c5925a15", 27, 32};
- {"Squirrel", "156d73b5b13", 21, 24, "156d738d5b1", 20, 24};
- {"Mouse", "155ca47030c", 36, 22, "155ca47179a", 37, 22};
- {"Toilet", "1507c256bcc", 23, 41, "1507c258fe8", 23, 41};
- {"W.C.", "1738e96a2ec", 25, 47, "1738e96c44f", 25, 47};
- {"Forto 01", "156d7850e4a", 35, 52, "156d785220e", 38, 52};
- {"Forto 02", "156d79470fe", 35, 52, "156d79489a6", 38, 52};
- {"Mario", "156d7dafb2d", 23, 30, "156d7db1184", 23, 30};
- {"Luigi", "156d7db2971", 23, 30, "156d7db3b85", 23, 30};
- {"Samus", "156d7c67e7b", 23, 30, "156d7c6c7d7", 23, 30};
- {"Mins", "156d76d5156", 23, 30, "156d76db6e3", 23, 30};
- {"Minion", "155ca547459", 26, 30 };
- {"kenny", "155ca4bdc51", 25, 42 };
- {"Jerry", "171524a755e", 40, 42};
- {"Jerry2", "171524ab085", 38, 35};
- {"Tom","1718e3f183d", 40, 65,"1718e3f4491", 30, 65};
- {"Spongebob","155c4aac0b4", 20, 38, "155c4aadc1c", 20, 38};
- {"Derp dove", "172e1ca9b44", 35, 40, "172e1ca6f30", 55, 40};
- {"Cockroach", "17383aad409", 25, 47, "17383aab5b2", 25, 47};
- {"Rainbow", "17383ab1058", 25, 47, "17383aaf801", 25, 47};
- {"Noor Pixel", "171b2f0e813", 35, 68, "171b2f1126e", 50, 68};
- {"Pixel 1", "165965055b2", 25, 34, "165965055b2", 25, 34};
- {"Pixel 2", "1659658dc8f", 25, 30, "1659658dc8f", 25, 30};
- {"Pixel 3", "165966b6346", 25, 30, "165966b6346", 25, 30};
- {"Pixel 4", "165966cc2db", 25, 30, "165966cc2db", 25, 30};
- {"Pixel 5", "165966d9a68", 25, 30, "165966d9a68", 25, 30};
- {"Pixel 6", "165966f86f6", 25, 30, "165966f86f6", 25, 30};
- {"Pixel 7", "16596700568", 25, 30, "16596700568", 25, 33};
- {"Pixel 8", "165967088be", 25, 30, "165967088be", 25, 30};
- {"Pixel 9", "1659671b6fb", 25, 30, "1659671b6fb", 25, 30};
- {"Pixel 10", "16596720dd2", 25, 34, "16596720dd2", 25, 34};
- {"Pixel 11", "1659672d821", 25, 30, "1659672d821", 25, 30};
- {"Pixel 12", "16596736237", 25, 30, "16596736237", 25, 30};
- {"Pixel 13", " 1659673b8d5", 25, 30};
- {"Pixel 14", "16596746e71", 25, 34};
- {"You", "1738434a84e", 25, 47, "1738434c2cf", 25, 47};
- {"Miau", "17384355b4c", 25, 47, "1738435767d", 25, 47};
- {"Ugly Dog", "17383abd462", 25, 47, "17383abb9fe", 25, 47};
- {"Ugly Dog 2", "173843683a3", 25, 47, "17384369eec", 25, 47};
- {"Rat", "173844a7d9e", 25, 47, "173844aa1d6", 25, 47};
- {"Cat #1", "173843636fd", 25, 47, "17384365267", 25, 47};
- {"Cat #2", "17383ab9985", 25, 47, "17383ab7aac", 25, 47};
- {"Cat #3", "17391f528d3", 25, 47, "17391f54432", 25, 47};
- {"Woah Cat", "15565dbc655", 25, 25};
- {"Grumpy Cat", "15565dc7ac4", 25, 25};
- {"Doge", "1507b1a432a", 30, 43, "1507b1a54a9", 30, 43};
- {"Cute", "17384625265", 25, 47, "1738462804e", 25, 47};
- {"Magical", "17383eefee3", 25, 47, "17383ef2303", 25, 47};
- {"Yes", "173842744e7", 25, 47, "173842760e7", 25, 47};
- {"Rainbow Yes", "173842701c4", 25, 47, "17384271f71", 25, 47};
- {"Cute Duck", "17384359820", 25, 47, "1738435f804", 25, 47};
- {"Pikachu", "17391386dae", 25, 47, "17391389dd1", 25, 47};
- {"Eevee dance", "1738435099d", 25, 47, "17384352583", 25, 47};
- {"The game", "173843f5759", 25, 47, "173843f8e9b", 25, 47};
- {"Ratabellule", "1670d6b8629", 40, 55, "1670d6c6973", 40, 55};
- {"Wanda", "17384563b68", 25, 47, "17384565fe2", 25, 47};
- {"Cosmo", "1738456831d", 25, 47, "17384569f9f", 25, 47};
- {"Puff", "173845afe95", 25, 47, "173845b2b18", 25, 47};
- {"Varian grrr", "17389583514", 25, 47, "17389585eb0", 25, 47};
- {"Rat Potter", "17384698ec1", 27, 47, "1738469b74f", 27, 47};
- {"Keroro", "1738ed46aad", 25, 47, "1738ed49f86", 25, 47};
- {"Tamama", "1738ed4c9ce", 25, 47, "1738ed4f51b", 25, 47};
- {"Cheese", "1738422fc53", 25, 47, "17384235cc9", 25, 47};
- {"Pichu", "1739b8ac0a1", 25, 47, "1739b8adc46", 25, 47};
- {"Zacian", "1739b8a8d05", 25, 47, "1739b8aa504", 25, 47};
- {"Zamazenta", "1739b8a598f", 25, 47, "1739b8a7259", 25, 47};
- {"Naruto khe", "1739ba69ecf", 25, 47, "1739ba6b8a5", 25, 47};
- {"Stripper", "165df07c053", 36, 70, "165df038d30", 36, 70};
- {"Mouse Feels", "16760a89ce2", 27, 45, "16760a8be17",27, 45};
- {"Mouse Pika", "16760bc8d92", 27, 45, "16760bcabfb", 27,45};
- {"Peppa Pig", "155777ce1ab", 30, 50, "155777cc660", 30, 50};
- {"Waddles", "155c51325da", 25, 30, "155c5133917", 25, 30};
- {"Dora", "155c4d1de05", 25, 40, "155c4d1f100", 25, 40};
- {"Pepe 1", "15568257ca1", 20, 25};
- {"Pepe 2", "15568256a3c", 20, 25};
- {"Pepe 3", "1557c249008", 20, 25};
- {"Pepe 4", "15568255720", 20, 25};
- {"Pepe 5", "15568252932", 20, 25};
- {"Pepe 6", "155682514c1", 20, 25};
- {"Pepe 7", "1556824d1cd", 20, 25};
- {"Bieber", "155ca086a04", 25, 40};
- {"Pennywise (IT)", "170acc07423", 37, 50, "170acc048de", 37, 50};
- {"Tigrounette", "17383ac040a", 25, 47, "17383abec6d", 25, 47};
- {"Tigrorage", "17383ac3b3b", 25, 47, "17383ac20e3", 25, 47};
- {"Morangos", "17383ab4f2b", 25, 47, "17383ab3044", 25, 47};
- {"Melibelula", "17383aa9d7b", 25, 47, "17383aa85ee", 25, 47};
- {"Melibellule", "165968be277", 35, 55};
- {"Meli 1", "1507b11647d", 40, 50};
- {"Meli 2", "1507b1175bb", 40, 50};
- {"Meli 3", "1507b11865a", 40, 53};
- {"Meli 4", "1507b1196d0", 40, 60};
- {"Trollface", "1507b1adc13", 25, 29};
- {"Are you serious", "1507b1b73d8", 25, 30};
- {"Please", "1507b1b94f9", 25, 30};
- {"You don't say", "1507b1b314f", 25, 30};
- {"Oh no", "1507b1d17ef", 25, 30};
- {"Mwahaha", "1507b1c5e8e", 25, 30};
- {"Epic Rage", "1507b1bfa13", 25, 33};
- {"Challenge Accepted", "1507b1bb693", 25, 30};
- {"LOL", "1507b1ca194", 25, 30};
- {"What", "1507b1b20c3", 25, 30};
- {"Nice", "1507b1c0a9d", 25, 30};
- {"Pffftch", "1507b1a6609", 25, 30};
- {"Epic", "1507b1be8c3", 25, 30};
- {"Forever Alone", "1507b1c1b6e", 25, 30};
- {"Unimpressed", "1507b1aff31", 25, 30};
- {"Okay", "1507b1d289c", 25, 30};
- {"Are You Kidding Me", "1507b1b6340", 25, 30};
- {"Don't like", "1507b1cf647", 25, 30};
- {"Derp", "1507b1bd80d", 25, 30};
- {"Yaaaaas", "1507b1acab8", 25, 30};
- {"Goodbye", "1507b1ce598", 25, 30};
- {"Sad Face", "1507b1aa996", 25, 30};
- {"Poker Face", "1507b1a8772", 25, 30};
- {"Not Bad", "1507b1cd4f2", 25, 30};
- {"Y U NO", "1507b1b4200", 25, 30};
- {"Rage", "1507b1a98c7", 25, 25};
- {"What the duck", "1507b1cc438", 25, 25};
- {"Wow OK", "1507b1b0ffb", 25, 25};
- {"I like", "1507b1cb245", 25, 25};
- {"Listening", "1507b1c90c8", 25, 25};
- {"Confident", "1507b1bc76c", 25, 25};
- {"Suspicious", "1507b1aba24", 25, 25};
- {"Like a Sir", "1507b1c803d", 25, 25};
- {"Cereal", "1507b1ba583", 25, 25};
- {"Oh God Why", "1507b1d0768", 25, 25};
- {"Happy Troll", "1507b1c3d31", 25, 25};
- {"Herp", "1507b1c4dcb", 25, 25};
- {"Awwww Yeah", "1507b1b8475", 25, 25};
- {"Poker Face", "1507b1a76d7", 25, 25};
- {"Happy Derp", "1507b1c2c6a", 25, 25};
- {"Actually", "1507b1b52a7", 25, 25};
- {"Nyan_cat", "155c9b28b20", 35, 30 };
- {"Sheep #1", "16866bfcace", 32, 25, "16866beb84a", 32, 25};
- {"Sheep #2", "16866d0fd67", 32, 25, "16866d116a7", 32, 25};
- {"Sheep #3", "16866d0c9f5", 32, 25, "16866d0e34d", 32, 25};
- {"Sheep #4", "16866d0ac1c", 32, 25, "16866d09357", 32, 25};
- {"Sheep #5", "16866d05835", 32, 25, "16866d07712", 32, 25};
- {"Sheep #6", "16866d03eb3", 32, 25, "16866d0271b", 32, 25};
- {"Sheep #7", "16866db429a", 32, 25, "16866db5b70", 32, 25};
- {"Trexexjc", "1771fe02303", 22, 50, "1771fe1e400", 30, 50};
- {"Spiderman", "168a994a147", 50, 61, "168a994c06f", 50, 61};
- {"Spiderman2","168aa026d06", 50, 144, "168aa024cca", 50, 144};
- {"Spiderman3","168aa03190a", 65, 71, "168aa033d46", 65, 71};
- {"Spiderman4", "168aa029248", 50, 147, "168aa02b44d", 50, 147};
- {"Spiderman5","168aa02f89b", 55, 103, "168aa02db0e", 55, 103};
- {"White", "174d9e4c974", 18, 30, "174d9e0ab49", 18, 30};
- {"Cyan", "174d9e43cac", 18, 30, "174d9e01e9e", 18, 30};
- {"Purple", "174d9e4e0c5", 18, 30, "174d9e0c2be", 18, 30};
- {"Red", "174d9e1a5cc", 18, 30, "174d9e0072e", 18, 30};
- {"Yellow", "174d9e49a71", 18, 30, "174d9e07c67", 18, 30};
- {"Green", "174d9e46b8f", 18, 30, "174d9e04d84", 18, 30};
- {"Black", "174d9e4b1e2", 18, 30, "174d9e093d9", 18, 30};
- {"Pink", "174d9e482ff", 18, 30, "174d9e482ff", 18, 30};
- {"Blue", "174d9e4541d", 18, 30, "174d9e03612", 18, 30};
- {"White Pet", "174da0228c6", 18, 10, "174da01d1ae", 18, 10};
- {"Cheese", "155592fd7d0", 22, 10, "155593003fc", 22, 10};
- {"Fat Bugs Bunny", "16a1132c123",40, 116,"16a1132a8d5", 40, 116};
- {"Fat Sonic", "168a080bc7f", 50, 63, "168a0809dae", 50, 63};
- {"Shagi", "168b43de1fe", 55, 80, "168b43dc77b", 55, 80};
- }
- backgrounds = {"17864c917a9.png"}
- anvilgodImg = {"1736c5e3efe.png","1736c86888e.png"}
- menuPages = math.ceil(#imgList/6)
- miceInfo = {}
- imgData = {}
- imgId = {}
- mice = {}
- players = {}
- anvilgod={}
- local looper = 0
- local reapet = truelocal
- local wind=0
- local gravity=10
- tpAll = false
- local sObjects = false
- local sSheep = false
- local linkMode = false
- local playerList = {}
- local numList = {}
- local pos = 1
- local night = false
- local collision = false
- menugroundselector=1
- togglegroundselector = false
- trolltoggle = false
- game.ground.acid = {type = 19,x = 800,y = 287,r = 0.2,f = 0.3,w = 1600,h = 37,gc = true,mc = true}
- game.ground.dirt = {type = 6,x = 800,y = 287,r = 0.2,f = 0.3,w = 1600,h = 37,gc = true,mc = true}
- game.ground.troll = {type = 6,x = 800,y = 287,r = 0.2,f = 0.3,w = 1600,h = 37,gc = true,mc = true}
- game.ground.cobweb = {type = 15,x = 800,y = 287,w = 1600,h = 37,gc = false,mc = false}
- game.ground.water = {type = 9,x = 800,y = 287,w = 1600,h = 37,gc = true,mc = false}
- game.ground.lava = {type = 3,x = 800,y = 287,r = 0.2,f = 0.3,w = 1600,h = 37,gc = true,mc = false}
- game.ground.cloud = {type = 8,x = 800,y = 287,r = 0.2,f = 0.3,w = 1600,h = 37,gc = true,mc = false}
- despawnTime = 700
- fireDelay = 700
- keyDelay = 200
- changeTime = 900
- _speed = 50
- _fly = 40
- keys = {0, 2, 16, 32, 40, 66, 67, 69, 70, 78, 83, 86, 88}
- _left = 0
- _right = 2
- facingLeft = {}
- toDespawn = {}
- fireTS = {}
- alivePlayer=0
- flyEnabled = false
- speedEnabled = false
- cannonsEnabled = false
- imgEnabled = true
- sizeEnabled = false
- backgroundsEnabled = false
- meepEnabled = true
- funcorp = { ["Trexexjc#0000"] = true }
- aliveP = 0
- SPAWN_DELAY = 1000 -- 3 seconden in ms
- deathOnCheese = false
- timedanvilgod = true
- spectator = false
- enabletokens = true
- randomtokens = true
- bonusgathered = false
- host = ({pcall(nil)})[2]:match".-#%d+"
- changedhost = false
- newhost = "Hello"
- look = 12 -- look
- fric = 0.3 -- friction
- res = 0.2 -- restitution
- col = 0x324650 -- color
- hei = 10 -- height
- o = nil
- randomizer = game.numbers[math.random(1,#game.numbers)]
- trandomizer = game.tnumbers[math.random(1,#game.tnumbers)]
- deathrandomizer = game.groundselector[math.random(1,#game.groundselector)]
- fric_stored = 0
- res_stored = 0
- col_stored = nil
- point_x=nil
- point_y=nil
- gNum = 0
- text105a = "<font color='#64FF62'>• خلفية</font>"
- text134a = "<font color='#64FF62'>• نقاط</font>"
- text135a = "<font color='#64FF62'>• نقاط كل جولة</font>"
- text131a= "<font color='#64FF62'>• رياح</font>"
- text132a = "<font color='#64FF62'>• جاذبية</font>"
- text118a = "<font color='#64FF62'>• وضع رفيث الحياة</font>"
- text120a = "<font color='#64FF62'>• خريطة بوضع ليلي</font>"
- text133a = "<font color='#64FF62'>• إصطدام الفئران</font>"
- text112a = "<font color='#64FF62'>• تبديل عشوائي</font>"
- text113a = "<font color='#64FF62'>• أرضية حمضية</font>"
- text114a = "<font color='#64FF62'>• شبكة عنكبوت</font>"
- text115a = "<font color='#64FF62'>• حمم بركانية</font>"
- text116a = "<font color='#64FF62'>• غيوم</font>"
- text117a = "<font color='#64FF62'>• ماء</font>"
- text119a = "<font color='#64FF62'>• أرضية خادعة</font>"
- text105i = "<font color='#FF6C61'>• خلفية</font>"
- text134i = "<font color='#FF6C61'>• نقاط</font>"
- text135i = "<font color='#FF6C61'>• نقاط كل جولة</font>"
- text131i = "<font color='#FF6C61'>• رياح</font>"
- text132i = "<font color='#FF6C61'>• جاذبية</font>"
- text118i = "<font color='#FF6C61'>• وضع رفيق الحياة</font>"
- text120i = "<font color='#FF6C61'>• خريطة بوضع ليلي</font>"
- text133i = "<font color='#FF6C61'>• إصطدام الفئرانn</font>"
- text112i = "<font color='#FF6C61'>• أرضيات عشوائية</font>"
- text113i = "<font color='#FF6C61'>• أرضية حامضية</font>"
- text114i = "<font color='#FF6C61'>• شبكة عنكبوت</font>"
- text115i = "<font color='#FF6C61'>• حمم بركانية</font>"
- text116i = "<font color='#FF6C61'>• غيوم</font>"
- text117i = "<font color='#FF6C61'>• ماء</font>"
- text119i = "<font color='#FF6C61'>• أرضية خادعة</font>"
- text105 = "<font color='#FF6C61'>• خلفية</font>"
- text134 = "<font color='#64FF62'>• نقاط</font>"
- text135 = "<font color='#FF6C61'>• نقاط كل جولة</font>"
- text131 = "<font color='#FF6C61'>• رياح</font>"
- text132 = "<font color='#FF6C61'>• جاذبية</font>"
- text118 = "<font color='#FF6C61'>• وضع رفيق الحياة</font>"
- text120 = "<font color='#FF6C61'>• خريطة وضع ليلي</font>"
- text133 = "<font color='#FF6C61'>• تصادم الفئران</font>"
- text112 = "<font color='#64FF62'>• تبديل عشوائي</font>"
- text113 = "<font color='#FF6C61'>• أرضية حامضية</font>"
- text114 = "<font color='#FF6C61'>• شبكة عنكبوت</font>"
- text115 = "<font color='#FF6C61'>• حمم بركانية</font>"
- text116 = "<font color='#FF6C61'>• غيوم</font>"
- text117 = "<font color='#FF6C61'>• ماء</font>"
- text119 = "<font color='#FF6C61'>• أرضية خادعة</font>"
- text2a = "<font color='#64FF62'>• تمكين الميب</font>"
- text21a = "<font color='#64FF62'>• طيران مزيف</font>"
- text108a = "<font color='#64FF62'>• FFA</font>"
- text6a = "<font color='#64FF62'>• طيران</font>"
- text19a = "<font color='#64FF62'>• ممنوع القفز</font>"
- text109a = "<font color='#64FF62'>• الحجم</font>"
- text110a = "<font color='#64FF62'>• السرعة</font>"
- text17a = "<font color='#64FF62'>• (الجميع)نقل</font>"
- text24a = "<font color='#64FF62'>• [سنادين] مطر</font>"
- text25a = "<font color='#64FF62'>• [كرة شاطئ] مطر </a><br></font>"
- text14a = "<font color='#64FF62'>• ثلج</a><br></font>"
- text121a = "<font color='#64FF62'>• Dungeon Guardian</a><br></font>"
- text20a = "• تحريك الفئران"
- text2i = "<font color='#FF6C61'>• تمكين الميب</font>"
- text21i = "<font color='#FF6C61'>• طيران مزيف</font>"
- text108i = "<font color='#FF6C61'>• FFA</font>"
- text6i = "<font color='#FF6C61'>• طيران</font>"
- text19i = "<font color='#FF6C61'>• ممنوع القفز</font>"
- text109i = "<font color='#FF6C61'>• الحجم</font>"
- text110i = "<font color='#FF6C61'>• السرعة</font>"
- text17i = "<font color='#FF6C61'>• نقل (الجميع)</font>"
- text24i = "<font color='#FF6C61'>• مطر [سنادين]</font>"
- text25i = "<font color='#FF6C61'>• مطر [كرة شاطئ]</a><br></font>"
- text14i = "<font color='#FF6C61'>• ثلج</a><br></font>"
- text121i = "<font color='#FF6C61'>• Dungeon Guardian</a><br></font>"
- text20i = "• تحريك الفئران"
- text2 = "<font color='#FF6C61'>• تمكين الميب</font>"
- text21 = "<font color='#FF6C61'>• طيران مزيف</font>"
- text108 = "<font color='#FF6C61'>• FFA</font>"
- text6 = "<font color='#FF6C61'>• طيران</font>"
- text19 = "<font color='#FF6C61'>• ممنوع القفز</font>"
- text109 = "<font color='#FF6C61'>• الحجم</font>"
- text110 = "<font color='#FF6C61'>• السرعة</font>"
- text17 = "<font color='#FF6C61'>• نقل(الجميع)</font>"
- text24 = "<font color='#FF6C61'>• مطر[سنادين]</font>"
- text25 = "<font color='#FF6C61'>• مطر [كرات شاطئ]</a><br></font>"
- text14 = "<font color='#FF6C61'>• ثلج</a><br></font>"
- text121 = "<font color='#64FF62'>• Dungeon Guardian</a><br></font>"
- text20 = "• تحريك الفئران"
- function main()
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAutoTimeLeft(true)
- tfm.exec.disableAutoShaman(true)
- tfm.exec.disableAutoScore(true)
- system.disableChatCommandDisplay(nil,true)
- tfm.exec.disablePhysicalConsumables(true)
- tfm.exec.setRoomMaxPlayers(200)
- tfm.exec.disableMinimalistMode(true)
- changeMap()
- table.foreach(
- tfm.get.room.playerList,
- function(name)
- eventNewPlayer(name)
- end
- )
- for player, data in pairs(tfm.get.room.playerList) do
- eventNewPlayer(player) -- This forces all players that is already in the room trigger eventNewPlayer
- end
- end
- function refresh4444()
- for _,admins in pairs(game.admins) do
- ui.removeTextArea(4444,admins)
- 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)
- end
- end
- function refresh444()
- for _,admins in pairs(game.admins) do
- ui.removeTextArea(444,admins)
- 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)
- end
- end
- function refreshRandomizer()
- randomizer = game.numbers[math.random(1,#game.numbers)]
- trandomizer = game.tnumbers[math.random(1,#game.tnumbers)]
- end
- function refreshdeath()
- deathrandomizer = game.groundselector[math.random(1,#game.groundselector)]
- end
- function cooleffect()
- if changedhost == true then
- ui.setMapName("<font color='#009d9d'>المنظمين الحاليين: </font> <font color='#F89F4B'>"..newhost.."</font>")
- else
- ui.setMapName("<font color='#009d9d'>المنظمين الحاليين: </font> <font color='#F89F4B'>"..host.."</font>")
- end
- -- tfm.exec.chatMessage("<font color='#ff8547'>[•]".. playerName .." got the point!</font>", nil)
- end
- 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
- function changeMap()
- if night == true then
- if collision == true then
- tfm.exec.newGame(game.bothmaps[math.random(1,#game.bothmaps)])
- cooleffect()
- else
- tfm.exec.newGame(game.nightmap[math.random(1,#game.nightmap)])
- cooleffect()
- end
- elseif collision == true then
- tfm.exec.newGame(game.collisionmap[math.random(1,#game.collisionmap)])
- cooleffect()
- else
- tfm.exec.newGame(game.maps[math.random(1,#game.maps)])
- cooleffect()
- end
- end
- local setScore = function(name) tfm.exec.setPlayerScore(name, players[name].score, false) end
- 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
- function removeObjects()
- for _,i in next,game.objectsList
- do
- tfm.exec.removeObject(i)
- end
- game.objectsList = {}
- end
- function freezeplayers()
- system.newTimer(function() table.foreach(tfm.get.room.playerList,function(name)
- ui.setMapName("<font color='#DCE620'>أنت تزداد برودة</font>")
- end)
- removeMessage()
- ui.addTextArea(346, "<p align='center'><font size='30' color='#C2C2DA'>أنت تزداد برودة</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
- end,10000,false)
- system.newTimer(function() table.foreach(tfm.get.room.playerList,function(name) ui.setMapName("<font color='#DCE620'>آه ، يبدو أنك تجمدت</font>") end)
- removeMessage()
- ui.addTextArea(347, "<p align='center'><font size='30' color='#C2C2DA'>...آه ، يبدو أنك تجمدت</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
- end,15000,false)
- -- system.newTimer(unfreeze(),15000,false)
- system.newTimer(function()
- for n,p in pairs(tfm.get.room.playerList) do
- tfm.exec.freezePlayer(n, true)
- end
- end, 15000, false)
- system.newTimer(function()
- for n,p in pairs(tfm.get.room.playerList) do
- tfm.exec.freezePlayer(n, false)
- end
- end, 20000, false)
- system.newTimer(function() table.foreach(tfm.get.room.playerList,function(name) ui.setMapName("<font color='#DCE620'>!يبدو أنه تم فك تجميدك</font>") end)
- removeMessage()
- text14 = text14i
- refresh444()
- ui.addTextArea(348, "<p align='center'><font size='30' color='#C2C2DA'>!يبدو أنه تم فك تجميدك</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
- system.newTimer(removeMessage,5000,false)
- system.newTimer(cooleffect,5000,false)
- end,20000,false)
- -- system.newTimer(unfreeze(),5000,false)
- end
- local resetProp = function() game.time = 60 game.tArea = 10 game.objectsList = {} game.sheepList = {} game.currentGround = "dirt" refreshTimers() end
- local removeAreas = function() for _,area in next,{200,300,400} do ui.removeTextArea(area,nil) end end
- function alivePlrCount()
- local c = 0
- for n,p in pairs(tfm.get.room.playerList) do
- if not p.isDead then
- c = c + 1
- end
- end
- return c
- end
- local isAdmin = function(name) for _,n in next,game.admins do if n == name then return true end end return false end
- function chooseo()
- if randomizer == 1 then
- o = game.boxes[math.random(1,#game.boxes)]
- elseif randomizer == 2 then
- o = game.miniboxes[math.random(1,#game.miniboxes)]
- elseif randomizer == 3 then
- o = game.smallplank[math.random(1,#game.smallplank)]
- elseif randomizer == 4 then
- o = game.largeplank[math.random(1,#game.largeplank)]
- elseif randomizer == 5 then
- o = game.balls[math.random(1,#game.balls)]
- elseif randomizer == 6 then
- o = game.tramp[math.random(1,#game.tramp)]
- elseif randomizer == 7 then
- o = game.anvil[math.random(1,#game.anvil)]
- elseif randomizer == 8 then
- o = game.cannon[math.random(1,#game.cannon)]
- elseif randomizer == 9 then
- o = game.baloon[math.random(1,#game.baloon)]
- elseif randomizer == 10 then
- o = game.rune[math.random(1,#game.rune)]
- elseif randomizer == 11 then
- o = game.staticrune[math.random(1,#game.staticrune)]
- elseif randomizer == 12 then
- o = game.bomb[math.random(1,#game.bomb)]
- elseif randomizer == 13 then
- o = game.consumables[math.random(1,#game.consumables)]
- elseif randomizer == 14 then
- o = game.apple[math.random(1,#game.apple)]
- elseif randomizer == 15 then
- o = game.sheep[math.random(1,#game.sheep)]
- elseif randomizer == 16 then
- o = game.iceplank[math.random(1,#game.iceplank)]
- elseif randomizer == 17 then
- o = game.chocoplank[math.random(1,#game.chocoplank)]
- elseif randomizer == 18 then
- o = game.cloud[math.random(1,#game.cloud)]
- elseif randomizer == 19 then
- o = game.bubble[math.random(1,#game.bubble)]
- elseif randomizer == 20 then
- o = game.miniplank[math.random(1,#game.miniplank)]
- elseif randomizer == 21 then
- o = game.weirdbox[math.random(1,#game.weirdbox)]
- elseif randomizer == 22 then
- o = game.triangle[math.random(1,#game.triangle)]
- elseif randomizer == 23 then
- o = game.divineitems[math.random(1,#game.divineitems)]
- elseif randomizer == 24 then
- o = game.others[math.random(1,#game.others)]
- end
- end
- function spawnObjects(x,y)
- if game.started == true then
- local oC = math.ceil((game.time / 10 > 1 and game.time / 10 or 1))
- local g = false
- local a = nil
- if o == 62 then
- a = 90 g = true
- end
- if x ~= nil and y ~= nil then
- refreshRandomizer()
- chooseo()
- if o == 62 then
- a = 90
- g = true
- else
- a = nil
- g = nil
- end
- local sO = tfm.exec.addShamanObject(o, x, y, math.random(1,360),0,0, (g or false)) table.insert(game.objectsList,sO)
- --local sOO = tfm.exec.addShamanObject(o, x, y, (a and a or 0),0,0, (g or false)) table.insert(game.objectsList,sOO)
- else
- for i=1,oC,1 do
- refreshRandomizer()
- chooseo()
- if o == 62 then
- a = 90
- g = true
- else
- a = nil
- g = nil
- end
- 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)
- 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)
- end
- end
- end
- end
- function spawnPoint(x,y)
- if game.started == true then
- chance = math.random(1,14)
- if chance == 12 then
- if bonusgathered == false then
- bonusgathered = true
- tfm.exec.chatMessage("<font color='#ff8547'>لقد ظهرت نقطة مجانية [•]</font>", nil)
- location = math.random(1,2)
- if location == 1 then
- tfm.exec.addBonus(0, math.random(0,1600), math.random(50,250),9999)
- else
- tfm.exec.addBonus(0, math.random(0,1600), math.random(350,550),9999)
- end
- end
- end
- end
- end
- function spawnTokens(x,y)
- if game.started == true then
- if enabletokens == true then
- if randomtokens == true then
- o = math.random (1,10)
- else
- o = 1
- end
- if o == 1 then
- tfm.exec.addBonus(math.random(1,3), math.random(0,1600), 250)
- tfm.exec.addBonus(math.random(1,3), math.random(0,1600), 740)
- end
- end
- end
- end
- function eventPlayerBonusGrabbed(playerName, bonusId)
- if bonusId == 9999 then
- bonusgathered = false
- tfm.exec.removeBonus(9999,nil)
- tfm.exec.chatMessage("<font color='#ff8547'>".. playerName .." إخذ النقطة [•]</font>", nil)
- tfm.exec.chatMessage("<font color='#ff8547'>!مبروك لقد أخدت النقطة[•]</font>", playerName)
- players[playerName].score = players[playerName].score + 1
- setScore(playerName)
- if players[playerName].score == 1 then
- 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)
- elseif players[playerName].score == 2 then
- tfm.exec.changePlayerSize(playerName, 2)
- elseif players[playerName].score == 3 then
- tfm.exec.changePlayerSize(playerName, 3)
- elseif players[playerName].score == 4 then
- tfm.exec.changePlayerSize(playerName, 4)
- elseif players[playerName].score == 5 then
- tfm.exec.changePlayerSize(playerName, 5)
- elseif players[playerName].score == 6 then
- 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)
- elseif players[playerName].score == 7 then
- if imgEnabled == true then
- 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)
- else
- imgEnabled = true
- 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)
- end
- end
- end
- end
- function spawnSheep(x,y)
- if game.started == true then
- local oC = math.ceil((game.time / 10 > 1 and game.time / 10 or 1))
- local g = false
- local a = nil
- if o == 62 then
- a = 90 g = true
- end
- if x ~= nil and y ~= nil then
- local o = game.sheep[math.random(1,#game.sheep)]
- if o == 62 then
- a = 90
- g = true
- else
- a = nil
- g = nil
- end
- local sO = tfm.exec.addShamanObject(o, x, y, (a and a or 0),0,0, (g or false)) table.insert(game.sheepList,sO)
- else
- for i=1,oC,1 do
- local o = game.sheep[math.random(1,#game.sheep)]
- if o == 62 then
- a = 90
- g = true
- else
- a = nil
- g = nil
- end
- 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)
- end
- end
- end
- end
- function groundSwitch()
- gP = game.ground.acid
- if game.started == true then
- if game.currentGround == "dirt" then
- refreshdeath()
- if trolltoggle == true then
- gP = game.ground.troll
- else
- if togglegroundselector == true then
- if menugroundselector == 1 then
- gP = game.ground.acid
- elseif menugroundselector == 2 then
- gP = game.ground.cobweb
- elseif menugroundselector == 3 then
- gP = game.ground.lava
- elseif menugroundselector == 4 then
- gP = game.ground.cloud
- elseif menugroundselector == 5 then
- gP = game.ground.water
- end
- elseif togglegroundselector == false then
- if deathrandomizer == 1 then
- gP = game.ground.acid
- elseif deathrandomizer == 2 then
- gP = game.ground.cobweb
- elseif deathrandomizer == 3 then
- gP = game.ground.lava
- elseif deathrandomizer == 4 then
- gP = game.ground.cloud
- elseif deathrandomizer == 5 then
- gP = game.ground.water
- end
- end
- if timedanvilgod == true then
- system.newTimer(function()
- removeAnvilgod()
- checkAnvilgod()
- end, math.random(15000,30000), false)
- end
- end
- tfm.exec.removeObject(1)
- 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})
- 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})
- if trolltoggle == true then
- ui.addTextArea(200, "<p align='center'><font size='30' color='#FBFBFB'>الأرض ما تحولت ولا حاجة دا تصريح جدعنة مني بس</font></p>", nil, 0, 125, 800, 119, 0x324650, 0x000000, 0, true)
- else
- if togglegroundselector == true then
- if menugroundselector == 1 then
- ui.addTextArea(200, "<p align='center'><font size='50' color='#00FF21'>الأرض أصبحت حمض</font></p>", nil, 140, 125, 520, 119, 0x324650, 0x000000, 0, true)
- elseif menugroundselector == 2 then
- ui.addTextArea(200, "<p align='center'><font size='50' color='#FFFFFF'>الأرض أصبحت شبكة عنكبوت</font></p>", nil, 140, 125, 620, 119, 0xFFFFFF, 0x000000, 0, true)
- elseif menugroundselector == 3 then
- ui.addTextArea(200, "<p align='center'><font size='50' color='#D84801'>الأرض أصبحت حمم بركانية</font></p>", nil, 140, 125, 520, 119, 0xFE3C09, 0x000000, 0, true)
- elseif menugroundselector == 4 then
- ui.addTextArea(200, "<p align='center'><font size='50' color='#99DFFA'>الأرض أصبحت غيوم</font></p>", nil, 140, 125, 600, 119, 0x99DFFA, 0x000000, 0, true)
- elseif menugroundselector == 5 then
- ui.addTextArea(200, "<p align='center'><font size='50' color='#6DA7AF'>الأرض أصبحت ماء</font></p>", nil, 140, 125, 600, 119, 0x2359D6, 0x000000, 0, true)
- end
- else
- if deathrandomizer == 1 then
- ui.addTextArea(200, "<p align='center'><font size='50' color='#00FF21'>الأرض أصبحت حمض</font></p>", nil, 140, 125, 520, 119, 0x324650, 0x000000, 0, true)
- elseif deathrandomizer == 2 then
- ui.addTextArea(200, "<p align='center'><font size='50' color='#FFFFFF'>الأرض أصبحت شبكة عنكبوت</font></p>", nil, 140, 125, 620, 119, 0xFFFFFF, 0x000000, 0, true)
- elseif deathrandomizer == 3 then
- ui.addTextArea(200, "<p align='center'><font size='50' color='#D84801'>الأرض أصبحت حمم بركانية</font></p>", nil, 140, 125, 520, 119, 0xFE3C09, 0x000000, 0, true)
- elseif deathrandomizer == 4 then
- ui.addTextArea(200, "<p align='center'><font size='50' color='#99DFFA'>الأرض أصبحت غيوم</font></p>", nil, 140, 125, 600, 119, 0x99DFFA, 0x000000, 0, true)
- elseif deathrandomizer == 5 then
- ui.addTextArea(200, "<p align='center'><font size='50' color='#6DA7AF'>الأرض أصبحت ماء</font></p>", nil, 140, 125, 600, 119, 0x2359D6, 0x000000, 0, true)
- end
- end
- end
- -- 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)
- refreshTimers(game.currentGround)
- game.currentGround = "acid"
- elseif game.currentGround == "acid" then
- local gP = game.ground.dirt
- for _,id in next,game.objectsList do
- tfm.exec.removeObject(id)
- end
- removeAnvilgod()
- 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})
- 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})
- refreshTimers(game.currentGround) game.currentGround = "dirt"
- end
- end
- end
- function giveWin(name)
- tfm.exec.setVampirePlayer(name, false)
- tfm.exec.giveCheese(name)
- tfm.exec.playerVictory(name)
- players[name].score = players[name].score + 1
- cannonsEnabled = false
- flyEnabled = false
- speedEnabled = false
- setScore(name)
- for i=1,math.floor(#playerList/2)*2,2 do
- tfm.exec.linkMice(playerList[numList[i]], playerList[numList[i+1]], false)
- end
- if players[name].score == 1 then
- tfm.exec.chatMessage(
- "<font color='#F89F4B'>[Trexbot]</font> <font color='#C2C2DA'>!" ..name.." أحسنت يا \nيمكنك الآن اختيار لون لاسمك</font>"
- )
- 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)
- elseif players[name].score == 2 then
- tfm.exec.chatMessage(
- "<font color='#F89F4B'>[Trexbot]</font> <font color='#C2C2DA'>! في الجولة الثانية ستصبح أكبر !" ..name.." رائع يا </font>"
- )
- tfm.exec.changePlayerSize(name, 2)
- elseif players[name].score == 3 then
- tfm.exec.chatMessage(
- "<font color='#F89F4B'>[Trexbot]</font> <font color='#C2C2DA'> " ..name..",لقد فزت ثلاث مرات \nفي الجولة القادمة ستكبر أكتر و أكتر</font>"
- )
- tfm.exec.changePlayerSize(name, 3)
- elseif players[name].score == 4 then
- tfm.exec.chatMessage(
- "<font color='#F89F4B'>[Trexbot]</font> <font color='#C2C2DA'>" ..name.." لقد فزت أربع مرات سيزداد حجمك أيضا</font>"
- )
- tfm.exec.changePlayerSize(name, 4)
- elseif players[name].score == 5 then
- tfm.exec.chatMessage(
- "<font color='#F89F4B'>[Trexbot]</font> <font color='#C2C2DA'>ستحصل على أكبر حجم " ..name.." خمس مرات! حقا؟</font>"
- )
- tfm.exec.changePlayerSize(name, 5)
- elseif players[name].score == 6 then
- tfm.exec.chatMessage(
- "<font color='#F89F4B'>[Trexbot]</font> <font color='#C2C2DA'>وصلت بالفعل إلى الحجم الأقصى! يمكنك الآن طلب تغيير الاسم " ..name.."</font>"
- )
- 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)
- elseif players[name].score == 7 then
- tfm.exec.chatMessage(
- "<font color='#F89F4B'>[Trexbot]</font> <font color='#C2C2DA'>يمكنك الآن استخدام الصور " ..name.." مذهل يا</font>"
- )
- if imgEnabled == true then
- 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)
- else
- imgEnabled = true
- 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)
- end
- else
- tfm.exec.chatMessage(
- "<font color='#F89F4B'>[Trexbot]</font> <font color='#C2C2DA'>لقد أحسنت اللعب !" ..name.." مبارك يا</font>"
- )
- end
- wind=0
- gravity=10
- end
- function setGround(g)
- if game.started == false then
- game.currentGround = g
- local gP = game.ground[g]
- 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})
- 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})
- else
- game.currentGround = g
- local gP = game.ground[g]
- 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})
- 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})
- refreshTimers(game.currentGround)
- end
- end
- function table.contains(t, val)
- for k,v in pairs(t) do
- if v==val then
- return true
- end
- end
- return false
- end
- function eventNewGame()
- bonusgathered = false
- randomwind = math.random(-12, 12)
- randomgravity = math.random(0, 20)
- text131 = text131i
- text132 = text132i
- text2 = text2i
- text108 = text108i
- text110 = text110i
- refresh444()
- refresh4444()
- tfm.exec.killPlayer("Funcorp#0801")
- -- Trex's buffs
- if spectator == false then
- tfm.exec.killPlayer("Trexexjc#0000")
- tfm.exec.respawnPlayer("Trexexjc#0000")
- else
- tfm.exec.killPlayer("Trexexjc#0000")
- end
- tfm.exec.setPlayerScore("Trexexjc#0000", 77777)
- removeAnvilgod()
- for i=1,math.floor(#playerList/2)*2,2 do
- tfm.exec.linkMice(playerList[numList[i]], playerList[numList[i+1]], false)
- end
- for n,mouse in pairs(mice) do
- facingLeft[n] = false
- updateImg(n)
- end
- if game.started == true then
- resetProp()
- meep = os.time() + 35000
- reapet = true
- tfm.exec.setGameTime(game.time, true)
- setGround("dirt")
- cheese = system.newTimer(function() table.foreach(tfm.get.room.playerList,function(name) tfm.exec.giveCheese(name) end) end,65000,false)
- else
- resetProp()
- setGround("dirt")
- end
- if backgroundsEnabled then
- Background = backgrounds[math.random(#backgrounds)]
- tfm.exec.addImage(Background, "_0", 0, 0, n)
- end
- if linkMode then
- playerList = {}
- numList = {}
- for name,infos in pairs(tfm.get.room.playerList) do
- if not infos.isShaman then
- table.insert(playerList, name)
- end
- end
- for i=1,math.floor(#playerList/2)*2 do
- local num = 0
- repeat num = math.random(#playerList)
- until not table.contains(numList, num)
- table.insert(numList, num)
- end
- for i=1,math.floor(#playerList/2)*2,2 do
- tfm.exec.linkMice(playerList[numList[i]], playerList[numList[i+1]])
- end
- end
- end
- function eventNewPlayer(name)
- mice[name] = {
- menuPage = 1
- }
- if not game.started then
- tfm.exec.respawnPlayer(name)
- setGround("dirt")
- end
- if isAdmin(name) == true then -- this checks if the player who joined the room can see the textArea
- ui.addTextArea(444,"<p align='center'><a href='event:text0'>زر المرح</p>",name,8,30,80,18,1,1,0.8,true)
- -- ui.addTextArea(999,"<p align='center'><a href='event:text88'>X</p>",name,170,30,18,18,1,1,0.8,true)
- end
- -- ui.addTextArea(444,"<p align='center'><a href='event:text0'>MAPS</p>",Trexexjc,8,30,150,18,1,1,0.8,true)
- --ui.addTextArea(999,"<p align='center'><a href='event:text88'>X</p>",Trexexjc,170,30,18,18,1,1,0.8,true)
- --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)
- tfm.exec.chatMessage(
- "<font color='#ff8547'>مرحبًا بك في الفانكورب!- لقد تحولت الأرض إلى حمض مميت</font><br><br>" ..
- "<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>" ..
- "<font color='#30ba76'><br>" ..
- "<font color='#30ba76'>!الفائز بجولة يمكن أن يحصل على لون لاسمه من اختياره<br>!و إذا فزت أكتر من مرتيين فسوف يكبر حجم فأرك<br>" ..
- "<font color='#30ba76'>.تقوم باستعمال الثغرات . سيتم طرد كل من يستعمل الثغرات <b>لا</b> •<br>" ..
- ".تقوم بتكرار الكلام المزعج ، أو سوف يتم طردك من الغرفة <b>لا</b> •</font><br><br><font color='#ff8547'>", name
- )
- facingLeft[name] = false
- fireTS[name] = 0
- for _,k in pairs(keys) do
- system.bindKeyboard(name, k, true)
- end
- facingLeft[name] = false
- updateImg(name)
- miceInfo[name] = {lastTransform = 0, lastChangenick = 0, lastChangecolor = 0}
- if players[name] then
- players[name].score = 0
- setScore(name)
- else
- players[name] = {score = 0}
- setScore(name)
- end
- ui.addTextArea(76543, "<p align='center'><a href='event:changeColor'>مساعدة</p>", name, 750, 30, 45, 18, 1, 1, 0.7, true)
- -- 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
- -- 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)
- -- 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)
- if Background then tfm.exec.addImage(Background, "_0", 0, 0, name) end
- if isAdmin(name) then
- system.bindMouse(name, true)
- system.bindKeyboard(name, 16, false, true)
- system.bindKeyboard(name, 16, true, true)
- tfm.exec.chatMessage("<font color='#ff8547'>!أنت مسؤول. انقر فوق الزر الموجود في الجزء العلوي الأيسر للحصول على بعض المرح</font>", name)
- ui.addTextArea(444,"<p align='center'><a href='event:text0'>زر المرح</p>",name,8,30,80,18,1,1,0.8,true)
- -- ui.addTextArea(999,"<p align='center'><a href='event:text88'>X</p>",name,170,30,18,18,1,1,0.8,true)
- end
- end
- function eventPlayerDied(name)
- if game.started == true then
- if alivePlrCount() <= 1 then
- reapet = false removeAreas()
- for name,p in next,tfm.get.room.playerList do
- if not p.isDead then
- ui.addTextArea(300, "<p align='center'><font size='50' color='#FFFF00'>!لقد فاز بالجولة "..name.."</font></p>", nil, 50, 250, 700, 500, 0x324650, 0x000000, 0, true)
- tfm.exec.chatMessage("<font color='#EAE633'>!فاز بالجولة " ..name.."", player)
- ui.addTextArea(200, "<p align='center'><font size='50' color='#FFFFFF'>إنتهت اللعبة</font></p>", nil, 50, 125, 700, 119, 0x324650, 0x000000, 0, true)
- giveWin(name)
- end
- end
- finishMap = os.time() + 5000
- end
- end
- end
- function eventPlayerRespawn(name)
- facingLeft[name] = false
- updateImg(name)
- end
- function eventPlayerWon(name)
- alivePlayer=alivePlayer-1
- end
- function eventChatCommand(name, command)
- local arg={}
- for argument in command:gmatch('[^%s]+') do
- table.insert(arg,argument)
- end
- if isAdmin(name) == true then
- if arg[1] == "ms" and arg[2] ~= nil then
- local t = command:find('%s')
- local msg = command:sub(t+1)
- tfm.exec.chatMessage("<font color='#ff8547'>• [".. name .."]: " ..msg .."</font>")
- elseif arg[1] == "mort" and arg[2] ~= nil then
- for i,v in pairs(arg) do
- if i > 1 then
- tfm.exec.killPlayer(v)
- tfm.exec.chatMessage("قتلك ".. name .. " •", v)
- for _,admins in pairs(game.admins) do
- tfm.exec.chatMessage(""..name.." قُتل بواسطة "..v.." •", admins)
- end
- end
- end
- elseif arg[1] == "respawn" and arg[2] ~= nil then
- for i,v in pairs(arg) do
- if i > 1 then
- tfm.exec.killPlayer(v)
- tfm.exec.respawnPlayer(v)
- tfm.exec.chatMessage("أعادك إلى الحياة "..name.."• ", v)
- for _,admins in pairs(game.admins) do
- tfm.exec.chatMessage("تمت إعادة إحياؤه "..name.." •"..v, admins)
- end
- end
- end
- elseif arg[1] == "admin" and arg[2] ~= nil then
- table.insert(game.admins,arg[2]) tfm.exec.chatMessage("قدرات المسؤولون "..name.." لقد أعطاك •\n<font color='#ff8547'>أنت الآن مسؤول\n!help لرؤية الأوامر التي يمكنك استخدامها</font>",arg[2])
- system.bindMouse(arg[2], true) system.bindKeyboard(arg[2], 16, false, true) system.bindKeyboard(arg[2], 16, true, true)
- for _,admins in pairs(game.admins) do tfm.exec.chatMessage(""..arg[2].." أعطى قدرات المسؤولين إلى "..name, admins) end
- ui.addTextArea(444,"<p align='center'><a href='event:text0'>زر المرح</p>",arg[2],8,30,80,18,1,1,0.8,true)
- elseif arg[1] == "noadmin" and arg[2] ~= nil then
- table.clear(game.admins,arg[2]) tfm.exec.chatMessage(""..name.." تمت إزالة قدرات المسؤولون منه بواسطة",arg[2])
- system.bindMouse(arg[2], false) system.bindKeyboard(arg[2], 16, false, false) system.bindKeyboard(arg[2], 16, true, false)
- ui.addTextArea(444,"<p align='center'><a href='event:text0'>زر المرح</p>",arg[2],8,30,80,18,1,1,0.8,false)
- for _,admins in pairs(game.admins) do tfm.exec.chatMessage(""..name.." أزال قدرات المسؤوليين للاعب "..arg[2].." • ", admins) end
- elseif arg[1] == "ctime" and arg[2] ~= nil then
- if tonumber(arg[2]) > 0 then
- changeTime = arg[2]
- for _,admins in pairs(game.admins) do
- tfm.exec.chatMessage("<font color='#ffffff'>"..name.." أصبح الوقت الجديد لطلب تغيير لون ، اسم... تم تغييره بواسطة <font color='#D95959'>"..arg[2].."</font>[•]</font>", admins)
- end
- end
- end
- if arg[1] == "tp" and arg[2] == "all" then
- tfm.exec.chatMessage("<font color='#ff8547'> اضغط بأي مكان لتنقل الجميع[•]</font>", name)
- tpAll = true
- end
- if arg[1] == "start" then
- if not game.started then
- game.started = true
- changeMap()
- end
- elseif arg[1] == "stop" then
- if game.started == true then
- game.started = false
- removeAreas()
- changeMap()
- end
- elseif arg[1] == "g" then
- removeAreas()
- spawnObjects()
- spawnTokens()
- spawnPoint()
- groundSwitch()
- elseif arg[1] == "spectator" then
- spectator = not spectator
- if spectator == true then
- tfm.exec.chatMessage("<font color='#ff8547'>تم تفعيل وضع المُشاهد [•]</font>", name)
- else
- tfm.exec.chatMessage("<font color='#ff8547'>تم إلغاء تفعيل وضع المُشاهد [•]</font>", name)
- end
- elseif arg[1] == "ffa" then
- cannonsEnabled = not cannonsEnabled
- local t = cannonsEnabled and "<font color='#F89F4B'>[Trexebot]</font> <font color='#C2C2DA'>S تم تفعيل كرات المدافع ، إضغط السهم الأسفل أو إضغط زر </font>" or "<font color='#F89F4B'>[Trexebot]</font> <font color='#C2C2DA'>تم تعطيل رمي القذائف</font>"
- tfm.exec.chatMessage(t)
- elseif arg[1] == "fly" then
- flyEnabled = not flyEnabled
- local t = flyEnabled and "<font color='#F89F4B'>[Trexebot]</font> <font color='#C2C2DA'>إضغط زر المسافة للطيران</font>" or "<font color='#F89F4B'>[Trexebot]</font> <font color='#C2C2DA'>تم إلغاء تفعيل وضع الطيران</font>"
- tfm.exec.chatMessage(t)
- elseif arg[1] == "speed" then
- speedEnabled = not speedEnabled
- 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>"
- tfm.exec.chatMessage(t)
- elseif arg[1] == "size" then
- sizeEnabled = not sizeEnabled
- 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>"
- tfm.exec.chatMessage(t)
- elseif arg[1] == "meep" then
- meepEnabled = not meepEnabled
- local t = meepEnabled and "<font color='#F89F4B'>[Trexebot]</font> <font color='#C2C2DA'>!تم تفعيل الميب</font>" or "<font color='#F89F4B'>[Trexebot]</font> <font color='#C2C2DA'>تم إلغاء تمكين الميب</font>"
- tfm.exec.chatMessage(t)
- elseif arg[1] == "kill" then
- tfm.exec.killPlayer(arg[2])
- elseif arg[1] == "snow" then
- tfm.exec.snow(60, 10)
- tfm.exec.chatMessage(
- "<font color='#F89F4B'>[Trexebot]</font> <font color='#C2C2DA'>!إنظر إنها تُثلج</font>"
- )
- elseif arg[1] == "climate" and arg[2] == "default" then
- wind = 0
- gravity = 10
- tfm.exec.setWorldGravity(wind,gravity)
- tfm.exec.chatMessage(
- "<font color='#F89F4B'>[Trexebot]</font> <font color='#C2C2DA'>!نحن بأمان ، ولت تغيرات الرياح والجاذبية</font>"
- )
- elseif arg[1] == "wind" then
- wind = arg[2]
- tfm.exec.setWorldGravity(wind,gravity)
- tfm.exec.chatMessage(
- "<font color='#F89F4B'>[Trexebot]</font> <font color='#C2C2DA'>!يبدو أن هناك بعض التغييرات على الريح</font>"
- )
- elseif arg[1] == "gravity" then
- gravity = arg[2]
- tfm.exec.setWorldGravity(wind,gravity)
- tfm.exec.chatMessage(
- "<font color='#F89F4B'>[Trexebot]</font> <font color='#C2C2DA'>!يبدو أن هناك بعض التغييرات في الجاذبية</font>"
- )
- elseif arg[1] == "cheese" then
- tfm.exec.giveCheese(arg[2])
- elseif arg[1] == "cloth" then
- tfm.exec.killPlayer(arg[2])
- tfm.exec.respawnPlayer(arg[2])
- elseif arg[1] == "vampire" then
- tfm.exec.setVampirePlayer(arg[2], true)
- elseif arg[1] == "joke" then
- tfm.exec.chatMessage(
- "<font color='#F89F4B'>[Trexebot]</font> <font color='#C2C2DA'>الرجاء من الجميع كتابة /c Bolodefchoco#0015 Isawmommy</font>"
- )
- elseif arg[1] == "instructions" then
- tfm.exec.chatMessage(
- "<font color='#F89F4B'>[Trexebot]</font> <font color='#F89F4B'>في المرة الأولى التي تفوز فيها ، ستحصل على تغيير في اسم اللون ، إذا فزت مرة أخرى ستصبح كبيرًا ، وستستمر في النمو هكذا! اتمنى ان تستمتع! <3</font>"
- )
- elseif arg[1] == "img" then
- imgEnabled = not imgEnabled
- if imgEnabled then
- 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)
- else
- for i=0,1000 do
- tfm.exec.removeImage(i, nil)
- end
- for i=0,17 do
- ui.removeTextArea(i, nil)
- end
- changeMap()
- end
- local t = imgEnabled and "<font color='#ff8547'>تم تمكين الصور [•]</font>" or "<font color='#ff8547'>تم إلغاء تمكين الصور [•]</font>"
- tfm.exec.chatMessage(t)
- elseif arg[1] == "backg" then
- backgroundsEnabled = not backgroundsEnabled
- local t = backgroundsEnabled and "<font color='#ff8547'>!تم تمكين صورةالخلفية [•]</font>" or "<font color='#ff8547'>تم إلغاء تفعيل صورة الخلفية [•]</font>"
- tfm.exec.chatMessage(t, name)
- elseif arg[1] == "anvilgod" then
- checkAnvilgod()
- elseif arg[1] == "image" then
- -- 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)
- 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)
- elseif arg[1] == "help" then
- 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)
- ui.addTextArea(1002, "<p align='center'><a href='event:cerrar'>إغلاق</p>", name, 350, 340, 95, name, 1, 1, 0.7, true)
- end
- end
- end
- function table.clear(t,obj) for i,v in ipairs(t) do if v==obj then table.remove(t,i) end end end
- function eventKeyboard(name, key, Keydown, x, y)
- if key == _left then
- facingLeft[name] = true
- updateImg(name, true)
- elseif key == _right then
- facingLeft[name] = false
- updateImg(name, true)
- elseif key==40 and cannonsEnabled and os.time() > fireTS[name] + fireDelay or key==83 and cannonsEnabled and os.time() > fireTS[name] + fireDelay then
- fireTS[name] = os.time()
- local dx,a,id
- if facingLeft[name] then
- dx,dy,a = 9,23,-90
- else
- dx,dy,a = -9,23,90
- end
- id = tfm.exec.addShamanObject(17, x+dx, y+dy, a)
- table.insert(toDespawn, {id, os.time()})
- end
- if key == 32 and flyEnabled then
- tfm.exec.movePlayer(name, 0, 0, true, 0, -_fly, true)
- elseif key == 69 and speedEnabled then
- local vx = facingLeft[name] and -_speed or _speed
- tfm.exec.movePlayer(name, 0, 0, true, vx, 0, true)
- end
- if key == 88 and sizeEnabled and miceInfo[name].lastTransform < os.time() - 5000 then
- tfm.exec.changePlayerSize(name, 0.3)
- miceInfo[name].lastTransform = os.time()
- end
- if key == 67 and sizeEnabled and miceInfo[name].lastTransform < os.time() - 5000 then
- tfm.exec.changePlayerSize(name, 0.6)
- miceInfo[name].lastTransform = os.time()
- end
- if key == 86 and sizeEnabled and miceInfo[name].lastTransform < os.time() - 5000 then
- tfm.exec.changePlayerSize(name, 1)
- miceInfo[name].lastTransform = os.time()
- end
- if key == 66 and sizeEnabled and miceInfo[name].lastTransform < os.time() - 5000 then
- tfm.exec.changePlayerSize(name, 2)
- miceInfo[name].lastTransform = os.time()
- end
- if key == 78 and sizeEnabled and miceInfo[name].lastTransform < os.time() - 5000 then
- tfm.exec.changePlayerSize(name, 4)
- miceInfo[name].lastTransform = os.time()
- end
- if isAdmin(name) then
- if key == 16 then
- if Keydown then
- sObjects = true
- else
- sObjects = false
- end
- end
- end
- if plankEnable then
- if key == 32 then
- for i=1, gNum do
- tfm.exec.removePhysicObject(i)
- end
- gNum = 0
- elseif key == 49 then
- look = 12
- fric = 0.3
- res = 0.2
- col = 0x324650
- elseif key == 50 then
- look = 2
- fric = 0
- res = 1.2
- col = nil
- elseif key == 51 then
- look = 3
- fric = 0
- res = 20
- col = nil
- end
- end
- if caniFly then
- if key==32 then
- tfm.exec.movePlayer(name,0,0,true,0,-50,false)
- end
- end
- if noFly then
- if key==32 then
- tfm.exec.movePlayer(name,0,0,true,0,200,false)
- end
- end
- if killAnvil then
- if key==16 then
- local player = players[name]
- local currentTime = os.time()
- if currentTime - player.spawnDelay >= SPAWN_DELAY then
- player.spawnDelay = currentTime
- tfm.exec.addShamanObject(10,x,y,45,20,-10,false)
- end
- end
- end
- if pokeBall then
- if key==16 then
- local player = players[name]
- local currentTime = os.time()
- if currentTime - player.spawnDelay >= SPAWN_DELAY then
- player.spawnDelay = currentTime
- tfm.exec.addShamanObject(601,x,y,0,17,-10,false)
- end
- end
- end
- if key==188 then
- tfm.exec.addShamanObject(26,x,y,0,0,0,false)
- end
- if key==190 then
- tfm.exec.addShamanObject(27,x,y,0,0,0,false)
- end
- if key==38 then
- tfm.exec.killPlayer(name)
- tfm.exec.chatMessage("<font color='#ff8547'>لماذا ضغطت على الزر؟</font>", name)
- end
- if key==87 then
- tfm.exec.killPlayer(name)
- tfm.exec.chatMessage("<font color='#ff8547'>لماذا ضغطت على الزر؟</font>", name)
- end
- end
- function makeGround(x,y,length,ang)
- gNum = gNum + 1
- final_x = ((x + point_x)/2)
- final_y = ((y + point_y)/2)
- 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})
- point_x=nil
- point_y=nil
- end
- function length(x1, y1, x2, y2)
- lx = (x2 - x1)^2
- ly = (y2 - y1)^2
- return math.sqrt(lx+ly)
- end
- function angle(x1, y1, x2, y2)
- lx = x2 - x1
- ly = y2 - y1
- return math.deg(math.atan2(ly,lx))
- end
- function pythag(x1,y1,x2,y2)
- return math.sqrt((y2-y1)^2+(x2-x1)^2)
- end
- function updateImg(name, turning)
- if imgEnabled then
- local d = imgData[name]
- if not d then return end
- if not d[5] then
- if turning then return
- else
- facingLeft[name] = true
- end
- end
- if imgId[name] then tfm.exec.removeImage(imgId[name]) end
- local img,x,y
- if facingLeft[name] then
- img,x,y = d[2],d[3],d[4]
- else
- img,x,y = d[5],d[6],d[7]
- end
- imgId[name] = tfm.exec.addImage(img..".png", "%"..name, -x, -y, nil)
- end
- end
- function checkAnvilgod()
- if not anvilgodHere then
- spawnAnvilgod()
- else
- removeAnvilgod()
- end
- end
- function spawnAnvilgod()
- anvilgodHere = true
- xAnvigod = math.random(200,1400)
- print(x)
- tfm.exec.explosion(xAnvigod+80,750,-400,300,false)
- tfm.exec.explosion(xAnvigod+80,650,-400,300,false)
- anvilgod = tfm.exec.addImage(anvilgodImg[math.random(#anvilgodImg)],"_3",xAnvigod,430)
- end
- function removeAnvilgod()
- if anvilgodHere then
- anvilgodHere = false
- if anvilgod then tfm.exec.removeImage(anvilgod) anvilgod=nil end
- end
- end
- function eventTextAreaCallback(id, name, cb)
- local mouse = mice[name]
- if id == 0 then
- if mouse.menuOpen then
- mouse.menuOpen = false
- closeMenu(name)
- else
- mouse.menuOpen = true
- openMenu(name)
- end
- elseif id == 2 and mouse.menuPage > 1 then
- mouse.menuPage = mouse.menuPage - 1
- openMenu(name)
- elseif id == 3 and mouse.menuPage < menuPages then
- mouse.menuPage = mouse.menuPage + 1
- openMenu(name)
- elseif id >= 10 and id <= 15 then
- local k = cb:sub(12) + 0
- if k == 1 then
- imgData[name] = nil
- tfm.exec.killPlayer(name)
- else
- imgData[name] = imgList[k]
- end
- updateImg(name)
- end
- if id==1002 then
- ui.removeTextArea(1001, name)
- ui.removeTextArea(1002, name)
- ui.removeTextArea(76545, name)
- elseif id == 10004 then
- ui.showColorPicker(10005, name, 0xFFFFFF, "اختر لون اسمك")
- elseif id == 10006 then
- ui.addPopup(1, 2, "<p align='center'>اكتب الاسم الذي تريده</p>", name, 300, 250, 200, true)
- elseif id == 76543 then
- 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)
- ui.addTextArea(1002, "<p align='center'><a href='event:cerrar'>إغلاق</p>", name, 750, 65, 45, 18, 1, 1, 0.7, true)
- end
- if isAdmin(name) == true then
- -- since we are checking the same variable to get one method, we can use elseif instead of "if end if end"
- if cb=="text0" then
- 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)
- 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)
- elseif cb=="text134" then
- enabletokens = not enabletokens
- if enabletokens == true then
- tfm.exec.chatMessage("<font color='#ff8547'>!النقاط تم تفعيلها [•]</font>", name)
- text134 = text134a
- refresh4444()
- else
- tfm.exec.chatMessage("<font color='#ff8547'>تم إلغاء تفعيل النقاط [•]</font>", name)
- text134 = text134i
- refresh4444()
- end
- elseif cb=="text135" then
- enabletokens = true
- randomtokens = not randomtokens
- if randomtokens == true then
- tfm.exec.chatMessage("<font color='#ff8547'>النقاط سوف تظهر بشكل عشوائي [•]</font>", name)
- text135 = text135i
- refresh4444()
- else
- tfm.exec.chatMessage("<font color='#ff8547'>النقاط سوف تظهر بكل تغيّر في الأرضيات [•]</font>", name)
- text135 = text135a
- refresh4444()
- end
- elseif cb=="text136" then
- tfm.exec.chatMessage("<font color='#ff8547'>لقد ظهرت نقطة مجانية [•]</font>", nil)
- location = math.random(1,2)
- if location == 1 then
- tfm.exec.addBonus(0, math.random(0,1600), math.random(50,250),9999)
- else
- tfm.exec.addBonus(0, math.random(0,1600), math.random(350,550),9999)
- end
- elseif cb=="text137" then
- changedhost = true
- 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)
- elseif cb=="text138" then
- 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)
- elseif cb=="text100" then
- if not game.started then
- game.started = true
- changeMap()
- end
- elseif cb=="text119" then
- trolltoggle = not trolltoggle
- if trolltoggle == true then
- tfm.exec.chatMessage("<font color='#ff8547'>تم تفعيل الأرضية الخداعة [•]</font>", name)
- else
- tfm.exec.chatMessage("<font color='#ff8547'>تم إلغاء تفعيل الأرضية الخداعة [•]</font>", name)
- end
- elseif cb=="text118" then
- linkMode = not linkMode
- if linkMode == true then
- tfm.exec.chatMessage("<font color='#ff8547'>[Trexebot] !وضع رفيق الحياة تم تفعيله! سيتم تطبيق التغيير في الجولة القادمة</font>", name)
- text118 = text118a
- refresh4444()
- else
- tfm.exec.chatMessage("<font color='#ff8547'>[Trexebot] !وضع رفيق الحياة تم تعطيله! سيتم تطبيق التغيير في الجولة القادمة</font>", name)
- text118 = text118i
- refresh4444()
- end
- elseif cb=="text101" then
- if game.started == true then
- game.started = false
- removeAreas()
- changeMap()
- end
- elseif cb=="text120" then
- night = not night
- if night == true then
- tfm.exec.chatMessage("<font color='#ff8547'>[Trexebot] تم تمكين الوضع الليلي! سيتم تطبيق التغيير في الجولة القادمة</font>", name)
- text120 = text120a
- refresh4444()
- else
- tfm.exec.chatMessage("<font color='#ff8547'>[Trexebot] تم إلغاء تمكين الوضع الليلي! سيتم تطبيق التغيير في الجولة القادمة</font>", name)
- text120 = text120i
- refresh4444()
- end
- elseif cb=="text133" then
- collision = not collision
- if collision == true then
- tfm.exec.chatMessage("<font color='#ff8547'>[Trexebot]! تم تفعيل وضع التصادم! سيتم تطبيق التغيير في الجولة القادمة</font>", name)
- text133 = text133a
- refresh4444()
- else
- tfm.exec.chatMessage("<font color='#ff8547'>[Trexebot] ! تم إلغاء تفعيل وضع التصادم! سيتم تطبيق التغيير في الجولة القادمة</font>", name)
- text133 = text133i
- refresh4444()
- end
- elseif cb=="text122" then
- 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)
- elseif cb=="text124" then
- 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)
- elseif cb=="text123" then
- 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)
- elseif cb=="text125" then
- 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)
- elseif cb=="text126" then
- 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)
- elseif cb=="text127" then
- 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)
- elseif cb=="text128" then
- 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)
- elseif cb=="text129" then
- 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)
- elseif cb=="text130" then
- 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)
- elseif cb=="text131" then
- text131 = text131a
- refresh4444()
- 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)
- elseif cb=="text132" then
- text132 = text132a
- refresh4444()
- 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)
- elseif cb=="text121" then
- timedanvilgod = not timedanvilgod
- if timedanvilgod == true then
- tfm.exec.chatMessage("<font color='#ff8547'>.سيحرس إله السنادين الآن المنصة السفلية[•]</font>", name)
- text121 = text121a
- refresh444()
- else
- tfm.exec.chatMessage("<font color='#ff8547'>[إله السنادين طار [سيظهر لبعض الوقت ثم سيذهب [•] </font>", name)
- text121 = text121i
- refresh444()
- end
- elseif cb=="text102" then
- removeAreas()
- spawnObjects()
- groundSwitch()
- elseif cb=="text103" then
- tfm.exec.chatMessage(
- "<font color='#F89F4B'>[Trexebot]</font> <font color='#F89F4B'>!في المرة الأولى التي تفوز فيها ، ستحصل على تغيير في للون اسمك ، إذا فزت مرة أخرى ستصبح كبيرًا ، وستستمر في النمو هكذا! اتمنى ان تستمتع</font>"
- )
- elseif cb=="text104" then
- imgEnabled = not imgEnabled
- if imgEnabled then
- 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)
- else
- for i=0,1000 do
- tfm.exec.removeImage(i, nil)
- end
- for i=0,17 do
- ui.removeTextArea(i, nil)
- end
- end
- elseif cb=="text105" then
- backgroundsEnabled = not backgroundsEnabled
- if backgroundsEnabled == true then
- text105 = text105a
- refresh4444()
- else
- text105 = text105i
- refresh4444()
- end
- local t = backgroundsEnabled and "<font color='#ff8547'>!تم تمكين صورة للخلفية [•]</font>" or "<font color='#ff8547'>تم إلغاء تمكين صورة الخلفية [•]</font>"
- tfm.exec.chatMessage(t, name)
- elseif cb=="text106" then
- tfm.exec.setWorldGravity(randomwind, randomgravity)
- tfm.exec.chatMessage(("Gravity: %s, Wind: %s"):format(randomgravity, randomwind))
- -- ui.setMapName("<font color='#009d9d'>The Floor is</font> <font color='#02FD00'>ACID</font>")
- ui.setMapName("<font color='#DCE620'>!يوجد تغييرات في الجاذبية والرياح</font> <b>!حذارِ</b>")
- removeMessage()
- 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)
- system.newTimer(removeMessage,5000,false)
- elseif cb=="text1" then
- removeAreas()
- spawnObjects()
- groundSwitch()
- elseif cb=="text107" then
- removeAnvilgod()
- checkAnvilgod()
- ui.setMapName("<font color='#DCE620'>!يبدو وكأنه ظهر إله سنادين بري</font>")
- removeMessage()
- ui.addTextArea(351, "<p align='center'><font size='30' color='#C2C2DA'>!يبدو وكأنه ظهر إله سنادين بري</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
- system.newTimer(removeMessage,5000,false)
- system.newTimer(cooleffect,5000,false)
- elseif cb=="text108" then
- cannonsEnabled = not cannonsEnabled
- -- 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>"
- --tfm.exec.chatMessage(t)
- if cannonsEnabled == true then
- ui.setMapName("<font color='#DCE620'>S تم تفعيل كرات المدافع ، إضغط السهم الأسفل أو إضغط زر </font>><b>!انتبه</b>")
- removeMessage()
- text108 = text108a
- refresh444()
- 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)
- system.newTimer(removeMessage,5000,false)
- else
- ui.setMapName("<font color='#DCE620'>تم إلغاء تفعيل كرات المدافع</font>")
- removeMessage()
- text108 = text108i
- refresh444()
- ui.addTextArea(353, "<p align='center'><font size='30' color='#C2C2DA'>تم إلغاء تفعيل كرات المدافع/font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
- system.newTimer(removeMessage,5000,false)
- system.newTimer(cooleffect,5000,false)
- end
- elseif cb=="text109" then
- sizeEnabled = not sizeEnabled
- -- 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>"
- -- tfm.exec.chatMessage(t)
- if sizeEnabled == true then
- ui.setMapName("<font color='#DCE620'>للتغيير بين الأحجام X, C, V, B, N تم تفعيل تغيير الحجم ، إضغط على</font>")
- removeMessage()
- text109 = text109a
- refresh444()
- 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)
- system.newTimer(removeMessage,5000,false)
- else
- ui.setMapName("<font color='#DCE620'>!تغيير الحجم معطل</font>")
- removeMessage()
- text109 = text109i
- refresh444()
- ui.addTextArea(355, "<p align='center'><font size='30' color='#C2C2DA'>!تغيير الحجم معطل</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
- system.newTimer(removeMessage,5000,false)
- system.newTimer(cooleffect,5000,false)
- end
- elseif cb=="text110" then
- speedEnabled = not speedEnabled
- --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>"
- --tfm.exec.chatMessage(t)
- if speedEnabled == true then
- ui.setMapName("<font color='#DCE620'>.بشكل متكرر لتسرع E إضغط على حرف <b>تم تفعيل السرعة</b></font>")
- removeMessage()
- text110 = text110a
- refresh444()
- 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)
- system.newTimer(removeMessage,5000,false)
- else
- ui.setMapName("<font color='#DCE620'>تم إلغاء تفعيل السرعة</font>")
- removeMessage()
- ui.addTextArea(357, "<p align='center'><font size='30' color='#C2C2DA'>تم إلغاء تفعيل السرعة</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
- system.newTimer(removeMessage,5000,false)
- system.newTimer(cooleffect,5000,false)
- text110 = text110i
- refresh444()
- end
- elseif cb=="text111" then
- sSheep = not sSheep
- -- local t = sSheep and "<font color='#ff8547'>[•] Click anywhere to spawn sheeps.</font>" or "<font color='#ff8547'>[•] Sheeps disabled.</font>"
- -- tfm.exec.chatMessage(t,name)
- if sSheep == true then
- ui.setMapName("<font color='#DCE620'>من الممكن للخرفان أن تظهر <b>إنتبه</b></font>")
- removeMessage()
- ui.addTextArea(358, "<p align='center'><font size='30' color='#C2C2DA'>من الممكن للخرفان أن تظهر <b>إنتبه</b></font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
- system.newTimer(removeMessage,5000,false)
- else
- ui.setMapName("<font color='#DCE620'>نحن بأمان ، لا مزيد من الخرفان</font>")
- removeMessage()
- ui.addTextArea(359, "<p align='center'><font size='30' color='#C2C2DA'>نحن بأمان ، لا مزيد من الخرفان</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
- system.newTimer(removeMessage,5000,false)
- system.newTimer(cooleffect,5000,false)
- end
- elseif cb=="text1003" then
- 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)
- ui.addTextArea(1002, "<p align='center'><a href='event:cerrar'>إغلاق</p>", name, 350, 360, 95, name,1, 1, 0.7, true)
- elseif cb=="text112" then
- togglegroundselector = not togglegroundselector
- if togglegroundselector == true then
- tfm.exec.chatMessage("<font color='#ff8547'>تم إلغاء تفعيل الأرض العشوائية [•]</font>", name)
- text112 = text112i
- text113 = text113i
- text114 = text114i
- text115 = text115i
- text116 = text116i
- text117 = text117i
- refresh4444()
- else
- tfm.exec.chatMessage("<font color='#ff8547'>الأرض العشوائية تم تفعيلها [•]</font>", name)
- text112 = text112a
- text113 = text113i
- text114 = text114i
- text115 = text115i
- text116 = text116i
- text117 = text117i
- refresh4444()
- end
- elseif cb=="text113" then
- togglegroundselector = true
- menugroundselector = 1
- tfm.exec.chatMessage("<font color='#ff8547'>تم تعيين الأرضية كأرضية حمضية [•]</font>", name)
- text112 = text112i
- text113 = text113a
- text114 = text114i
- text115 = text115i
- text116 = text116i
- text117 = text117i
- refresh4444()
- elseif cb=="text114" then
- togglegroundselector = true
- tfm.exec.chatMessage("<font color='#ff8547'>تم تعيين الأرض كشبكة عنكبوت [•]</font>", name)
- text112 = text112i
- text113 = text113i
- text114 = text114a
- text115 = text115i
- text116 = text116i
- text117 = text117i
- refresh4444()
- menugroundselector = 2
- elseif cb=="text115" then
- togglegroundselector = true
- tfm.exec.chatMessage("<font color='#ff8547'> تم تعيين الأرض كحمم بركانية [•]</font>", name)
- text112 = text112i
- text113 = text113i
- text114 = text114i
- text115 = text115a
- text116 = text116i
- text117 = text117i
- refresh4444()
- menugroundselector = 3
- elseif cb=="text116" then
- togglegroundselector = true
- tfm.exec.chatMessage("<font color='#ff8547'>الأرض تم تعيينها للغيوم [•]</font>", name)
- text112 = text112i
- text113 = text113i
- text114 = text114i
- text115 = text115i
- text116 = text116a
- text117 = text117i
- refresh4444()
- menugroundselector = 4
- elseif cb=="text117" then
- togglegroundselector = true
- tfm.exec.chatMessage("<font color='#ff8547'>الأرض تم تعيينها للماء [•]</font>", name)
- text112 = text112i
- text113 = text113i
- text114 = text114i
- text115 = text115i
- text116 = text116i
- text117 = text117a
- refresh4444()
- menugroundselector = 5
- elseif cb=="text1" then
- newMap()
- elseif cb=="text2" then
- -- tfm.exec.chatMessage("<font color='#ff8547'>You can MEEP anyone you want this round!</font>", nil)
- for name,player in pairs(tfm.get.room.playerList) do
- tfm.exec.giveMeep(name)
- end
- text2 = text2a
- refresh444()
- ui.setMapName("<font color='#DCE620'>!يمكنكم الآن استعمال قدرة الميب</font>")
- removeMessage()
- ui.addTextArea(360, "<p align='center'><font size='30' color='#C2C2DA'>!يمكنكم الآن استعمال قدرة الميب</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
- system.newTimer(removeMessage,5000,false)
- system.newTimer(cooleffect,10000,false)
- elseif cb=="text3" then
- -- tfm.exec.chatMessage("<font color='#ff8547'>Be careful, vampires everywhere!</font>", nil)
- for name,player in pairs(tfm.get.room.playerList) do
- if player.isShaman then
- tfm.exec.setVampirePlayer(name)
- end
- end
- elseif cb=="text4" then
- killAnvil = not killAnvil
- if killAnvil then
- tfm.exec.chatMessage("<font color='#ff8547'>!إضغط شيفت لتقوم برمي السنادين</font>", nil)
- for name,player in pairs(tfm.get.room.playerList) do
- tfm.exec.bindKeyboard(name,16,true,true)
- end
- else
- tfm.exec.chatMessage("<font color='#ff8547'>!لا يمكنك رمي السنادين بعد الآن [Trexebot]</font>", nil)
- for name,player in pairs(tfm.get.room.playerList) do
- tfm.exec.bindKeyboard(name,16,true,false)
- end
- end
- elseif cb=="text44" then
- deathOnCheese = not deathOnCheese
- if deathOnCheese then
- tfm.exec.chatMessage("<font color='#ff8547'>!لا تلتقط الجبن</font>", nil)
- else
- tfm.exec.chatMessage("<font color='#ff8547'>!الآن يمكنك أن تلتقط الجبن</font>", nil)
- end
- elseif cb=="text6" then
- caniFly = not caniFly
- if caniFly then
- -- tfm.exec.chatMessage("<font color='#ff8547'>Press SPACEBAR to fly.</font>", nil)
- for name,player in pairs(tfm.get.room.playerList) do
- tfm.exec.bindKeyboard(name,32,true,true)
- end
- text6= text6a
- refresh444()
- else
- -- tfm.exec.chatMessage("<font color='#ff8547'>The Fly mode has been disabled.</font>", nil)
- for name,player in pairs(tfm.get.room.playerList) do
- tfm.exec.bindKeyboard(name,32,true,false)
- end
- text6 = text6i
- refresh444()
- end
- if caniFly == true then
- ui.setMapName("<font color='#DCE620'>!اضغط زر المسطرة للطيران</font>")
- removeMessage()
- ui.addTextArea(361, "<p align='center'><font size='30' color='#C2C2DA'>!اضغط زر المسطرة للطيران</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
- system.newTimer(removeMessage,5000,false)
- else
- ui.setMapName("<font color='#DCE620'>!لا يمكنك الطيران بعد الآن</font>")
- removeMessage()
- ui.addTextArea(362, "<p align='center'><font size='30' color='#C2C2DA'>!لا يمكنك الطيران بعد الآن</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
- system.newTimer(removeMessage,5000,false)
- system.newTimer(cooleffect,5000,false)
- end
- elseif cb=="text8" then
- if isAdmin(name) == true then
- explosionEnable = not explosionEnable
- if explosionEnable then
- tfm.exec.chatMessage("<font color='#ff8547'>تم تفعيل وضع الأنفجارات [•]</font>", name)
- system.bindMouse(name, true)
- else
- system.bindMouse(name, false)
- tfm.exec.chatMessage("<font color='#ff8547'>تم إلغاء تفعيل وضع الانفجارات [•]</font>", name)
- end
- end
- if explosionEnable == true then
- ui.setMapName("<font color='#DCE620'>!انتبه! من الممكن أن تنفجر</font>")
- removeMessage()
- ui.addTextArea(363, "<p align='center'><font size='30' color='#C2C2DA'>!انتبه! من الممكن أن تنفجر</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
- system.newTimer(removeMessage,5000,false)
- else
- ui.setMapName("<font color='#DCE620'>نحن الآن بأمان، لقد تم إلغاء تفعيلهم</font>")
- removeMessage()
- ui.addTextArea(364, "<p align='center'><font size='30' color='#C2C2DA'>نحن الآن بأمان، لقد تم إلغاء تفعيلهم</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
- system.newTimer(removeMessage,5000,false)
- system.newTimer(cooleffect,5000,false)
- end
- elseif cb=="text10" then
- pokeBall = not pokeBall
- if pokeBall then
- tfm.exec.chatMessage("<font color='#ff8547'>!كرات البوكي سأجمعها الآن</font>", nil)
- for name,player in pairs(tfm.get.room.playerList) do
- tfm.exec.bindKeyboard(name,16,true,true)
- end
- else
- tfm.exec.chatMessage("<font color='#ff8547'>رحلت كرات البوكي:(</font>", nil)
- for name,player in pairs(tfm.get.room.playerList) do
- tfm.exec.bindKeyboard(name,16,true,false)
- end
- end
- elseif cb=="text12" then
- enablePortal = not enablePortal
- if enablePortal then
- tfm.exec.bindKeyboard(player,188,true,true)
- tfm.exec.bindKeyboard(player,190,true,true)
- else
- tfm.exec.bindKeyboard(player,188,true,false)
- tfm.exec.bindKeyboard(player,190,true,false)
- end
- elseif cb=="text14" then
- ui.setMapName("<font color='#DCE620'>!انظر، إنها تثلج</font>")
- text14 = text14a
- refresh444()
- removeMessage()
- ui.addTextArea(349, "<p align='center'><font size='30' color='#C2C2DA'>!انظر، إنها تثلج</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
- freezeplayers()
- tfm.exec.snow(60,10)
- elseif cb=="text15" then
- tfm.exec.chatMessage("<font color='#ff8547'>بوو ألم تراه قادما؟</font>", nil)
- for name,player in pairs(tfm.get.room.playerList) do
- if not player.isShaman then
- tfm.exec.killPlayer(name)
- end
- end
- elseif cb=="text16" then
- movePlayer = not movePlayer
- if movePlayer then
- system.bindMouse(name, true)
- tfm.exec.chatMessage("<font color='#ff8547'>يمكنك الآن التنقل [•]</font>", name)
- else
- system.bindMouse(name, false)
- tfm.exec.chatMessage("<font color='#ff8547'>تم إلغاء تفعيل التنقل [•]</font>", name)
- end
- elseif cb=="text17" then
- movePlayer = not movePlayer
- if movePlayer then
- -- tfm.exec.chatMessage("<font color='#ff8547'>Click anywhere to teleport your mouse!</font>", nil)
- for name,player in pairs(tfm.get.room.playerList) do
- system.bindMouse(name, true)
- end
- text17 = text17a
- refresh444()
- else
- tfm.exec.chatMessage("<font color='#ff8547'>تم إلغاء تفعيل التنقل</font>", nil)
- for name,player in pairs(tfm.get.room.playerList) do
- system.bindMouse(name, false)
- end
- text17 = text17i
- refresh444()
- end
- if movePlayer == true then
- removeMessage()
- ui.setMapName("<font color='#DCE620'>!انقر على أي مكان لتنقل فأرك</font>")
- ui.addTextArea(344, "<p align='center'><font size='30' color='#C2C2DA'>!انقر على أي مكان لتنقل فأرك</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
- else
- removeMessage()
- ui.setMapName("<font color='#DCE620'>!تم إلغاء تفعيل التنقل</font>")
- ui.addTextArea(345, "<p align='center'><font size='30' color='#C2C2DA'>!تم إلغاء تفعيل التنقل</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
- system.newTimer(cooleffect,5000,false)
- system.newTimer(removeMessage,5000,false)
- end
- elseif cb=="text19" then
- noJump = not noJump
- if noJump then
- -- tfm.exec.chatMessage("<font color='#ff8547'>Do not push the <b>Jump</b> button!</font>", nil)
- for name,player in pairs(tfm.get.room.playerList) do
- tfm.exec.bindKeyboard(name,38,true,true)
- tfm.exec.bindKeyboard(name,87,true,true)
- end
- text19 = text19a
- refresh444()
- else
- --tfm.exec.chatMessage("<font color='#ff8547'>Hooray, we can jump again!</font>", nil)
- for name,player in pairs(tfm.get.room.playerList) do
- tfm.exec.bindKeyboard(name,38,true,false)
- tfm.exec.bindKeyboard(name,87,true,false)
- end
- text19 = text19i
- refresh444()
- end
- if noJump == true then
- removeMessage()
- ui.setMapName("<font color='#DCE620'>!تقفز <b>لا</b></font>")
- ui.addTextArea(342, "<p align='center'><font size='30' color='#C2C2DA'>!تقفز <b>لا</b></font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
- else
- removeMessage()
- ui.addTextArea(343, "<p align='center'><font size='30' color='#C2C2DA'>!يبدو أنه يمكنك القفز مرة أخرى</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
- ui.setMapName("<font color='#DCE620'>!يبدو أنه يمكنك القفز مرة أخرى</font>")
- system.newTimer(cooleffect,5000,false)
- system.newTimer(removeMessage,5000,false)
- end
- elseif cb=="text20" then
- lureMouse = not lureMouse
- if lureMouse then
- system.bindMouse(name, true)
- tfm.exec.chatMessage("<font color='#ff8547'>.يمكنك الآن تحريك الفئران [•]</font>", name)
- else
- system.bindMouse(name, false)
- tfm.exec.chatMessage("<font color='#ff8547'>لم يعد بإمكانك تحريك الفئران [•]</font>", name)
- end
- if lureMouse == true then
- removeMessage()
- text20 = text20a
- refresh444()
- ui.setMapName("<font color='#DCE620'>يبدو أنه هناك قوة غريبة تدفعك... أوه لا</font>")
- ui.addTextArea(340, "<p align='center'><font size='30' color='#C2C2DA'>يبدو أنه هناك قوة غريبة تدفعك... أوه لا</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
- else
- removeMessage()
- text20 = text20i
- refresh444()
- ui.setMapName("<font color='#DCE620'>!القوة الغريبة اختفت</font>")
- ui.addTextArea(341, "<p align='center'><font size='30' color='#C2C2DA'>!القوة الغريبة اختفت</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
- system.newTimer(cooleffect,5000,false)
- system.newTimer(removeMessage,5000,false)
- end
- elseif cb=="text21" then
- caniFly = not caniFly
- noFly = not noFly
- if noFly then
- -- tfm.exec.chatMessage("<font color='#ff8547'>Press SPACEBAR to fly.</font>", nil)
- for name,player in pairs(tfm.get.room.playerList) do
- tfm.exec.bindKeyboard(name,32,true,true)
- end
- text21 = text21a
- refresh444()
- else
- -- tfm.exec.chatMessage("<font color='#ff8547'>Okay, sorry. I lied.</font>", nil)
- for name,player in pairs(tfm.get.room.playerList) do
- tfm.exec.bindKeyboard(name,32,true,false)
- end
- text21 = text21i
- refresh444()
- end
- if caniFly == true then
- removeMessage()
- ui.setMapName("<font color='#DCE620'>!إضغط زر المسافة للطيران</font>")
- ui.addTextArea(339, "<p align='center'><font size='30' color='#C2C2DA'>!إضغط زر المسافة للطيران</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
- else
- removeMessage()
- ui.setMapName("<font color='#DCE620'>وضع الطيران تم إلغاء تفعيله</font>")
- ui.addTextArea(339, "<p align='center'><font size='30' color='#C2C2DA'>همم ، يبدو أنه لم يعمل على النحو السليم</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
- system.newTimer(cooleffect,5000,false)
- system.newTimer(removeMessage,5000,false)
- end
- elseif cb=="text22" then
- tfm.exec.chatMessage("<font color='#ff8547'>ممكن يحدث القليل من اللاج</font>", nil)
- system.newTimer(function()
- for name,player in pairs(tfm.get.room.playerList) do
- tfm.exec.setShaman(name)
- end
- end, 3000, false)
- tfm.exec.chatMessage("<font color='#ff8547'>!ءحء شو عملت أنا ؟ أنت الآن شامان</font>", nil)
- elseif cb=="text23" then
- conJur = not conJur
- if conJur then
- tfm.exec.chatMessage("<font color='#ff8547'>Feel free to troll...with conjurations!</font>", nil)
- for name,player in pairs(tfm.get.room.playerList) do
- system.bindMouse(name, true)
- end
- else
- tfm.exec.chatMessage("<font color='#ff8547'>تم تعطيل الاقتران الآن</font>", nil)
- for name,player in pairs(tfm.get.room.playerList) do
- system.bindMouse(name, false)
- end
- end
- elseif cb=="text24" then
- anvilRain = not anvilRain
- if anvilRain then
- -- tfm.exec.chatMessage("<font color='#ff8547'>It's raining anvils! Run and hide!</font>", nil)
- else
- -- tfm.exec.chatMessage("<font color='#ff8547'>Pfew, we're safe. For now.</font>", nil)
- end
- if anvilRain == true then
- removeMessage()
- ui.setMapName("<font color='#DCE620'>!إنها تمطر سنادين! أركض وأختبئ </font>")
- ui.addTextArea(337, "<p align='center'><font size='30' color='#C2C2DA'>عم تمطر سنادين! أركض وأختبئ و انجو بحياتك </font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
- text24 = text24a
- refresh444()
- else
- removeMessage()
- ui.addTextArea(338, "<p align='center'><font size='30' color='#C2C2DA'>!ووه ، توقفت الأمطار السندانية </font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
- ui.setMapName("<font color='#DCE620'>!ووه ، نحن بأمان</font>")
- system.newTimer(cooleffect,5000,false)
- system.newTimer(removeMessage,5000,false)
- text24 = text24i
- refresh444()
- end
- elseif cb=="text25" then
- ballRain = not ballRain
- if ballRain then
- -- tfm.exec.chatMessage("<font color='#ff8547'>It's cloudy with a chance of kirbys!</font>", nil)
- else
- -- tfm.exec.chatMessage("<font color='#ff8547'>Hey, it's sunny again. Let's go to the beach!</font>", nil)
- end
- if ballRain == true then
- ui.setMapName("<font color='#DCE620'>!إنها تمطر كرات كيربي</font>")
- removeMessage()
- ui.addTextArea(333, "<p align='center'><font size='30' color='#C2C2DA'>!إنها تمطر كرات كيربي</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
- text25 = text25a
- refresh444()
- else
- removeMessage()
- ui.setMapName("<font color='#DCE620'>!الجو مشمس مرة أخرى. هيا لنذهب إلى الشاطئ</font>")
- ui.addTextArea(334, "<p align='center'><font size='30' color='#C2C2DA'>!الجو مشمس مرة أخرى. هيا لنذهب إلى الشاطئ</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
- system.newTimer(cooleffect,5000,false)
- system.newTimer(removeMessage,5000,false)
- text25 = text25i
- refresh444()
- end
- elseif cb=="text26" then
- if isAdmin(name) == true then
- plankEnable = not plankEnable
- if plankEnable then
- system.bindMouse(player, true)
- for _,v in pairs({32, 49, 50, 51}) do
- tfm.exec.bindKeyboard(player, v, true, true)
- end
- else
- system.bindMouse(player, false)
- for _,v in pairs({32, 49, 50, 51}) do
- tfm.exec.bindKeyboard(player, v, false, true)
- end
- end
- end
- elseif cb=="text27" then
- mouseKill = not mouseKill
- if mouseKill then
- -- tfm.exec.chatMessage("<font color='#ff8547'>Run or hide! Once the Click Monster gets you, you'll die!</font>", nil)
- system.bindMouse(player,true)
- else
- -- tfm.exec.chatMessage("<font color='#ff8547'>The Click Monster has disappeared. We're safe!</font>", nil)
- system.bindMouse(player,false)
- end
- if mouseKill == true then
- removeMessage()
- ui.setMapName("<font color='#DCE620'>اركض أو اختبئ! بمجرد أن يمسكك وحش الضغط ، ستموت</font>")
- ui.addTextArea(335, "<p align='center'><font size='30' color='#C2C2DA'>اركض أو اختبئ! بمجرد أن يمسكك وحش الضغط ، ستموت</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
- else
- removeMessage()
- ui.addTextArea(336, "<p align='center'><font size='30' color='#C2C2DA'>لقد أختفى وحش الضغط ، نحن بأمان<</font></p>", nil, 50, 30, 700, 119, 0xC2C2DA, 0x000000, 0, true)
- ui.setMapName("<font color='#DCE620'>لقد أختفى وحش الضغط ، نحن بأمان</font>")
- system.newTimer(cooleffect,5000,false)
- system.newTimer(removeMessage,5000,false)
- end
- elseif cb=="text88" then
- ui.removeTextArea(444,nil)
- end
- end
- end
- function eventPopupAnswer(id, name, anw)
- if id==1 and anw~="" then
- local gapChange=os.time()-miceInfo[name].lastChangenick
- if gapChange>changeTime*1000 then
- tfm.exec.chatMessage("<font color='#8FFF80'>"..anw.."</font><font color='#ffffff'> :لقد طلبت تغيير اسمك إلى</font>", name)
- for _,admins in pairs(game.admins) do
- tfm.exec.chatMessage("<font color='#fff000'>/changenick "..name.."</font><font color='#8FFF80'> "..anw.."</font>", admins)
- end
- miceInfo[name].lastChangenick=os.time()
- else
- tfm.exec.chatMessage("<font color='#D95959'>[•] عليك أن تنتظر "..math.ceil((changeTime-gapChange/1000)/60).." دقائق حتى طلب تغيير اسم آخر</font>", name)
- end
- end
- if id==100 and anw~="" then
- tfm.exec.killPlayer(anw)
- end
- if id==101 and anw~="" then
- tfm.exec.killPlayer(anw)
- tfm.exec.respawnPlayer(anw)
- end
- if id==102 and anw~="" then
- tfm.exec.giveCheese(anw)
- end
- if id==103 and anw~="" then
- tfm.exec.setVampirePlayer(anw, true)
- end
- if id==104 and anw~="" then
- tfm.exec.giveMeep(anw, true)
- end
- if id==105 and anw~="" then
- tfm.exec.freezePlayer(anw, true)
- end
- if id==106 and anw~="" then
- tfm.exec.freezePlayer(anw, false)
- end
- if id==107 and anw~="" then
- if imgEnabled == true then
- 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)
- else
- imgEnabled = true
- 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)
- end
- end
- if id==108 and anw~="" then
- tfm.exec.chatMessage("<font color='#ff8547'>• [".. name .."]: " ..anw .."</font>")
- end
- if id==109 and anw~="" then
- wind = anw
- tfm.exec.setWorldGravity(wind, gravity)
- end
- if id==110 and anw~="" then
- gravity = anw
- tfm.exec.setWorldGravity(wind, gravity)
- end
- if id==111 and anw~="" then
- newhost = tostring(anw)
- end
- if id==112 and anw~="" then
- players[anw].score = players[anw].score + 1
- setScore(anw)
- if players[anw].score == 1 then
- 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)
- elseif players[anw].score == 2 then
- tfm.exec.changePlayerSize(anw, 2)
- elseif players[anw].score == 3 then
- tfm.exec.changePlayerSize(anw, 3)
- elseif players[anw].score == 4 then
- tfm.exec.changePlayerSize(anw, 4)
- elseif players[anw].score == 5 then
- tfm.exec.changePlayerSize(anw, 5)
- elseif players[anw].score == 6 then
- 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)
- elseif players[anw].score == 7 then
- if imgEnabled == true then
- 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)
- end
- else
- imgEnabled = true
- 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)
- end
- end
- end
- function eventColorPicked(id, name, color)
- if color >= 0 then
- if id==10005 then
- local gapChange=os.time()-miceInfo[name].lastChangecolor
- if gapChange>changeTime*1000 then
- tfm.exec.chatMessage("<font color='#"..string.format("%06x",color).."'> #"..string.format("%06x",color).." </font><font color='#ffffff'>:لقد طلبت هذا اللون</font>", name)
- for _,admins in pairs(game.admins) do
- tfm.exec.chatMessage("<font color='#fff000'>/colornick "..name.."</font><font color='#"..string.format("%06x",color).."'> #"..string.format("%06x",color).."</font>", admins)
- end
- miceInfo[name].lastChangecolor=os.time()
- else
- tfm.exec.chatMessage("<font color='#D95959'>.لطلب تغيير اللون مرة أخرى "..math.ceil((changeTime-gapChange/1000)/60).." يجب أن تنتظر [•]</font>", name)
- end
- mice[name].colorName=color
- end
- end
- end
- function openMenu(name)
- ui.addTextArea(1, "", name, 58, 44, 687, 110, 0x324650, 0x0, 0.4, true)
- ui.addTextArea(16, "<p align='center'><font color='#010101' size='32'> < </font></p>", name, 8, 80, 50, 50, 0x324650, 0x0, 0, true)
- ui.addTextArea(17, "<p align='center'><font color='#010101' size='32'> > </font></p>", name, 737, 80, 50, 50, 0x324650, 0x0, 0, true)
- ui.addTextArea(2, "<p align='center'><font size='32'><a href='event:prevPage'> < </a></font></p>", name, 6, 78, 50, 50, 0x324650, 0x0, 0, true)
- ui.addTextArea(3, "<p align='center'><font size='32'><a href='event:nextPage'> > </a></font></p>", name, 735, 78, 50, 50, 0x324650, 0x0, 0, true)
- local mouse = mice[name]
- local page = mouse.menuPage
- local menuImg = mouse.menuImg
- if menuImg then
- for i=1,6 do
- if menuImg[i] then tfm.exec.removeImage(menuImg[i]) end
- ui.removeTextArea(9+i, name)
- end
- else
- mouse.menuImg = {}
- menuImg = mouse.menuImg
- end
- for i=1,6 do
- local id = (page-1)*6 + i
- local data = imgList[id]
- if not data then break end
- local x1 = 63 + 115 * (i-1)
- ui.addTextArea(3+i, "", name, x1, 50, 100, 100, 0x324650, 0x0, 0.1, true)
- 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)
- menuImg[i] = tfm.exec.addImage(data[2]..".png", "&10000", x1+50 - data[3], 100 - data[4], name)
- end
- end
- function closeMenu(name)
- local menuImg = mice[name].menuImg
- for i=1,6 do
- if menuImg[i] then tfm.exec.removeImage(menuImg[i]) end
- end
- for i=1,17 do
- ui.removeTextArea(i, name)
- end
- end
- function eventMouse(name, x, y)
- if isAdmin(name) then
- if sObjects == true then
- spawnObjects(x,y)
- elseif sObjects == false then
- end
- if sSheep == true then
- spawnSheep(x,y)
- elseif sSheep == false then
- end
- if tpAll == true then
- for n,p in pairs(tfm.get.room.playerList) do
- tfm.exec.movePlayer(n,x,y,false,0,0,false)
- end
- tpAll = false
- end
- end
- if mouseKill then
- for n,p in pairs(tfm.get.room.playerList) do
- if pythag(x,y,p.x,p.y) <= 15 then
- tfm.exec.killPlayer(n)
- tfm.exec.chatMessage("<font color='#ff8547'>لقد قُتلت. هل رأيت ذلك قادمًا؟</font>", n)
- end
- end
- end
- if explosionEnable then
- tfm.exec.explosion(x,y,50,50,true)
- tfm.exec.displayParticle(10,x,y,0,0,0,0,nil)
- end
- if plankEnable then
- tfm.exec.displayParticle(9, x, y, 0, 0, 0, 0)
- if point_x == nil then
- point_x = x
- point_y = y
- else
- makeGround(x,y,length(point_x,point_y,x,y), angle(point_x, point_y,x,y))
- end
- end
- if movePlayer then
- tfm.exec.movePlayer(name, x, y, false, 0, 1, false)
- end
- if lureMouse then
- tfm.exec.explosion(x,y,200,1000,true)
- end
- if conJur then
- tfm.exec.addConjuration(x/10, y/10, 10000)
- end
- end
- function eventLoop(cT, tR, t, tr)
- for i,o in ipairs(toDespawn) do
- if os.time() > o[2]+despawnTime then
- tfm.exec.removeObject (o[1])
- table.remove (toDespawn, i)
- end
- end
- --if tR > 0 and tR < 500 then
- -- for i=1,math.floor(#playerList/2)*2,2 do
- -- tfm.exec.linkMice(playerList[numList[i]], playerList[numList[i+1]], false)
- -- end
- --tfm.exec.chatMessage("<FC>Link mode disabled!</FC>")
- --end
- if meepEnabled and meep and os.time() >= meep then
- meep = nil
- for player in next, tfm.get.room.playerList do
- tfm.exec.giveMeep(player)
- end
- end
- if finishMap and os.time() >= finishMap then
- removeAreas()
- changeMap()
- finishMap = nil
- end
- if veryHidden then
- for name,player in pairs(tfm.get.room.playerList) do
- eventNewPlayer(name)
- tfm.exec.addImage("17a4f157.png","%"..name, -13, 20)
- end
- end
- if anvilRain then
- tfm.exec.addShamanObject(1009, math.random()*1600, -80)
- end
- if ballRain then
- tfm.exec.addShamanObject(615, math.random()*1600, -80)
- end
- if game.started == true and reapet == true then
- tR = tR / 1000
- game.time = tR
- looper = looper + 0.5
- if looper == 1 then
- if game.currentGround == "acid" then
- if game.dirtTimer > 0 then
- game.dirtTimer = game.dirtTimer - 1 elseif
- game.dirtTimer <= 0 then
- groundSwitch()
- ui.removeTextArea(200, nil)
- end
- end
- if game.currentGround == "dirt" then
- if game.acidTimer > 0 then
- if game.acidTimer == 4 then
- spawnObjects()
- spawnTokens()
- spawnPoint()
- end
- ui.addTextArea(400, "<p align='center'><font size='90'>" ..game.acidTimer .."</font></p>", nil, 340, 125, 120, 119, 0x324650, 0x000000, 0, true)
- game.acidTimer = game.acidTimer - 1
- elseif
- game.acidTimer <= 0 then
- ui.removeTextArea(400,nil)groundSwitch()
- end
- end
- looper = 0
- end
- end
- end
- function eventPlayerGetCheese(name)
- if deathOnCheese then
- tfm.exec.killPlayer(name)
- tfm.exec.chatMessage("<font color='#ff8547'>لقد أخبرتك بعدم أخذ الجبنة :(</font>",name)
- end
- end
- main()
Add Comment
Please, Sign In to add comment