UpdateVersion 1.1
Change: Downloads file to StealthBot folder and runs from there.
When I was adding scripts to my bot, I found that there are very few (8) VB colors. So I decided to go out there and make a larger list of colors (140).
(I probably did a very n00b job for something as simple as this)
Normal script:
CODE
Set ColorPack_FSO = CreateObject("Scripting.FileSystemObject")
Sub Event_Load()
If Not ColorPack_FSO.FileExists(BotPath() & "VbsColors.dat") Then
addChat 64636, "ÿcbDownloading ColorPack 1.1… Please wait."
PrintURLToFile "VbsColors.dat","http://venus.walagata.com/w/farty1billion/VbsColors.dat"
addChat 64636, "ÿcbDownloading Complete!"
End If
Set File = ColorPack_FSO.OpenTextFile(BotPath()&"VbsColors.dat",1)
executeglobal(File.ReadAll)
File.Close
Call ReloadColors()
End Sub
For a bot with the Plugin script (ColorPack.plug or whatever):
CODE
'ColorPack
'1.1
Set ColorPack_FSO = CreateObject("Scripting.FileSystemObject")
Sub ColorPack_Event_Load()
End Sub
Sub ColorPack_Event_LoadDisplay()
If Not ColorPack_FSO.FileExists(BotPath() & "VbsColors.dat") Then
addChat 64636, "ÿcbDownloading ColorPack 1.1… Please wait."
PrintURLToFile "VbsColors.dat","http://venus.walagata.com/w/farty1billion/VbsColors.dat"
addChat 64636, "ÿcbDownloading Complete!"
End If
Set File = ColorPack_FSO.OpenTextFile(BotPath()&"VbsColors.dat",1)
executeglobal(File.ReadAll)
File.Close
Call ReloadColors()
End Sub
If you ever need to reload the colors, just put "ReloadColors" or "Call ReloadColors()" in your script. (Or make something to do that).
Anything that needs a color (Such as AddChat) you can use this.
Example:
CODE
addchat cadetblue, "omg!"
Internet required to use this.
Every time you reload script or open the bot, it needs to download the file. Only downloads once.
[Filesize: 5.44 KB (5,573 bytes)]
Edit: Did I mention this is for Bots unless you want to make it for a program?
[codebox]
Color list:aliceblueantiquewhiteaquaaquamarineazurebeigebisqueblackblanchedalmondbluebluevioletbrownburlywoodcadetbluechartreusechocolatecoralcornflowerbluecornsilkcrimsoncyandarkbluedarkcyandarkgoldenroddarkgraydarkgreendarkkhakidarkmagentadarkolivegreendarkorangedarkorchiddarkreddarksalmondarkseagreendarkslatebluedarkslategraydarkturquoisedarkvioletdeeppinkdeepskybluedimgraydodgerbluefirebrickfloralwhiteforestgreenfuchsiagainsboroghostwhitegoldgoldenrodgraygreengreenyellowhoneydewhotpinkindianredindigoivorykhakilavenderlavenderblushlawngreenlemonchiffonlightbluelightcorallightcyanlightgoldenrodlightgreenlightgraylightpinklightsalmonlightseagreenlightskybluelightslategraylightsteelbluelightyellowlimelimegreenlinenmagentamaroonmediumaquamarinemediumbluemediumorchidmediumpurplemediumseagreenmediumslatebluemediumspringgreenmediumturquoisemediumvioletredmidnightbluemintcreammistyrosemoccasinnavajowhitenavyoldlaceoliveolivedraborangeorangeredorchidpalegoldenrodpalegreenpaleturquoisepalevioletredpapayawhippeachpuffperupinkplumpowderbluepurpleredrosybrownroyalbluesaddlebrownsalmonsandybrownseagreenseashellsiennasilverskyblueslateblueslategraysnowspringgreensteelbluetantealthistletomatoturquoisevioletwheatwhitewhitesmokeyellowyellowgreen[/codebox]
EDIT: Color list now in color!