mIRC Home    About    Download    Register    News    Help

Print Thread
#69935 01/02/04 01:31 AM
N
netzer0
netzer0
N
Hey guys im kinda nub right now... I have a ClanBot that i have made but only i can change the setting like say the following is one of the scripts.


on *:TEXT:word:#channel: { notice $nick message message message }

Only I can change that if i go to the remote now im getting into making clan bots for other people well actually just one other person hes my cousin but still! How can i make it so he can change the info on that so lets se this is what it says

on *:TEXT:@roster:#urmom: { notice $nick Delilia Fr0st Enuh }
now he wants to change that but he cannot do it from my mIRC becuase the mIRC is at my house is there a script I can do so he can change that info from just typing
@set roster Delila Fr0st Enuh Random .
and it will change the script to this?
on *:TEXT:@roster:#urmom: { notice $nick Delila Fr0st Enuh Random }


Any help would be appriciated Thanks guys! smile

#69936 01/02/04 01:46 AM
T
theRat
theRat
T
/help variables

#69937 01/02/04 01:52 AM
N
netzer0
netzer0
N
umm i dont understand

#69938 01/02/04 02:41 AM
Joined: Dec 2003
Posts: 259
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Dec 2003
Posts: 259
Hi, there. I think that this is what are you looking for:
on *:text:*:#urmom:{
if ($nick == yourfiendsnick) && ($1 == !set) { /set %theword ! $+ $2 | /set %tekst $3- }
if ($1 == %theword) { /notice $nick %tekst }
}

Hope that helped!
Note: Not tested!

#69939 01/02/04 03:32 AM
N
netzer0
netzer0
N
Hmmm is there anything i have to edit ?
if so could u tell me im still nub hehe..
Right now its not working in the channel i type this
!set @roster test
nothing works so maybe some more help hehe thanks guys

#69940 01/02/04 03:57 AM
Joined: Dec 2003
Posts: 259
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Dec 2003
Posts: 259
Your friend types: "!set roster test"
After that, if anybody types: "!roster bla bla"
he will get "notice test"

That is how I understand your problem... but I am not so good in english smirk
Note: Replace yourfriendsnick with the nick of your friend.

#69941 01/02/04 03:58 AM
I
Iori
Iori
I
on *:TEXT:@roster:#urmom: { .notice $nick %roster }
on *:text:@set roster *:?:{
if $nick == YourFriend { set %roster $3- }
}
Change the YourFriend
The other user must use @set roster <info to change here> in private msg

NOTE: It would be better to use userlevels to check the nicks access to this, such as...
on friend:text:@set roster *:?:set %roster $3-
on +29:text::@set roster *:?:set %roster $3-

#69942 01/02/04 06:18 AM
S
Segosa
Segosa
S
This is what I understood of it:

Code:
on *:TEXT:@roster:#urmom:notice $nick %rosters
on *:TEXT:@set roster *:#urmom:set %rosters $$3-

#69943 01/02/04 07:01 AM
I
Iori
Iori
I
Well, that is basically what I posted, except that in your version anybody at all can set the var to anything they wish, and anyone in the channel can see how to do it. :tongue:
My way does check the $nick and is not done in open channel (plus I suggested using userlevels for more security).


BTW: $$3- is not necessary there as "@set roster *" ensures it will never be blank wink

#69944 01/02/04 07:03 AM
S
Segosa
Segosa
S
yeah well I could hardly understand what he wanted, :tongue:

#69945 01/02/04 08:06 AM
N
netzer0
netzer0
N
Alright guys im sorry let me try to explain it better i hope i get it so you guys understand it better ^^

Im making a clanbot for a mIRC channel. The code that i have right now is this (this is the EXACT CODE)

on *:TEXT:@members*:#unT { notice $nick 4,1 ]¬[ 11Grimmy12(M) 4]¬[ 11enuh12(M) 4]¬[ }


Now what i need is this, Im going to put this ClanBot into some different channel lets pretend the channel will be #unT for right now. I do not have @op in their channel now They want to be able to change that scripts information as far as this part goes.

4,1 ]¬[ 11Grimmy12(M) 4]¬[ 11enuh12(M) 4]¬[

They want to change the members list to something else lets pretend they wanted to change it to this.

4,1 ]¬[ 11Recruiting12(M) 4]¬[ 11Recruiting12(M) 4]¬[

Now right now the ONLY way they can have that changed is to come to me and have it changed I go to the romote access in the mIRC and I change it through there.

Now what i WANT is so they can change the info to what ever they want all they need to be able to do is this.

!set @members <changed info goes here>

What will be the script for that?

#69946 01/02/04 09:25 AM
I
Iori
Iori
I
Code:
on *:text:@members:#:{
  if %members. [ $+ [ # ] ] { notice $nick $ifmatch } 
}
on *:text:!set @members *:#:{
  if $nick(#,$nick,!@%) { set %members. $+ # $3- } 
}


This will work for any channel, it has no security as described above, apart from checking if the user trying to set the info is +!/+@/+% in that channel.


Link Copied to Clipboard