mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2006
Posts: 14
P
Pikka bird
OP Offline
Pikka bird
P
Joined: Jul 2006
Posts: 14
Hello.

I have a script like that :

/var %totou=1
%totou=1
on 1:CONNECT:{
...
if ( %totou > 1 ) {
...
}
%totou = 1
}

on 1:DISCONNECT:{
/partall
%totou = 8
}



the problem is when i disconect to the server to close mirc, the var %totou stays to 8.

So, next time i launch mirc, the var %totou is set at 8.

what can i do that set %totou to 1 EACH time i launch mirc ? (i want it to be to 8 only when i am disconected from the server. not when i launch mirc).

Thank you for your help.

PS. i am sorry my english is very bad

Joined: Jul 2005
Posts: 25
U
Ameglian cow
Offline
Ameglian cow
U
Joined: Jul 2005
Posts: 25
you replace

Code:
 /var %totou=1 

to
Code:
 /var %totou = 1 

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
/SET %totou 1

or just

%totou = 1

* since VAR well make it local, and thus be destroyed on script execution completion.

Joined: Jul 2006
Posts: 14
P
Pikka bird
OP Offline
Pikka bird
P
Joined: Jul 2006
Posts: 14
Hello.

it still does not work.

When i launc mirc, it still remember that %totou is 8 and don't put %totou to 1 when i launch mirc.

is there an event that trigger when i launch mirc ? So i can put %totou to 1 each time i lunch mirc ?

This is all i want... that each time i launch mirc, %totou is set to 1

Joined: Apr 2006
Posts: 464
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
Simple
Code:
on 1:START:{
   set %totou 1
}


Good luck


Link Copied to Clipboard