0% found this document useful (0 votes)
5 views1 page

Lua Script for Modage Automation

The document contains a script that manages dialog requests and console messages for a gaming community. It includes functions to send packets based on specific console messages and user interactions, such as recovering or being healed. The script also provides options for users to access community resources and join a Discord server.
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)
5 views1 page

Lua Script for Modage Automation

The document contains a script that manages dialog requests and console messages for a gaming community. It includes functions to send packets based on specific console messages and user interactions, such as recovering or being healed. The script also provides options for users to access community resources and join a Discord server.
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

--[Modage]

NewVersionGL = false

--[Main Script]
Var0 = "OnDialogRequest"
Var1 = [[set_default_color|`w
add_label_with_icon|small|`8BooLua Community|left|2918|
add_spacer|small|
add_label_with_icon|small|`5VIP `b- `5Free Scripts CPS|left|1368|
add_label_with_icon|small|`eGL `b- `2BotHax `b- `8GPai|left|1368|
add_label_with_icon|small|`6Report Bug Script|left|1368|
add_label_with_icon|small|`3Request Script|left|1368|
add_label_with_icon|small|`8Learn Script|left|1368|
add_spacer|small|
add_url_button||`qDiscord``|NOFLAGS|[Link]
Community.|0|0|
add_smalltext|`9Need more scripts?!Join now!|
add_quick_exit|]]
if NewVersionGL then
SendVariant({v1 = Var0, v2 = Var1})
else
SendVariant({v0 = Var0, v1 = Var1})
end
AddHook(function(var)
if var.v1 == "OnConsoleMessage" and var.v2:find("You are recovering") then
SendPacket(2, "action|input\n|text|/modage 60")
end
if var.v1 == "OnConsoleMessage" and var.v2:find("not allowed to perform
surgery") then
SendPacket(2, "action|input\n|text|/modage 60")
end
if var.v1 == "OnConsoleMessage" and var.v2:find("Spam detected!") then
return true
end
if var.v1 == "OnTalkBubble" and var.v3:find("You are healed") then
return true
end
if var.v1 == "OnTalkBubble" and var.v3:find("!reset") then
SendPacket(2, "action|input\n|text|/modage 60")
end
return false
end, (NewVersionGL and "onVariant" or "OnVariant"))

You might also like