SHARE
TWEET

Untitled

a guest Feb 16th, 2020 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local stats = string.lower("%1")
  2. local len = string.len(stats)
  3. local total = 1
  4. local lookup = {['s'] = 'str', ['i'] = 'int', ['w'] = 'wis', ['d'] = 'dex', ['c'] = 'con', ['l'] = 'luck'}
  5. if "%2" ~= "" then
  6.     total = tonumber("%2")
  7. end
  8. for i = 1, len, 1 do
  9.     local st = string.sub(stats, i, i)
  10.     if lookup[st] ~= nil then
  11.         Send("train "..total.." "..lookup[st])
  12.     end
  13. end
  14. Send("train")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top