mIRC Home    About    Download    Register    News    Help

Print Thread
#105383 15/12/04 09:47 AM
Joined: Dec 2004
Posts: 7
L
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Dec 2004
Posts: 7
I'm sure this has been answered before, but none of my searches have found it...

I'm trying to make a script that uses a variable to set my AFK and at keyboard states... i did that via popups.

Code:
.Set as AFK: {
  %AFK = true
  /echo 10* You are now marked as AFK.
  /gtalk -k Al-Jibob Ok boss, see you in a bit. i'll handle things around here.
}

Code:
.Set as AK: {
  %AFK = false
  /echo 10* You are now marked as AK.
  /gtalk -k Al-Jibob Welcome back boss.
}   


%AFK is defined in my variables section.

Then i made a basic script to say "I'm AFK, be back later." if someone says my name.

Code:
on *:TEXT:*liz*:#: {
  if(%AFK == true) {

    /echo 10* Auto-Responded to a name.
    /say I'm AFK at the moment. i'll be back later.
  }
}  


this is all straight from my scripts.

for some reason, wihtout any warning or anytthing like what i was after, it fires and i look extremely stupid in the middle of a conversation. regardless of if i've set myself as AK or AFK.

#105384 15/12/04 10:08 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Main thing is spacing
  • if(%AFK == true) {

Code:
on *:TEXT:*liz*:#: {
[color:blue]  if (%AFK[/color] == true) {
    echo 10* Auto-Responded to a name.
    msg # I'm AFK at the moment. i'll be back later.
  }
}[/color]


Link Copied to Clipboard