mIRC Home    About    Download    Register    News    Help

Print Thread
#112704 26/02/05 06:40 AM
Joined: Nov 2004
Posts: 332
R
Fjord artisan
OP Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
can you have to identical events with the exception of what they do if they are in two different script files


The Kodokan will move you, one way or another.
#112705 26/02/05 06:46 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Yes, that's fine.

#112706 26/02/05 07:57 AM
Joined: Nov 2004
Posts: 332
R
Fjord artisan
OP Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
thanks


The Kodokan will move you, one way or another.
#112707 26/02/05 08:08 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
lol, you're welcome man. Have you got any suggestions for Custom Window / Query thread.

Here's a print screen.

#112708 26/02/05 08:27 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Why do we need an image about a completely different subject here? :tongue:

#112709 26/02/05 08:52 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
No idea dude, brighten things up I guess. grin

Edit: Image removed.

#112710 26/02/05 01:47 PM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
That would be dudette :tongue:


Gone.
#112711 27/02/05 06:50 AM
Joined: Nov 2004
Posts: 332
R
Fjord artisan
OP Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
i wish i had known you could put thing in seperate remote files to clear up conflicts
i got this hash greeter i wrote
Code:
[color:red]
#HG on
alias HGon {
  if ($group(#greet) == off) {
    enable #greet
    echo 5 -a Hash greet has been turned on.
  }
  else {
    echo 5 -a Hash greet is already on.
  }
}
alias HGoff {
  if ($group(#greet) == on) {
    disable #greet
    echo 5 -a Hash greet has been turned off.
  }
  else {
    acho 5 -a Hash greet is already off.
  }
}
alias HGadd {
  if ($hget(greet)) {
    hadd greet $$1 $$?="Enter the  greeting you want for $1 $+ ."
    echo 5 -a Entry created for $1 $+ .
    hsave greet " $+ $scriptdirgreet.hsh"
  }
  else {
    hmake greet 100
    hadd greet $$1 $$?="Enter the greeting for $1."
    echo 5 -a Entry added for $1 $+ .
    hsave greet " $+ $scriptdirgreet.hsh"
  }
}
alias HGdel {
  if ($hget(greet)) {
    hdel greet $$1
    echo 5 -a Entry for $1 deleted.
  }
  else {
    echo 5 -a Table greet not found.
    echo 5 -a Entry cannot be present.
  }
}
alias HGclear {
  if ($hget(greet)) { hfree greet
    echo 5 -a Table cleared.
  }
}
menu nicklist {
  Hash Greet
  .On Off
  ..HG on:HGon
  ..HG off:HGoff
  .Table  
  ..Add:HGadd $$1
  ..Delete:HGdel $$1
  ..Clear:HGclear
}
#HG end

#greet on
on *:start: {    
  if ($isfile(greet.hsh)) {      
    hmake greet 100    
    hload -o greet greet.hsh  
  }  
  else { 
    hmake greet 100
  }
}
on *:exit: { 
  hsave -o greet " $+ $scriptdirgreet.hsh"  
  hfree greet 
}
on !@*:join:#: {
  if (($hfind(greet, $nick)) && (%bb != on)) {
    msg $chan $nick $+ : $hget(greet, $nick) 
    set -su10 %bb on  
  }
  else { 
    if (%bb != on)    
    msg $chan Type !greet <your greeting here> and i will greet you with that every time you join.
    set -su10 %bb on  
  }
}
on @*:text:!greet *:#: { 
  if (((%aa != on) && ($hget(greet)) && ($len($2-) <= 100))) {  
    hadd greet $nick $$2-
    echo 5 -a Entry created for $nick $+ .    
    hsave -o greet " $+ $scriptdirgreet.hsh" 
    msg $chan $nick $+ 's greeting was set to: $hget(greet, $nick)
    set -su10 %aa on
  }
  else if ((%aa != on) && ($len($2-) <= 100)) { 
    hmake greet 100
    hadd greet $nick $$2- 
    echo 5 -a Entry created for $nick $+ .
    msg $chan $nick $+ 's greeting was set to: $hget(greet, $nick)
    set -su10 %aa on
  }
}
#greet end
[/color]

and rather than putting it in a seperate remote i had to integrate it into things i already had
Code:
[color:red] 
#aliases on
alias HGon {
  if ($group(#greet) == off) {
    enable #greet
    echo 5 -a Hash greet has been turned on.
  }
  else {
    echo 5 -a Hash greet is already on.
  }
}
alias HGoff {
  if ($group(#greet) == on) {
    disable #greet
    echo 5 -a Hash greet has been turned off.
  }
  else {
    acho 5 -a Hash greet is already off.
  }
}
alias HGadd {
  if ($hget(greet)) {
    hadd greet $$1 $$?="Enter the  greeting you want for $1 $+ ."
    echo 5 -a Entry created for $1 $+ .
    hsave greet " $+ $scriptdirgreet.hsh"
  }
  else {
    hmake greet 100
    hadd greet $$1 $$?="Enter the greeting for $1."
    echo 5 -a Entry added for $1 $+ .
    hsave greet " $+ $scriptdirgreet.hsh"
  }
}
alias HGdel {
  if ($hget(greet)) {
    hdel greet $$1
    echo 5 -a Entry for $1 deleted.
  }
  else {
    echo 5 -a Table greet not found.
    echo 5 -a Entry cannot be present.
  }
}
alias HGclear {
  if ($hget(greet)) { 
    hfree greet
    echo 5 -a Table cleared.
  }
}[/color]
alias flooda {
  set -su 5 %i on
}
alias floodb {
  set -su5 %j on
}
[color:red]#aliases end
[/color][color:red]
#HG on
menu nicklist {
  Hash Greet
  .On Off
  ..HG on:HGon
  ..HG off:HGoff
  .Table  
  ..Add:HGadd $$1
  ..Delete:HGdel $$1
  ..Clear:HGclear
}
#HG end
[/color]
[color:red]#greet on
on *:start:{ 
  [/color]//.timer 0 1800 msg #sensei $$!read(babble.txt,n)  
  [color:red]if ($isfile(greet.hsh)) {      
    hmake greet 100    
    hload -o greet greet.hsh  
  }  
  else { 
    hmake greet 100
    hsave -o greet " $+ $scriptdirgreet.hsh" 
  }
}
on *:exit: { 
  hsave -o greet " $+ $scriptdirgreet.hsh" 
  hfree greet 
}
on @*:join:#: {  
  [/color]timer 1 10 mode $chan +l $calc($nick($chan,0) + 1)  
  if ($ulevel >= 3) { mode # +q $nick  
    if ($ulevel == 2) { mode # +o $nick
    }
  }  
  [color:red]if (($hfind(greet, $nick)) && (%bb != on)) {
    msg $chan $nick $+ : $hget(greet, $nick) 
    set -su10 %bb on  
  }
  else { 
    if (%bb != on) {    
      msg $chan Welcome to $chan $+ , $nick $+ . Type !greet <your greeting here> and i will greet you with that every time you join.
      set -su10 %bb on   
    }
  }
}
on @*:text:!greet *:#: { 
  if (((%aa != on) && ($hget(greet)) && ($len($2-) <= 100))) {  
    hadd greet $nick $$2-
    echo 5 -a Entry created for $nick $+ .    
    hsave -o greet " $+ $scriptdirgreet.hsh" 
    msg $chan $nick $+ 's greeting was set to: $hget(greet, $nick)
    set -su10 %aa on
  }
  else if ((%aa != on) && ($len($2-) <= 100)) { 
    hmake greet 100
    hadd greet $nick $$2- 
    echo 5 -a Entry created for $nick $+ .
    msg $chan $nick $+ 's greeting was set to: $hget(greet, $nick)
    set -su10 %aa on
  }
}
#greet end
[/color]

as you can imagine this make fixing problems fun
and nullified the switch i wrote to turn it off because it turns off more than the greeter
so sorry to jump onto another thread but if i split the greeter out into another script file the on joins should no longer conflict with each other correct?
thanks


The Kodokan will move you, one way or another.
#112712 27/02/05 07:45 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
* Andy calls everyone dude. mad

#112713 27/02/05 02:51 PM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Even girls??? grin


Gone.
#112714 27/02/05 03:20 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Yep man even girls.

#112715 27/02/05 07:15 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
/help remote
para 5

You know you should really read it, its not the best help but its not the worst by any means.

#112716 27/02/05 09:02 PM
Joined: Nov 2004
Posts: 332
R
Fjord artisan
OP Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
thanks
just wanted to double check since im starting something new soon


The Kodokan will move you, one way or another.

Link Copied to Clipboard