No functions working

Posted by Slurp on Thu 10 Aug 2006 04:32 PM — 4 posts, 16,937 views.

#0
I've activiated scripting as suggested in the tutorial.
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=6030

Using LUA,

when I type /note "Blah"

I get
[string "Command line"]:1: attempt to call global `note' (a nil value)
stack traceback:
[string "Command line"]:1: in main chunk

Its telling me to the best of my knoweldge when tyring to call a global function I get a nil value returned?

Am I missing something?

I'm using V 3.73

Thanks
Slurp
USA #1
You might want to try doing /world.note instead of just /note. That should work.
#2
/world.note "Boo"

gives me
[string "Command line"]:1: attempt to call field `note' (a nil value)
stack traceback:
[string "Command line"]:1: in main chunk


Same error.
Australia Forum Administrator #3
Lua is case-sensitive. In the page you referred to, the examples were:

Note "hello, world"

not:

note "hello, world"


You can let MUSHclient correct the capitalization for you when typing in scripts. Partially (or fully) type a function name and then Shift+Tab which invokes the function-name-completion menu. This will replace the function name with one capitalized correctly.