Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Protect the cheese from the hungry vampires! Use your arrows and shoot them till kingdom come!
- local maps = {
- {n = "Trench Attack",
- Width = 3000,
- Height = 400,
- mouseSpawn = {x = 350, y = 345},
- vampireSpawn = {x = 2650, y = 345},
- XML = '<C><P L="3000" Ca="" aie="" /><Z><S><S H="40" P="0,0,0.3,0.2,0,0,0,0" L="1400" X="700" Y="380" T="6" /><S H="40" P="0,0,0.3,0,0,0,0,0" L="200" X="200" Y="340" T="10" /><S P="0,0,0.3,0,0,0,0,0" L="200" H="40" X="2800" Y="340" T="10" /><S H="100" P="0,0,0.3,0.2,0,0,0,0" L="20" X="120" Y="270" T="0" /><S P="0,0,0.3,0.2,0,0,0,0" L="20" H="100" X="280" Y="270" T="0" /><S P="0,0,0.3,0.2,0,0,0,0" L="20" H="100" X="2880" Y="270" T="0" /><S P="0,0,0.3,0.2,0,0,0,0" L="20" H="100" X="2720" Y="270" T="0" /><S P="0,0,0.3,0.2,0,0,0,0" L="1400" H="40" X="2300" Y="380" T="6" /><S P="0,0,0.3,0.2,0,0,0,0" L="20" H="40" X="400" Y="340" T="0" /><S P="0,0,0.3,0.2,0,0,0,0" L="20" H="40" X="2600" Y="340" T="0" /><S H="10" P="0,0,0.3,0.2,0,0,0,0" L="3000" o="6a7495" X="0" c="3" Y="-5" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" X="3000" L="3000" o="6a7495" H="10" c="3" Y="-5" T="12" /></S><D><F Y="315" X="200" /><T Y="320" X="2800" /><DS Y="-30" X="1500" /></D><O /></Z></C>'
- },
- {n = "Vampire Mansion",
- Width = 3000,
- Height = 400,
- mouseSpawn = {x = 400, y = 355},
- vampireSpawn = {x = 2780, y = 222},
- XML = '<C><P aie="" L="3000" Ca="" /><Z><S><S P="0,0,0.3,0.2,0,0,0,0" L="3000" o="292929" X="1500" c="4" Y="395" T="12" H="10" /><S c="4" L="20" o="292929" H="200" X="2000" Y="300" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,,0,0,0" L="3000" o="ffffff" H="10" c="3" Y="405" T="12" X="1500" /><S L="3000" o="ffffff" H="25" X="1500" Y="0" T="12" P="0,0,0.3,0.2,,0,0,0" /><S P="0,0,0,0,,0,0,0" L="25" o="ffffff" H="425" Y="200" T="12" X="0" /><S L="25" o="ffffff" H="425" X="3000" Y="200" T="12" P="0,0,0,0,,0,0,0" /><S L="25" o="ffffff" H="240" X="800" Y="180" T="12" P="0,0,0,0,,0,0,0" /><S P="0,0,0,0,,0,0,0" L="25" o="ffffff" X="1600" Y="180" T="12" H="240" /><S P="0,0,0.3,0.2,0,0,0,0" L="20" o="292929" X="880" c="4" Y="300" T="12" H="200" /><S L="25" o="ffffff" X="2400" H="240" Y="180" T="12" P="0,0,0,0,,0,0,0" /><S P="0,0,0.3,0.2,,0,0,0" L="500" o="ffffff" H="25" Y="288" T="12" X="1200" /><S P="0,0,0.3,0.2,,0,0,0" L="350" o="ffffff" H="26" Y="287" T="12" X="1763" /><S L="350" o="ffffff" H="26" X="1763" Y="150" T="12" P="0,0,0.3,0.2,,0,0,0" /><S P="0,0,0.3,0.2,,0,0,0" L="350" o="ffffff" X="2237" Y="150" T="12" H="26" /><S L="350" o="ffffff" X="2237" H="26" Y="287" T="12" P="0,0,0.3,0.2,,0,0,0" /><S P="0,0,0.3,0.2,,0,0,0" L="450" o="ffffff" H="26" Y="287" T="12" X="2770" /><S P="0,0,,,,0,0,0" L="3000" H="26" Y="388" T="9" m="" X="1500" /><S L="20" H="200" X="2000" Y="300" T="9" m="" P="0,0,,,,0,0,0" /><S P="0,0,,,,0,0,0" L="20" X="880" Y="300" T="9" m="" H="200" /></S><D><P C="0" Y="0" T="34" X="0" P="0,0" /><P C="0" Y="0" T="34" X="800" P="0,0" /><P C="0" Y="0" T="34" X="1600" P="0,0" /><P C="0" Y="0" T="34" X="2200" P="0,0" /><P C="ffffff" Y="170" T="89" X="400" P="0,0" /><P C="cdc5bc,623b2a" Y="272" T="105" X="1200" P="0,0" /><P C="8a311b" Y="400" T="15" X="400" P="0,0" /><P C="8a311b" Y="400" T="15" X="200" P="0,0" /><P C="8a311b" Y="400" T="15" X="600" P="0,0" /><P C="95311e,bde8f3,faf1b3" Y="160" T="14" X="1200" P="0,0" /><P C="cdc5bc,623b2a" Y="272" T="105" P="0,0" X="1350" /><P C="cdc5bc,623b2a" Y="272" T="105" X="1300" P="0,0" /><P C="cdc5bc,623b2a" Y="272" T="105" P="0,0" X="1250" /><P C="cdc5bc,623b2a" Y="272" T="105" P="0,0" X="1100" /><P C="cdc5bc,623b2a" Y="272" T="105" P="0,0" X="1050" /><P C="cdc5bc,623b2a" Y="272" T="105" P="0,0" X="1150" /><P C="623b2a" Y="277" T="104" X="1093" P="1,0" /><P C="623b2a" Y="277" T="104" X="1200" P="1,0" /><P C="623b2a" Y="277" T="104" P="1,0" X="1308" /><P X="1284" Y="241" T="21" P="1,0" /><P X="1342" Y="240" T="31" P="1,0" /><P X="1063" Y="240" T="31" P="1,0" /><P C="8a311b,95d9d6,665c50,e9e2da" Y="13" T="102" X="1450" P="1,0" /><P C="8a311b,95d9d6,665c50,e9e2da" Y="13" T="102" X="950" P="1,0" /><P C="95311e" Y="145" T="24" X="1671" P="0,0" /><P C="95311e" Y="288" T="24" X="1671" P="0,0" /><P C="95311e" Y="288" T="24" X="2329" P="0,1" /><P C="95311e" Y="145" T="24" X="2329" P="0,1" /><P P="0,0" Y="277" T="33" X="1755" /><P X="2244" Y="139" T="33" P="0,0" /><P X="1755" Y="137" T="26" P="1,1" /><P X="2600" Y="275" T="22" P="0,0" /><P X="2900" Y="275" T="22" P="0,0" /><P P="0,0" Y="277" T="33" X="2244" /><P C="8a311b" Y="274" T="15" X="2750" P="0,0" /><P X="2750" Y="274" T="17" P="1,0" /><P X="2750" Y="111" T="23" P="0,0" /><F Y="365" X="165" /><DS Y="-30" X="1500" /><T Y="275" X="2910" /></D><O /></Z></C>'
- },
- {n = "Dungeon Invasion",
- Width = 3000,
- Height = 400,
- mouseSpawn = {x = 325, y = 325},
- vampireSpawn = {x = 2950, y = 365},
- XML = '<C><P Ca="" aie="" L="3000" /><Z><S><S X="2850" H="100" o="0" L="300" Y="321" c="2" P="0,0,0.3,0.2,,0,0,0" T="12" /><S X="16" L="400" Y="200" H="30" P="0,0,0.3,,90,0,0,0" T="10" /><S H="10" X="1500" o="324650" L="3000" Y="-5" P="0,0,0.3,0.2,,0,0,0" T="12" /><S H="10" o="324650" L="400" Y="200" X="-5" P="0,0,0,0.2,90,0,0,0" T="12" /><S H="30" L="2000" Y="385" X="1000" P="0,0,0.3,,0,0,0,0" T="10" /><S H="30" L="200" Y="230" X="605" P="0,0,0.3,,0,0,0,0" T="10" /><S X="2650" L="700" Y="385" H="30" P="0,0,0.3,,0,0,0,0" T="10" /><S H="30" L="200" Y="355" X="250" P="0,0,0.3,,0,0,0,0" T="10" /><S X="250" L="100" Y="325" H="30" P="0,0,0.3,,0,0,0,0" T="10" /><S H="30" L="200" Y="60" X="170" P="0,0,0.3,,180,0,0,0" T="10" /><S X="415" L="200" Y="60" H="30" P="0,0,0.3,,180,0,0,0" T="10" /><S H="30" L="100" Y="95" X="500" P="0,0,0.3,,90,0,0,0" T="10" /><S X="500" L="100" Y="265" H="30" P="0,0,0.3,,90,0,0,0" T="10" /><S H="150" L="25" Y="289" X="457" P="0,0,,,,0,0,0" T="9" /><S X="885" L="200" Y="155" H="30" P="0,0,0.3,,0,0,0,0" T="10" /><S H="30" L="200" Y="295" X="885" P="0,0,0.3,,0,0,0,0" T="10" /><S H="200" L="200" Y="200" X="1230" P="0,0,0.3,,0,0,0,0" T="10" /><S X="1465" L="100" Y="320" H="100" P="0,0,0.3,,0,0,0,0" T="10" /><S H="100" L="100" Y="220" X="1701" P="0,0,0.3,,0,0,0,0" T="10" /><S X="1465" L="100" Y="85" H="170" P="0,0,0.3,,180,0,0,0" T="10" /><S H="30" L="300" Y="262" X="2850" P="0,0,0.3,,0,0,0,0" T="10" /><S H="30" L="400" Y="200" X="2985" P="0,0,0.3,,270,0,0,0" T="10" /><S X="745" L="25" Y="265" H="200" P="0,0,,,,0,0,0" T="9" /><S H="250" L="25" Y="240" X="1100" P="0,0,,,,0,0,0" T="9" /><S X="1370" L="25" Y="240" H="250" P="0,0,,,,0,0,0" T="9" /><S X="542" L="25" Y="132" H="150" P="0,0,,,,0,0,0" T="9" /></S><D><F X="251" Y="307" /><DS X="325" Y="325" /><P C="55300b,191812" X="2701" P="1,0" T="98" Y="369" /><T X="2950" D="" Y="369" /></D><O /></Z></C>'
- }
- }
- local mice = {}
- local playing = {}
- local vampires = {}
- local admin = {["Tomstoms#0000"] = true, ["Onkei#0000"] = true, ["Santaishcool#0000"] = true, ["Ninjafood#0000"] = true, ["Pie#0000"] = true, ["Ehw#0000"] = true}
- local canShoot = false
- local cheese = {}
- local currentMap;
- local hole = {}
- local keys = {space = 32, left = 37, up = 38, right = 39, down = 40, a = 65, d = 68, q = 81, s = 83, w = 87}
- local players = {}
- local respawnTimer = 0
- local settings = {
- maxArrows = 15,
- maxHunger = 40,
- timeTillRespawn = 10,
- barLen = 780,
- leftKeys = {[keys.left] = true, [keys.a] = true, [keys.q] = true},
- rightKeys = {[keys.right] = true, [keys.d] = true},
- downKeys = {[keys.down] = true, [keys.s] = true},
- upKeys = {[keys.up] = true, [keys.w] = true},
- }
- local tasks = {}
- local timeLeft = 0
- local vampiresWon = false
- local bot = {
- {n = "Amadeus_Onkei", backgroundColor = 0x2c4726, borderColor = 0x2c4726},
- {n = "Chiaki", backgroundColor = 0x804d80, borderColor = 0xcccccc},
- {n = "Soupbot", backgroundColor = 0x324650, borderColor = 0x171918},
- }
- function capitalize(word)
- return string.upper(word:sub(1, 1)) .. string.lower(word:sub(2));
- end
- function main()
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAutoShaman(true)
- tfm.exec.disableAutoTimeLeft(true)
- tfm.exec.disableAutoScore(true)
- for n in pairs(tfm.get.room.playerList) do eventNewPlayer(n) end
- startRound()
- end
- function pythag(x1, y1, x2, y2, r)
- local x = x2 - x1
- local y = y2 - y1
- local r = r + r
- return x * x + y * y < r * r
- end
- function resetMouse(n)
- mice[n] = {
- direction = 1,
- shooting = {Arrows = settings.maxArrows, Timer = 0},
- }
- system.bindMouse(n, true)
- end
- function resetVampire(n)
- vampires[n] = {
- hunger = settings.maxHunger,
- biting = {Allow = true, Timer = 0},
- }
- system.bindMouse(n, false)
- end
- function setKeys(n)
- for i, key in pairs(keys) do
- tfm.exec.bindKeyboard(n, key, true, true)
- end
- end
- function setTeams()
- local list_of_players = {}
- for n in pairs(tfm.get.room.playerList) do table.insert(list_of_players, n) end
- for i = 1, #list_of_players, 1 do
- local index = math.random(#list_of_players)
- local n = list_of_players[index]
- if i % 2 == 0 then
- resetMouse(n)
- else
- resetVampire(n)
- end
- playing[n] = false
- setKeys(n)
- table.remove(list_of_players, index);
- end
- end
- function showBar(n)
- local backgroundColor = bot[3].backgroundColor
- local borderColor = bot[3].borderColor
- local mouse = mice[n]
- local player = players[n]
- local vampire = vampires[n]
- if player then local botbot = bot[player.botType] backgroundColor = botbot.backgroundColor borderColor = botbot.borderColor end
- local mapBar = 0
- if mouse then
- mapBar = math.floor(mouse.shooting.Arrows * (settings.barLen / settings.maxArrows))
- elseif vampire then
- mapBar = math.floor(vampire.hunger * (settings.barLen / settings.maxHunger))
- end
- ui.addTextArea(0, "", n, 10, 10, settings.barLen, 20, backgroundColor, borderColor, 0.7, true)
- ui.addTextArea(1, "", n, 10, 10, mapBar, 20, borderColor, borderColor, 0.7, true)
- end
- function startRound()
- math.randomseed(os.time())
- canShoot = false
- timeLeft = 0
- vampiresWon = false
- mice = {}
- playing = {}
- vampires = {}
- setTeams()
- currentMap = maps[math.random(#maps)]
- tfm.exec.newGame(currentMap.XML)
- end
- function table.copy(t1)
- local t2 = {}
- for k, v in pairs(t1) do
- t2[k] = v
- end
- return t2
- end
- function ui.addBotText(text, n)
- local backgroundColor = bot[3].backgroundColor
- local borderColor = bot[3].borderColor
- if n == nil then
- for n in pairs(tfm.get.room.playerList) do
- if players[n] then
- local botbot = bot[players[n].botType]
- backgroundColor = botbot.backgroundColor
- borderColor = botbot.borderColor
- ui.addTextArea(100, "<v><a href='event:bot_popup'>[~"..botbot.n.."]</a><n> "..text, n, 6, 380, nil, 30, backgroundColor, borderColor, 0.7, true)
- end
- end
- elseif players[n] then
- local botbot = bot[players[n].botType]
- backgroundColor = botbot.backgroundColor
- borderColor = botbot.borderColor
- ui.addTextArea(100, "<v><a href='event:bot_popup'>[~"..botbot.n.."]</a><n> "..text, n, 6, 380, nil, 30, backgroundColor, borderColor, 0.7, true)
- end
- end
- function eventNewGame()
- tfm.exec.setGameTime(3 * 60)
- ui.setMapName(currentMap.n.." !");
- cheese = {}
- hole = {}
- if tfm.get.room.xmlMapInfo then
- for cheeseStuff in tfm.get.room.xmlMapInfo.xml:gmatch("<F [^/]+/>") do
- local x1 = tonumber(cheeseStuff:match('X="(%d+)"'))
- local y1 = tonumber(cheeseStuff:match('Y="(%d+)"'))
- table.insert(cheese, {x = x1, y = y1})
- end
- for holeStuff in tfm.get.room.xmlMapInfo.xml:gmatch("<T [^/]+/>") do
- local x1 = tonumber(holeStuff:match('X="(%d+)"'))
- local y1 = tonumber(holeStuff:match('Y="(%d+)"'))
- table.insert(hole, {x = x1, y = y1})
- end
- end
- for n in pairs(tfm.get.room.playerList) do
- tfm.exec.setPlayerScore(n, 0, false)
- showBar(n)
- -- Teleport the players.
- if mice[n] then
- tfm.exec.movePlayer(n, currentMap.mouseSpawn.x, currentMap.mouseSpawn.y);
- ui.addBotText("انت الفأر! قم بحماية الجبن من مصاصي الدماء باستخدام الأسهم (زر الفأرة الأيسر)!", n)
- elseif vampires[n] then
- tfm.exec.setVampirePlayer(n)
- tfm.exec.movePlayer(n, currentMap.vampireSpawn.x, currentMap.vampireSpawn.y);
- ui.addBotText("أنت مصاص دماء! خذ الجبن من الفأر وقم بتسليمها إلى الجحر\n اضغط على سهم لأعلى للطيران ومفتاح المسافة للدغة", n)
- end
- end
- end
- function eventKeyboard(n, key, down, x, y)
- local now = os.time()
- local data = tfm.get.room.playerList[n]
- local mouse = mice[n]
- local vampire = vampires[n]
- if (mouse or vampire) and not data.isDead then
- data.x = x
- data.y = y
- if not playing[n] then
- playing[n] = true
- end
- if settings.leftKeys[key] and mouse then
- mouse.direction = -1
- elseif settings.rightKeys[key] and mouse then
- mouse.direction = 1
- elseif settings.upKeys[key] and vampire then
- tfm.exec.movePlayer(n, 0, 0, 0, 0, -40, false)
- elseif key == keys.space and vampire and canShoot then
- if vampire.biting.Allow then
- if vampire.biting.Timer < now - 5000 then
- for n2, data2 in pairs(tfm.get.room.playerList) do
- local mouse2 = mice[n2]
- if mouse2 and not data2.isDead and pythag(x, y, data2.x, data2.y, 40) then
- tfm.exec.killPlayer(n2)
- vampire.hunger = settings.maxHunger
- break
- end
- end
- tasks[now + 5 * 1000] = function() ui.addBotText("يمكنك عض الفئران مرة أخرى!", n) end
- vampire.biting.Timer = now
- else
- ui.addBotText("عليك أن تنتظر 5 ثوان قبل اللقمة التالية!", n)
- end
- else
- ui.addBotText("لا يمكنك أن تعض عندما يكون لديك جبن!", n)
- end
- end
- end
- end
- function eventLoop(passed, left)
- local now = os.time()
- for when, task in pairs(table.copy(tasks)) do
- if when <= now then
- task()
- tasks[when] = nil;
- end
- end
- if canShoot then
- for n, data in pairs(tfm.get.room.playerList) do
- local vampire = vampires[n]
- if not data.isDead and vampire then
- if not vampiresWon then
- if #cheese > 0 then
- for i, loc in ipairs(cheese) do
- if pythag(data.x, data.y, loc.x, loc.y, 10) then
- tfm.exec.giveCheese(n)
- break
- end
- end
- end
- if #hole > 0 and not vampire.biting.Allow then
- for i, loc in ipairs(hole) do
- if pythag(data.x, data.y, loc.x, loc.y, 10) then
- eventPlayerWon(n)
- break
- end
- end
- end
- vampire.hunger = vampire.hunger - 0.5
- if vampire.hunger <= 0 then tfm.exec.killPlayer(n) end
- end
- end
- showBar(n)
- end
- end
- if respawnTimer == 0 and left > 10000 then
- for n, data in pairs(tfm.get.room.playerList) do
- local mouse = mice[n]
- if data.isDead and playing[n] then
- tfm.exec.respawnPlayer(n)
- elseif mouse and mouse.shooting.Arrows < settings.maxArrows then
- mouse.shooting.Arrows = mouse.shooting.Arrows + 1
- end
- end
- end
- if passed > 6000 and not canShoot then
- canShoot = true
- end
- if left <= 5000 then
- local num = math.floor(left / 1000)
- if num >= 1 and num <= 5 and not vampiresWon then
- for n in pairs(tfm.get.room.playerList) do
- local mouse = mice[n]
- if mouse then tfm.exec.giveCheese(n) tfm.exec.playerVictory(n) end
- end
- end
- if num < 1 then
- startRound()
- end
- end
- respawnTimer = (respawnTimer + 0.5) % settings.timeTillRespawn
- timeLeft = left / 1000
- end
- function eventMouse(n, x, y)
- local now = os.time()
- local data = tfm.get.room.playerList[n]
- local mouse = mice[n]
- if canShoot and mouse and not data.isDead and not vampiresWon then
- if not data.movingRight and not data.movingLeft then
- if mouse.shooting.Arrows > 0 then
- local timer = mouse.shooting.Timer
- local force = 10
- if timer < now - 500 then
- if timer < now - 6000 then
- force = 28
- elseif timer < now - 5000 then
- force = 26
- elseif timer < now - 4000 then
- force = 24
- elseif timer < now - 3000 then
- force = 22
- elseif timer < now - 2000 then
- force = 20
- else
- force = 18
- end
- if data.isJumping then
- force = force + 2
- end
- local angle = math.atan2(y - data.y, x - data.x)
- local id = tfm.exec.addShamanObject(35, data.x + 50 * math.cos(angle), data.y + 50 * math.sin(angle), math.deg(angle), math.cos(angle) * force, math.sin(angle) * force)
- tasks[now + (2 * 1000)] = function() tfm.exec.removeObject(id) end;
- mouse.shooting.Arrows = mouse.shooting.Arrows - 1
- mouse.shooting.Timer = now
- else
- ui.addBotText("لا يمكنك إطلاق النار مباشرة بعد ظهور السهم!", n)
- end
- else
- ui.addBotText("ليس لديك المزيد من الأسهم في هذه الجولة!", n)
- end
- else
- ui.addBotText("لا يمكنك إطلاق النار والتحرك في نفس الوقت!", n)
- end
- else
- ui.addBotText("لا يمكنك إطلاق النار!", n)
- end
- end
- function eventPlayerRespawn(n)
- local mouse = mice[n]
- local vampire = vampires[n]
- -- Teleport the players.
- playing[n] = false
- if mouse then
- resetMouse(n)
- tfm.exec.movePlayer(n, currentMap.mouseSpawn.x, currentMap.mouseSpawn.y);
- elseif vampire then
- resetVampire(n)
- tfm.exec.setVampirePlayer(n)
- tfm.exec.movePlayer(n, currentMap.vampireSpawn.x, currentMap.vampireSpawn.y);
- end
- end
- function eventPlayerGetCheese(n)
- local mouse = mice[n]
- local vampire = vampires[n]
- if mouse and timeLeft > 10 then
- tfm.exec.killPlayer(n)
- ui.addBotText("لا يمكنك أخذ الجبن الذي تحصل عليه. فأنت تستحق الموت.", n)
- elseif vampire then
- vampire.biting.Allow = false
- vampire.hunger = settings.maxHunger
- end
- end
- function eventPlayerWon(n)
- local vampire = vampires[n]
- if vampire then
- ui.setMapName(n.." أوصل الجبن إلى الجحر وسجل نقطة لفريق مصاصي الدماء!\n")
- vampiresWon = true
- else
- ui.setMapName("!دافعت الفئران عن الجبن بنجاح وفازت. مرحى!\n")
- end
- tfm.exec.setGameTime(10);
- end
- function eventNewPlayer(n)
- if not players[n] then
- players[n] = {botType = 3}
- end
- eventChatCommand(n, "help");
- end
- function eventTextAreaCallback(id, n, cb)
- local player = players[n]
- if player then
- if cb == "bot_popup" then
- player.botType = player.botType + 1
- if player.botType > #bot then
- player.botType = 1
- end
- end
- end
- end
- function eventChatCommand(n, cmd)
- local arg = {}
- for args in cmd:gmatch("[^%s]+") do
- table.insert(arg, args:lower())
- end
- if admin[n] then
- if cmd == "map" or cmd == "skip" then
- startRound()
- elseif cmd:sub(1, 4) == "time" and tonumber(cmd:sub(6)) then
- local time = cmd:sub(6, 7);
- tfm.exec.setGameTime(time);
- elseif (arg[1] == "mice" or arg[1] == "mouse" or arg[1] == "vampire" or arg[1] == "vampires" or arg[1] == "vamp") and tostring(arg[2]) then
- local n2 = capitalize(arg[2])
- if arg[1] == "mice" or arg[1] == "mouse" then
- vampires[n2] = nil
- resetMouse(n2)
- ui.addBotText("أنت الأن فأر! أحمي الجبن من مصاصي الدماء بأستخدام الأسهم (زر الفأرة الايسر))!", n2)
- elseif arg[1] == "vampire" or arg[1] == "vampires" or arg[1] == "vamp" then
- mice[n2] = nil
- resetVampire(n2)
- ui.addBotText("انت الأن مصاص الدماء! خذ الجبن من الفئران وقم بتسليمها إلى الجحر! اضغط على السهم الأعلى للطيران والمسافة للدغة!", n2)
- end
- tfm.exec.killPlayer(n2)
- end
- end
- if cmd == "help" or cmd == "guide" or cmd == "info" or cmd == "tutorial" then
- ui.addPopup(1, 0, "مرحبًا بكم في غرفة فانكورب! هذا هو دليل لعبتك! <br> في هذه اللعبة ستلعب دور فأر أو مصاص دماء. بصفتك فأرًا ، يجب عليك حماية الجبن الخاص بك من مصاصي الدماء ومنعها من الوصول إلى الجحر! للقيام بذلك ، لديك <u> أسهم </ u> يمكنك إطلاقها بالنقر فوق <b> زر الماوس الأيسر </ b>. <br> <br> بصفتك مصاص دماء ، يجب أن تأخذ الجبن وتسليمه إلى الجحر. للطيران ، اضغط على <u> السهم لأعلى </ u> للدغة والقتل ، اضغط <b>المسافة</b>.", n, 150, 110, 500, true)
- end
- end
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement