function split(str) local table_temp = {} local i = 0 for letter in str:gmatch"." do table_temp[i] = letter i = i + 1 end return table_temp end function output_table(ausgabe) local i = 0 while i <= #ausgabe do print(ausgabe[i]) i = i + 1 end end function is_operation(str) for key, value in pairs({"p","m","n","d"}) do if value == str then return true end end return false end function parsing(str) local table_temp = split(str) local i = 0 local result = tonumber(table_temp[0]) while i <= #table_temp do element = table_temp[i] if is_operation(element) then if element == "p" then result = result + tonumber(table_temp[i + 1]) elseif element == "m" then result = result - tonumber(table_temp[i + 1]) elseif element == "n" then result = result * tonumber(table_temp[i + 1]) elseif element == "d" then result = result / tonumber(table_temp[i + 1]) else print("Wrong Input") end end i = i + 1 end print(result) end ---------------------------------------------------------- operations = "2p3p3m6p2" parsing(operations) ----------------------------------------------------------
["Polizei"] = { _config = { vtype="car", opt={ owned = true, buy = true, sell = true, rent = true, store = true }, blip={ id=56, blipcolor=38, draw = true }, --displayname=lang.garage.names.example(), marker={ scale=0.7, color={0,255,125}, alpha=125, distance=150, draw = true }, radius = 1, permissions={"police.vehicle"} }, --["police"] = {"Mercedes Sprinter 2",0, "police"}, --["police2"] = {"BMW M5 Police",0, "police"}, --["police3"] = {"Dodge Durango LSPD ",0, "police"}, --["police4"] = {"Ford Explorer LSPD Neu",0, "police"}, --["cla45pol"] = {"Mercedes CLA 45 LSPD",0, "police"}, --["mk6pol"] = {"VW MK6 LSPD",0, "police"}, --["police100"] = {"police100",0, "police"}, ["policet"] = {"Mercedes Sprinter Prsion",0, "police"}, ["pbus"] = {"Prison Bus",0, "police"}, --["sheriff2"] = {"Chevroelt Silver LSPD ",0, "police"}, --["sheriff"] = {"Schwertransport Mercedes",0, "police"}, ["polamggtr"] = {"Mercedes-Benz GTR LSPD",0, "police"}, ["polgs350"] = {"Lexus GS350 LSPD",0, "police"}, --["polaventa"] = {"Lambo Aventador",0, "police"}, --["polchiron"] = {"Bugatti Chiron LSPD ",0, "police"}, --["mclarenpd"] = {"Mclaren LSPD",0, "police"}, ["pol718"] = {"Porsche Cayman LSPD",0, "police"}, --["ghispo2"] = {"Maserati LSPD",0, "police"}, --["2015polstang"] = {"Ford Mustang",0, "police"}, --["crown1"] = {"Ford Crown Sheriff Grün WEiß",0, "police"}, --["crown2"] = {"Ford Crown Sheriff Braun& Dunkel",0, "police"}, --["crown3"] = {"Ford Crown Sheriff weiß Blau ",0, "police"}, --["crown4"] = {"Ford Crown Highway",0, "police"}, --["crown5"] = {"Ford Crown Sheriff K-9 Großes Blaulicht",0, "police"}, --["crown6"] = {"Ford Crown Grau Sheriff",0, "police"}, ["crown7"] = {"Ford Crown Weiß Sheriff",0, "police"}, --["crown8"] = {"Ford Crown LSPD",0, "police"}, --["crown9"] = {"Ford Crown Slicktop LSPD",0, "police"}, --["crown10"] = {"Ford Crown sheriff 3",0, "police"}, --["crown11"] = {"Ford Crown Paleto Police",0, "police"}, ["policegt350r"] = {"Ford Mustang GTR LSPD",0, "police"}, ["rmodpolice"] = {"Nissan GTR LSPD",0, "police"}, ["db11scpd"] = {"Aston Martin LSPD ",0, "police"}, ["riot"] = {"SWAT",0, "police"}, ["fbi"] = {"Mercedes Benz Unmarked",0, "police"}, ["fbi2"] = {"Dodge Durango Unmarked",0, "police"}, --["hwaycar2"] = {"Dodge Charger 2009/6 Highway",0, "police"}, --["hwaycar3"] = {"Ford Crown vic Highway",0, "police"}, ["hwaycar5"] = {"Patrol Ford Crown LSPD",0, "police"}, --["hwaycar6"] = {"HWAY Ford Explorer",0, "police"}, ["hwaycar7"] = {"BMW LSPD Bike",0, "police"}, ["hwaycar8"] = {"Ford Explorer Alt LSPD",0, "police"}, ["hwaycar9"] = {"Ford Explorer LSPD",0, "police"}, --["hwaycar10"] = {"Hhway Patrol weiß Ford Explorer altes Model",0, "police"}, --["hwaycar11"] = {"HighWay Patrol Ford F350 Super Duty",0, "police"}, ["hwaycar12"] = {"Chevrolet Tahoe 2015 LSPD",0, "police"}, ["hwaycar13"] = {"Dodge charger 2015 LSPD",0, "police"}, ["hwaycar14"] = {"Dodge Charger 2015 Slickstop LSPD",0, "police"}, ["hwaycar15"] = {"Ford Explorer LSPD Neu",0, "police"}, --["hwaycar16"] = {"HIghWay Patrol Ford Explorer weiß Slicktop",0, "police"}, --["hwaycar1"] = {"HighWay Patrol Ford Crown weiß großes Blaulich",0, "police"}, --["polf430"] = {"Police Ferarri",0, "police"}, ["policeb"] = {"Police Bike",0, "police"}, --["noosecougar4"] = {"noosecougar4",0, "police"}, --["cougar4"] = {"cougar4",0, "police"}, --["viper"] = {"Dodge Viper Unmarked Slicktop",0, "police"}, --["viper2"] = {"Dodge Viper Police",0, "police"}, --["lspd1"] = {"lspd1 ",0, "police"}, --["lspd2"] = {"Ford Crown LSPD",0, "police"}, --["lspd3"] = {"Dodge Charger2012 LSPD",0, "police"}, ["lspd4"] = {"Ford Crown UC",0, "police"}, --["lspd5"] = {"Ford Crown weiß ",0, "police"}, --["lspd6"] = {"Ford CRown LSPD Slickstop",0, "police"}, --["lspd7"] = {"Dodge Charger 2015 LSPD",0, "police"}, --["lspd8"] = {"Chevroelt Tahoe 2013 LSPD",0, "police"}, --["lspd9"] = {"Ford Explorer LSPD",0, "police"}, --["lspd10"] = {"Chevroelt Silver Weiß",0, "police"}, --["lspd11"] = {"Chevroelt Silver LSPD",0, "police"}, --["lspd12"] = {"Chevroelt Silver weiß absperrung",0, "police"}, --["srt8police"] = {"srt8police",0, "police"}, ["audipd"] = {"Audi R8",0, "police"}, --["polrevent"] = {"Lamborghini Reventon",0, "police"}, --["06cvpi"] = {"2006 Ford CVPI",0, "police"}, --["charger09"] = {"2009 Dodge Charger Code 3",0, "police"}, --["charger11"] = {"2013 Dodge Charger LSPD Slicktop",0, "police"}, --["explorer"] = {"2011 Ford Explorer",0, "police"}, --["fpi1"] = {"2012 Ford Taurus (FPI)",0, "police"}, --["gtrp"] = {"Nissan GTR Unmarked",0, "police"}, --["impala3"] = {"Chevy Impala",0, "police"}, --["rs4"] = {"Audi RS4 Avent",0, "police"}, --["taurus"] = {"2012 Ford Taurus",0, "police"}, ["polbati"] = {"Bati Motorrad",0, ""}, ["corvettepd"] = {"Chevrolet Corvette C7R",0, ""}, ["escade"] = {"Cadillac Escalade FBI",0, ""}, },
["Polizei"] = { _config = { vtype="car", opt={ owned = true, buy = true, sell = true, rent = true, store = true }, blip={ id=56, blipcolor=38, draw = true }, --displayname=lang.garage.names.example(), marker={ scale=0.7, color={0,255,125}, alpha=125, distance=150, draw = true }, radius = 1, permissions={"police.vehicle"} }, --["police"] = {"Mercedes Sprinter 2",0, "police"}, --["police2"] = {"BMW M5 Police",0, "police"}, ["police3"] = {"Dodge Durango LSPD ",0, "police"}, --["police4"] = {"Ford Explorer LSPD Neu",0, "police"}, ["cla45pol"] = {"Mercedes CLA 45 LSPD",0, "police"}, --["mk6pol"] = {"VW MK6 LSPD",0, "police"}, --["police100"] = {"police100",0, "police"}, ["policet"] = {"Mercedes Sprinter Prsion",0, "police"}, ["pbus"] = {"Prison Bus",0, "police"}, ["sheriff2"] = {"Chevroelt Silver LSPD ",0, "police"}, --["sheriff"] = {"Schwertransport Mercedes",0, "police"}, ["polamggtr"] = {"Mercedes-Benz GTR",0, "police"}, ["polgs350"] = {"Lexus GS350",0, "police"}, ["polaventa"] = {"Lambo Aventador",0, "police"}, ["polchiron"] = {"Bugatti Chiron LSPD ",0, "police"}, ["mclarenpd"] = {"Mclaren LSPD",0, "police"}, ["pol718"] = {"Porsche Cayman LSPD",0, "police"}, ["ghispo2"] = {"Maserati LSPD",0, "police"}, --["2015polstang"] = {"Ford Mustang",0, "police"}, --["crown1"] = {"Ford Crown Sheriff Grün WEiß",0, "police"}, --["crown2"] = {"Ford Crown Sheriff Braun& Dunkel",0, "police"}, --["crown3"] = {"Ford Crown Sheriff weiß Blau ",0, "police"}, ["crown4"] = {"Ford Crown Highway",0, "police"}, --["crown5"] = {"Ford Crown Sheriff K-9 Großes Blaulicht",0, "police"}, --["crown6"] = {"Ford Crown Grau Sheriff",0, "police"}, ["crown7"] = {"Ford Crown Weiß Sheriff",0, "police"}, --["crown8"] = {"Ford Crown LSPD",0, "police"}, --["crown9"] = {"Ford Crown Slicktop LSPD",0, "police"}, --["crown10"] = {"Ford Crown sheriff 3",0, "police"}, --["crown11"] = {"Ford Crown Paleto Police",0, "police"}, ["policegt350r"] = {"Ford Mustang GTR",0, "police"}, ["rmodpolice"] = {"Nissan GTR HighwaY",0, "police"}, ["db11scpd"] = {"Aston Martin LSPD ",0, "police"}, ["riot"] = {"SWAT",0, "police"}, ["fbi"] = {"Mercedes Benz Unmarked",0, "police"}, ["fbi2"] = {"Dodge Durango Unmarked",0, "police"}, --["hwaycar2"] = {"Dodge Charger 2009/6 Highway",0, "police"}, --["hwaycar3"] = {"Ford Crown vic Highway",0, "police"}, ["hwaycar5"] = {"HWay Patrol Ford Crown",0, "police"}, ["hwaycar6"] = {"HWAY Ford Explorer",0, "police"}, ["hwaycar7"] = {"HWay Patrol BMW Bike",0, "police"}, ["hwaycar8"] = {"HWaY Dodge",0, "police"}, ["hwaycar9"] = {"HighWAY Patrol Ford Crown K-9",0, "police"}, --["hwaycar10"] = {"Hhway Patrol weiß Ford Explorer altes Model",0, "police"}, --["hwaycar11"] = {"HighWay Patrol Ford F350 Super Duty",0, "police"}, ["hwaycar12"] = {"HWay Patrol Chevrolet Tahoe 2015",0, "police"}, ["hwaycar13"] = {"HhWay Patrol Dodge charger 2015",0, "police"}, ["hwaycar14"] = {"HWay Patrol Dodge Charger 2015 Slickstop",0, "police"}, ["hwaycar15"] = {"HhWay Patrol Ford Explorer Neu",0, "police"}, --["hwaycar16"] = {"HIghWay Patrol Ford Explorer weiß Slicktop",0, "police"}, --["hwaycar1"] = {"HighWay Patrol Ford Crown weiß großes Blaulich",0, "police"}, --["polf430"] = {"Police Ferarri",0, "police"}, ["policeb"] = {"Police Bike",0, "police"}, ["noosecougar4"] = {"noosecougar4",0, "police"}, ["cougar4"] = {"cougar4",0, "police"}, ["viper"] = {"Dodge Viper Unmarked Slicktop",0, "police"}, ["viper2"] = {"Dodge Viper Police",0, "police"}, --["lspd1"] = {"lspd1 ",0, "police"}, ["lspd2"] = {"Ford Crown LSPD",0, "police"}, ["lspd3"] = {"Dodge Charger2012 LSPD",0, "police"}, ["lspd4"] = {"Ford Crown UC",0, "police"}, --["lspd5"] = {"Ford Crown weiß ",0, "police"}, ["lspd6"] = {"Ford CRown LSPD Slickstop",0, "police"}, ["lspd7"] = {"Dodge Charger 2015 LSPD",0, "police"}, ["lspd8"] = {"Chevroelt Tahoe 2013 LSPD",0, "police"}, ["lspd9"] = {"Ford Explorer LSPD",0, "police"}, --["lspd10"] = {"Chevroelt Silver Weiß",0, "police"}, ["lspd11"] = {"Chevroelt Silver LSPD",0, "police"}, --["lspd12"] = {"Chevroelt Silver weiß absperrung",0, "police"}, --["srt8police"] = {"srt8police",0, "police"}, ["audipd"] = {"Audi R8",0, "police"}, ["polrevent"] = {"Lamborghini Reventon",0, "police"}, ["06cvpi"] = {"2006 Ford CVPI",0, "police"}, ["charger09"] = {"2009 Dodge Charger Code 3",0, "police"}, ["charger11"] = {"2013 Dodge Charger LSPD Slicktop",0, "police"}, ["explorer"] = {"2011 Ford Explorer",0, "police"}, ["fpi1"] = {"2012 Ford Taurus (FPI)",0, "police"}, ["gtrp"] = {"Nissan GTR Unmarked",0, "police"}, ["impala3"] = {"Chevy Impala",0, "police"}, ["rs4"] = {"Audi RS4 Avent",0, "police"}, ["taurus"] = {"2012 Ford Taurus",0, "police"}, ["polbati"] = {"Bati Motorrad",0, ""}, ["corvettepd"] = {"Chevrolet Corvette C7R",0, ""}, ["escade"] = {"Cadillac Escalade FBI",0, ""}, },
unlockables = { {stone = 50, type = 'buff', prototype = {name = 'mining_speed', value = 10}}, {stone = 50, type = 'buff', prototype = {name = 'inventory_slot', value = 3}}, {stone = 50, type = 'market', prototype = {price = 50, name = 'raw-fish'}}, {stone = 50, type = 'market', prototype = {price = 175, name = 'steel-axe'}}, {stone = 250, type = 'buff', prototype = {name = 'mining_speed', value = 5}}, {stone = 250, type = 'buff', prototype = {name = 'inventory_slot', value = 2}}, {stone = 250, type = 'market', prototype = {price = 50, name = 'small-electric-pole'}}, {stone = 250, type = 'market', prototype = {price = 50, name = 'small-lamp'}}, {stone = 250, type = 'market', prototype = {price = 25, name = 'stone-brick'}}, {stone = 250, type = 'market', prototype = {price = 125, name = 'stone-wall'}}, {stone = 450, type = 'buff', prototype = {name = 'mining_speed', value = 5}}, {stone = 450, type = 'buff', prototype = {name = 'inventory_slot', value = 2}}, {stone = 450, type = 'market', prototype = {price = 850, name = 'submachine-gun'}}, {stone = 450, type = 'market', prototype = {price = 50, name = 'firearm-magazine'}}, {stone = 450, type = 'market', prototype = {price = 500, name = 'light-armor'}}, {stone = 750, type = 'buff', prototype = {name = 'mining_speed', value = 5}}, {stone = 750, type = 'buff', prototype = {name = 'inventory_slot', value = 1}}, {stone = 1250, type = 'buff', prototype = {name = 'mining_speed', value = 5}}, {stone = 1250, type = 'buff', prototype = {name = 'inventory_slot', value = 1}}, {stone = 1750, type = 'buff', prototype = {name = 'mining_speed', value = 5}}, {stone = 1750, type = 'buff', prototype = {name = 'inventory_slot', value = 1}}, {stone = 2500, type = 'buff', prototype = {name = 'mining_speed', value = 5}}, {stone = 2500, type = 'buff', prototype = {name = 'inventory_slot', value = 1}}, {stone = 4000, type = 'buff', prototype = {name = 'mining_speed', value = 5}}, {stone = 4000, type = 'buff', prototype = {name = 'inventory_slot', value = 1}}, {stone = 6500, type = 'buff', prototype = {name = 'mining_speed', value = 5}}, {stone = 6500, type = 'buff', prototype = {name = 'inventory_slot', value = 1}}, {stone = 8000, type = 'buff', prototype = {name = 'mining_speed', value = 5}}, {stone = 8000, type = 'buff', prototype = {name = 'inventory_slot', value = 1}}, {stone = 10000, type = 'buff', prototype = {name = 'mining_speed', value = 5}}, {stone = 10000, type = 'buff', prototype = {name = 'inventory_slot', value = 1}}, {stone = 10000, type = 'market', prototype = {price = 750, name = 'heavy-armor'}}, {stone = 15000, type = 'buff', prototype = {name = 'mining_speed', value = 2}}, {stone = 15000, type = 'buff', prototype = {name = 'inventory_slot', value = 1}}, {stone = 25000, type = 'buff', prototype = {name = 'mining_speed', value = 2}}, {stone = 25000, type = 'buff', prototype = {name = 'inventory_slot', value = 1}}, {stone = 35000, type = 'buff', prototype = {name = 'mining_speed', value = 2}}, {stone = 35000, type = 'buff', prototype = {name = 'inventory_slot', value = 1}}, {stone = 35000, type = 'market', prototype = {price = 100, name = 'piercing-rounds-magazine'}}, {stone = 35000, type = 'market', prototype = {price = 1500, name = 'modular-armor'}}, {stone = 50000, type = 'buff', prototype = {name = 'mining_speed', value = 2}}, {stone = 50000, type = 'buff', prototype = {name = 'inventory_slot', value = 1}}, {stone = 75000, type = 'buff', prototype = {name = 'mining_speed', value = 2}}, {stone = 75000, type = 'buff', prototype = {name = 'inventory_slot', value = 1}}, {stone = 100000, type = 'buff', prototype = {name = 'mining_speed', value = 2}}, {stone = 100000, type = 'buff', prototype = {name = 'inventory_slot', value = 1}}, {stone = 125000, type = 'buff', prototype = {name = 'mining_speed', value = 2}}, {stone = 150000, type = 'buff', prototype = {name = 'mining_speed', value = 2}}, {stone = 175000, type = 'buff', prototype = {name = 'mining_speed', value = 2}}, {stone = 200000, type = 'buff', prototype = {name = 'mining_speed', value = 2}}, {stone = 225000, type = 'buff', prototype = {name = 'mining_speed', value = 2}}, {stone = 250000, type = 'buff', prototype = {name = 'mining_speed', value = 2}}, {stone = 275000, type = 'buff', prototype = {name = 'mining_speed', value = 2}}, {stone = 300000, type = 'buff', prototype = {name = 'mining_speed', value = 2}}, {stone = 350000, type = 'buff', prototype = {name = 'mining_speed', value = 2}}, {stone = 400000, type = 'buff', prototype = {name = 'mining_speed', value = 2}}, {stone = 500000, type = 'buff', prototype = {name = 'mining_speed', value = 2}}, } function print_r(arr, indentLevel) local str = "" local indentStr = "#" if(indentLevel == nil) then print(print_r(arr, 0)) return end for i = 0, indentLevel do indentStr = indentStr.."\t" end for index,value in pairs(arr) do if type(value) == "table" then str = str..indentStr..index..": \n"..print_r(value, (indentLevel + 1)) else str = str..indentStr..index..": "..value.."\n" end end return str end function test(unlocks, stone, type) local result = {} for _, data in pairs(unlocks) do if data.stone == stone and data.type == type then table.insert(result, data) end end return result end local function set_fields(tab, fields, val) -- fields is an array of field names -- (use empty string to skip value at corresponging position) --local values = {...} for k, field in ipairs(fields) do if field ~= "" then tab[field] = val[k] end end return tab end local function get_fields(tab, fields) local values = {} for k, field in ipairs(fields) do values[k] = tab[field] end return (table.unpack or unpack)(values, 1, #fields) end local sortedUnlockables = {} local lastStone = 0 -- define lastStone with first stone value to start on correct position local lastType = '' --unlockables[1].type local buffs = {} local items = {} local nbrRows = 0 local myUnlockables = {} local row = {} for _, data in pairs(unlockables) do table.insert(myUnlockables, data) end for i = 1, #myUnlockables do if myUnlockables[i].stone ~= lastStone then -- get items and buffs for each stone value buffs = test(myUnlockables, myUnlockables[i].stone, 'buff') items = test(myUnlockables, myUnlockables[i].stone, 'market') -- get number of rows if #buffs < #items then nbrRows = #items else nbrRows = #buffs end --[[ print('stone : ' .. myUnlockables[i].stone) print('nbrRows: ' .. nbrRows) print('----------------') ]] -- loop through buffs and items for number of rows for j = 1, nbrRows do --print('j : ' .. j) local result = {} if buffs[j] ~= nil then --print(buffs[j].stone) result[1] = buffs[j].stone else --print(items[j].stone) result[1] = items[j].stone end if buffs[j] ~= nil then result[2] = '+ '.. buffs[j].prototype.value .. '% ' .. buffs[j].prototype.name else result[2] = '' end if items[j] ~= nil then result[3] = '+ '.. items[j].prototype.name else result[3] = '' end table.insert(row, result) end end --print('i : ' .. i) -- save lastStone lastStone = myUnlockables[i].stone end for i = 1, #row do --print('stone: ' .. myUnlockables[i][1]) --print('type : ' .. myUnlockables[i][2]) --print('----------------') end print_r(row) --[[] local suppe = {'eins', 'zwei', 'vier', 'funf', 'sex'} table.insert(suppe, 3, 'drei') for i = 1, #suppe do print('i : ' ..i) print('suppe : ' .. suppe[i]) end ]] -- sort the unlocks table --[[ local sortedUnlockables = set_fields({}, { 1, 3, 2, 4, -- 50 stone 5, 7, 6, 8, 9, 10, -- 250 11, 13, 12, 14, 15, -- 450 16, 17, -- 750 18, 19, -- 1.250 20, 21, -- 1.750 22, 23, -- 2.500 24, 25, -- 4.000 26, 27, -- 6.500 28, 29, -- 8.000 30, 32, 31, -- 10.000 33, 34, -- 15.000 35, 36, -- 25.000 37, 39, 38, 40, -- 35.000 41, 42, -- 50.000 43, 44, -- 75.000 45, 46, -- 100.000 47, -- 125.000 48, -- 150.000 49, -- 175.000 50, -- 200.000 51, -- 225.000 52, -- 250.000 53, -- 275.000 54, -- 300.000 55, -- 350.000 56, -- 400.000 57 -- 500.000 }, unlockables)]] local sortedUnlockables = set_fields({}, { 2, 5, 3, 6, -- 50 stone 8, 11, 9, 12, 15, 18, -- 250 20, 23, 21, 24, 27, -- 450 29, 32, -- 750 35, 38, -- 1.250 41, 44, -- 1.750 47, 50, -- 2.500 53, 56, -- 4.000 59, 62, -- 6.500 65, 68, -- 8.000 71, 74, 72, -- 10.000 77, 80, -- 15.000 83, 86, -- 25.000 89, 92, 90, 93, -- 35.000 95, 98, -- 50.000 101, 104, -- 75.000 107, 110, -- 100.000 113, -- 125.000 116, -- 150.000 119, -- 175.000 122, -- 200.000 125, -- 225.000 128, -- 250.000 131, -- 275.000 134, -- 300.000 137, -- 350.000 140, -- 400.000 143 -- 500.000 }, unlockables) for i = 1, 48 do -- every row if sortedUnlockables[(i*3) - 2] == nil then if sortedUnlockables[(i*3) - 1] == nil then --print('stone : ' .. sortedUnlockables[(i*3)].stone) else --print('stone : ' .. sortedUnlockables[(i*3)-1].stone) end end if sortedUnlockables[(i*3) - 1] ~= nil then --print('buff : i = ' .. (i*3) - 1) else --print('empty buff! i = ' .. (i*3) - 1) end if sortedUnlockables[(i*3)] ~= nil then --print('item : i = ' .. (i*3)) else --print('empty item! i = ' .. (i*3)) end end for i = 1, #sortedUnlockables do if not sortedUnlockables[i] then --print(sortedUnlockables[i+1].stone) else --print(sortedUnlockables[i].stone) --print(sortedUnlockables[i].type) --print('---------') end end
local robot=require("robot") function act(action) local actions={ f=robot.forward, b=robot.back, u=robot.up, d=robot.down, l=robot.turnLeft, r=robot.turnRight, ta=robot.turnAround, sw=robot.swing, su=robot.swingUp, sd=robot.swingDown, ul=robot.use, uu=robot.useUp, ud=robot.useDown, dt=robot.detect, du=robot.detectUp, dd=robot.detectDown } for doaction in string.gmatch(action,"%.%d*%a+") do local quantity=string.match(doaction,"%d+") if quantity==nil then quantity="1" end local direction=string.match(doaction,"%a+") print (doaction," ",quantity," ",direction) for i=1,quantity do actions[direction]() end end end return act
gg.alert('⏩Script by SHARK Cheats') gg.alert('⏩SHARK`s 2.8(VIP)','⏩OK','⏩KK') if gg.isVisible(true) then menuk = 1 gg.setVisible(false) end gg.clearResults() print('🦈 🦈 🦈 🦈🦈🦈🦈🦈') print('🦈 🦈 🦈 🦈 🦈') print('🦈 🦈 🦈 🦈🦈🦈🦈🦈') print(' 🦈🦈 🦈 🦈') print(' 🦈 🦈 🦈') START = 1 function START() menu = gg.choice({'⏩AntiBan','⏩AimLock','⏩New Magic Bullets','⏩Rain','⏩Fov','⏩Super NoCameraShake','⏩See Through Walls','⏩AimBot','⏩New Fly','⏩NoReload (banable)','⏩NoFlash & NoSmoke','⏩No Reports','⏩Invisible On Radar','⏩AK47 FastEqup','⏩Gun Esp','⏩Camera Height','⏩(NEW)Spawn Kill','⏩Fire Rate','⏩Speed Hack','⏩BigCrosshair','⏩Knife Kill','⏩Chams','⏩Funny Map','⏩AimAssist (10%-100%)','⏩Assist(V2)','⏩Silent Arms','❌Leave❌'},nil,'Made By SHARK Cheats') if menu == 1 then AntiBan() end if menu == 2 then AimLock() end if menu == 3 then Magic() end if menu == 4 then Rain() end if menu== 5 then Fov() end if menu== 6 then NoCameraShake() end if menu == 7 then SeeThroughWalls() end if menu == 8 then Bot() end if menu == 9 then Fly() end if menu == 10 then NoRe() end if menu == 11 then NoFlNoSm() end if menu == 12 then NoReports() end if menu == 13 then InvOnRadar() end if menu== 14 then AK47() end if menu == 15 then GunEsp() end if menu== 16 then CameraHeight() end if menu == 17 then SpawnKill() end if menu == 18 then FireRate() end if menu == 19 then SpeedHack() end if menu == 20 then BigCross() end if menu == 21 then KnifeKill() end if menu == 22 then Chams() end if menu == 23 then FunnyMap() end if menu == 24 then Aim() end if menu == 25 then Asi() end if menu == 26 then Arms() end if menu == 27 then os.exit() end if menu == nil then NoSelect() end menuk =-1 end function AntiBan() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('0', gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1) gg.getResults(500) gg.editAll('0', gg.TYPE_DOUBLE) gg.clearResults() gg.searchNumber('1', gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1) gg.getResults(500) gg.editAll('1', gg.TYPE_DOUBLE) gg.clearResults() gg.searchNumber('937', gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1) gg.getResults(500) gg.editAll('937', gg.TYPE_DOUBLE) gg.clearResults() gg.toast('🔹AntiBan Activated🔹') START() end function AimLock() gg.clearResults() gg.setRanges(gg.REGION_C_BSS) gg.searchNumber('10', gg.TYPE_AUTO ) gg.getResults(100) gg.editAll(10, gg.TYPE_AUTO ) gg.clearResults() gg.setRanges(gg.REGION_C_BSS) gg.searchNumber('10', gg.TYPE_AUTO ) gg.getResults(100) gg.editAll(10, gg.TYPE_AUTO ) gg.clearResults() gg.setRanges(gg.REGION_C_BSS) gg.searchNumber('10', gg.TYPE_AUTO ) gg.getResults(100) gg.editAll(10, gg.TYPE_AUTO ) gg.clearResults() gg.clearResults() gg.setRanges(gg.REGION_C_BSS) gg.searchNumber('10', gg.TYPE_AUTO ) gg.getResults(100) gg.editAll(10, gg.TYPE_AUTO ) gg.clearResults() gg.setRanges(gg.REGION_C_BSS) gg.searchNumber('10', gg.TYPE_AUTO ) gg.getResults(100) gg.editAll(10, gg.TYPE_AUTO ) gg.clearResults() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('1.0e-7', gg.TYPE_FLOAT) gg.getResults(2) gg.editAll(0, gg.TYPE_FLOAT) gg.clearResults() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('1.0e-7', gg.TYPE_FLOAT) gg.getResults(15) gg.editAll(0, gg.TYPE_FLOAT) gg.clearResults() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('1.0e-7', gg.TYPE_FLOAT) gg.getResults(1) gg.editAll(-1, gg.TYPE_FLOAT) gg.clearResults() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('1.0e-7', gg.TYPE_FLOAT) gg.getResults(100) gg.editAll(0, gg.TYPE_FLOAT) gg.clearResults() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('1', gg.TYPE_FLOAT) gg.searchAddress('DC',FF) gg.getResults(7) gg.editAll(9.9999995e37, gg.TYPE_FLOAT) gg.clearResults() gg.toast('⭕AimLock ON⭕') gg.clearResults() START() end function Magic() gg.clearResults() var = gg.getRanges() -- normal range gg.setRanges(gg.REGION_C_BSS) gg.searchNumber("1.0e-7;2:20",gg.TYPE_FLOAT) gg.searchNumber("2",gg.TYPE_FLOAT) var = gg.getResults(1) gg.editAll("-873888",gg.TYPE_FLOAT) gg.toast("Magic Bullets 30%") -- normal range gg.clearResults() gg.setRanges(gg.REGION_C_BSS) gg.clearResults() gg.searchNumber('1.0e-7;2:20',gg.TYPE_FLOAT) gg.searchNumber(2,gg.TYPE_FLOAT) gg.getResults(1) gg.editAll(-1.82698, gg.TYPE_FLOAT) gg.toast("Magic Bullets 60%") gg.clearResults() gg.setRanges(gg.REGION_C_BSS) gg.clearResults() gg.searchNumber('9.9999997e-10;2::5',gg.TYPE_FLOAT) gg.searchNumber(2,gg.TYPE_FLOAT) gg.getResults(1) gg.editAll(-1.8218, gg.TYPE_FLOAT) gg.toast("Magic Bullets 80%") gg.clearResults() gg.setRanges(gg.REGION_C_BSS) gg.clearResults() gg.searchNumber('1.0e-7;2:10',gg.TYPE_FLOAT) gg.searchNumber(2,gg.TYPE_FLOAT) gg.getResults(1) gg.editAll(-1.8261, gg.TYPE_FLOAT) gg.clearResults() gg.toast('Magic Bullets 95%') local old = gg.getRanges(); gg.setRanges(gg.REGION_C_BSS) gg.searchNumber('2', gg.TYPE_FLOAT) gg.getResults(18) gg.editAll(999999999, gg.TYPE_FLOAT) gg.clearResults() gg.setRanges(gg.REGION_C_BSS) gg.searchNumber('2', gg.TYPE_FLOAT) gg.getResults(1) gg.editAll(999999999, gg.TYPE_FLOAT) gg.clearResults() gg.setRanges(gg.REGION_C_BSS) gg.searchNumber('2', gg.TYPE_FLOAT) gg.getResults(1) gg.editAll(0.8, gg.TYPE_FLOAT) gg.clearResults() gg.setRanges(gg.REGION_C_BSS) gg.searchNumber('2', gg.TYPE_FLOAT) gg.getResults(2) gg.editAll(999999999, gg.TYPE_FLOAT) gg.clearResults() gg.setRanges(gg.REGION_C_BSS) gg.searchNumber('2', gg.TYPE_FLOAT) gg.getResults(1) gg.editAll(999999999, gg.TYPE_FLOAT) gg.clearResults() gg.setRanges(gg.REGION_C_BSS) gg.searchNumber('1.0e-7', gg.TYPE_FLOAT) gg.getResults(4) gg.editAll(999999999, gg.TYPE_FLOAT) gg.clearResults() gg.setRanges(gg.REGION_C_BSS) gg.searchNumber('9.9999997e-10', gg.TYPE_FLOAT) gg.getResults(4) gg.editAll(-0.009, gg.TYPE_FLOAT) gg.clearResults() gg.toast('😱ShootAnyWalls ON😱') gg.clearResults() START() end function Rain() RainBullets = gg.choice({'❤Long Rain ON❤','💛Long Rain OFF💛','❤Short Rain ON❤','💛Short Rain OFT💛'},nil,'Made By SHARK Cheats') if RainBullets == 1 then RainBulletsOn() end if RainBullets == 2 then RainBulletsOff() end if RainBullets == 3 then RainBullets2On() end if RainBullets == 4 then RainBullets2Off() end if RainBullets == nil then START() end menuk =-1 end function RainBulletsOn() local old = gg.getRanges(); gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('3', gg.TYPE_FLOAT) t = gg.getResults(39) gg.editAll(200, gg.TYPE_FLOAT) gg.toast('🌧Long Range Rain ON🌧') gg.setRanges(old) START() end function RainBulletsOff() local old = gg.getRanges(); gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('200', gg.TYPE_FLOAT) t = gg.getResults(39) gg.editAll(3, gg.TYPE_FLOAT) gg.toast('🌧Long Range Rain OFF🌧') gg.setRanges(old) START() end function RainBullets2On() local old = gg.getRanges(); gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('3', gg.TYPE_FLOAT) t = gg.getResults(39) gg.editAll(1000, gg.TYPE_FLOAT) gg.toast('🌧Short Range Rain ON🌧') gg.setRanges(old) START() end function RainBullets2Off() local old = gg.getRanges(); gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('1000', gg.TYPE_FLOAT) t = gg.getResults(39) gg.editAll(3, gg.TYPE_FLOAT) gg.toast('🌧Short Range Rain OFF🌧') gg.setRanges(old) START() end function Fov() Fo = gg.choice({'❤x2 Fov ON❤','💛x2 Fov OFF💛','❤x4 Fov ON❤','💛x4 Fov OFF💛','❤x6 Fov ON❤','💛x6 Fov OFF💛'},nil,'Made By SHARK Cheats') if Fo == 1 then FovOn() end if Fo == 2 then FovOff() end if Fo == 3 then Fov2On() end if Fo == 4 then Fov2Off() end if Fo == 5 then Fov3On() end if Fo == 6 then Fov3Off() end if Fo == nil then START() end menuk =-1 end function FovOn() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber("360", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) gg.searchAddress("C4", nil) gg.getResults(5) gg.editAll("300", gg.TYPE_FLOAT) gg.clearResults() gg.toast('❤x2 FOV ON❤') START() end function FovOff() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber("300", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) gg.searchAddress("C4", nil) gg.getResults(5) gg.editAll("360", gg.TYPE_FLOAT) gg.clearResults() gg.toast('💛x2 FOV OFF💛') START() end function Fov2On() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber("360", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) gg.searchAddress("C4", nil) gg.getResults(5) gg.editAll("220", gg.TYPE_FLOAT) gg.clearResults() gg.toast('❤x4 FOV ON❤') START() end function Fov2Off() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber("220", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) gg.searchAddress("C4", nil) gg.getResults(5) gg.editAll("360", gg.TYPE_FLOAT) gg.clearResults() gg.toast('💛x4 FOV OFF💛') START() end function Fov3On() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber("360", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) gg.searchAddress("C4", nil) gg.getResults(5) gg.editAll("200", gg.TYPE_FLOAT) gg.clearResults() gg.toast('❤x6 FOV ON❤') START() end function Fov3Off() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber("200", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) gg.searchAddress("C4", nil) gg.getResults(5) gg.editAll("360", gg.TYPE_FLOAT) gg.clearResults() gg.toast('💛x6 FOV OFF💛') START() end function NoCameraShake() NoCamera = gg.choice({'❤ON❤','💛OFF💛'},nil,'Made By SHARK Cheats') if NoCamera == 1 then NoCameraShakeOn() end if NoCamera == 2 then NoCameraShakeOff()end if NoCamera == nil then START() end menuk =-1 end function NoCameraShakeOn() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('60', gg.TYPE_FLOAT) gg.searchAddress('A4',FF) gg.getResults(2) gg.editAll('-99999999', gg.TYPE_FLOAT) gg.clearResults() gg.toast('❤SuperNoCameraShake ON❤') START() end function NoCameraShakeOff() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('-99999999', gg.TYPE_FLOAT) gg.searchAddress('A4',FF) gg.getResults(2) gg.editAll('60', gg.TYPE_FLOAT) gg.clearResults() gg.toast('💛SuperNoCameraShake OFF💛') START() end function SeeThroughWalls() SeeThrough = gg.choice({'❤ON❤','💛OFF💛'},nil,'Made by SHARK Cheats') if SeeThrough== 1 then SeeThroughWallsOn() end if SeeThrough== 2 then SeeThroughWallsOff() end if SeeThrough == nil then START() end menuk =-1 end function SeeThroughWallsOn() local old = gg.getRanges(); gg.setRanges(gg.REGION_C_ALLOC) gg.searchNumber("0.10000000149",gg.TYPE_FLOAT) gg.getResults(1000) gg.editAll("0.999",gg.TYPE_FLOAT) gg.toast('❤See Through Walls ON❤') gg.setRanges(old) end function SeeThroughWallsOff() local old = gg.getRanges(); gg.setRanges(gg.REGION_C_ALLOC) gg.searchNumber("0.999",gg.TYPE_FLOAT) gg.getResults(1000) gg.editAll("0.10000000149",gg.TYPE_FLOAT) gg.toast('💛See Through Walls OFF💛') gg.setRanges(old) end function Bot() AimBo = gg.choice({'❤AimBot❤','💛Super AimBot💛'},nil,'Made By SHARK Cheats') if AimBo == 1 then Ss() end if AimBo == 2 then SuAimBot() end if AimBo == nil then START() end menuk =-1 end function Ss() gg.clearResults() gg.searchNumber('782', gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1) gg.getResults(500) gg.editAll('9999', gg.TYPE_DOUBLE) gg.clearResults() gg.toast('❤AimBot ON❤') START() end function SuAimBot() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('1', gg.TYPE_FLOAT) t = gg.getResults(100) t[83].value = '99999999999' t[83].freeze = true t[83].freezType = gg.FREEZE_NORMAL print('Replaced: ', gg.addListItems(t)) gg.clearResults() gg.toast('❤Super AimBot ON❤') START() end function Fly() Woa = gg.choice({'❤Low Fly ON❤',' 💛Low Fly OFF💛','❤Medium Fly ON❤','💛Medium Fly OFF💛','❤High Fly ON❤','💛High Fly OFF💛'},nil,'Made by SHARK Cheats') if Woa == 1 then WoaLowOn() end if Woa == 2 then WoaLowOff() end if Woa == 3 then WoaNormalOn() end if Woa == 4 then WoaNormalOff() end if Woa == 5 then WoaHighOn() end if Woa == 6 then WoaHighOff() end if Woa == nil then START() end menuk =-1 end function WoaLowOn() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('1',gg.TYPE_FLOAT) gg.getResults(61,622) gg.searchAddress('E0',0XFF) gg.getResults(3) gg.editAll(3, gg.TYPE_FLOAT) gg.clearResults() gg.toast('❤Low Fly ON❤') START() end function WoaLowOff() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('3',gg.TYPE_FLOAT) gg.getResults(61,622) gg.searchAddress('E0',0XFF) gg.getResults(3) gg.editAll(1, gg.TYPE_FLOAT) gg.clearResults() gg.toast('💛Low Fly OFF💛') START() end function WoaNormalOn() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('1',gg.TYPE_FLOAT) gg.getResults(61,622) gg.searchAddress('E0',0XFF) gg.getResults(3) gg.editAll(5, gg.TYPE_FLOAT) gg.clearResults() gg.toast('❤Medium Fly ON❤') START() end function WoaNormalOff() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('5',gg.TYPE_FLOAT) gg.getResults(61,622) gg.searchAddress('E0',0XFF) gg.getResults(3) gg.editAll(1, gg.TYPE_FLOAT) gg.clearResults() gg.toast('💛Medium Fly OFF💛') START() end function WoaHighOn() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('1',gg.TYPE_FLOAT) gg.getResults(61,622) gg.searchAddress('E0',0XFF) gg.getResults(3) gg.editAll(6.8, gg.TYPE_FLOAT) gg.clearResults() gg.toast('❤High Fly ON❤') START() end function WoaHighOff() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('6.8',gg.TYPE_FLOAT) gg.getResults(61,622) gg.searchAddress('E0',0XFF) gg.getResults(3) gg.editAll(1, gg.TYPE_FLOAT) gg.clearResults() gg.toast('💛High Fly OFF💛') START() end function NoRe() gg.alert('⏩Maybe u will be banned in game (1day-forever) do it with ur risk') NoReloa = gg.choice({'❤ON❤','💛OFF💛'},nil,'Made By SHARK Cheats') if NoReloa == 1 then NoReload() end if NoReloa== 2 then NoReloadOff() end if NoReloa == nil then START() end menuk =-1 end function NoReload() local old = gg.getRanges(); gg.setRanges(gg.REGION_ANONYMOUS) gg.searchNumber(2.84999990463, gg.TYPE_FLOAT) gg.getResults(100) gg.editAll(0, gg.TYPE_FLOAT) gg.clearResults() gg.toast('❤NoReload ON❤') START() end function NoReloadOff() local old = gg.getRanges(); gg.setRanges(gg.REGION_ANONYMOUS) gg.searchNumber(0, gg.TYPE_FLOAT) gg.getResults(100) gg.editAll(2.84999990463, gg.TYPE_FLOAT) gg.clearResults() gg.toast('💛NoReload OFF💛') START() end function NoFlNoSm() NoFlNoS = gg.choice ({'❤ON❤','💛OFF💛'},nil,'Made By SHARK Cheats') if NoFlNoS== 1 then NoFlNo() end if NoFINoS == nil then START() end menuk =-1 end function NoFlNo() local old = gg.getRanges(); gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('1.0e-2', gg.TYPE_FLOAT) gg.getResults(1) gg.editAll(0.00999999911, gg.TYPE_FLOAT) gg.clearResults() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('1.0e-2', gg.TYPE_FLOAT) gg.getResults(6) gg.editAll(0.00999999911, gg.TYPE_FLOAT) gg.clearResults() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('1.0e-2', gg.TYPE_FLOAT) gg.getResults(1) gg.editAll(999999999, gg.TYPE_FLOAT) gg.clearResults() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('1.0e-2', gg.TYPE_FLOAT) gg.getResults(1) gg.editAll(0.009999999, gg.TYPE_FLOAT) gg.clearResults() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('1.0e-2', gg.TYPE_FLOAT) gg.getResults(2) gg.editAll(0.00999999911, gg.TYPE_FLOAT) gg.clearResults() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('1.0e-2', gg.TYPE_FLOAT) gg.getResults(1) gg.editAll(-999999, gg.TYPE_FLOAT) gg.clearResults() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('1.0e-2', gg.TYPE_FLOAT) gg.getResults(4) gg.editAll(0.00999999911, gg.TYPE_FLOAT) gg.clearResults() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('1.0e-2', gg.TYPE_FLOAT) gg.getResults(1) gg.editAll(0.00999999911, gg.TYPE_FLOAT) gg.clearResults() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('1.0e-2', gg.TYPE_FLOAT) gg.getResults(3) gg.editAll(0.00999999911, gg.TYPE_FLOAT) gg.clearResults() local old = gg.getRanges(); gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('1.0e-2', gg.TYPE_FLOAT) gg.getResults(214) gg.editAll(0.00999999911, gg.TYPE_FLOAT) gg.clearResults() local old = gg.getRanges(); gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('1.0e-2', gg.TYPE_FLOAT) gg.getResults(1) gg.editAll(9999999, gg.TYPE_FLOAT) gg.clearResults() gg.toast('❤NoFlash and NoSmoke ON❤') gg.setRanges(old) START() end function NoReports() gg.searchNumber('0', gg.TYPE_FLOAT) gg.getResults(0) gg.editAll('0', gg.TYPE_FLOAT) gg.clearResults() gg.toast('❤NoReports ON❤') START() end function InvOnRadar() gg.searchNumber('20', gg.TYPE_FLOAT) gg.getResults(32) gg.editAll('5', gg.TYPE_FLOAT) gg.clearResults() gg.toast('❤InvisibleOnEnemyRadar ON❤') START() end function AK47() local old = gg.getRanges(); gg.setRanges(gg.REGION_C_ALLOC) gg.searchNumber("1.1",gg.TYPE_FLOAT) gg.getResults(1000) gg.editAll("5",gg.TYPE_FLOAT) gg.toast('❤AK47 FastEqup ON❤') gg.setRanges(old) START() end function GunEsp() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber("1",gg.TYPE_FLOAT) gg.searchAddress('B4C','FFF') gg.getResults(5) gg.editAll('1.1', gg.TYPE_FLOAT) gg.clearResults() gg.toast('❤GunEsp ON❤') START() end function CameraHeight() Cha = gg.choice({'📉Low Camera Height📉','📈High Camera Height📈'},nil,'Made by SHARK Cheats') if Cha == 1 then ChaOn() end if Cha == 2 then ChaOff() end if Cha == nil then START() end menuk =-1 end function ChaOn() gg.setRanges(gg.REGION_C_ALLOC) gg.searchNumber("1.49999988079", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) gg.getResults(250) gg.editAll('-1', gg.TYPE_FLOAT) gg.clearResults() gg.toast('📉Low ON📉') START() end function ChhOn() gg.setRanges(gg.REGION_C_ALLOC) gg.searchNumber("1.49999988079", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) gg.getResults(250) gg.editAll('10', gg.TYPE_FLOAT) gg.clearResults() gg.toast('📈High ON📈') START() end function SpawnKill() Sk= gg.choice({'❤SpawnKill ON❤','💛SpawnKill OFF💛'},nil,'Made by SHARK Cheats') if Sk == 1 then SkOn() end if Sk == 2 then SkOff() end if Sk == nil then START() end menuk =-1 end function SkOn() gg.clearResults() gg.setRanges(gg.REGION_C_BSS) gg.searchNumber("9.9999997e-10", gg.TYPE_FLOAT) gg.getResults(4) gg.editAll("-4", gg.TYPE_FLOAT) gg.addListItems() gg.toast("20%") gg.clearResults() gg.setRanges(gg.REGION_C_BSS) gg.searchNumber("2", gg.TYPE_FLOAT) gg.getResults(22) gg.editAll("-2000", gg.TYPE_FLOAT) gg.addListItems() gg.toast("40%") gg.clearResults() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('600', gg.TYPE_FLOAT) gg.searchAddress('FC',FF) gg.getResults(1) gg.editAll(22, gg.TYPE_FLOAT) gg.clearResults() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('170', gg.TYPE_FLOAT) gg.getResults(1) gg.editAll(22, gg.TYPE_FLOAT) gg.clearResults() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber("160", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) gg.getResults(50) gg.editAll("21.5", gg.TYPE_FLOAT) gg.clearResults() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber("3", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) gg.getResults(50) gg.editAll("21.5", gg.TYPE_FLOAT) gg.addListItems() gg.toast("60%") gg.clearResults() gg.setRanges(gg.REGION_C_ALLOC) gg.searchNumber("0.1", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) gg.searchAddress("BC", -1, gg.TYPE_FLOAT, gg.SIGN_EQUAL, 0, -1) gg.getResults(250) gg.editAll("75", gg.TYPE_FLOAT) gg.addListItems() gg.toast("80%") gg.clearResults() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber ("240", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) gg.searchAddress('84',FF) gg.getResults(5) gg.editAll('360', gg.TYPE_FLOAT) gg.clearResults() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber ("360", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) gg.searchAddress('84',FF) gg.getResults(5) gg.editAll('1291', gg.TYPE_FLOAT) gg.toast('❤SpawnKill ON❤') gg.clearResults() START() end function SkOff() gg.clearResults() gg.setRanges(gg.REGION_C_ALLOC) gg.searchNumber("75", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) gg.searchAddress("BC", -1, gg.TYPE_FLOAT, gg.SIGN_EQUAL, 0, -1) gg.getResults(250) gg.editAll("0.1", gg.TYPE_FLOAT) gg.addListItems() gg.toast("20%") gg.clearResults() gg.setRanges(gg.REGION_C_BSS) gg.searchNumber("-2000", gg.TYPE_FLOAT) gg.getResults(22) gg.editAll("2", gg.TYPE_FLOAT) gg.addListItems() gg.toast("40%") gg.clearResults() gg.setRanges(gg.REGION_C_BSS) gg.searchNumber("-4", gg.TYPE_FLOAT) gg.getResults(4) gg.editAll("9.9999997e-10", gg.TYPE_FLOAT) gg.addListItems() gg.toast("60%") gg.clearResults() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber("21.50", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) gg.getResults(100) gg.editAll("3", gg.TYPE_FLOAT) gg.addListItems() gg.toast("80%") gg.clearResults() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber ("1291", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) gg.searchAddress('84',FF) gg.getResults(5) gg.editAll('360', gg.TYPE_FLOAT) gg.toast('💛SpawnKill OFF💛') gg.clearResults() START() end function FireRate() rate = gg.choice({'🔥FireRate ON🔥','🔥FireRate OFF🔥'},Nil,' Made By SHARK Cheats ') if rate == 1 then FireOn() end if rate == 2 then FireOff() end if rate == nil then START() end menuk =-1 end function FireOn() local old = gg.getRanges(); gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber(60, gg.TYPE_FLOAT) gg.getResults(100) gg.editAll(47, gg.TYPE_FLOAT) gg.clearResults() gg.toast('🔥FireRate ON🔥') gg.setRanges(old) START() end function FireOff() local old = gg.getRanges(); gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber(47, gg.TYPE_FLOAT) gg.getResults(100) gg.editAll(60, gg.TYPE_FLOAT) gg.clearResults() gg.toast('🔥FireRate OFF🔥') gg.setRanges(old) START() end function SpeedHack() gg.alert('⏩Do not use any hacks before using SpeedHack') SP= gg.choice({'❤SpeedHack ON❤','💛SpeedHack OFF💛'},nil,'Made by SHARK Cheats') if SP == 1 then SPHOn() end if SP == 2 then SPHOff() end if SP == nil then START() end menuk =-1 end function SPHOn() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('-1;0', gg.TYPE_FLOAT) gg.getResults(100) gg.editAll('500', gg.TYPE_FLOAT) gg.toast('❤SpeedHack ON❤') end function SPHOff() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('500', gg.TYPE_FLOAT) gg.getResults(100) gg.editAll('-1;0', gg.TYPE_FLOAT) gg.toast('💛SpeedHack OFF💛') end function BigCross() gg.alert('⏩BigCrosshair is buggy') bn= gg.choice({'❤BigCrosshair ON❤','💛BigCrosshair OFF💛'},nil,'Made by SHARK Cheats') if bn == 1 then BGOn() end if bn == 2 then BGOff() end if bn == nil then START() end menuk =-1 end function BGOn() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('-1;0', gg.TYPE_FLOAT) gg.getResults (100) gg.editAll('9,999,999.0', gg.TYPE_FLOAT) gg.clearResults() gg.toast('❤BigCrosshair ON❤') end function BGOff() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('9,999,999.0', gg.TYPE_FLOAT) gg.getResults(100) gg.editAll('-1;0', gg.TYPE_FLOAT) gg.clearResults() gg.toast('💛BigCrosshair OFF💛') end function KnifeKill() kn= gg.choice({'❤KnifeKill ON❤','💛KnifeKill OFF💛'},nil,'Made by SHARK Cheats') if kn == 1 then KNOn() end if kn == 2 then KNOff() end if kn == nil then START() end menuk =-1 end function KNOn() gg.clearResults() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('60', gg.TYPE_FLOAT) gg.getResults(23) gg.editAll('1', gg.TYPE_FLOAT) gg.clearResults() gg.toast('❤KnifeKill ON❤') end function KNOff() gg.clearResults() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('1', gg.TYPE_FLOAT) gg.getResults(23) gg.editAll('60', gg.TYPE_FLOAT) gg.clearResults() gg.toast('💛KnifeKill OFF💛') end function Chams() Aim = gg.choice({'🏳Chams🏳','🏴Chams ON🏴','🏁New🏁'},nil,'Made By SHARK Cheats') if Aim == 1 then One() end if Aim == 2 then Two() end if Aim == 3 then Three() end if Aim == nil then START() end menuk =-1 end function One() gg.setRanges(gg.REGION_BAD) gg.searchNumber("8,192D;256D;8200D", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1) gg.searchNumber("8200", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1) gg.getResults(20) gg.editAll("7", gg.TYPE_DWORD) gg.clearResults() gg.toast("🏳White🏳") START() end function Two() gg.clearResults() gg.setRanges(gg.REGION_BAD) gg.searchNumber("8,196D; 256D; 8,204D; 256D; 8,200D", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1) gg.searchNumber("8,200", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1) gg.getResults(12) gg.editAll("16", gg.TYPE_DWORD) gg.toast("🏴Black🏴") gg.clearResults() START() end function Three() gg.setRanges(gg.REGION_BAD) gg.searchNumber("32,769;-2,134,900,722", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1) gg.searchNumber("32769", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1) gg.getResults(10) gg.editAll("32777", gg.TYPE_DWORD) gg.toast("🏁New🏁") gg.clearResults() START() end function FunnyMap() kn= gg.choice({'😂FunnyMap ON😂','🤣FunnyMap OFF🤣'},nil,'Made by SHARK Cheats') if kn == 1 then FMOn() end if kn == 2 then FMOff() end if kn == nil then START() end menuk =-1 end function FMOn() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('1', gg.TYPE_FLOAT) gg.searchAddress('9D4',FF) gg.getResults(100) gg.editAll(15, gg.TYPE_FLOAT) gg.clearResults() gg.toast('😂Funny Map ON😂') START() end function FMOff() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('15', gg.TYPE_FLOAT) gg.searchAddress('9D4',FF) gg.getResults(100) gg.editAll(1, gg.TYPE_FLOAT) gg.clearResults() gg.toast('🤣Funny Map OFF🤣') START() end function Aim() gg.alert('⏩First ever working 100% AimAssist') Aim = gg.choice({'↗️%10','↗️%25','↗️%50','↗️%75','↗️%100'},nil,'Made by SHARK Cheats') if Aim == 1 then One() end if Aim == 2 then Two() end if Aim == 3 then Three() end if Aim == 4 then Four() end if Aim == 5 then Five() end if Aim == nil then START() end menuk =-1 end function One() gg.clearResults() gg.searchNumber('454', gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1) gg.getResults(500) gg.editAll('454', gg.TYPE_DOUBLE) gg.clearResults() gg.toast('⏩%10 Aim Assist ON') START() end function Two() gg.clearResults() gg.searchNumber('454', gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1) gg.getResults(500) gg.editAll('454', gg.TYPE_DOUBLE) gg.clearResults() gg.toast('⏩%25 Aim Assist ON') START() end function Three() gg.clearResults() gg.searchNumber('839', gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1) gg.getResults(500) gg.editAll('839', gg.TYPE_DOUBLE) gg.clearResults() gg.toast('⏩%50 Aim Assist ON') START() end function Four() gg.clearResults() gg.searchNumber('529', gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1) gg.getResults(500) gg.editAll('529', gg.TYPE_DOUBLE) gg.clearResults() gg.toast('⏩%75 Aim Assist ON') START() end function Five() gg.clearResults() gg.searchNumber('782', gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1) gg.getResults(500) gg.editAll('782', gg.TYPE_DOUBLE) gg.clearResults() gg.toast('⏩%100 Aim Assist ON') START() end function Asi() Asi = gg.choice({'🌀AssistV1🌀','🌀AssistV2🌀','🌀AssistV3🌀'},nil,'Made By SHARK Cheats') if Asi == 1 then One() end if Asi == 2 then Two() end if Asi == 3 then Three() end if Asi == nil then START() end menuk =-1 end function One() gg.clearResults() gg.searchNumber('839', gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1) gg.getResults(500) gg.editAll('839', gg.TYPE_DOUBLE) gg.clearResults() gg.toast('🌀V1🌀') gg.setRanges(old) Asi() end function Two() local old = gg.getRanges(); gg.setRanges(gg.REGION_ANONYMOUS) gg.searchNumber('1;5;1.94', gg.TYPE_FLOAT) gg.getResults(100) gg.editAll(1.5, gg.TYPE_FLOAT) gg.clearResults() gg.toast('🌀V2🌀') gg.setRanges(old) START() end function Three() local old = gg.getRanges(); gg.setRanges(gg.REGION_ANONYMOUS) gg.searchNumber('1;5;1.94', gg.TYPE_FLOAT) gg.getResults(100) gg.editAll(1.5, gg.TYPE_FLOAT) gg.clearResults() gg.toast('🌀V3🌀') gg.setRanges(old) START() end function Amrs() Asi = gg.choice({'▶SilentArms ON◀','▶SilentArms OFF◀'},nil,'Made By SHARK Cheats') if Asi == 1 then One() end if Asi == 2 then Two() end if Asi == nil then START() end menuk =-1 end function One() gg.clearResults() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('1', gg.TYPE_FLOAT) gg.searchAddress('1F8',FF) gg.getResults(1) gg.editAll(2, gg.TYPE_FLOAT) gg.clearResults() gg.toast('▶SilentArms ON◀') START() end function Two() gg.clearResults() gg.setRanges(gg.REGION_CODE_APP) gg.searchNumber('2', gg.TYPE_FLOAT) gg.searchAddress('1F8',FF) gg.getResults(1) gg.editAll(1, gg.TYPE_FLOAT) gg.clearResults() gg.toast('▶SilentArms OFF◀') START() end function NoSelect() gg.toast('🦈SHARK Cheats🦈') sleep(100) end function sleep(x) gg.setVisible(false) ::sleepphase2:: gg.sleep(x) if gg.isVisible(true) then START() else goto sleepphase2 end end if menuk == 1 then START() end
local robot=require("robot") local component=require("component") local sides=require("sides") local inv=component.inventory_controller local g=component.generator function main(depth,width,height) for i=1,width do for i=1,depth do for i=1,height do robot.swing() robot.swingUp() robot.up() end for i=1,height do robot.down() end robot.forward() end robot.turnAround() for i=1,depth do robot.forward() end robot.turnRight() robot.swing() robot.forward() end
local lib = {}; -- formula for Mexico uses Wingspan (flight_context) to find the unitRate, unitRate * distance -- for an aircraft with Wingspan = 33m, the unitrate shall be 5.53 lib.distance_method = Distance_method.great_circle; local unitRateFromWingspan = {[16.7] = 0.25, [25] = 1.91 , [38]= 5.53 , [9999] = 8.26 } for k,v in pairs(unitRateFromWingspan) do if(k>flight_context.wingspan() and v<value) then value = v end function lib:calculate(flight_context, route_context, distance) return estimate; end function lib:estimate(flight_context, route_context, distance) return self:unitRateFromWingspan() * distance; end return lib;
function estimate (flight_context) local wingspan = {[15] = 5, [20] = 6, [30] = 7, [9999] = 8} print(flight_context.wingspan()) local value = 999 for k,v in pairs(wingspan) do if(k>flight_context.wingspan() and v<value) then value = v end end return value end local fc = {} function fc.wingspan() return 40 end print(estimate(fc))
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more