Advertisement
Guest User

Untitled

a guest
Oct 15th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.13 KB | None | 0 0
  1.  
  2. --pattern: ^astro(?:| (\w+))$
  3.  
  4. local bank = matches[2]:lower()
  5. local nums = gmcp.IRE.Time.List.year
  6. if bank == nil then
  7.   echo("ASTRO FOCUS - Automatically Focuses the appropriate celestial body.\nASTRO <target>/ME - Empowers you or your target.\nASTRO STAT - Shows the current atronomical alignment.")
  8. elseif bank == "me" then
  9.   send("astronomy empower me")
  10. elseif bank == "stat" or bank == "status" then
  11.   send("astronomy status")
  12. elseif bank == "focus" then
  13.   if tonumber(nums % 2) == 0 then
  14.     send("astronomy focus ethian")
  15.   elseif tonumber(nums % 2) ~= 0 then
  16.     send("astronomy focus sun")
  17.         end
  18.   else
  19.     WhoHereTable = {}
  20.     for k, v in pairs(gmcp.Room.Players) do
  21.       if gmcp.Room.Players[k].name ~= gmcp.Char.Status.name then
  22.         table.insert(WhoHereTable, gmcp.Room.Players[k].name)
  23.                 table.insert(WhoHereTable, gmcp.Room.AddPlayer[k].name)
  24.                 table.remove(WhoHereTable, gmcp.Room.RemovePlayer[k].name)
  25.         if contains(WhoHereTable, bank) then
  26.           send("astronomy empower"..bank)
  27.         else
  28.           echo(""..bank.." cannot be empowered.")
  29.                     break
  30.        end
  31.      end
  32.   end
  33. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement