Auto Surg - Lua GRATISAN
Auto Surg - Lua GRATISAN
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
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