in openbullet 1 i checked in SOURCE if there was a string, in openbullet 2 i check how that?
if (data.SOURCE.Contains(“String you want to check here”))
{
Do Stuff here
}
as an extension of this
You can put Loliscript inside these statements as well.
if ("123".Contains("123"))
{
LOG "Yep"
}
else
{
LOG "Nope"
}
data.SOURCE
is the new variable you can use
I have the first request, if the source has a string sought it was for the SUCCESS of the verification block and it does not happen
Why don’t you use a keycheck block?
I don’t know, how would it be?
if (data.SOURCE.Contains(“PIN_CODE”)){
data.STATUS = “SUCCESS”;
return;
}
or
IF STRINGKEY @data.SOURCE Contains “PIN_CODE”
data.STATUS = “SUCCESS”;
return;
END
which way correct?
They are completely equivalent
IF STRINGKEY @data.SOURCE Contains "PIN_CODE"
data.STATUS = "SUCCESS";
return;
END
IF STRINGKEY @data.SOURCE Contains "PASSWORD_MISMATCH"
data.STATUS = "FAIL";
return;
END
IF STRINGKEY @data.SOURCE Contains "PASSWORD_MISMATCH"
data.STATUS = "FAIL";
return;
END
IF STRINGKEY @data.SOURCE Contains "message":"""
data.STATUS = "FAIL";
return;
END
IF STRINGKEY @data.SOURCE Contains "ACCOUNT_NOT_FOUND"
data.STATUS = "FAIL";
return;
END
IF STRINGKEY @data.SOURCE Contains "Requests"
data.STATUS = "BAN";
return;
END
so can i do as soon as it is correct?
But why aren’t you using a keycheck block? Can you explain that to me?
because in the first request I have 2 answers
PIN CODE if you have this you can ignore everything that is SUCCESS and PASSWORD_MISMATCH FAIL and ACCOUNT_NOT_FOUND FAIL and Requests BAN.
however in the first request it is not SUCCESS when I have the answer PIN CODE
first request has already failed more and the ban at the end of the verification
in opb1 it didn’t happen
You didn’t show me the one I asked you to show me