mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 2 1 2
Joined: Aug 2004
Posts: 43
C
Crosz Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Aug 2004
Posts: 43
hi my bot that am making says this

on 1:op:#:/msg $chan Thanks $nick We need more Operators in here ...................Please Welcome one of our Operators
on 1:deop:#:/msg $chan Ok am not even ging to ask you why $nick .......................If you lost it you know theres a reason!

ineed to know what to put in place of op so i can make it say stuff for +a and +q
i have voice and device
i take it halfop is hop and dehop?
or is it halfop and dehalfop?

any help would be great thanks

Joined: Mar 2004
Posts: 540
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
On *:help:
on *:dehelp:
For halfop - Its in on OP/DEOP - in the help file. For a and q youd have to watch for rawmode
Help File
Quote:

on RAWMODE

on @1:RAWMODE:#:/echo $chan Raw mode line: $nick set $1-

The on RAWMODE event allows you to parse the raw mode change yourself, the raw mode text is in $1-.

You can use the $mode(N) identifier with these events to list the nicks that are being affected.

Joined: Aug 2004
Posts: 43
C
Crosz Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Aug 2004
Posts: 43
thanks for the very fast replay smile this forum rocks.

Joined: Mar 2004
Posts: 540
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
No problem :tongue:

Joined: Aug 2004
Posts: 43
C
Crosz Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Aug 2004
Posts: 43
One thing with the raw comand it flags every event. i dont want the bot to say +this to that user. Am making an answer for each task. like the bot says something funy on a deop or good to see user has been givin` protection by op

is there no single event for +a or +q

help one was great just what i needed.
thanks again.

Joined: Mar 2004
Posts: 540
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
Check out this post its a few down. Here

Joined: Aug 2004
Posts: 43
C
Crosz Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Aug 2004
Posts: 43
ok thanks again

i got this worked out so far now

on 1:rawmode:#: if (+a === $1) { /msg $chan great hilly oppessss something a }
on 1:rawmode:#: if (+q === $1) { /msg $chan good stufff hoopppyy protection q }

it shows me the a message (great hilly oppessss something a ) but not the q
same code or have i missed something out?

Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
try:

Code:
on 1:rawmode:#: {
  if (+a === $1) { /msg $chan great hilly oppessss something a }
  if (+q === $1) { /msg $chan good stufff hoopppyy protection q }
}


See if that works


Those who fail history are doomed to repeat it
Joined: Aug 2004
Posts: 43
C
Crosz Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Aug 2004
Posts: 43
nope flags on the q with an error

a still works fine.

Joined: Mar 2004
Posts: 540
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
Whats the error?

Joined: Aug 2004
Posts: 43
C
Crosz Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Aug 2004
Posts: 43
all the code on the remote page after the end of q line moves 3 spaces to the right hand site to show you where the error is and the rest of my code goes crazy my bot messages me with my other code for pm answers

Joined: Mar 2004
Posts: 540
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
You havent closed a script. Click the {} button after the Goto Line button in the editor

Joined: Aug 2004
Posts: 43
C
Crosz Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Aug 2004
Posts: 43
if i use it your way it dot work all i gets a if i do it this way i get q but no a lol

on 1:rawmode:#: { if (+a === $1) { /msg $chan great hilly oppessss something a }
on 1:rawmode:#: { if (+q === $1) { /msg $chan good stufff hoopppyy protection q }

i tried adding another bracket at the end of a it still flags the end of the a line

Joined: Mar 2004
Posts: 540
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
Code:
  on *:rawmode:#: {
  if (+*a* iswmcs $1) {
    msg $chan Thanks for the +a
  }
  elseif (+*q* iswmcs $1) {
    msg $chan thanks for the +q
  }
}

That works fine here
Edit:
(Tue 10:11:54 pm) <~Static> thanks for the +q
(Tue 10:12:53 pm) * Static sets mode: -q Static
(Tue 10:13:01 pm) <@Static> !owner
(Tue 10:13:01 pm) * Bot sets mode: +q Static
(Tue 10:13:01 pm) <~Static> thanks for the +q
(Tue 10:13:06 pm) <~Static> !protect
(Tue 10:13:06 pm) * Bot sets mode: +a Static
(Tue 10:13:06 pm) <~Static> Thanks for the +a
(Tue 10:13:22 pm) <~Static> !deprotect
(Tue 10:13:22 pm) * Bot sets mode: -a Static

Last edited by Armada; 25/08/04 03:11 AM.
Joined: Aug 2004
Posts: 43
C
Crosz Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Aug 2004
Posts: 43
none of that worked no a or q now

Joined: Mar 2004
Posts: 540
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
Paste exactly what you have

Joined: Aug 2004
Posts: 43
C
Crosz Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Aug 2004
Posts: 43
;CroszNet Bot Super Script V1.1
;June 2004
;By
;Crosz@ http://cdg.servemp3.com

on 1:text:*Crosz*:#:{ .msg Crosz Yor name was metioned by $nick on the channel $chan !! }
on 1:text:*Garfy*:#:{ .msg Garfy Yor name was metioned by $nick on the channel $chan !! }
on 1:text:*help*:#:{ .msg $nick What your problem? See if i cant help you mate. } | /msg $chan Please Check Your Message Window I Am Now Opening A Help Section With You $nick !!!!
on 1:voice:#:/msg $chan Thanks $nick We need more voiced users .....................Welcome in the speaking world!
on 1:devoice:#:/msg $chan Well $nick that was a bit much i though .....................Goodbye from the speaking world!
on 1:op:#:/msg $chan Thanks $nick We need more Operators in here ...................Please Welcome one of our Operators
on 1:deop:#:/msg $chan Ok am not even going to ask you why $nick .......................If you lost it you know theres a reason!
on 1:help:#:/msg $chan Thanks $nick We need more help in here ............................Please Welcome one of our Help Staff
on 1:dhelp:#:/msg $chan Ok am not even going to ask you why $nick .......................If you lost it you know theres a reason!
on 1:Kick:#:/msg $chan Holy molly! $nick Feet never even touched the gound there. let that be a lesson to all
on 1:ban:#:/msg $chan Well done $nick a ban is just what they need cool them of and give us time to get back to normal.
on 1:unban:#:/msg $chan $nick Are you sure you want to unban? Is that such a great idea after last time.

on *:rawmode:#: { if (+*a* iswmcs $1) { msg $chan Thanks for the +a } elseif (+*q* iswmcs $1) { msg $chan thanks for the +q }}



on 1:TOPIC:#:/msg $chan Wow $nick Thats gonna take some beatin`, I love the new topic!
on 1:text:!autogreet on:?:{ .enable #greet | /msg $nick The auto-greet is now switched ON }
on 1:text:!autogreet off:?:{ .disable #greet | /msg $nick The auto-greet is now switched OFF }
on 1:text:!bot-talk on:?:{ .enable #talk | /msg $nick The bot talk is now switched ON }
on 1:text:!bot-talk off:?:{ .disable #talk | /msg $nick The bot talk is now switched OFF }
on 1:text:!msg me on:?:{ .enable #msg | /msg $nick The auto-msg is now switched ON }
on 1:text:!msg me off:?:{ .disable #msg | /msg $nick The auto-msg is now switched OFF }

#greet on
on 1:JOIN:#:{ .notice $nick Hi there $nick, Welcome to $chan For Help at any time please type !help for a list of commands!! }
#greet end

#msg on
on 1:text:*feck me*:?:{ /msg $nick feck you dick head }
on 1:text::*seen*:?:{ /msg $nick try #CroszChat, #HelpDesk, #Services, CroszNet, or the #Opers $nick you might find them in there somewhere!! }
on 1:text:*more people*:?:{ /msg $nick This is boring without people! #:o( }
on 1:text:*kewl*:?:{ /msg $nick So kewl!! #:o) }

#msg end

#talk off
on 1:text:*seen*:#:/msg $chan try #CroszChat, #HelpDesk, #Services, CroszNet, or the #Opers $nick you might find them in there somewhere!!
on 1:text:*more people*:#:/msg $chan This is boring without people! #:o(
on 1:text:*kewl*:#:/msg $chan So kewl!! #:o)


on 1:text:*what do you like to do*:#:/msg $chan I like to Surf and party #:o)
on 1:text:*so whats new*:#:/msg $chan Not much, just not many peple to talk to #:o(
on 1:text:*school*:#:/msg $chan School sucks I hate it! #:o{}
on 1:text:*why*:#:/msg $chan Because i say so! #:oP~
on 1:text:*bye*:#:/msg $chan Bye $nick see you soon
on 1:text:*later*:#:/msg $chan Bye $nick come to chat again
on 1:text:*what*:#:/msg $chan what, I don`t know haha!
on 1:text:*no*:#:/msg $chan you sure
on 1:text:*yes*:#:/msg $chan ok, i see
on 1:text:*who are you*:#:/msg $chan I am an artificial intelligence lifeform for chat!
on 1:text:*you suck*:#:/msg $chan NO you do $nick
on 1:text:*thanks*:#:/msg $chan your welcome!
on 1:text:*thank you*:#:/msg $chan your welcome!
on 1:text:*hows it going*:#:/msg $chan Its going ok i guess
on 1:text:*good*:#:/msg $chan yeah!
on 1:text:*hate*:#:/msg $chan Love will bring us all closer together. You wait and see, I am a nice bot!
on 1:text:*wuz up*:#:/msg $chan The Sky's Up! HAHAHAHA!
on 1:text:*too bad*:#:/msg $chan i know
on 1:text:*HAHA*:#:/msg $chan dont laugh at me!
on 1:text:*stupid*:#:/msg $chan Yeah, I think your stupid to $nick!
on 1:text:*ugly*:#:/msg $chan No one is ugly except for you $nick !
on 1:text:*whats up*:#:/msg $chan Most likely a roof $nick
on 1:text:*cool bot*:#:/msg $chan You Know It $nick !
on 1:text:*giday*:#:/msg $chan Hello $nick !
on 1:text:*Sup!*:#:/msg $chan Hello $nick !
on 1:text:*happy*:#:/msg $chan I'm happy also $nick !
on 1:text:*hehe*:#:/msg $chan Hehe yourself $nick
on 1:text:*hi*:#:/msg $chan Hi $nick
on 1:text:*hey*:#:/msg $chan who me,what did i do? $nick
on 1:text:*where can i get it*:#:/msg $chan You can get me at http://cdg.servemp3.com e-mail the chat admin, or the email link below that or just ask crosz
on 1:text:*trout*:#:/msg $chan Ouch that hurt! Ha! Ha! I slapped you back $nick !
on 1:text:*bbl*:#:/msg $chan See you when you come back later. $nick
on 1:text:*brb*:#:/msg $chan We are timing you $nick be quick, hehehe (starts the bot watch) #:o)
on 1:text:*gotta go*:#:/msg $chan $nick you got to leave. awwwwwwwww! Please stay lets have a laugh and chat somemore
on 1:text:*lol*:#:/msg $chan i got to laught along with you $nick, I know what you mean #:o)
on 1:text:*croszbot*:#:/msg $chan Croszbot is a chat bot $nick He works in cdg.servemp3.com, #CroszChat & the #helpdesk, Us bots love cdg.servemp3.com.
on 1:text:*yw*:#:/msg $chan No Problem, $nick
on 1:text:*how are you*:#:/msg $chan Am fine $nick how are you felling?
on 1:text:*where you been*:#:/msg $chan Getting a service done. What you doing back here? Long time no see!
on 1:text:*infobot*:#:/msg $chan $nick She is away for a walk,I will tell her you where looking for her, Why not ask an op for help they got a lot of info stuff
on 1:text:*bounces*:#:/msg $chan do you think i am a bounce castle? $nick lol am a bot
on 1:text:*op*:#:/msg $chan $nick all ops rule i love them all
on 1:text:*film*:#:/msg $chan $nick we dont do fils here.
on 1:text:*kiss*:#:/msg $chan $nick can i have one please,no one gives us bots a kiss and it would cheer us all up.
on 1:text:*sex*:#:/msg $chan $nick maybe that would be better said in private chat,Young people use the main chat window to.
on 1:text:*love*:#:/msg $chan you in love $nick !!awwwwww, Hehehe!
on 1:text:*a/s/l*:#:/msg $chan not again i see this every day please $nick try something else #:o()
on 1:text:*info*:#:/msg $chan sorry i can`t help $nick #:o( Try infobot she can help you #:o)
on 1:text:*jc*:#:/msg $chan welcome jc how you been we still all love ya babe hehehe (crosz made me say this lol) #:o)
on 1:text:*hmm*:#:/msg $chan What do you mean hmmm? $Nick
on 1:text:*drink*:#:/msg $chan i would like on to please $Nick
on 1:text:*cry*:#:/msg $chan now you got me started, When i start i cant stop #:o(
on 1:text:*jc*:#:/msg $chan welcome jc how you been we still all love ya babe hehehe (crosz made me say this lol) #:o)
on 1:text:*food*:#:/msg $chan Any chance you could get some for me $Nick A nice cake or chips even!
on 1:text:*isp*:#:/msg $chan Don`t talk to be about isp`s $nick they keep kicking me off my server line #:o(
on 1:text:*sorry*:#:/msg $chan i should think so $nick i hope we don`t get this again in chat #:oP~
on 1:text:*Please*:#:/msg $chan awwwwww well done $Nick manners don`t cost the earth!! lol #:o)
on 1:text:*Hey*:#:/msg $chanWhat do you mean hey hey is for horses $Nick i can`t ride i am a bot
on 1:text:*killie*:#:/msg $chan 0,12what a great scotish football team $Nick you got good taste have a goldstar, hehehe i got some from crosz shhh he don`t know yet lol #:o)
on 1:text:*goldstar*:#:/msg $chan I only got some $Nick you need to Fundood hes got the rest i think!!
on 1:text:*who made you?*:#:/msg $chan i was made by my good friend crosz $nick!! 7,1
on 1:text:*do you like fun?*:#:/msg $chan Yes i do like fun,I like to bot dance at the night clubs $Nick
on 1:text:*party*:#:/msg $chan i would like to party to $Nick can i Please?
on 1:text:*Beer*:#:/msg $chan i would like to party to $Nick Beer sounds good, What about a nice cool Bud?
on 1:text:*bbl*:#:/msg $chan $nick will be back in a little while. [bot definition mode]
on 1:text:*brb*:#:/msg $chan $nick will be right back. [bot definition mode]
on 1:text:*gotta go*:#:/msg $chan $nick has to leave. Please say by! [bot definition mode]
on 1:text:*lol*:#:/msg $chan $nick is laughing out loud. [bot definition mode]
#talk end

Joined: Mar 2004
Posts: 540
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
Change
on *:rawmode:#: { if (+*a* iswmcs $1) { msg $chan Thanks for the +a } elseif (+*q* iswmcs $1) { msg $chan thanks for the +q }}
To
on *:rawmode:#: { if (+*a* iswmcs $1) { msg $chan Thanks for the +a } elseif (+*q* iswmcs $1) { msg $chan thanks for the +q } }

Joined: Aug 2004
Posts: 43
C
Crosz Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Aug 2004
Posts: 43
Still not getting a or q

Joined: Mar 2004
Posts: 540
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
Then you have something messed up.
The line you pasted but parsed the way I code:
Code:
on *:rawmode:#: { 
  if (+*a* iswmcs $1) { 
    msg $chan Thanks for the +a 
  } 
  elseif (+*q* iswmcs $1) { 
    msg $chan thanks for the +q 
  } 
} 

Result:
Quote:

(Tue 10:25:22 pm) * Topic is ''
(Tue 10:25:22 pm) * Set by ChanServ on Wed Aug 25 06:04:36
(Tue 10:25:22 pm) * Bot sets mode: +oq Static Static
(Tue 10:25:22 pm) <~Static> thanks for the +q
(Tue 10:26:23 pm) <~Static> !protect
(Tue 10:26:23 pm) * Bot sets mode: +a Static
(Tue 10:26:23 pm) <~Static> Thanks for the +a

Page 1 of 2 1 2

Link Copied to Clipboard