mIRC Home    About    Download    Register    News    Help

Print Thread
Some help with a script if anyone doesnt mind =) #96799 05/09/04 07:05 PM
Joined: Feb 2003
Posts: 35
O
Om3gA Offline OP
Ameglian cow
OP Offline
Ameglian cow
O
Joined: Feb 2003
Posts: 35
heh soem help on this would be nice... maybe im just blind but i cant figure it out =)

Users::::
30:Death4U!~Death4U@cpe-24-92-125-173.elp.rr.com

Remote:::::
on *:op:*:{
if (30 isin $level($address($opnick,2))) {
if ($me isin $opnick) { halt }
.mode $chan -o $opnick
}
}
on *:serverop:*:{
if (30 isin $level($address($opnick,2))) {
if ($me isin $opnick) { halt }
.mode $chan -o $opnick
}
}

maybe im a bit rusty maybe im just blind... or maybe im just over anylizing it


Butterflies are random thoughts people have.
They Live, They Die, They Are Pointless.
Re: Some help with a script if anyone doesnt mind =) #96800 05/09/04 08:19 PM
Joined: Mar 2004
Posts: 130
T
tsoglanos Offline
Vogon poet
Offline
Vogon poet
T
Joined: Mar 2004
Posts: 130
Code:
on @*:op:*:if ($level($address($opnick,2)) == 30) { mode $chan -o $opnick | halt }

on @*:serverop:*:if ($level($address($opnick,2)) == 30) { mode $chan -o $opnick | halt }


Re: Some help with a script if anyone doesnt mind #96801 05/09/04 09:20 PM
Joined: Jul 2003
Posts: 742
MTec89 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
Code:
on @30:op:*: { mode $chan -o $opnick | halt }
on @30:serverop:*: { mode $chan -o $opnick | halt }


http://MTec89Net.com
irc.freenode.net #MTec89Net
Re: Some help with a script if anyone doesnt mind #96802 06/09/04 12:48 AM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
May I ask why you're both halting?


-KingTomato
Re: Some help with a script if anyone doesnt mind =) #96803 06/09/04 03:12 AM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Code:
on @*:op:#:{ 
  if $level($ial($opnick)) == 30 { mode # -o $opnick } 
} 
Code:
on @*:serverop:#:{ 
  if $level($ial($opnick)) == 30 { mode # -o $opnick } 
} 


Re: Some help with a script if anyone doesnt mind #96804 06/09/04 03:28 AM
Joined: Jul 2003
Posts: 742
MTec89 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
what are you doing? you do not need the if stuf...
Code:
on @30:op:*: { mode $chan -o $opnick }
on @30:serverop:*: { mode $chan -o $opnick }


http://MTec89Net.com
irc.freenode.net #MTec89Net
Re: Some help with a script if anyone doesnt mind #96805 06/09/04 03:36 AM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Yes you do. OP wants to check if the user who is being opped is level 30. Your script triggers only when a level 30 user ops someone else.

Re: Some help with a script if anyone doesnt mind #96806 06/09/04 04:22 AM
Joined: Feb 2003
Posts: 35
O
Om3gA Offline OP
Ameglian cow
OP Offline
Ameglian cow
O
Joined: Feb 2003
Posts: 35
and im halting incase someone with access sets one of my bots to level 30 so it cant deop its self when op'd wink nor can one of my other bots

thanks everyone for your help =)


Butterflies are random thoughts people have.
They Live, They Die, They Are Pointless.
Re: Some help with a script if anyone doesnt mind #96807 06/09/04 04:45 AM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
I think that was directed at me;

I was actually asking because it's pointless (from my perspective) to halt when there is nothing else to execute. Same basis as having:

if (condition) { statements }
else { halt }

There's just no need for it.


-KingTomato
Re: Some help with a script if anyone doesnt mind #96808 06/09/04 05:18 AM
Joined: Feb 2003
Posts: 35
O
Om3gA Offline OP
Ameglian cow
OP Offline
Ameglian cow
O
Joined: Feb 2003
Posts: 35
its primarily because if by some chance since my bots have remote commands someoen sets them so that they are all user level 30 (since more people then just myself use this) that it will halt and stop if the bot being op'd is actually a clone this can prevent someone from op/deop flooding using the bots features as an exploit if they are set to auto-op =) if you see what i mean anyway


Butterflies are random thoughts people have.
They Live, They Die, They Are Pointless.
Re: Some help with a script if anyone doesnt mind #96809 06/09/04 05:25 AM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Sorry, I'm just tired. My inqueries were actually directed at MTec and tsoglanos. Sorry for the confusion.


-KingTomato
Re: Some help with a script if anyone doesnt mind #96810 06/09/04 05:26 AM
Joined: Feb 2003
Posts: 35
O
Om3gA Offline OP
Ameglian cow
OP Offline
Ameglian cow
O
Joined: Feb 2003
Posts: 35
ah ic well that was the reason for my haulting anyway =) all you guys have been of help though and i do appreciate it i was actually coding while reading this and caught myself halting for no reason after reading your post lol wink


Butterflies are random thoughts people have.
They Live, They Die, They Are Pointless.
Re: Some help with a script if anyone doesnt mind #96811 06/09/04 08:05 PM
Joined: Mar 2003
Posts: 1,271
L
LocutusofBorg Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
Quote:
Yes you do. OP wants to check if the user who is being opped is level 30. Your script triggers only when a level 30 user ops someone else


Sorry, but you're wrong there. The userlevel 30 is applied to whoever triggers the event. The person who triggers the event is the one who receives the +o, so MTec's code without the if statement is perfectly fine.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius