Code: Select all
if (args[1] === undefined) {
gwc.connnection.send("grin merrily");
}
else {
gwc.connection.send("grin " + args[1]);
}
grin
You grin evilly.
How can I fix this?
Code: Select all
if (args[1] === undefined) {
gwc.connnection.send("grin merrily");
}
else {
gwc.connection.send("grin " + args[1]);
}
> nick grin grin stupidKwevin wrote:Hello. I have an evil character whose rp is that he is not inherently evil. We all know that <grin> displays different adverbs whether you are good or evil. Goodies do it merrily, and evil align do it, well, evilly. Anyways, I want to be able to grin merrily with evil align unless otherwise specified. I have some code but it won't work. Help?Output: Error in alias TypeError: Cannot read property 'send' of undefinedCode: Select all
if (args[1] === undefined) { gwc.connnection.send("grin merrily"); } else { gwc.connection.send("grin " + args[1]); }
grin
You grin evilly.
How can I fix this?
Code: Select all
nick grin grin stupid
Nickname "grin" added to "grin stupid"
> grin
You grin stupidly.
> grin happ
Grin [how] at whom/what?
> unnick grin
Nickname "grin" removed. Used to be: grin stupid.
> alias grin grin stupid
Alias "grin" added to "grin stupid"
> grin
You grin stupidly.
> grin happ
Grin [how] at whom/what?
Good freaking Good I'm stupid... "Connnection"...Kwevin wrote:Output: Error in alias TypeError: Cannot read property 'send' of undefinedCode: Select all
if (args[1] === undefined) { gwc.connnection.send("grin merrily"); } else { gwc.connection.send("grin " + args[1]); }
grin
You grin evilly.