XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 4 of 4

Thread: Xenolib bug?

  1. #1
    Banned
    Join Date
    Jun 2013
    Posts
    612
    Mentioned
    67 Post(s)
    Tagged
    0 Thread(s)

    Xenolib bug?

    18:00 XenoScript Error:
    Script: [SC] Rook.lua
    Line #: 1602
    Chunk: C:?Xenobot?Data?XenoLuaLib.lua
    Error: attempt to index field '?' (a nil value)
    This is an error with user-input and should not be reported as a bug with XenoBot.


    Is it my lua that's broken or have I destroyed something?

  2. #2
    Senior Member Forgee's Avatar
    Join Date
    Feb 2012
    Location
    Sweden
    Posts
    555
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    You're calling one of Self.Say/Self.Yell/Self.Whisper/Self.SayToNpc with bad arguments.

  3. #3
    Banned
    Join Date
    Jun 2013
    Posts
    612
    Mentioned
    67 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Forgee View Post
    You're calling one of Self.Say/Self.Yell/Self.Whisper/Self.SayToNpc with bad arguments.
    Forgot the {} thx Now I have another issue tho.... Is it possible to make a script like..

    local voc = druid

    if voc(druid) ? because I dont get it to work
    Last edited by Glowingstick; 10-21-2013 at 05:17 PM.

  4. #4
    Senior Member Forgee's Avatar
    Join Date
    Feb 2012
    Location
    Sweden
    Posts
    555
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    There is no practical way to check current vocation but you can do a litteral comparison.
    lua code:
    local voc = "druid"
    if voc == "druid" then
    -- do something
    end

Posting Permissions

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