MashhitDK commented on a Page, funny wale script :D  -  Jan 15, 2012

^ I haven't tested your script... but don't think there is anything wrong..
just the way it's written... would be cleaner to combined all of the text events to one single on :TEXT:
instead of having several on
:TEXT: events

Tell me a little bit about else/elseif/if (very little bit i think i know most of it and do it need end if?)
what do this mean? (!$2) i know $2 but why !?
and do you exactly mean with $strip?
I'll try to... but not sure how to explain... but here goes ->
if - is for checking whatever
elseif - is used to "speed" up the script... when using elseif
else - is used if everything else fails
Ex.

on *:TEXT:!Whale*:#: {
  if ($strip($2) == $nick) { msg # This is just for testing }
  elseif ($nick == $strip($2)) { msg # This is just for testing }
  else { msg # Sorry... no such luck }
}

I know it's a weird example...
But if it was made with just
if - statements both the if and elseif would have replied back
when using if first and the elseif for everything else... only the matched text will "activate" and not anything after.

And (!$2) = ($2 == $null)
It's if 2nd word isn't there / only one word
$strip($2) strips the text for both color and bold + underscore

If you need more help and don't feel like waiting on reply... feel free to drop by #Coders on "My" server ;)

Here is a EDiT of the orginal script... not tested... but if your lucky it's working...

;*** Manually part
menu channel {
  .wales
  ..failwale:failwale #
  ..winwale:winwale #
  ..lovewale:lovewale #
  ..heartwale:heartwale #
  ..wale:wale #
  ..lolwale:lolwale #
  ..coolwale:coolwale #
  ..callme:callme #
}
;*** Other people part
on *:TEXT:!wale*:#: {
  ;*** !Wale
  if (!$2) { .notice $nick try !wale help . }
  ;*** !Wale Credits
  elseif ($strip($2) == CREDiTs) { msg # Everythin is made by DFSFOT except the wales.
    msg # If you know who the wales made, say it Me and I change it you can get this script at www.hawkee.com (search for funny wale script)
  }
  ;*** !Wale help
  elseif ($strip($2) == HELP) {
    .notice $nick welcome to wale help
    .notice $nick Example: !wale <command>
    .notice $nick -
    .notice $nick wale show commands:
    .notice $nick "fail" for failwale (failwale is used %failc times)
    .notice $nick "win" for winwale (winwale is used %winc times)
    .notice $nick "love" for lovewale (lovewale is used %lovec times)
    .notice $nick "heart" for heartwale (heartwale is used %heartc times)
    .notice $nick "nrml" for normal wale (normalwale is used %nrmlc times)
    .notice $nick "lol" for lolwale (lolwale is used %lolc times)
    .notice $nick "cool" for coolwale (coolwale is used %coolc times)
    .notice $nick "callme" for call me wale (callme wale is used %callmec times)
    .notice $nick -
    .notice $nick other commands:
    .notice $nick "stats" shows the stats
    .notice $nick "credits"
    .notice $nick thank you for using!
  }
  ;*** !Wale stats
  elseif ($strip($3) == STATS)  {
    .notice $nick stats:
    .notice $nick failwale is used $iif(%failc,$v1,0) time(s)
    .notice $nick winwale is used $iif(%winc,$v1,0) time(s)
    .notice $nick lovewale is used $iif(%lovec,$v1,0) time(s)
    .notice $nick heartwale is used $iif(%heartc,$v1,0) time(s)
    .notice $nick normalwale is used $iif(%nrmlc,$v1,0) time(s)
    .notice $nick lolwale is used $iif(%lolc,$v1,0) time(s)
    .notice $nick coolwale is used $iif(%coolc,$v1,0) time(s)
    .notice $nick callme wale is used $iif(%callmec,$v1,0) time(s)
    .notice $nick all together = $iif(%allcc,$v1,0) time(s)
  }
  ;*** Wale section
  else { inc %allc
    if ($strip($2) == CallMe) { inc %callmec | CallMe # }
    elseif ($strip($2) == COOL) { inc %coolc | CoolWale # }
    elseif ($strip($2) == LOL) { inc %lolc | LoLWale # }
    elseif ($strip($2) == NRML) { inc %nrmlc | Wale # }
    elseif ($strip($2) == HEART) { inc %heartc | HeartWale # }
    elseif ($strip($2) == LOVE) { inc %winc | LoveWale # }
    elseif ($strip($2) == WiN) { inc %winc | WinWale # }
    elseif ($strip($2) == FAiL) { inc %failc | FailWale # }
  }
}
;*** Aliases
alias failwale {
 msg # ▄███████████▄▐█▄▄▄█▌
 msg # ████▌▄▌▄▐▐▌██▌▀▀██▀
 msg # ██▄█▌▄▌▄▐▐▌▀██▄▄█▌
 msg # ▄▄▄█████████████▀
 msg # ^_^this wale is used %failc times^_^
}

alias winwale {
 msg # ▄███████████▄▐█▄▄▄█▌
 msg # ███▌█ █▐▐▌▀█▐▌▀▀██▀
 msg # ██▄▌▀ ▀▐▐▌█▄▐█▄▄█▌
 msg # ▄▄▄█████████████▀
 msg # ^_^this wale is used %winc times^_^
}
alias lovewale {
 msg # ▄███████████▄▐█▄▄▄█▌
 msg # ███▌█▌▄▐▌█▐▌▄▌▀▀██▀
 msg # ██▄▌▀▌▀▐▌█▐▌▄█▄▄█▌
 msg # ▄▄▄██████▄█▄▄███▀
 msg # ^_^this wale is used %lovec times^_^
}
alias heartwale {
 msg # ▄███████▓▓█▓▓██▄▐█▄▄▄▄█▌
 msg # ████████▓▓▓▓▓███▌▀▀██▀▀
 msg # ████▄████▓▓▓█████▄▄█▌
 msg # ▄▄▄▄▄█████▓████████▀
 msg # ^_^this wale is used %heartc times^_^
}
alias wale {
 msg # ▄██████████████▄▐█▄▄▄▄█▌
 msg # ████████████████▌▀▀██▀▀
 msg # ████▄████████████▄▄█▌
 msg # ▄▄▄▄▄██████████████▀
 msg # ^_^this wale is used %nrmlc times^_^
} 
alias lolwale {
 msg # ▄██████████████▄▐█▄▄▄▄█▌
 msg # ██████▌█▌▄▐▌████▌▀▀██▀▀
 msg # ████▄█▌▀▌▀▐▌▀████▄▄█▌
 msg # ▄▄▄▄▄██████████████▀
 msg # ^_^this wale is used %lolc times^_^
}
alias coolwale {
 msg # ▄██████████████▄▐█▄▄▄▄█▌
 msg # ██████▌▄▌▄▐▌▄▐▌█▌▀▀██▀▀
 msg # ████▄█▌▀▌▀▐▌▀▐▌▀█▄▄█▌
 msg # ▄▄▄▄▄██████████████▀
 msg # ^_^this wale is used %coolc times^_^
}
alias callme {
 msg # ▄██████████████▄▐█▄▄▄▄█▌
 msg # ██████▌▄▌▄▐▌█▌██▌▀▀██▀▀
 msg # ████▄█▌▀▌▄▐▌▀▌▀███▄█▌
 msg # ▄▄▄▄▄██████████████▀

 msg # ▄██████████████▄▐█▄▄▄▄█▌
 msg # ██████▌▄▀▄▐▌__██▌▀▀██▀▀
 msg # ████▄█▌███▐▌▀▀████▄█▌
 msg # ▄▄▄▄▄██████████████▀
 msg # ^_^this wale is used %callmec times^_^
}

NOTE: Haven't added anything to the script... just re-wrote it.
Would suggest using flood protection

 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.