egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

wont show the advertisement

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Fire-Fox
Master


Joined: 23 Sep 2006
Posts: 270
Location: /dev/null

PostPosted: Tue Feb 12, 2008 12:54 pm    Post subject: wont show the advertisement Reply with quote

i have the following in my bot but it wont show the text when someone do

!reklame <1> <this is a test> (<1> is the interval it should show the text)


sorry there is some danish language in the code... Smile

Code:
bind pub -|- !reklame pub_lavreklame
bind pub -|- !slet pub_drabreklame

#################
## Lav Reklame ##
#################
proc pub_lavreklame {nick uhost hand chan arg} {
global reklameid reklametid
   
if {![isop $nick $chan]} {putnoobuser $chan $nick ; return 0}
set reklame [join [lrange [split $arg] 1 end]]
set reklametid [join [lrange [split $arg] 0 0]]   
set reklameid($reklame) [timer $reklametid "visreklame $chan \"$reklame\" \"$reklame\""]
putserv "NOTICE $nick : advertisement  \"$reklame\" is now createt with the following interval $reklametid minutte(r)"
}
#################
##     End     ##
#################

##################
## Show advertisement ##
##################
proc visreklame {chan id reklame} {
global reklameid reklametid
set reklame [join [lrange [split $reklame] 0 end]]   
putserv "PRIMSG $chan : 12\[4AliasFM12\] $reklame 12\[4AliasFM12\]"
set reklameid($reklame) [timer $reklametid "visreklame $chan \"$reklame\" \"$reklame\""]
}
#################
##     End     ##
#################

##################
## Dręb Reklame ##
##################
proc pub_drabreklame {nick uhost hand chan arg} {
global reklameid reklametid

if {![isop $nick $chan]} {putnoobuser $chan $nick ; return 0}
set arg [join [lrange [split $arg] 0 end]]
killtimer $reklameid($arg)
putserv "NOTICE $nick : Reklamen \"$arg\" er nu slettet"
}
#################
##     End     ##
#################

putlog "Reklame by Xirg Loaded Edited by Dj-Fire"

_________________
GreatZ
Fire-Fox | Denmark

Scripts: Relay | Store Text | TvMaze
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber