Advertisement
SerlitePD

Dicebot First Double Hunter

Oct 23rd, 2018
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. rolled = {}
  2. function dobet()
  3.     -- If the last roll number matches the conditions, check if we've rolled it already
  4.     if lastBet.Roll >= 1 and lastBet.Roll <= 10 then
  5.         if rolled[lastBet.Roll] == nil then
  6.             -- If we haven't rolled this number yet, record the ID
  7.             rolled[lastBet.Roll] = lastBet.Id
  8.         else
  9.             -- If we have rolled this number already, print the IDs and stop
  10.             print(tostring(lastBet.Roll))
  11.             print(tostring(lastBet.Id))
  12.             print(tostring(rolled[lastBet.Roll]))
  13.             stop()
  14.         end
  15.     end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement