This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

how do i add multiple commands to this

Old posts that have not been replied to for several years.
Locked
r
roee12031

how do i add multiple commands to this

Post by roee12031 »

here is my code

Code: Select all

set our_chan "#clanrdn"

#on join message
bind join - * intro
proc intro {nick uhost hand chan {msg ""}} {
	global our_chan
	if {$chan != $our_chan} {
			return 0
}
putquick "NOTICE $nick :Welcome to the Home of Rox da Noobs <<--RdN-->> Plz add to auto-perform, THX"
return 1
}

now what i want to do is on joinin, give them more notices so that they are separte lines or notices, i tried adding anohter putquick command but the bot only does the frist one, what do i do
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

NOTE:
This is the same forum. So please don't post messages twice. If they need to be moved to the correct forum, they will be.

As for the problem.

Can you paste the exact code used, that produces only one line of output.

Eggdrop has a system, where it discards messages that are exactly the same. The problem may be, that you are using a duplicate line as a test case.
r
roee12031

Post by roee12031 »

Code: Select all

set our_chan "#clanrdn"

##### This is a welcome message when somone joins channel
bind join - * intro
proc intro {nick uhost hand chan {msg ""}} {
	global our_chan
	if {$chan != $our_chan} { return 0 }
putquick "NOTICE $nick :Welcome to the Home of Rox da Noobs <<--RdN-->> Plz add to auto-perform, THX"
putquick "NOTICE $nick :For a list of commands type @menu"
}
return 0	
}
i want the person be noticed 2x with the previous info, only when i use this scirpt nuthing happens, im wondering whats wrong with it
r
roee12031

fixing post

Post by roee12031 »

the extra bracket was a typo, the brackets are fine, its the actual code
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Try using "puthelp" rather than putquick.
putquick <text> [options]
Description: sends text to the server, like 'putserv', but it uses a
different (and faster) queue.
Options:
-next: push messages to the front of the queue
-normal: no effect
Returns: nothing
Module: server
This queue could flood the bot off, thus you should be using puthelp, as noted in tcl-commands.doc.

There is also no need for the {msg ""} in the proc line. A join does not send any other text.
r
roee12031

meh = teh dummeh

Post by roee12031 »

lol, well i found out what my problem was, its correct to use putquick , i man all those commands (puthelp, putquick put... ) send data out but in diff methods, ne who, its the stupid returns that were messing me up, the correct code is

Code: Select all

proc do_notice_on_join {nick host hand chan} {
  putquick "NOTICE $nick :Welcome $nick to the HOme of Rox da Noobs -->RdN<-- pleaze add to ur auto-perform, Thx"
  puthelp "NOTICE $nick :If you need any help of any kind or need to speak with any ops simply pm the bot : /msg RdN-Bot <and ask your question or state what u need>"
  puthelp "NOTICE $nick :Type @menu for a listing of commands."
 }
that worx wonderfully, thx for all who helpped, special thx to papillon for contacting me and helping me greatly, thx bud!!!
Locked