mIRC Homepage
Posted By: lizardthang AFK script - 15/12/04 09:47 AM
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.
Posted By: Iori Re: AFK script - 15/12/04 10:08 AM
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]
© mIRC Discussion Forums