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.

help please

Old posts that have not been replied to for several years.
Locked
C
Carnage69
Halfop
Posts: 64
Joined: Sat Jun 07, 2003 8:25 pm

help please

Post by Carnage69 »

hello i have ben scripting this for a cupple days and i need 2 things on it



set tr "@"
set cc "@"

set nopub "#q3f"

bind pub -|- ${tr}onair login
bind pub -|- ${tr}dj djs
bind pub -|- ${tr}offair logout
bind pub -|- ${tr}cleardj resetdj
bind pub -|- ${tr}request req
bind pub -|- ${tr}shoutout shout
bind pub -|- ${tr}requestdj reqdj
bind pub -|- ${tr}prank pranking
bind pub -|- ${tr}commands help




set qversion "1.5"



proc login {nick host hand chan arg} {
if {![validuser $hand]} {return}
global url pathqstat cc nopub dj
if {[lsearch -exact $nopub [string tolower $chan]] >= 0} {return 0}
set show "$arg"
set dj "$nick"
putserv "privmsg chanserv :#or-radio topic 14,1\\ 4,1oR-0,1Radio14,1 \\4,1 D0,1J: $dj 14,1\\ 4,1S0,1how: $show 14,1\\ 4,1S0,1erver: http://66.227.110.7:8018/listen.pls 0,114,1\\"
}




proc djs {nick host hand chan arg} {
global url pathqstat cc nopub dj
if {[lsearch -exact $nopub [string tolower $chan]] >= 0} {return 0}
if {$arg == ""} {
putserv "PRIVMSG #or-radio :14,1\\ 4,1oR-0,1Radio14,1 \\4,1 D0,1J: $dj 14,1\\"
return 0
}
}

proc req {nick host hand chan arg} {
global url pathqstat cc nopub dj
if {[lsearch -exact $nopub [string tolower $chan]] >= 0} {return 0}
if {$arg == ""} {
putserv notice $nick "To Use Do @Request Your Request Hear"
return 0
}


set songname "$arg"
putserv "PRIVMSG $dj :Request From $nick $songname"
putserv "NOTICE $nick :You have request $songname. Please do not re-request this."
}


proc shout {nick host hand chan arg} {
global url pathqstat cc nopub dj
if {[lsearch -exact $nopub [string tolower $chan]] >= 0} {return 0}
if {$arg == ""} {
putserv notice $nick "To Use Do @Shoutout Your Shoutout Hear."
return 0
}


set shoutout "$arg"
putserv "NOTICE $nick :Your shoutout $shoutout has been sent to the current DJ"
putserv "PRIVMSG $dj :Shoutout From $nick - $shoutout"
}


proc logout {nick host hand chan arg} {
global url pathqstat cc nopub dj
if {[lsearch -exact $nopub [string tolower $chan]] >= 0} {return 0}
if {$dj == "$nick"} {
set dj "None"
set show "None"
putserv "privmsg chanserv :#or-radio topic 14,1\\ 4,1oR-0,1Radio14,1 \\4,1 D0,1J: $dj 14,1\\ 4,1S0,1how: $show 14,1\\ 4,1S0,1erver: http://66.227.110.7:8018/listen.pls 0,114,1\\"
}


proc resetdj {nick host hand chan arg} {
if {![validuser $hand]} {return}
global url pathqstat cc nopub dj
if {[lsearch -exact $nopub [string tolower $chan]] >= 0} {return 0}
set dj "None"
set show "None"
putserv "privmsg chanserv :#or-radio topic 14,1\\ 4,1oR-0,1Radio14,1 \\4,1 D0,1J: $dj 14,1\\ 4,1S0,1how: $show 14,1\\ 4,1S0,1erver: http://66.227.110.7:8018/listen.pls 0,114,1\\"
}
}

proc pranking {nick host hand chan arg} {
global url pathqstat cc nopub dj
if {[lsearch -exact $nopub [string tolower $chan]] >= 0} {return 0}
if {$arg == ""} {
putserv notice $nick "To Use Do @Prank Your Prank Hear."
return 0
}


set prank "$arg"
putserv "NOTICE $nick :Your prank $prank has been sent to the current DJ"
putserv "PRIVMSG $dj :Prank From $nick - $prank"
}

proc help {nick host hand chan arg} {
global url pathqstat tr nopub
if {[lsearch -exact $nopub [string tolower $chan]] >= 0} {return 0}
putserv "PRIVMSG #or-radio : 14,1\\ 4,1oR-0,1Radio14,1 \\0,1 Commands: 4,1@0,1servers 4,1@0,1song 4,1@0,1listeners 4,1@0,1request 4,1@0,1shoutout 4,1@0,1website4,1 @0,1sponsors 4,1 @0,1dj 4,1 @0,1Prank [Only When Doing Pranks] 14,1\\"
return 0
}



1: why doesent help work?
2: when a dj is on air and another sayd onair it puts them on how do i make it do it doesent do that.
C
Carnage69
Halfop
Posts: 64
Joined: Sat Jun 07, 2003 8:25 pm

hello

Post by Carnage69 »

i got one of thos down i just need to know why help doedent work
C
Carnage69
Halfop
Posts: 64
Joined: Sat Jun 07, 2003 8:25 pm

nvm

Post by Carnage69 »

nvm no i dident i still need both
User avatar
arcane
Master
Posts: 280
Joined: Thu Jan 30, 2003 9:18 am
Location: Germany
Contact:

Post by arcane »

does it give you any error messages? if yes, please post them.
aVote page back online!
Check out the most popular voting script for eggdrop bots.

Join the metal tavern!
p
pollar
Voice
Posts: 18
Joined: Thu Jan 09, 2003 12:20 pm
Location: Lithuania

Post by pollar »

You should use:

Code: Select all

\[Only When Doing Pranks\]
instead of

Code: Select all

[Only When Doing Pranks]
When you use [Only When Doing Pranks], you are calling a procedure named Only with 3 args (When, Doing, Pranks). It's wrong for your situation. So replace [ ] with \[ \] and help will work I think... :wink:



I don't understand what exactly you need in your 2nd question. There is my version of the code ...


Code: Select all


proc login {nick host hand chan arg} { 
if {![validuser $hand]} {return} 
global url pathqstat cc nopub dj 
if {[lsearch -exact $nopub [string tolower $chan]] >= 0} {return 0} 
if {$dj!="None"&&[onchan $dj #or-radio]} {
puthelp "PRIVMSG $nick : We already have a DJ :P"
return 0
}
set show "$arg" 
set dj "$nick" 
putserv "privmsg chanserv :#or-radio topic 14,1\\ 4,1oR-0,1Radio14,1 \\4,1 D0,1J: $dj 14,1\\ 4,1S0,1how: $show 14,1\\ 4,1S0,1erver: http://66.227.110.7:8018/listen.pls 0,114,1\\" 
} 




Locked