Log in

View Full Version : Xenolib bug?



Glowingstick
10-21-2013, 04:07 PM
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?

Forgee
10-21-2013, 05:12 PM
You're calling one of Self.Say/Self.Yell/Self.Whisper/Self.SayToNpc with bad arguments.

Glowingstick
10-21-2013, 05:13 PM
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

Forgee
10-21-2013, 06:21 PM
There is no practical way to check current vocation but you can do a litteral comparison.
local voc = "druid"
if voc == "druid" then
-- do something
end