0% found this document useful (0 votes)
50 views

Auto Surg - Lua GRATISAN

Uploaded by

sleepyskrrt
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views

Auto Surg - Lua GRATISAN

Uploaded by

sleepyskrrt
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

function Tolay(x)

local var = {}
var.v0 = "OnTextOverlay"
var.v1 = x
var.netid = -1
SendVariant(var)
end

function Notif(x)
local var = {}
var.v0 = "OnAddNotification"
var.v2 = x
var.v3 = "audio/gauntlet_spawn.wav"
var.netid = -1
SendVariant(var)
end

Notif("`2Free auto surg")


Sleep(3000)
Tolay("`#Subscribe `8Buraa community")
Sleep(2000)

local function strip(arg)


arg = arg:gsub("`[`0-9A-Za-z%+!@#%$%%%^&%*%(%)%-'\":;,%?~\\|<>{}%[%]%.]?",
"")
return arg
end

local function Use(arg)


local tool = {
["Sponge"] = "command_0",
["Scalpel"] = "command_1",
["Anesthetic"] = "command_2",
["Antiseptic"] = "command_3",
["Antibiotics"] = "command_4",
["Splint"] = "command_5",
["Stitches"] = "command_6",
["Fix It"] = "command_7"
}
SendPacket(2, "action|dialog_return\ndialog_name|surgery\
nbuttonClicked|"..tool[arg])
end

AddHook(function (arg)
if (arg.v2:find("Okay!")) then
SendPacket(2, string.format("action|dialog_return\ndialog_name|
surge_edit\nx|%d|\ny|%d|", arg.v2:match("embed_data|x|(%d+)"),
arg.v2:match("embed_data|y|(%d+)")))
return true
elseif(strip(arg.v2):find("You can't see what you are doing!") or
strip(arg.v2):find("It is becoming hard to see your work.")) then
Use("Sponge")
LogToConsole("`8Used Sponge")
return true
elseif(strip(arg.v2):find("Status: Awake!")) then
Use("Anesthetic")
LogToConsole("`8Used Anesthetic")
return true
elseif(strip(arg.v2):find("Operation site: Unclean") or
strip(arg.v2):find("Operation site: Not sanitized") or
strip(arg.v2):find("Operation site: Unsanitary")) then
Use("Antiseptic")
LogToConsole("`8Used Antiseptic")
return true
elseif (strip(arg.v2):find("Patient's fever is climbing rapidly!") or
strip(arg.v2):find("Patient's fever is climbing.") or strip(arg.v2):find("Patient's
fever is slowly rising.")) then
Use("Antibiotics")
LogToConsole("`8Used Antibiotics")
return true
elseif(not strip(arg.v2):find("Incisions: 0") and strip(arg.v2):find("command_7")
or strip(arg.v2):find("Patient is losing blood slowly.") and
strip(arg.v2):find("Incisions: 0") and strip(arg.v2):find("command_7") or
strip(arg.v2):find("Patient is losing blood!") and strip(arg.v2):find("Incisions:
0") and strip(arg.v2):find("command_7") or strip(arg.v2):find("Patient is losing
blood very quickly!") and strip(arg.v2):find("Incisions: 0") and
strip(arg.v2):find("command_7")) then
Use("Stitches")
LogToConsole("`8Used Stitches")
return true
elseif(not strip(arg.v2):find("command_7") and strip(arg.v2):find("Operation site:
Clean")) then
Use("Scalpel")
LogToConsole("`8Used Scalpel")
return true
elseif(strip(arg.v2):find("command_7") and strip(arg.v2):find("Incisions: 0")) then
Use("Fix It")
LogToConsole("`8Used Fix It")
return true
else
return false
end
end, "OnVariant")

while true do
SendPacket(2,"action|input\n|text|`8Sudah selesai nih")
Sleep(9000)
end

You might also like