Welcome, Guest.

Author Topic: wordbrutha for mirc  (Read 461 times)

0 Members and 1 Guest are viewing this topic.

Offline Brian

  • Funktuar
  • Funktuar
  • ******
  • Posts: 2945
  • Awards Hero of the RIA The Disorder War Formerly a member of Sol Veteran of the Equilibrium War Has been Head of Foreign Affairs One year of Random Insanity Veteran of the Dave War RIAer has been blown to ZI in defense of RIA Veteran of the Grudge War (TOP/NpO) Has been Head of Economics Has assisted the HoE in the economics dept Has been a diplomat
  • war boner is 13.69" long.
  • has 320 llamas
    • View Profile
  • Nation: My new new Nation
  • Ruler: The decimator
wordbrutha for mirc
« on: December 01, 2011, 11:08:32 pm »
so, i finally got everything working for one. just stick it into your remotes script section.
to add words to the wordbrutha type /hadd brutha [word] [brutha]
If someone can post a list to pastbin or something of all the word bruthas id be more then happy to figgure out a way to make it so you can just download the hastable so you dont have to add them all yourself.

Code: [Select]
;to add words to the wordbrutha type /hadd brutha [word] [brutha]

on *:START: {
  /hmake brutha 10
  if ($isFile(bruthas.hsh)) {
    /hload brutha bruthas.hsh
  }
  else {
    /brutha.init
    /hsave -o brutha bruthas.hsh
  }
}

on *:EXIT: {
  /hsave -o brutha bruthas.hsh
  /hfree brutha
}


on *:INPUT:#: {
  if ($left($1, 1) !isin $+(/,$readini($mircini, text, commandchar))) {
    var %w = 1
    var %text
    var %acro = <brutha> | ; the design you want your brutha to take
    while ($gettok($1-, %w, 32) != $null) { | ; we include != $null incase the user types a 0
      var %word = $ifmatch
      if ($hget(brutha, %word) != $null) var %text = %text $replace(%acro, <brutha>, $ifmatch)
      else var %text = %text %word
      /inc %w
    }
    /msg $chan %text
    /halt
  }

Edit: you might also want to change the word filter to the word filter
« Last Edit: December 01, 2011, 11:11:48 pm by Brian »
please ignore the above post, it is most likely worthless and a waste of your time to read.
TL;DR go on with your life while you still can.

 


* Re: Imagine still posting on RIA to talk to old clowns.  Author: im317 Forum: Random lnsanity
* Re: Imagine still posting on RIA to talk to old clowns.  Author: Gangs Forum: Random lnsanity
* Re: Imagine still posting on RIA to talk to old clowns.  Author: im317 Forum: Random lnsanity
* Re: Imagine still posting on RIA to talk to old clowns.  Author: Gangs Forum: Random lnsanity
* Re: Imagine still posting on RIA to talk to old clowns.  Author: Leo Forum: Random lnsanity
* Re: Imagine still posting on RIA to talk to old clowns.  Author: Brian Forum: Random lnsanity
* Imagine still posting on RIA to talk to old clowns.  Author: C-zom Forum: Random lnsanity
* Re: I don't know if I should start a new topic  Author: Brian Forum: Random lnsanity
* Re: I don't know if I should start a new topic  Author: im317 Forum: Random lnsanity
* I don't know if I should start a new topic  Author: Muji111 Forum: Random lnsanity
* Re: This place still exists  Author: Leo Forum: Random lnsanity
* Re: This place still exists  Author: im317 Forum: Random lnsanity
* Re: This place still exists  Author: Leo Forum: Random lnsanity
* Re: This place still exists  Author: im317 Forum: Random lnsanity
* Re: This place still exists  Author: Crazyman93 Forum: Random lnsanity
* Re: This place still exists  Author: Leo Forum: Random lnsanity
* Re: This place still exists  Author: Fake from State Jarm Forum: Random lnsanity
* Re: This place still exists  Author: im317 Forum: Random lnsanity
* Re: This place still exists  Author: Leo Forum: Random lnsanity


SMF 2.0.15 | SMF © 2017, Simple Machines
Scratch Design by DzinerStudio

Page created in 0.071 seconds with 26 queries.
Triumvirate:
Shadow

Head of Foreign Affairs:
Brian

Head of Internal Affairs:
Croix

Head of Military Operations:
im317