slub77 commented on a Page, Simple kick ban or warn script  -  Jan 09, 2010

@jethro_ i have edited my help snippet now anyways, stored it in an ini file allowing multiple help much quicker

on *:TEXT:*:*:{
  if $1 == Shelp {
    if $readini(help.ini, help, $2) {
      notice $nick  $2 : $readini(help.ini, help, $2)
    notice $nick For more help go to http://www.soldercom.tk }
    else { notice $nick No commands have been saved with that name sorry }
  }
  else { halt }
}

menu * {
  Help with actions
  .Add Word:{
    var %word $?="Enter the actions name"
    var %help $?="Enter the help for that word"

    writeini help.ini Help %word %help
  }
  .Del word:{
    var %word $?="Enter the actions name"

    if !$readini(help.ini, help, %word) { Echo No words have Been  saved with %word }
    else {
      echo $?!=" %word Has been fount Def: $readini(help.ini, help, %word) : Are you Sure you want to delete? "
      if $! = $true {
        remini help.ini help %word
      echo %word has been removed }
      else { echo %word was not removed }

    }
  }
  .$iif($file(help.ini).size <= 8,$style(2)) Word infomation:{
    var %word $?="Enter the actions name"

    if !$readini(help.ini, help, %word) { Echo No words have Been  saved with %word }
    else { Echo %word Has been fount Def: $readini(help.ini, help, %word) }

  }

}

see alot more simple.

And since i make a new help for each action i make it was kind of making my remotes page look bleak and annoying, having to add an

if $1--3 == word { action }

each time got boring so i made it easier on my self :)

 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.