mIRC Home    About    Download    Register    News    Help

Print Thread
#116428 04/04/05 07:04 PM
Joined: Apr 2005
Posts: 3
D
doggy Offline OP
Self-satisified door
OP Offline
Self-satisified door
D
Joined: Apr 2005
Posts: 3
i havnt mastered all commands on irc yet. could someone please make a simple script so when i type !away gone fishing my status will be changed and a message like "*doggy has gone fishing" and when i type !back my status will be online and a message "*doggy is now back" plz im not very good at irc commands yet.

#116429 04/04/05 09:22 PM
Joined: Oct 2004
Posts: 31
B
Ameglian cow
Offline
Ameglian cow
B
Joined: Oct 2004
Posts: 31
menu channel {
.Away
.Away: /set %reason $?="Away reason:" | /away %reason | /ame is away. Reason: %reason | /unset %reason
:back. /away | /ame is back from away!
}

Put that in Scripts Editor --> Remote


Bear

#116430 05/04/05 02:02 PM
Joined: Apr 2005
Posts: 3
D
doggy Offline OP
Self-satisified door
OP Offline
Self-satisified door
D
Joined: Apr 2005
Posts: 3
thanx alot now i know sort of how it works laugh but i had to change some things like you wrote :back. insted of .back: anyway.. this is how it looks now:
Code:
 menu channel {
  .Away
  .Away: if %reason != %null /halt | /set %reason $?="Away reason:" | /away %reason | /ame is away. Reason: %reason 
  .back: if %reason == %null /halt | /away | /ame is back from: %reason | /unset %reason
}  

as you can see i made so you cant go away twice or go back twice.

#116431 05/04/05 03:15 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
I attempted to do something similar to what bearruler helped you with.. It doesn't have a menu for both away and back. When your away it changes to back vice versa.

Code:
menu channel {
  -
  $aaway : {
    if ($aaway == Away) {
      set %away $$?="Away msg:" 
      if (%away) { away %away | ame is away reason: %away  }
    }
    if ($aaway == Back) {
      away | ame is now back from: %away 
    }
  }
  -
}

alias aaway {
  if (!$away) return Away
  return Back
}

Last edited by SladeKraven; 05/04/05 03:23 PM.

Link Copied to Clipboard