mIRC Home    About    Download    Register    News    Help

Print Thread
#132411 10/10/05 01:26 PM
B
Bossen
Bossen
B
Hi!
i need help to get the !greet to work!

i dont get it to!
can some help me to wat i shud do?
Plizz!

#132412 10/10/05 02:03 PM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
!greet isn't a mIRC command. It is something from a script. If your channel has a script running that allows users to type !greet, then the script may only allow you to use it if you're an op or a voice or a specific user. You'd have to talk to whoever runs the script.

If you meant that you want a script to do it yourself, you should really provide details about what !greet is supposed to do. Here is a simple example of what might be a !greet script that may be similar to what you want...

Code:
on *:input:*: {
  if ($1 == !greet) {
    if ($2 == $null || $2 !ison $chan) { echo -a You need to specify a nick who is in the channel you're typing this command in. | return }
    .notice $2 Welcome to the channel.
  }
}


For this, you include it in Alt-R > File > New. Then, you type !greet nick and it will notice the message to the nick that you specified (the red text). This only works for you.

If you wanted something else, please provide details of exactly what you want. We don't read minds here. smile

#132413 10/10/05 02:09 PM
B
Bossen
Bossen
B
i whant to have the scrip!

and i mean this!

Type !greet <your greeting here> and i will greet you with that every time you join.


Ho can i get this script?
plizz help me!

#132414 10/10/05 02:27 PM
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
first run this script by typing /greetsetup

Code:

alias greetsetup {
hmake greet 30
hsave greet.hsh
echo -a You have setup greet.hsh
}

on *:JOIN:#: {
if ($nick == $me) &amp;&amp; ($exists(greet.hsh) == $true) {
hmake greet 30
hload greet greet.hsh
}
if ($nick == $hfind(greet,$nick)) { msg $chan [ $+ Greet: $hget(greet,$nick) $+ ]
}
}

on *:TEXT:*:#: {
if ($1 == !greet) {
hadd greet $nick $2
hsave greet greet.hsh
}
}



had noticed my bracket mismatch

#132415 10/10/05 02:33 PM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
And, if you just want a single greeting for everyone rather than different nicks, you can use:

Code:
on *:input:*: {
  if ($1 == !greet &amp;&amp; $2 != $null) {
    set %greeting $2-
  }
}

on *:join:[color:red]#yourchan[/color]: {
  if (%greeting != $null) {
    .notice $nick %greeting
  }
}


Note that only you can set the !greet message. If you want others to do so, you need to use this with on text. I can provide that as well if you need it.

#132416 10/10/05 06:41 PM
B
Bossen
Bossen
B
Hi dont get it to work!
what is rong?

<Urge|Coca|cola|> !greet testing...
<coca|cola|> Urge|Coca|cola|'s greeting was set to: testing...
<coca|cola|> Urge|Coca|cola|'s greeting was set to: testing...
<coca|cola|> Urge|Coca|cola|'s greeting was set to: testing...

* Urge|Coca|cola| has left #yyhy
* Urge|Coca|cola| has joined #yyhy

Problem:
1: i dont get the msg Type !greet <your greeting here> and i will greet you with that every time you join.

2: it come up 3 times this ( <coca|cola|> Urge|Coca|cola|'s greeting was set to: testing... )

3: when i join he dont get the greet!

Plizz help!

#132417 10/10/05 06:55 PM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
What code are you using? Neither code given to you here displays a message about what the greeting was set to...

This part is not anywhere in the scripts given to you here:
<nick>'s greeting was set to: <greeting>

#132418 10/10/05 07:01 PM
B
Bossen
Bossen
B
I have this in my Remote window:

alias greetsetup {
hmake greet 30
hsave greet.hsh
echo -a You have setup greet.hsh
}

on *:JOIN:#: {
if ($nick == $me) && ($exists(greet.hsh) == $true) {
hmake greet 30
hload greet greet.hsh
}
if ($nick == $hfind(greet,$nick)) { msg $chan [ $+ Greet: $hget(greet,$nick) $+ ]
}
}

on *:TEXT:*:#: {
if ($1 == !greet) {
hadd greet $nick $2
hsave greet greet.hsh
}
}

<nick>'s greeting was set to: <greeting>

#132419 10/10/05 07:33 PM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Check for another !greet script. The output you have is not coming from the script you just pasted. Search your scripts by pressing Ctrl-F (while in Alt-R) and search for !greet and have the checkbox to "search all files in this section" checked.

Find wherever the other script is and remove it.

#132420 10/10/05 09:21 PM
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Yeah man both scripts work swell unless like riamus said you might have doubles i tryed his as well has mine and there flawless(using term losely)

#132421 11/10/05 02:56 PM
B
Bossen
Bossen
B
hmm i need help!

come on mirc to help me!

Channel : #Bossen

use this network:


#132422 11/10/05 03:04 PM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
You are probably better off just asking here. I, for one, can't go running around servers trying to help out there.

Besides, the issue you are having (unless it's something different now) is with your scripts and being in the channel with you won't help since we can't see your scripts there any more than we could here.

If you are still having trouble with !greet, do as I said and search for all instances of !greet (**With the checkbox for searching all files checked!!!**). You should only find one. If you find more than one, you need to get rid of the extra copy.

I think what you did was tried using the !greet script from that post many pages ago and then put this into the same file as that one. You can't use both scripts.

#132423 11/10/05 03:06 PM
B
Bossen
Bossen
B
it is just 1 !greet
i dont get what the problem is!
can some one help me?
give me the copy i shud just copy in my REMOTE!
maybe it work!

#132424 11/10/05 03:39 PM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
You can use either Lpfix5's or mine. His allows you to set greetings for individual nicks. Mine sets a single greeting for everyone. Choose whichever one you want to use.

They both will work fine.

Put one of them in Alt-R > File > New. Never put a script in the same file as another script unless you are absolutely sure they will not conflict.

Note that if you still get a message about "greeting was set to", then you do still have another script loaded. You can try Alt-R > Ctrl-F and then type in "greeting was set to" (no quotes) in the box and make sure the checkbox for searching all files is checked. You would then be able to find where the other greeting is. If you don't see it there, click the Aliases tab and press Ctrl-F and repeat.

Because neither of these scripts has that text in them, they can't create such text.


Link Copied to Clipboard