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.

Topic changer

Old posts that have not been replied to for several years.
Locked
m
magic

Topic changer

Post by magic »

Hello,

i'm searchin for a script which lets my eggdrop change the channel topic on Q-net..

For example.

The bot writes the following into the chan

!settopic %string1% %string2% %string3%

!settopic oasis time players

the topic would be

Welcome to bla bla. Server Running --> Map: oasis .........

is this possible?

ty 4 reading
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

Use !settopic without anything behind it to set it to Oasis, 30 minutes and 20 maxplayers.

use !settopic <map> <time> <players> to set it in the topic to that, But you can also use just !settopic <map> to set it to <map> 30 minutes, 20 players.
Or ofcourse !settopic <map> <time> to set it to <map> <time> and 20 players.

Have fun :p

Code: Select all

# The default settings incase you don't want to enter something :p
# Default map. If you don't specify a map it will set it to this.
set defaultmap "Oasis"
# Default map time (again this only works if you don't enter a time
set defaulttime "30"
# Default max players. Obvious :P
set defaultplayers "20"

bind pub m|o !settopic topic:change
proc topic:change { nickname hostname handle channel arguments } {
global defaultmap defaulttime defaultplayers
set map [lindex [split $arguments] 0]
if {$map == ""} {
set map $defaultmap
}
set time [lindex [split $arguments] 1]
if {$time == ""} {
set time $defaulttime
}
set players [lindex [split $arguments] 2]
if {$players == ""} {
set players $defaultplayers
}
putquick "TOPIC $channel :Welcome to $channel. Server is running --> Next: $map || $time min. || $players."
}
m
magic

Post by magic »

thhhhnx a lot, gonna try this now :)

will report my success :)


EDIT:

ok got the following prob.

(17:29:06) (@Jump|Heaven) Server startet with Map labstrickjump
(17:29:06) (@Jump|Heaven) !settopic labstrickjump

the bot says "!settopic labstrickjump"

but nothing happens.

When i'am saying:
(17:29:30) (@ET`n4p) !settopic labstrickjump

(17:29:32) :::: Topic: Jump|Heaven changed it to: [ Welcome to #nwo4life. Server is running --> Next: labstrickjump || 30 min. || 20. ]

this works fine.

how can i fix this?
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

Its because the bot doesnt respond to his own command?
Join my channel on quakenet and i'll help you out :)
#v1per on Quakenet
m
magic

Post by magic »

<< idlt da mal und meldet sich wenner da ist :)

<< ET`n4p
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

tippen Sie englisches ein :P
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
arcane
Master
Posts: 280
Joined: Thu Jan 30, 2003 9:18 am
Location: Germany
Contact:

Post by arcane »

:mrgreen: wieso? ich versteh alles ^^

anyway, what he was saying was: maybe he will visit the chan (at least i think so ;))
aVote page back online!
Check out the most popular voting script for eggdrop bots.

Join the metal tavern!
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

LOL ... I know you understand everything arcane. :)

My German is a little rusty (?) but it appears he'll accept MeTroiD's invitation. :D
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
arcane
Master
Posts: 280
Joined: Thu Jan 30, 2003 9:18 am
Location: Germany
Contact:

Post by arcane »

i guess you're right (although his german is quite bad :mrgreen:)
:D
aVote page back online!
Check out the most popular voting script for eggdrop bots.

Join the metal tavern!
Locked