KrystekYY

Untitled

Feb 15th, 2022 (edited)
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. local AlertWebhookDonatorAddon = "https://discord.com/api/webhooks/943148153077645353/JrO2U3qtgfAcMCL5NC-56Z9cNzwvH0cRQtRJAGNRZ2PQ5Mxku-lgOVtgUCoe71DEZ21b";
  2.  
  3. while wait(5) do
  4. local isMerchantHere = game:GetService("Workspace")["__THINGS"]["__REMOTES"]["is merchant here"]:InvokeServer({})[1];
  5.  
  6. if (isMerchantHere and not shared.Mutex) then
  7. shared.Mutex = true;
  8.  
  9. local stockStuff = "";
  10. stockStuff = stockStuff .. "\`\`\`";
  11.  
  12. for i, v in next, game.Players.LocalPlayer.PlayerGui.Merchant.Frame.Container:GetChildren() do
  13. 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));
  14. end;
  15.  
  16. stockStuff = stockStuff .. "`\`\`";
  17.  
  18. syn.request({
  19. Url = AlertWebhookDonatorAddon;
  20. Method = "POST";
  21. Headers = {
  22. ["content-type"] = "application/json"
  23. };
  24. Body = game:GetService("HttpService"):JSONEncode({
  25. ["content"] = string.format("@here\n\n**Merchant Alert!**\n\n%s\n\n\`\`\`lua\ngame:GetService'TeleportService':TeleportToPlaceInstance(6284583030, '%s')\`\`\`", stockStuff, game.JobId);
  26. })
  27. })
  28. end;
  29.  
  30. if (not isMerchantHere and shared.Mutex) then
  31. shared.Mutex = false;
  32. end;
  33. end;
  34. print("Donator Addons Loaded")
Add Comment
Please, Sign In to add comment