Advertisement
Guest User

plinfo alias

a guest
Feb 13th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. downloadFile(getMudletHomeDir().."/thonoursjson.html", "http://api.imperian.com/characters/" .. matches[3] .. ".json")
  2. plName = matches[3]:title()
  3. plAction = matches[2]
  4. debug(plName .. plAction)
  5. tempTimer(1, function ()
  6. local name = plName
  7. local action = plAction
  8. debug("INFO" .. name .. action)
  9. local str = ""
  10. local info = players[name] or nil
  11. display(info)
  12. if not info then
  13. debug("No player " .. name)
  14. else
  15. str = str .. info.name
  16. local statpack, race = string.match(info.description, "is %a+ (%a+) (%a+)")
  17. display(statpack)
  18. display(race)
  19. str = action .. string.format("%s - Lvl(%d):%s:%s:%s", info.name, info.level, info.city:title(), statpack:title(), info.profession:title())
  20. cecho(str)
  21. send(str)
  22. end
  23. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement