Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local AlertWebhookDonatorAddon = "https://discord.com/api/webhooks/943148153077645353/JrO2U3qtgfAcMCL5NC-56Z9cNzwvH0cRQtRJAGNRZ2PQ5Mxku-lgOVtgUCoe71DEZ21b";
- while wait(5) do
- local isMerchantHere = game:GetService("Workspace")["__THINGS"]["__REMOTES"]["is merchant here"]:InvokeServer({})[1];
- if (isMerchantHere and not shared.Mutex) then
- shared.Mutex = true;
- local stockStuff = "";
- stockStuff = stockStuff .. "\`\`\`";
- for i, v in next, game.Players.LocalPlayer.PlayerGui.Merchant.Frame.Container:GetChildren() do
- stockStuff = stockStuff .. string.format("Item: %s; Power: %s; Cost: %s; In-Stock: %s\n", v.Item:FindFirstChildOfClass("TextButton").Name, v.Item:FindFirstChildOfClass("TextButton").Level.Text, v.CostFrame.Cost.Text, tostring(not v.Locked.Visible));
- end;
- stockStuff = stockStuff .. "`\`\`";
- syn.request({
- Url = AlertWebhookDonatorAddon;
- Method = "POST";
- Headers = {
- ["content-type"] = "application/json"
- };
- Body = game:GetService("HttpService"):JSONEncode({
- ["content"] = string.format("@here\n\n**Merchant Alert!**\n\n%s\n\n\`\`\`lua\ngame:GetService'TeleportService':TeleportToPlaceInstance(6284583030, '%s')\`\`\`", stockStuff, game.JobId);
- })
- })
- end;
- if (not isMerchantHere and shared.Mutex) then
- shared.Mutex = false;
- end;
- end;
- print("Donator Addons Loaded")
Add Comment
Please, Sign In to add comment