Sign up
Login
New paste
Home
English
English
Sign up
Login
New Paste
Browse
_G.ReserveFlow = 1 _G.SellResource = [==[Electronics]==] _G.ESPToggle = false _G.AlertToggle = false _G.SelectedCountry = "" _G.SelectedCities = {} _G.MaxBuildings = 1 _G.SelectedBuilding = "" local IgnoredAlerts = { ["Trade accepted"] = true, ["Trade offer declined"] = true, ["Trade Cancelled"] = true, ["Alliance declined"] = true, ["Modifier Lost!"] = true, ["New Modifier!"] = true, ["Trade Declined"] = true, ["Trade declined"] = true, ["Faction Disbanded"] = true, ["Independence!"] = true, } local IgnoredResources = { ["Electronics"] = true, ["Consumer Goods"] = true, ["Fertilizer]"] = true, ["Motor Parts"] = true, ["Aircraft Parts"] = true, ["Oil"] = true, } local Gui = loadstring(game:HttpGet([==[https://raw.githubusercontent.com/bloodball/-back-ups-for-libs/main/wall%20v3]==]))() _G.MainColor = Color3.fromRGB(48,48,48) _G.SecondaryColor = Color3.fromRGB(48,48,48) _G.TertiaryColor = Color3.fromRGB(32,32,32) _G.ArrowColor = Color3.fromRGB(255,255,255) _G.MainTextColor = Color3.fromRGB(255,255,255) _G.PointerColor = Color3.fromRGB(255,255,255) _G.ButtonTextColor = Color3.fromRGB(255,255,255) _G.SliderColor = Color3.fromRGB(128,0,0) _G.ButtonColor = Color3.fromRGB(48,48,48) _G.ToggleColor = Color3.fromRGB(48,48,48) _G.DraggerCircleColor = Color3.fromRGB(255,255,255) _G.BindColor3 = Color3.fromRGB(48,48,48) local Window = Gui:CreateWindow([==[Rise of Nations]==]) local Folder = Window:CreateFolder([==[Sell Bot]==]) local FolderBuild = Window:CreateFolder([==[Build Bot]==]) local FolderMisc = Window:CreateFolder([==[Misc]==]) local GetChildren = game.GetChildren local FirstChild = game.FindFirstChild local RunService = game.RunService local GameGui = game.Players.LocalPlayer.PlayerGui.GameGui.MainFrame local ReplicatedStorage = game.ReplicatedStorage local Resources = ReplicatedStorage.Assets.Resources local Units = workspace.Units local Countries = workspace.Countries local CountryData = workspace.CountryData local ManageAlliance = workspace.GameManager.ManageAlliance local CreateBuilding = workspace.GameManager.CreateBuilding local CamVal = Enum.RenderPriority.Camera.Value local BasePlate = workspace.Baseplate.Cities local FunctionDump = workspace.FunctionDump local GetRevenue = require(FunctionDump.ValueCalc.CountryRevenue) local GetExpenses = require(FunctionDump.ValueCalc.CountryExpenses) local GetCitiesComposition = require(FunctionDump.ValueCalc.GetCities).Composition local ResourcesTbl = {Names = {}, Data = {}} local MinedResources = {Names = {}} local TradeData = {Sell = {[1] = [==[]==], [2] = [==[]==], [3] = 0, [4] = 1, [5] = [==[]==]}} local Buildings = { "Electronics Factory", "Steel ManuFactory", "Aircraft Manufactory", "Fertilizer Factory", "Motor Factory", "Civilian Factory", "Airport", "Recruitment Center", "Develop City", "Fortifications", "Mines" } for _,v in next, GetChildren(Resources) do local BuyPrice, SellPrice = v.Value, v.Value * .8 ResourcesTbl.Data[v.Name] = {BuyPrice = 0, SellPrice = 0} ResourcesTbl.Data[v.Name].BuyPrice = math.floor(BuyPrice) ResourcesTbl.Data[v.Name].SellPrice = math.floor(SellPrice) table.insert(ResourcesTbl.Names, v.Name) if not IgnoredResources[v.Name] then MinedResources.Names[v.Name] = true end end local function ToggleTags() for _,v in next, GetChildren(Units) do local Tag = FirstChild(v, [==[Tag]==]) if Tag then Tag.Enabled = true end end end local function GetMyCountry() local Country = game.Players.LocalPlayer.leaderstats.Country.Value return Country end local function GetBalance(Country) local Balance = tonumber(GetRevenue(Country) - GetExpenses(Country)) return Balance end local function GetResourceFlow(Resource) local Flow = CountryData[GetMyCountry()].Resources[Resource].Flow.Value return Flow end local function GetAI() local AI = {Names = {}} for _,v in next, GetChildren(Countries) do local Name = v.Name local Len = string.len(Name) - 2 local Subbed = string.sub(Name, 1, Len) if string.match(Name, [==[AI]==], Len) then table.insert(AI.Names, Subbed) end end return AI end local function RemoveTrades(Resource) local Trades = CountryData[GetMyCountry()].Resources[Resource].Trade if not GetChildren(Trades) then return end for _,v in next, GetChildren(Trades) do ManageAlliance:FireServer(v.Name, [==[TradeCancel]==], Resource) task.wait(1) end task.wait(5) end local function Sell() RemoveTrades(_G.SellResource) local AI = GetAI().Names local ResourceSellPrice = ResourcesTbl.Data[_G.SellResource].SellPrice local ResourceFlow = GetResourceFlow(_G.SellResource) local Counter = 0 local SellAmount table.sort(AI, function(a,b) return GetBalance(a) > GetBalance(b) end) for _,v in ipairs(AI) do local CountriesBalance = GetBalance(v) Counter = Counter + 2 task.wait(Counter) if ResourceFlow <= _G.ReserveFlow then break end for i = 1, ResourceFlow do if ResourceSellPrice * i <= CountriesBalance * .75 then SellAmount = i end end ResourceFlow = ResourceFlow - SellAmount TradeData.Sell[2] = [==[Sell]==] TradeData.Sell[3] = SellAmount - _G.ReserveFlow TradeData.Sell[4] = 1 TradeData.Sell[5] = [==[Trade]==] ManageAlliance:FireServer(v, [==[ResourceTrade]==], TradeData.Sell) end end RunService:BindToRenderStep([==[Unit ESP]==], CamVal, function() if not _G.ESPToggle then return end task.spawn(ToggleTags) end) GameGui.ChildAdded:Connect(function(Child) if ( _G.AlertToggle and Child.Name == [==[AlertSample]==] ) then local Title = FirstChild(Child, [==[Title]==]) if Title and IgnoredAlerts[Title.Text] then task.wait(0.1) Child:Destroy() end end end) local function GetCapturedCounties() local CountriesComposition = GetCitiesComposition(GetMyCountry()) local Captured = {} for i,_ in next, CountriesComposition do table.insert(Captured, i) end return Captured end local function GetMyCities(Country) local Selected = GetCitiesComposition(GetMyCountry())[Country] return Selected end local function HasBuilding(City, Building) if FirstChild(City.Buildings, Building) then return true else return false end end local function MakeBuilding(Building) local Cities = _G.SelectedCities local Counter = 0 for _,v in next, Cities do local City = BasePlate[GetMyCountry()][v.Name] if not HasBuilding(City, Building) then if Counter >= (_G.MaxBuildings) then break end Counter = Counter + 1 task.wait(0.1) CreateBuilding:FireServer({City}, Building) end end end local function SmartMine() local Cities = _G.SelectedCities local Mineable = MinedResources.Names local Counter = 0 for _,v in next, Cities do local City = BasePlate[GetMyCountry()][v.Name] if not HasBuilding(City, "Mines") then if Counter > _G.MaxBuildings then break end for _,v2 in next, GetChildren(City.Resources) do if Mineable[v2.Name] then Counter = Counter + 1 task.wait(0.1) CreateBuilding:FireServer({City}, "Mines") break end end end end end _G.CapturedCountries = GetCapturedCounties() Folder:Dropdown([==[Resources]==],ResourcesTbl.Names,true,function(Val) _G.SellResource = Val TradeData.Sell[1] = tostring(Val) return Val end) Folder:Slider([==[Reserve Flow]==],{min = 1, max = 100, precise = false},function(Val) _G.ReserveFlow = Val return Val end) Folder:Button([==[Send]==],function() Sell() end) FolderMisc:Toggle([==[Unit ESP]==],function(Bool) _G.ESPToggle = Bool return Bool end) FolderMisc:Toggle([==[Clear Alerts]==],function(Bool) _G.AlertToggle = Bool return Bool end) local DropDown DropDown = FolderBuild:Dropdown([==[Country]==],_G.CapturedCountries,true,function(Val) _G.CapturedCountries = GetCapturedCounties() _G.SelectedCountry = Val _G.SelectedCities = GetMyCities(_G.SelectedCountry) DropDown:Refresh(_G.CapturedCountries) return Val end) FolderBuild:Dropdown([==[Building]==],Buildings,true,function(Val) _G.SelectedBuilding = Val return Val end) FolderBuild:Slider([==[Max Amount]==],{min = 1, max = 1000, precise = false},function(Val) _G.MaxBuildings = Val return Val end) FolderBuild:Button([==[Build]==],function() if _G.SelectedBuilding == "Mines" then task.spawn(SmartMine()) else task.spawn(MakeBuilding(_G.SelectedBuilding)) end end)
Paste Settings
Paste Title :
[Optional]
Paste Folder :
[Optional]
Select
Syntax Highlighting :
[Optional]
Select
Markup
CSS
JavaScript
Bash
C
C#
C++
Java
JSON
Lua
Plaintext
C-like
ABAP
ActionScript
Ada
Apache Configuration
APL
AppleScript
Arduino
ARFF
AsciiDoc
6502 Assembly
ASP.NET (C#)
AutoHotKey
AutoIt
Basic
Batch
Bison
Brainfuck
Bro
CoffeeScript
Clojure
Crystal
Content-Security-Policy
CSS Extras
D
Dart
Diff
Django/Jinja2
Docker
Eiffel
Elixir
Elm
ERB
Erlang
F#
Flow
Fortran
GEDCOM
Gherkin
Git
GLSL
GameMaker Language
Go
GraphQL
Groovy
Haml
Handlebars
Haskell
Haxe
HTTP
HTTP Public-Key-Pins
HTTP Strict-Transport-Security
IchigoJam
Icon
Inform 7
INI
IO
J
Jolie
Julia
Keyman
Kotlin
LaTeX
Less
Liquid
Lisp
LiveScript
LOLCODE
Makefile
Markdown
Markup templating
MATLAB
MEL
Mizar
Monkey
N4JS
NASM
nginx
Nim
Nix
NSIS
Objective-C
OCaml
OpenCL
Oz
PARI/GP
Parser
Pascal
Perl
PHP
PHP Extras
PL/SQL
PowerShell
Processing
Prolog
.properties
Protocol Buffers
Pug
Puppet
Pure
Python
Q (kdb+ database)
Qore
R
React JSX
React TSX
Ren'py
Reason
reST (reStructuredText)
Rip
Roboconf
Ruby
Rust
SAS
Sass (Sass)
Sass (Scss)
Scala
Scheme
Smalltalk
Smarty
SQL
Soy (Closure Template)
Stylus
Swift
TAP
Tcl
Textile
Template Toolkit 2
Twig
TypeScript
VB.Net
Velocity
Verilog
VHDL
vim
Visual Basic
WebAssembly
Wiki markup
Xeora
Xojo (REALbasic)
XQuery
YAML
HTML
Paste Expiration :
[Optional]
Never
Self Destroy
10 Minutes
1 Hour
1 Day
1 Week
2 Weeks
1 Month
6 Months
1 Year
Paste Status :
[Optional]
Public
Unlisted
Private (members only)
Password :
[Optional]
Description:
[Optional]
Tags:
[Optional]
Encrypt Paste
(
?
)
Create New Paste
You are currently not logged in, this means you can not edit or delete anything you paste.
Sign Up
or
Login
Site Languages
×
English
Do you like cookies?
🍪 We use cookies to ensure you get the best experience on our website.
Learn more
I agree