This is a repost from:
http://bebot.link/aoc-0-6-support/scripts-to-module/Here is a new version of the scripts module that allows for the use of special fonts and colors in links as well as text before and after the link.
Your old script files will continue working without any modification.
I have included a sample version 2 for you to review.
add this line to your scripts.lst file for easy clicking
<a href='chatcmd:///tell <botname> <pre>script epic_raid_drops'>Epic Raid Drops</a> - <a href='chatcmd:///gu <pre>script epic_raid_drops'>show guild</a><br>
Here is how to create version 2 script files.
script must start exactly with the text:
//-- script ver 2 --//
If the script file doesn't start with that the module will read it as the old format and that won't work.
Lines can start with these tags (always 8 characters):
BEFOREH-
HLINK---
AFTERH--
SPECIAL-
BODY----
The special tag is for adding text to the
a tag that isn't the href i.e. <a href='blah'
SPECIAL->click here</a>
The only thing I need that for so far is:
style='text-decoration:none' (this allows non-default color and font to be used on links)
There can only be one of each. The order of the tags is not significant, but I suggest the body tag always come last.