Ok so I'm a bit stuck on finding what the chat as a variable/control is called. I've tried using other scripts that access the chat and read it but I've tried most parts. Either that or the script turns off once it's used.
-----------------------------------------------------------------------------------------------------------
okay so it turns out toribash has a complete folder of functions it uses. The chat is called "console", what kind of psychopath thinks naming a chat as console is a good idea.
It's still a bit buggy (the code doesn't work completely but you can have it give out the message when you look for strings in general so maybe have it look for a name then nudge, not really sure)
add_hook("console", "chatlog", function(message)
if (console=="!nudge") then
echo ("Nudges are 750tc to Decapprize, 500 tc to protonitron or 1000 selfbet")
end
end
)
You'll have to change print to echo as echo only displays the message to you.
---------------------------------------------------------------------------------------------------------------
print doesn't work for toribash. fack. I could probably modify the belt script and have it output whether there are counters or if there's a 10% difference and just have it say "cancelbets" near the chat.
Last edited by RedPanda; Dec 4, 2014 at 01:15 AM.