+ Reply to Thread
Results 1 to 3 of 3

Thread: New to Lua and building Addons Question

  1. #1
    Soulwalker
    Join Date
    Sep 2015
    Posts
    2

    Default New to Lua and building Addons Question

    Hello everyone. I'm new to Lua, new to building Addons. I was wondering if someone could point me in the direction of getting my character's current level? I'm pretty positive I need to use


    detail = Inspect.Unit.Detail(unit)

    and I'm thinking I need to get my unit from using

    units = Inspect.Unit.List();

    I assume the id for myself is the first in the array however, it seems to be returning nil. Any suggestions would be awesome.

    I'm thinking something like
    units = Inspect.Unit.List();
    unit = units[0];
    detail = Inspect.Unit.Detail(unit);
    print(detail[level]);

    Thank you all.

  2. #2
    Shield of Telara Adelea's Avatar
    Join Date
    Mar 2011
    Posts
    734

    Default

    local unitdtl = Inspect.Unit.Detail("player")
    print(unitdtl.level)
    http://forums.riftgame.com/image.php?type=sigpic&userid=125779&dateline=13553  38065

  3. #3
    Soulwalker
    Join Date
    Sep 2015
    Posts
    2

    Default

    Quote Originally Posted by Adelea View Post
    local unitdtl = Inspect.Unit.Detail("player")
    print(unitdtl.level)
    So there is something that identifies a specific

    Thanks a bunch!

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts