Konata's Ramble Corner: Difference between revisions

From Vendetta Lua
Jump to navigationJump to search
No edit summary
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:


I'll have to put this aside until declare() is in the client [[User:Konata|Konata]] 21:42, 4 July 2007 (EDT)
I'll have to put this aside until declare() is in the client [[User:Konata|Konata]] 21:42, 4 July 2007 (EDT)
=== A note on RegisterUserCommand ===
After doing RUC("fun", funfunc, "parrots"), here's how things go down.
If the user types in /fun choo choos, funfunc will be called like so:<br>
funfunc("parrots", { 1: choo, 2: choos })
Thus, RUC still acts slightly funny.

Latest revision as of 06:25, 8 July 2007

Ramble ramble ramble.

Apparently most of the goodies are sandboxed via lua metatables. One hopes that bypassing these metatables is possible. Unfortunately, rawget and rawset aren't helpful in the least. But.....we'll see how stuff goes.

Haha. dofile() can do internal files. Konata 20:58, 4 July 2007 (EDT)

I'll have to put this aside until declare() is in the client Konata 21:42, 4 July 2007 (EDT)


A note on RegisterUserCommand

After doing RUC("fun", funfunc, "parrots"), here's how things go down.

If the user types in /fun choo choos, funfunc will be called like so:
funfunc("parrots", { 1: choo, 2: choos })


Thus, RUC still acts slightly funny.