Grandelf
01-10-10, 01:26 PM
Broadcast System.
I have been working on a broadcast system for a while and this as the result of it. This system is fully used ingame and there is no need to modify the script in any way to add, delete or modify messages. The commands:
#broadcast add interval msg [color code] - color code is optional.
#broadcast remove id - You can get the id from #broadcast list.
#broadcast modify str id - At the place of str you can add a number for the interval or a color code or a msg. You can only add one of those so to change the color and a msg you have to use the command twice.
#broadcast list - Lists all msgs + ids.
Note: This script will create a txt file called broadcast_file.txt, deleting this file will result into all broadcast messages being deleted and changing things might mess up the script if you do it wrong.
Script: http://pastebin.com/LMyvdGq6 (http://pastebin.com/LMyvdGq6)
Grandelf.
I have been working on a broadcast system for a while and this as the result of it. This system is fully used ingame and there is no need to modify the script in any way to add, delete or modify messages. The commands:
#broadcast add interval msg [color code] - color code is optional.
#broadcast remove id - You can get the id from #broadcast list.
#broadcast modify str id - At the place of str you can add a number for the interval or a color code or a msg. You can only add one of those so to change the color and a msg you have to use the command twice.
#broadcast list - Lists all msgs + ids.
Note: This script will create a txt file called broadcast_file.txt, deleting this file will result into all broadcast messages being deleted and changing things might mess up the script if you do it wrong.
Script: http://pastebin.com/LMyvdGq6 (http://pastebin.com/LMyvdGq6)
Grandelf.