Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

Commit d6affa6

Browse files
authored
Create IrisBetterConsole.lua
1 parent c034cd3 commit d6affa6

1 file changed

Lines changed: 205 additions & 0 deletions

File tree

IrisBetterConsole.lua

Lines changed: 205 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,205 @@
1+
-- created by iris https://v3rmillion.net/member.php?action=profile&uid=207161
2+
3+
if not getgenv()["Iris"] then getgenv()["Iris"]={}; end
4+
if getgenv()["Iris"]["CustomConsole"] then return else getgenv()["Iris"]["CustomConsole"] = true end
5+
6+
local Exploit;
7+
local Seralize = loadstring(game:HttpGet('https://raw.githubusercontent.com/Teemsploit/SituationAdmin.lua/main/SeralizeTable.lua', true))()
8+
if syn and syn_crypt_derive then
9+
Exploit = "Synapse"
10+
elseif gethui and identifyexecutor() == "ScriptWare" then
11+
Exploit = "ScriptWare"
12+
end
13+
14+
local CachedFunctions = {
15+
rconsoleprint = getgenv()["rconsoleprint"],
16+
rconsolewarn = getgenv()["rconsolewarn"],
17+
rconsoleerr = getgenv()["rconsoleerr"] or getgenv()["rconsoleerror"],
18+
rconsoleinfo = getgenv()["rconsoleinfo"],
19+
rconsoleinput = getgenv()["rconsoleinput"],
20+
}
21+
22+
local SWColors = {
23+
["Black"] = true,
24+
["red"] = true,
25+
["ured"] = true,
26+
["bred"] = true,
27+
["green"] = true,
28+
["ugreen"] = true,
29+
["bgreen"] = true,
30+
["yellow"] = true,
31+
["uyellow"] = true,
32+
["byellow"] = true,
33+
["blue"] = true,
34+
["ublue"] = true,
35+
["bblue"] = true,
36+
["magenta"] = true,
37+
["umagenta"] = true,
38+
["bmagenta"] = true,
39+
["cyan"] = true,
40+
["ucyan"] = true,
41+
["bcyan"] = true,
42+
["white"] = true,
43+
["uwhite"] = true,
44+
["bwhite"] = true
45+
}
46+
47+
local SynColors = {
48+
["@@BLACK@@"] = true,
49+
["@@BLUE@@"] = true,
50+
["@@GREEN@@"] = true,
51+
["@@CYAN@@"] = true,
52+
["@@RED@@"] = true,
53+
["@@MAGENTA@@"] = true,
54+
["@@BROWN@@"] = true,
55+
["@@LIGHT_GRAY@@"] = true,
56+
["@@DARK_GRAY@@"] = true,
57+
["@@LIGHT_BLUE@@"] = true,
58+
["@@LIGHT_GREEN@@"] = true,
59+
["@@LIGHT_CYAN@@"] = true,
60+
["@@LIGHT_RED@@"] = true,
61+
["@@LIGHT_MAGENTA@@"] = true,
62+
["@@YELLOW@@"] = true,
63+
["@@WHITE@@"] = true
64+
}
65+
66+
local Defaults = {
67+
rconsoleprint = nil,
68+
rconsolewarn = nil,
69+
rconsoleerr = nil,
70+
rconsoleerror = nil,
71+
rconsoleinfo = nil,
72+
rconsoleclear = nil,
73+
rconsolewritetable = nil,
74+
}
75+
76+
local function FormatData(...)
77+
local Args = {...}
78+
79+
for _,Arg in next, Args do
80+
if Arg == "
81+
" then
82+
CachedFunctions.rconsoleprint("
83+
")
84+
else
85+
Args[_] = tostring(Arg)
86+
end
87+
end
88+
local Coloring = select(#Args, ...)
89+
90+
if not (isconsoleopen and isconsoleopen()) then
91+
rconsolecreate();
92+
local SWName, SWVer = identifyexecutor();
93+
rconsolesettitle(SWName .. " " .. SWVer)
94+
end
95+
96+
if SWColors[Coloring] then
97+
Coloring = SWColors[Coloring]
98+
table.remove(Args, #Args)
99+
else
100+
Coloring = "white"
101+
end
102+
103+
return {table.concat(Args, " "), Coloring}
104+
end
105+
106+
local function FormatSynData(...)
107+
local Args = {...}
108+
for _,Arg in next, Args do
109+
if Arg == "
110+
" then
111+
CachedFunctions.rconsoleprint("
112+
")
113+
else
114+
Args[_] = tostring(Arg)
115+
end
116+
end
117+
118+
if #Args == 1 and Args[1]:find("@@") then
119+
if SynColors[Args[1]] then
120+
return Args[1];
121+
end
122+
return "@@WHITE@@"
123+
end
124+
125+
return table.concat(Args, " ")
126+
end
127+
128+
local function DoDash(Color)
129+
130+
CachedFunctions.rconsoleprint("[", "white")
131+
CachedFunctions.rconsoleprint("*", Color)
132+
CachedFunctions.rconsoleprint("] ", "white")
133+
end
134+
135+
if Exploit == "Synapse" then
136+
Defaults.rconsoleprint = function(...)
137+
local Formatted = FormatSynData(...)
138+
CachedFunctions.rconsoleprint(Formatted)
139+
end
140+
141+
Defaults.rconsolewarn = function(...)
142+
local Formatted = FormatSynData(...)
143+
CachedFunctions.rconsolewarn(Formatted)
144+
end
145+
146+
Defaults.rconsoleerr = function(...)
147+
local Formatted = FormatSynData(...)
148+
CachedFunctions.rconsoleerr(Formatted)
149+
end
150+
Defaults.rconsoleerror = Defaults.rconsoleerr;
151+
152+
Defaults.rconsoleinfo = function(...)
153+
local Formatted = FormatSynData(...)
154+
CachedFunctions.rconsoleinfo(Formatted)
155+
end
156+
157+
elseif Exploit == "ScriptWare" then
158+
Defaults.rconsoleprint = function(...)
159+
local Formatted = FormatData(...)
160+
CachedFunctions.rconsoleprint(Formatted[1], Formatted[2])
161+
end
162+
163+
Defaults.rconsolewarn = function(...)
164+
local Formatted = FormatData(...)
165+
DoDash("yellow")
166+
CachedFunctions.rconsoleprint(Formatted[1], Formatted[2])
167+
CachedFunctions.rconsoleprint("
168+
")
169+
end
170+
171+
Defaults.rconsoleerr = function(...)
172+
local Formatted = FormatData(...)
173+
DoDash("red")
174+
CachedFunctions.rconsoleprint(Formatted[1], Formatted[2])
175+
CachedFunctions.rconsoleprint("
176+
")
177+
end
178+
Defaults.rconsoleerror = Defaults.rconsoleerr;
179+
180+
Defaults.rconsoleinfo = function(...)
181+
local Formatted = FormatData(...)
182+
DoDash("blue")
183+
CachedFunctions.rconsoleprint(Formatted[1], Formatted[2])
184+
CachedFunctions.rconsoleprint("
185+
")
186+
end
187+
end
188+
189+
for Cache, Literal in next, CachedFunctions do
190+
Cache = Literal;
191+
end
192+
193+
for FuncName, Function in next, Defaults do
194+
getgenv()[tostring(FuncName)] = Function;
195+
end
196+
197+
getgenv()["rconsolewritetable"] = function(Table)
198+
if typeof(Table) ~= "table" then
199+
return warn("You mus provide a table as the first argument!")
200+
end
201+
rconsolewarn(("Table ID: %s "):format(tostring(Table)))
202+
rconsoleprint(Seralize(Table) or "Failure to seralize")
203+
rconsoleprint("
204+
")
205+
end

0 commit comments

Comments
 (0)