Jump to content
  • 0

Xor keys in Script


Fallen_Stress

Question

Hi guys i want to make a Script that prompts user input and convert the number that the user have typed with the game Xor keys. the Xor keys is 444444.

I tried to add X4 in the number that the user type but it is not working correctly.

Β 

local ca = gg.prompt({"π™Έπ™½π™Ώπš„πšƒ πšƒπ™·π™΄ π™²π™°πš π™°π™Όπ™Ύπš„π™½πšƒ"},nil,{"number"})
if ca == nil then gg.toast('You cancelled the dialogue') gg.setVisible(false)
return end
local ca = ca[1].."X4"
gg.searchNumber(ca, gg.TYPE_DWORD)
local results = gg.getResultsCount()

if results > 10 then
local r = gg.getResults(1)
gg.removeResults(r)
end

Β 

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

1 hour ago, MarioRossi93i said:

better

ca = bit32.bxor( tonumber(ca[1]), 444444)

thanks for this, but can you help me to understand, just explain me each part of code because my objective is notΒ copy pasting code, I really want to understand. Please explain me πŸ˜‰

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.