mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2006
Posts: 13
T
TheDuke Offline OP
Pikka bird
OP Offline
Pikka bird
T
Joined: Jun 2006
Posts: 13
on *:join:#dutch: { if ($address == %user) mode #dutch +s
} }
on *:part:#dutch { if ($address == %user) mode #dutch -s
} }
on *:quit { if ($address == %user) { mode #dutch -s
} }

i tried this with a variable that..
this works with user adress..
but now i want to make an add function for the user list with a level..

the on join will than contain the userlevel like on 9999:join set +s

but i cannot get seem to get how the add thing works.. and my userlists doesn't seem to get the useradress in my userlist..
when for example i use this

remote:
on 9999:join:#dutch: { mode #dutch +s
}
users:
9999:crazy.person@undersiege.net
or something like that.. when the person with that adress joins the script just halts and does nothing..
next to that i want a add user which will whois someone and adds the useraddress itself..

if anyone could help me with this i would be much obliged smile

Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Off hand I don't see anything immediatly wrong. Try this, and see what it returns:

on *:JOIN:#dutch: { /msg $chan $nick $iif($ulist($fulladdress,999,0),has,doesn't have) access. }

If people with and without access come up as having no access, the it's a level problem. If the cript doesn't trigger at all, you have another on join above it in the same file, and you need to either combine the two, or move this to another script.


-KingTomato
Joined: Jun 2006
Posts: 13
T
TheDuke Offline OP
Pikka bird
OP Offline
Pikka bird
T
Joined: Jun 2006
Posts: 13
users:
9999:sletje@Torn-59392270.upc-i.chello.nl

[17:33] * Joins: knakworst (sletje@Torn-59392270.upc-i.chello.nl)
[17:33] <Duchess> knakworst doesn't have access.

used your line..

i don't have an onjoin above i do have an on start ??

Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
I'm sorry, i missed a 9 in my line. Try this one:

on *:JOIN:#dutch: { /msg $chan $nick $iif($ulist($fulladdress,9999,0),has,doesn't have) access. }

I think I see the problem though. Are you adding the users by hand? I.e. going in to your users tab, typing "9999:" and then pasting their address? If so, type this first:

9999:*!

then the address you're pasting. All you're doing is copying their ident and mask, not their username.

Last edited by KingTomato; 22/08/06 03:49 PM.

-KingTomato
Joined: Jun 2006
Posts: 13
T
TheDuke Offline OP
Pikka bird
OP Offline
Pikka bird
T
Joined: Jun 2006
Posts: 13
i edited that myself.. not that stupid :P
but.. i tried giving the level a name also.. that didn't work and i tried some different levels..

i really am lost now..

Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Well, assuming you have a user in the list at 9999 in the user!ident@mask format, and you're using level 9999 in the event, I'm not sure what the problem is. DId you add them with /auser? If not try doing so:

//auser -a 9999 $address(nickname,2)

Then put you remote back and see if it works. If not, try a lower level, or a named level (i.e. 10 or 'pluss'). If that doesn't work still, I'm not sure what to tell you. Maybe try it on a clean mIRC?


-KingTomato
Joined: Jun 2006
Posts: 13
T
TheDuke Offline OP
Pikka bird
OP Offline
Pikka bird
T
Joined: Jun 2006
Posts: 13
call it my lack of experience :P
i didn't know that i had to put an *! or nickname! infront of the useradress it works now.. thanks mate..

but now i need an script that whoises someone and that add's the useradress to the userlist...

so like if i type with on owner:text:!add*:#dutch: { whois $2 something with raw something something :S

Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
In the userlist tab, it should show the following:

9999:knakworst!sletje@Torn-59392270.upc-i.chello.nl

That will give their whole address the 9999 level. Or, you could use the comand I gave you (preferred method):

/auser -a 9999 knakworst!sletje@Torn-59392270.upc-i.chello.nl

Confirmed with mIRC showing you:

* Added knakworst!sletje@Torn-59392270.upc-i.chello.nl to user list

Once that's done, they should have access to the 9999 join event. Now, if they still can't access the join/part/quit events, there's something wrong outside of what I can help you with on the forums. I'd suggest using named levels:

/auser -a pluss knakworst!sletje@Torn-59392270.upc-i.chello.nl

then changing your events:

on plus:JOIN:#dutch: { ... }
on pluss:PART:#dutch: { ... }
on pluss:QUIT: { ... }


-KingTomato
Joined: Jun 2006
Posts: 13
T
TheDuke Offline OP
Pikka bird
OP Offline
Pikka bird
T
Joined: Jun 2006
Posts: 13
yeah it works now.. you have really helped me..

now all i have to have is that on text script

Joined: Jun 2006
Posts: 13
T
TheDuke Offline OP
Pikka bird
OP Offline
Pikka bird
T
Joined: Jun 2006
Posts: 13
hmmm...
i know it maybe isn't the hardest question that i am asking..
but it still gives me a headache..
i have been trying some Raw scripting myself now but it keeps replying:
[21:10] -> Server: 319:*:
-
319:*: Unknown command

on 9999:text:!add*:#Dutch: {
.whois $2
var %user $2
/raw ?? { var %address $?? {
.timer2 1 10 /notice $nick %user is now added to my access list with "secret" level.. $??
}
halt
} }

this was what i was trying.. but my raws kept on giving me empty fields..
i am kinda lost..
if someone could explain which raw to use and how to use it it would make it much easier smile

Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
/raw, as you're using it, is a command. I think you're looking for the event however (as in do something with the number 319 being sent to you). In this case, use:

Code:
raw 319:*: {
  ; code here
}


If you're looking for more RAW's, try /debug @d, and any server raws being sent to you will be visible (as well as those you're sending).


-KingTomato
Joined: Jun 2006
Posts: 13
T
TheDuke Offline OP
Pikka bird
OP Offline
Pikka bird
T
Joined: Jun 2006
Posts: 13
hmm i know have a response in the debug..

on 9999:text:!add*:#Dutch: {
.whois $2
var %user $2
.timer1 0 5
/raw 311:*: { /auser -a secret *! $+ $2 } }

this is my script.. the meaning of it is to automaticly add the useraddress to the userlist..

this has to go with raw 311 as debug shows me this..

<- :Torncity.com 311 knakworst Duchess Duchess Torn-59392270.upc-i.chello.nl * laughuke

but know to get the address out of there.. i don't know because my script still doesn't work..


[21:44] -> Server: 311:*: /auser -a secret *!duchess
-
311:*: Unknown command

this is the response i am getting each time

Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
raw isn't a command, it's an event. Meaning, it doesn't belong in the on TEXT event. It belongs on a new line, apart from the rest of that code. i.e.

Code:
on 9999:text:!add*:#Dutch: {
  ...
}
raw 319:*: {
  ....
}


Also, why not use $address($nick,3)? i.e.

Code:
on 9999:text:!add*:#Dutch: {
  if ($address($2,3)) /auser -a secret $v1
  else {
    /msg $chan No ial for $2 $+ , try again
    /who $chan
  }
}


-KingTomato
Joined: Jun 2006
Posts: 13
T
TheDuke Offline OP
Pikka bird
OP Offline
Pikka bird
T
Joined: Jun 2006
Posts: 13
hehehe... lol didn't know that was an option smile thnxx.. now i am done spamming


Link Copied to Clipboard