THE FORUM IS IN READ-ONLY MODE
[PoC] Shared Global Data
meinname last edited by Ruri
Also this is a copy of a thread by ruri from the old BB Forum I don't want to get lost - also this was written for BB Loliscript and may get changed to OB specific stuff.
This is useful for example if you want to use the same data line for every bot until it expires or gets banned and then switch to the next one.
The hosted wordlist needs to be formatted properly because BB currently lacks a way to choose a specific line without using the CSS Selector Parsing.
You can easily format a wordlist this way with notepad++ (tick the regular expression option) if you replace:
^(line start) with
$(line end) with
and add the
bodytag around the list.
## We set the global counter and global data SET NEWGVAR "CTR" "1" SET NEWGVAR "GDATA" "" ## We only want to do this if the GDATA is empty (a.k.a just initialized or banned) IF "<GDATA>" EqualTo "" ## Now whenever we want to pull the data we do this (pastebin formatted properly) REQUEST GET "https://pastebin.com/raw/ABCDEFGHIJ" ## Now thanks to the CSS Selector we take the correct data line PARSE SOURCE CSS "p:nth-child(<CTR>)" "innerHTML" -> VAR "CMB" SET GVAR "GDATA" "<CMB>" ## Increase the counter FUNCTION COMPUTE "<CTR>+1" -> VAR "NEWCTR" SET GVAR "CTR" "<NEWCTR>" ENDIF ## When that data line is banned just empty out the global variable ## SET GVAR "GDATA" "" ## so that on the next sweep it will grab the next data line :D
Kermit last edited by