Advertisement
Auios

Blockland Key Converter

Dec 10th, 2016
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. #include "fbgfx.bi"
  2. using fb
  3.  
  4. dim as string key,keyalpha = "ABCDEFGHJKLMNPQRSTUVWXYZ23456789"
  5. dim as string kchar,achar
  6. dim as integer ID,tID
  7. var eop=0
  8.  
  9. do
  10. input "Input: ", key
  11. if len(key)<>5 then
  12. print "Invalid key"
  13. else
  14. for i as integer = 1 to 5
  15. for j as integer = 1 to len(keyalpha)
  16. kchar = UCase(mid(key,i,1))
  17. achar = mid(keyalpha,j,1)
  18.  
  19. if kchar = achar then tID = j-1
  20. next j
  21. print tID
  22. ID+=32^(5-i)*(tID)
  23. next i
  24. end if
  25.  
  26. print "ID: " & ID
  27. ID = 0
  28. sleep
  29. loop until multikey(sc_escape)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement