Sponsored Links


Topic Options
Rate This Topic
#2648 - 07/18/08 12:42 PM Simple, but useful Away script :)
JoeK Offline
n00b

Registered: 07/18/08
Posts: 2
Loc: USA
My First post ^_^
Well this is a script that whenever someone says your name, it will reply with "Hello My Status is : xxx" You can set your status by typing /st <status> by replacing status with what you are doing.
Feel Free to tell me the bugs and anything that needs to be changed
Code:
;; Simple Status Script by JoeK - 1.0
; Note on line 9-10 The first line is just so i dont reply to my bots, feel free to change them :)
;And the next line makes the script only notice it to the user, making it quiet for everyone else :D
; Just Configure line 8 To your name and use /shelp
; My next Version will include an on/off switch and make it so the user can switch 
;Make sure to change the name >:|

on *:TEXT:*JoeK*:# {
  if ($nick == Piff || $nick == Puff || $nick == Ch-rpg| || $nick == Cibby) { .msg $chan $nick }
  else if ($chan == #help) { HALT }
  else { 
    msg $chan Hello $nick. My status is : %hstat
  }
}

alias shelp {
  echo /st <reason>
}
alias st {
  set %hstat $$1-
  echo Status Set to : $$1-
}


Edited by JoeK (07/18/08 12:51 PM)

Top
Sponsored Links
Sponsored Links
Member
*****

Registered: 27/08/04
Posts: 10136
Loc: Mountain View, CA
Top
#2649 - 07/18/08 12:47 PM Re: Simple, but useful Away script :) [Re: JoeK]
tengrrl Offline
Over 50 posts

Registered: 11/01/07
Posts: 50
Loc: Illinois
Nice script. Just a reminder though: Some channels do not allow away messages (like #help and #chris). Is there a way to adjust the script so that you could add a list of channels where the away message is NOT displayed?
Tengrrl

Top
#2650 - 07/18/08 12:58 PM Re: Simple, but useful Away script :) [Re: tengrrl]
Karol Offline
newbie

Registered: 01/05/08
Posts: 28
Loc: Connecticut
Over if ($nick == Piff || $nick == Puff || $nick == Ch-rpg| || $nick == Cibby) { .msg $chan $nick }

You can put: if ($network == networkname) || ($network == anothernetwork)

Of course you don't have to, but if you want it to have it for a certain network, it can be useful. So it will look like this:

Code:
on *:TEXT:*JoeK*:# {
 if ($network == networkname) || ($network == anotherone) 
if ($nick == Piff || $nick == Puff || $nick == Ch-rpg| || $nick == Cibby) { .msg $chan $nick }
  else if ($chan == #help) { .notice $nick Hello $nick. My Status is : %hstat }
  else { 
    msg $chan Hello $nick. My status is : %hstat
  }
}

alias shelp {
  echo /st <reason>
}
alias st {
  set %hstat $$1-
  echo Status Set to : $$1-
}


But it won't help tengrrl's question, I'm just posting for everyone to see smile

Karol




Edited by Karol (07/18/08 01:07 PM)
_________________________
Join #karol ! Growing everyday!

Top
#2651 - 07/18/08 01:11 PM Re: Simple, but useful Away script :) [Re: tengrrl]
JoeK Offline
n00b

Registered: 07/18/08
Posts: 2
Loc: USA
Originally Posted By: tengrrl
Nice script. Just a reminder though: Some channels do not allow away messages (like #help and #chris). Is there a way to adjust the script so that you could add a list of channels where the away message is NOT displayed?
Tengrrl


Of course, its easy :
Code:
  else if ($chan == #help || $chan == #chris) { HALT }

To add a new channel just erase the last )
And put || $chan == #chanhere and after the last channel you added, put a )
laugh


Edited by JoeK (07/18/08 01:12 PM)

Top
#2658 - 07/18/08 05:43 PM Re: Simple, but useful Away script :) [Re: JoeK]
iPhone Offline
Over 50 posts

Registered: 03/08/08
Posts: 94
Loc: New Jersey
yeah its a pretty cool script, but it does get annoying when like you put that you're away and then like 20 seconds later you come back, and go away again. I personally think you should change your nick to |away or |afk better than the away script. Its less annoying and more people know that you are away =D
_________________________
-Kevin C. Nunez, CEO and Founder of #iPhone on WyldRyde

Top
#2661 - 07/18/08 06:13 PM Re: Simple, but useful Away script :) [Re: iPhone]
Jerry Offline
newbie

Registered: 04/27/08
Posts: 26
Loc: New Jeresy, USA
But the thing is with scripts like that, they can be configured to respond on a highlight. So people can be more informed of when you will be back. Because jthermane24|away could mean that I could be away for a minute or an hour.
_________________________
--Jerry Smith
#Jerry, #macfan406, #iPhone, #nick
http://jerrysmith.us.to

Top


Recent Posts
Happy birthday usrbingeek!
by sbushfan11
Today at 03:42 PM
MyNick
by KtecK
Today at 08:50 AM
Automated Ban removal
by iPhone
Yesterday at 11:32 PM
Linkinus Help
by iPhone
Yesterday at 11:29 PM
Who uses Twitter?
by techman224
Yesterday at 11:15 PM
Thank You Moderators
by iPhone
Yesterday at 10:11 PM
Hello, And Welcome To The #SamF Forums
by techman224
Yesterday at 09:01 PM
Trigger Script.
by jwire4
Yesterday at 04:16 PM
How do I identify on Rooms app for iPhone?
by iPhone
Yesterday at 04:09 PM
Topic setter's username is appended to topic
by techman224
Yesterday at 02:59 PM
Away notification script
by evanrocks010
Yesterday at 02:43 PM
Im having trouble with mode commands
by techman224
Yesterday at 02:31 PM
Recent Pics
Old school IRC
How to use Google!
TIX
Who's Online
1 Registered (1 invisible), 9 Guests and 9 Spiders online.
Key: Admin, Global Mod, Mod
Top Posters
usrbingeek 431
Kat 233
iPhone 94
Phil 87
Freekie 78
CCMike 66
techman224 64
Justin 59
wirelesspacket 52
tengrrl 50
Terms Of Use
Use of this community signifies your agreement to the Terms Of Service and Conditions of Use.