Auto Messages

Started by [VM_U]Spectra.PhantoM^, Dec 21, 2015, 11:46 AM

Previous topic - Next topic

[VM_U]Spectra.PhantoM^

This Makes Messages appear on the chat every (idk) 10 secs
auto_msgs <-
[
" Your message here."];
randcolors <-
[
        "[#DC143C]"
        "[#00CED1]"
        "[#FF69B4]"
        "[#FF8C00]"
        "[#FFFF00]"
        "[#800080]"
        "[#4169E1]"
        "[#2E8B57]"
        "[#8B4513]"
        "[#C0C0C0]"
 


        "[#FF0000]"
        "[#FF1493]"
        "[#FF4500]"
        "[#191970]"
        "[#8A2BE2]"
        "[#4B0082]"
        "[#ADFF2F]"
        "[#20B2AA]"
        "[#00FFFF]"
        "[#DAA520]"
        "[#696969]"


        "[#FF00FF]"
        "[#B22222]"
        "[#FF7F50]"
        "[#BDB76B]"
        "[#32CD32]"
        "[#1E90FF]"
        "[#008000]"
        "[#008080]"
        "[#B8860B]"
        "[#708090]"


        "[#8B0000]"
        "[#FFD700]"
        "[#BA55D3]"
        "[#9400D3]"
        "[#00BFFF]"
        "[#00FF00]"
        "[#00FA9A]"
        "[#D2691E]"


        "[#FA8072]"
        "[#C71585]"
        "[#FFA500]"
        "[#4682B4]"
        "[#7CFC00]"
        "[#3CB371]"
        "[#808000]"
        "[#9ACD32]"
        "[#8B4513]"
        "[#2F4F4F]"

      ];

      randcolorsirc <-
      [
      "\x000300"
      "\x000301"
      "\x000302"
      "\x000303"
      "\x000304"
      "\x000305"
      "\x000306"
      "\x000307"
      "\x000308"
      "\x000309"
      "\x000310"
      "\x000311"
      "\x000312"
      "\x000313"
      "\x000314"
      "\x000315"
      ]
       
  function sendmsgs()

  Message( auto_msgs[ rand() % auto_msgs.len() ]);
}     


Copy this all and make a different file rename it to .nut then do this:
function onScriptLoad()
{

dofile( "scripts/yourscriptnamehere.nut" )

Now messages will show up on ur screen :P

Remember always add , at the end of a message and ]; at the end of ur last message for example:

"yourmessage",
"yoursecondmessage"];

Wanna Talk To Me? Come At Irc #Jugo@LUNet

.

Are you sure it'll send the message? The script seems a bit (very) incomplete. And does that `randcolors` table have any purpose?
.

DizzasTeR

Quote from: {ultimatejugo] on Dec 21, 2015, 11:46 AMThis Makes Messages appear on the chat every (idk) 10 secs

Is that so? Makes alot of sense.

KAKAN

oh no

wilber32

Prefer the Kakan is simpler than this

[VM_U]Spectra.PhantoM^

Quote from: S.L.C on Dec 21, 2015, 11:51 AMAre you sure it'll send the message? The script seems a bit (very) incomplete. And does that `randcolors` table have any purpose?
Randcolors table just show's the one who doesnt know colours colour codes so they can coulour it as they wish.
And yes it will send message i tested it my self
Wanna Talk To Me? Come At Irc #Jugo@LUNet