[LUA] Banlist Tools

Post Image
2
140
1 year, 10 months ago

Description:

  • Output lines from the banlist in the Imgui window.
  • Ability to choose the number of rows that you will receive from the server. 0 to 20000 . _
  • Ability to select the server for which you will receive a banlist: 0 - Trinity RPG , 1 - Trinity RP1 , 2 - Trinity RP2
  • Ability to receive chat notifications if a new entry appears in the banlist (/bans active)
  • Ability to send the last line of the banlist to any of the chats using the menu or the command: /bans chat [chat without "/"]. To select a local chat, insert "lc" into the argument.
  • You can get the full list of bans in the script by pressing the GET button. Regardless of whether you press the "GET" button or not, the script itself automatically checks for updates to the lines in the banlist, and instantly sends you a new line.
  • New line notification is sent to all clients at the same time.
  • The banlist on the server is updated about once every 1 minute.

Addition:

  • If it takes a long time for you to load the trinity banlist, you can use this: http://45.95.203.231:8000/banlist/web/0/500
  • Also, if you are afraid for your safety, disable cookies and javascript for the domain, it will not affect the performance in any way.
  • Instead of 0 , write the id of the north, and instead of 500 , write the number of lines you want to pull out.
  • I hope everyone here is smart and understands sheep-like things themselves, but I still remind you.
  • When using my API, please do not push it into while True without delays of at least 20 seconds, you are not alone. If it is noticed that there will be a lot of requests from the same IP address, it will be permanently blocked.
  • Exception: Using the Longpoll API, it is desirable to use an infinite loop there.

A little about the API:

Spoiler: Getting a banlist
 
Method: POST
Req Body: JSON
Kind Request JSON: {"server": 0, "count": 0}
Return data: JSON with a list of banlist strings (the first string in the list has a \n at the beginning)
URL: http:// 45.95.203.231:8000/banlist/get
Spoiler: Longpoll getting a new line
 
Method: POST
Req Body: JSON
Kind Request JSON: {"server": 0, "ban": "Last banlist line you have"}
Return data: JSON with new banlist line, or [false]
Link: http:/ /45.95.203.231:8000/banlist/longpoll
Spoiler: My web version of the banlist
 
Method: GET
Return data: html page
http://45.95.203.231:8000/banlist/web/ {server}/{number of lines}
Install, it's a miracle, very simple. All you need is to upload the file to the moonloader folder.
Did I mention that installation would be easy? Haha, here's another thing you need:
Moonloader , Copas, Imgui, Encoding

If you already have all of the above, you are certainly lucky.
Found a bug? Maybe there is a flaw? Write in response to a topic.
 


Comments

invilso
invilso

Good