mIRC Home    About    Download    Register    News    Help

Print Thread
Calling All Scripters #184761 01/09/07 11:52 AM
Joined: Aug 2007
Posts: 41
P
Panic Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Aug 2007
Posts: 41
Hello all scripters i know i have made a few scripting help posts in the past few days but i am really really bad at scripting so i currently have this script

On *:Invite:#: {
if (!$istok(%stopjoin,#,44)) {
join #
.notice Panic,trollman118 I was invited to # by $nick
}
}

ON *:Text:!stopjoin:#: {
if ($istok(trollman118 Panic,$nick,32)) {
%stopjoin = $addtok(%stopjoin,#,44)
msg $chan I will no longer Auto Join this channel on invite Anymore!
part #
}
}

ON *:Notice:!allowjoin &:?: {
if ($istok(trollman118 Panic,$nick,32)) && ($istok(%stopjoin,$2,44)) {
%stopjoin = $remtok(%stopjoin,$2,44)
join $2
}
}

and it works fine but one thing when the bot gets on the channel if it is not in !stopjoin can i get it to say something alot like the Runescript on join

Can you guys help me!

Thank you
Panic
ctcwcu head


CrazyMan IRC Bot Admin
IRC UnGoWa Support
NeoBlab Server-Admin
Chat Operator
Re: Calling All Scripters [Re: Panic] #184766 01/09/07 12:21 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
ON me:*:Join:#: msg # <Some Message Here>

Re: Calling All Scripters [Re: SladeKraven] #184769 01/09/07 12:52 PM
Joined: Aug 2007
Posts: 41
P
Panic Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Aug 2007
Posts: 41
Last thing how do i do a part like runescript can this be made only that ops in the room and if they type !part CrazyMan and he leaves


CrazyMan IRC Bot Admin
IRC UnGoWa Support
NeoBlab Server-Admin
Chat Operator
Re: Calling All Scripters [Re: Panic] #184770 01/09/07 12:54 PM
Joined: Apr 2006
Posts: 464
O
OrionsBelt Offline
Fjord artisan
Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
Code:
on *:TEXT:!part*:#:{
  if (($2 == CrazyMan) && ($nick isop $chan)) {
    part $chan
  }
}

Re: Calling All Scripters [Re: Panic] #184771 01/09/07 12:58 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
ON *:Text:!part CrazyMan:#:{
  if ($nick isop $chan) {
    part $chan
  }
}

Re: Calling All Scripters [Re: SladeKraven] #184772 01/09/07 01:06 PM
Joined: Aug 2007
Posts: 41
P
Panic Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Aug 2007
Posts: 41
and can it notice Panic and trollman118 when someone uses the part CrazyMan command can it tell us what room and who did it

Thank you
Panic
ctcwcu head


CrazyMan IRC Bot Admin
IRC UnGoWa Support
NeoBlab Server-Admin
Chat Operator
Re: Calling All Scripters [Re: Panic] #184773 01/09/07 01:23 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
I wish you'd have said that in your original post would have saved alot more time. No worries though.

Just add .notice Panic $nick used the part command in # inside the if statement, after part $chan.

Code:
ON *:Text:!part CrazyMan:#:{
  if ($nick isop $chan) {
    part $chan
    .notice Panic $nick used the part command in #
  }
}

Like so.

But that really is pretty basic stuff, you should refer to the bible first. I mean help file.

On a side note, when posting code on the forums it makes it easier if the code is inside the code tags. Which is the # symbol inbetween quote and php tags.

Re: Calling All Scripters [Re: SladeKraven] #184774 01/09/07 01:32 PM
Joined: Aug 2007
Posts: 41
P
Panic Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Aug 2007
Posts: 41
It is not working it is like this

}
ON *:Text:!part CrazyMan:#:{
if ($nick isop $chan) {
part $chan .notice Panic,trollman118 $nick used the part command in #
}


Thank you
Panic
ctcwcu head


CrazyMan IRC Bot Admin
IRC UnGoWa Support
NeoBlab Server-Admin
Chat Operator
Re: Calling All Scripters [Re: Panic] #184775 01/09/07 01:48 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
I showed you the full code in my previous post. Also, don't forget those code tags. smile

Re: Calling All Scripters [Re: SladeKraven] #184798 01/09/07 06:02 PM
Joined: Aug 2007
Posts: 41
P
Panic Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Aug 2007
Posts: 41
Ok thanks i guess there was a error because i could not see the code well i am on my laptopbot now and i can thank you so much you have been a great help to me and everyone that uses my bot including staff members and other such users

Thank you again
Panic
ctcwcu head


CrazyMan IRC Bot Admin
IRC UnGoWa Support
NeoBlab Server-Admin
Chat Operator
Re: Calling All Scripters [Re: SladeKraven] #184800 01/09/07 06:06 PM
Joined: Aug 2007
Posts: 41
P
Panic Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Aug 2007
Posts: 41
Originally Posted By: SladeKraven
I wish you'd have said that in your original post would have saved alot more time. No worries though.

Just add .notice Panic $nick used the part command in # inside the if statement, after part $chan.

Code:
ON *:Text:!part CrazyMan:#:{
  if ($nick isop $chan) {
    part $chan
    .notice Panic $nick used the part command in #
  }
}

Like so.

But that really is pretty basic stuff, you should refer to the bible first. I mean help file.

On a side note, when posting code on the forums it makes it easier if the code is inside the code tags. Which is the # symbol inbetween quote and php tags.


Well yes but on my mirc it is really strange there is no help file i have uninstalled Mirc and re installed it but i still can't get it i have even re downloaded it


CrazyMan IRC Bot Admin
IRC UnGoWa Support
NeoBlab Server-Admin
Chat Operator
Re: Calling All Scripters [Re: Panic] #184825 01/09/07 09:36 PM
Joined: Jun 2006
Posts: 508
D
deegee Offline
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
Originally Posted By: Panic
Well yes but on my mirc it is really strange there is no help file i have uninstalled Mirc and re installed it but i still can't get it i have even re downloaded it


Note that it isn't "mirc.hlp" now, it's "mirc.chm"

/help or /help <keyword> still work the same, as does the F1 key wink

Re: Calling All Scripters [Re: deegee] #184866 02/09/07 08:27 AM
Joined: Aug 2007
Posts: 41
P
Panic Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Aug 2007
Posts: 41
thanks


CrazyMan IRC Bot Admin
IRC UnGoWa Support
NeoBlab Server-Admin
Chat Operator
Re: Calling All Scripters [Re: Panic] #184888 02/09/07 04:39 PM
Joined: Aug 2007
Posts: 41
P
Panic Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Aug 2007
Posts: 41
re visting this topic this does not work sorry have no idea why?

Thanks
Panic


CrazyMan IRC Bot Admin
IRC UnGoWa Support
NeoBlab Server-Admin
Chat Operator