[NEW] Announce Script 2.0

By lavamike on Dec 02, 2008

Based on my Original Announce Script. The old one was pretty bugged so I made a new one. Tested and seems to work fine, let me know if there are any bugs :)

  1. Load
  2. BEFORE USING ANY OF THE COMMANDS TYPE: /cleara!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  3. Enjoy! ;)

P.S: Don't forget to change the 'C:\Please\Change\Me' ;)

Screenshot:
Image

;Announce Script 2.0 Created By Lavamike

on *:TEXT:!announce*:#: { msg $chan 4The Announcements Are:3 $readini(C:\Change\Me\Please\Data.ini,Announce,A1) }

on *:TEXT:!a*:#: {
  if ( !$2 ) { notice $nick Usage: !a <Item> | halt }
  if ( $readini(C:\Change\Me\Please\Data.ini,Announce,A1) = None ) {
    writeini -n C:\Change\Me\Please\Data.ini Announce A1 $2-
    writeini -n C:\Change\Me\Please\Data.ini Announce A2 $readini(C:\Change\Me\Please\Data.ini,Announce,A1)
    notice $nick " $+ $2- $+ " Saved.  Type !announce to see current announcements.
    halt
  }
  writeini -n C:\Change\Me\Please\Data.ini Announce A1 $readini(C:\Bot\Data.ini,Announce,A2)  [-=-]  $2-  
  writeini -n C:\Change\Me\Please\Data.ini Announce A2 $readini(C:\Bot\Data.ini,Announce,A1)
  notice $nick " $+ $2- $+ " Saved.  Type !announce to see current announcements.
}

on *:TEXT:!cleara*:#: { writeini -n C:\Change\Me\Please\Data.ini Announce A1 None | /remini C:\Change\Me\Please\Data.ini Announce A2 | notice $nick Announcements Erased }

Comments

Sign in to comment.
Noutrious   -  Dec 04, 2008

Don't see the point of the A2 and secondly, this could be done in about three lines.

 Respond  
lavamike   -  Dec 03, 2008

@ mountaindew

I made it originally for my bot, I have all my bot scripts, logs, data, in a certain directory so I just quickly modified it to post it here :)

& @ napalm'

lulz?

 Respond  
Basillisk   -  Dec 02, 2008

/me rofls

 Respond  
napalm`   -  Dec 02, 2008

Repeatedly impales face with a rusty spork.

 Respond  
guest598594   -  Dec 02, 2008

Rather than having the user change all those directories, you should just /write data.ini on load, and then all you need is $readini(data.ini,...).

 Respond  
lavamike   -  Dec 02, 2008

Enjoy ;)

If you find any mistakes, please let me know so I can fix them & feel free to suggest anything :P

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.