Post reply

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.
Name:
Email:
Subject:
Message icon:

Verification:

shortcuts: hit alt+s to submit/post or alt+p to preview


Topic Summary

Posted by: Leon_Rahil
« on: February 20, 2011, 01:12:48 am »

Why don't you use:
Code: [Select]
alias {

}
instead of:
Code: [Select]
on *:input:*: {

}
Posted by: morbid
« on: February 16, 2011, 08:59:42 pm »

Eh   I don't mess with bots very much.
Posted by: Jane
« on: February 16, 2011, 08:52:31 pm »

It's a Good and useful one, but it would be better if it was added to bot :)
Posted by: morbid
« on: February 16, 2011, 04:58:02 pm »


Type /a reason
to go away


and /b
to come back

Code: [Select]
on 1:input:*:{
  IF ($1 == /a ) {
    set %away.reason $2-
    if %away.reason == $null { set %away.reason %default }
    nick AWAY NICK  HERE
    msg $active 14,1:15,1|14,1:0,1Away12,1:0,1 %away.reason
    away %away.reason
    halt
  }
  ELSEIF ($1 == /b ) {
    nick MAIN NICK HERE
    pass PASSWORD HERE OR SET AS VARIABLE WITH %p
    msg $active  14,1:15,1|14,1:0,1Back12,1:0,1 %away.reason 12,1/0,1Time12,1:0,1 $Duration($awaytime)
    away
    halt
  }
  else {
    return
  }
}

Quote
:|: 10:57 :|: |@ morbid | :|:Away: Test
:|: morbid / [away].
:|: 10:57 :|: |@ [away] | :|:Back: Test /Time: 3secs
:|: [away] / morbid.