Valhalla Legends Forums Archive | Spht's Forum | Re: Style Script Documentation

AuthorMessageTime
dadikz
i need help!!!!!!!!!! i dunn how dis will work...
what should i do??? help me plz... thx
----------------------------------------------------------


These are some example scripts to get you started.
***Remove the space infront of the & to enable the script.***

This will greet anyone who joins the channel whose name matches *[vL]*
&2&*[vL]*&&&&Welcome to channel %6, %1!

A more advanced command to report general information about the bot to people with the O
flag when they whisper "status" or type ".status" in channel
&4&&O&&"status"&:reply Bot server is %5, bot home channel is %7, bot uptime is %31.
&5&&O&&".status"&:reply Bot server is %5, bot home channel is %7, bot uptime is %31.

This will allow any user to get their ping and flags by typing "myinfo" in the same channel
that the bot is in
&5&&&&"myinfo"&:reply You have a ping time of %12ms and flags %11.

Note that the text matches are surrounded in quotes. This means that the text to match has
to be exatly the same as what is typed to trigger a response. With no quotes, then it will
be triggered if it finds the text anywhere in the typed message. If there is a quote at the
beginning of the text and not at the end, then that means it will match the beginning of a
typed message. This also works visa-versa: if there is a quote at the end of the text and
not at the beginning, then that means it will match the end of a typed message. Some
examples of this are as follows.

This will attempt to ban a user with reason "no anti-idles" if the end of their emote
message is "anti-idle"
&23&&&&anti-idle"&/ban %1 no anti-idles

This will whisper someone if their typed chat message contains "hello bot"
&5&&&&hello bot&:reply Hello. How are you?
January 22, 2006, 2:00 AM

Search