Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
235 views2 pages

Decompiled Lua

This document defines functions to fetch the top 10 players from a database based on kills, lookup each player's name, and send the results as a rich embed to a Discord channel. It first defines an event handler to run the code when the resource starts. It then queries the database, looks up each player's name, formats the results into a string, waits, and sends the string as a Discord embed post.
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)
235 views2 pages

Decompiled Lua

This document defines functions to fetch the top 10 players from a database based on kills, lookup each player's name, and send the results as a rich embed to a Discord channel. It first defines an event handler to run the code when the resource starts. It then queries the database, looks up each player's name, formats the results into a string, waits, and sends the string as a Discord embed post.
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

local L0_1, L1_1, L2_1, L3_1

L0_1 = ""
L1_1 = AddEventHandler
L2_1 = "onResourceStart"
function L3_1(A0_2)
local L1_2, L2_2, L3_2, L4_2
L1_2 = GetCurrentResourceName
L1_2 = L1_2()
if L1_2 ~= A0_2 then
return
end
L1_2 = MySQL
L1_2 = L1_2.Async
L1_2 = L1_2.fetchAll
L2_2 = "SELECT * FROM ffa ORDER BY kills DESC LIMIT 10"
L3_2 = {}
function L4_2(A0_3)
local L1_3, L2_3, L3_3, L4_3, L5_3, L6_3, L7_3, L8_3, L9_3, L10_3
L1_3 = ""
L2_3 = ipairs
L3_3 = A0_3
L2_3, L3_3, L4_3 = L2_3(L3_3)
for L5_3, L6_3 in L2_3, L3_3, L4_3 do
L7_3 = Wait
L8_3 = 25
L7_3(L8_3)
L7_3 = MySQL
L7_3 = L7_3.Async
L7_3 = L7_3.fetchAll
L8_3 = "SELECT * FROM users WHERE identifier = @id"
L9_3 = {}
L10_3 = L6_3.identifier
L9_3["@id"] = L10_3
function L10_3(A0_4)
local L1_4, L2_4, L3_4, L4_4, L5_4, L6_4, L7_4, L8_4
L1_4 = "Max_Mustermann"
L2_4 = A0_4[1]
if L2_4 then
L2_4 = A0_4[1]
L2_4 = L2_4.firstname
L3_4 = "_"
L4_4 = A0_4[1]
L4_4 = L4_4.lastname
L1_4 = L2_4 .. L3_4 .. L4_4
end
L2_4 = L1_3
L3_4 = [[

**#]]
L4_4 = L5_3
L5_4 = "** "
L6_4 = L1_4
L7_4 = " - Kills: "
L8_4 = L6_3.kills
L2_4 = L2_4 .. L3_4 .. L4_4 .. L5_4 .. L6_4 .. L7_4 .. L8_4
L1_3 = L2_4
end
L7_3(L8_3, L9_3, L10_3)
end
L2_3 = Wait
L3_3 = 3000
L2_3(L3_3)
L2_3 = SendToDiscord
L3_3 = L1_3
L2_3(L3_3)
end
L1_2(L2_2, L3_2, L4_2)
end
L1_1(L2_1, L3_1)
function L1_1(A0_2)
local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2
L1_2 = {}
L1_2.username = "m-dev.eu - FFA"
L2_2 = {}
L3_2 = {}
L3_2.color = 30975
L4_2 = {}
L4_2.name = "m-dev.eu"
L4_2.icon_url =
"https://media.discordapp.net/attachments/907302268427190332/928259078415847444/
mlanimation.gif?width=240&height=240"
L3_2.author = L4_2
L3_2.title = "\194\187 FFA \195\151 Top 10"
L3_2.description = A0_2
L4_2 = {}
L5_2 = "FFA - m-dev.eu"
L6_2 = " - "
L7_2 = os
L7_2 = L7_2.date
L8_2 = "%x %X %p"
L7_2 = L7_2(L8_2)
L5_2 = L5_2 .. L6_2 .. L7_2
L4_2.text = L5_2
L4_2.icon_url =
"https://media.discordapp.net/attachments/907302268427190332/928259078415847444/
mlanimation.gif?width=240&height=240"
L3_2.footer = L4_2
L2_2[1] = L3_2
L1_2.embeds = L2_2
L1_2.avatar_url =
"https://media.discordapp.net/attachments/907302268427190332/928259078415847444/
mlanimation.gif?width=240&height=240"
L2_2 = PerformHttpRequest
L3_2 = L0_1
function L4_2(A0_3, A1_3, A2_3)
end
L5_2 = "POST"
L6_2 = json
L6_2 = L6_2.encode
L7_2 = L1_2
L6_2 = L6_2(L7_2)
L7_2 = {}
L7_2["Content-Type"] = "application/json"
L2_2(L3_2, L4_2, L5_2, L6_2, L7_2)
end
SendToDiscord = L1_1

You might also like