mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
#148338 06/05/06 08:01 AM
Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
You would have to do something like this:

Code:
alias list1ng {
   if ($1 == .list) noop $findfile($deltok($2-,-1,92),$gettok($2-,-1,92),0,do.wr1t3 privmsg %channel $+(:[,$1-,])) 
  elseif ($istok(.mkdir .remove,$1,32)) $1-
}


Code:
tokenize 32 %read
if ($mid($4,2) == .list) list1ng $mid($4-,2)
elseif ($istok(.remove .mkdir,$mid($4,2),32)) $mid($4-,2)


The above code would have to go inside of your on sockread event.

#148339 06/05/06 10:43 AM
Joined: Feb 2004
Posts: 2,013
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Feb 2004
Posts: 2,013
Whether I'm gone or not is irrelevant.

Now, if you simply didn't know about how to use $findfile properly, then someone would perhaps point this out more gently, but when you've been told this atleast 5 times by me, and no doubt probably by some others as well, then that just shows your unwillingness to listen and improve. This is not a personal attack, it's simply the truth. You know it, and I know it.

You are probably wondering why this matters? When you post code here, you should remember you are posting on public forums, where multiple people can see your code. Learning scripting involves a lot of seeing other people's code, and looking at how they get things done. I've used the Search feature extensively when learning scripting, seeing how other scripters did things. However, if you set a bad example, some will follow you in that bad example, from which no one benefits at all, on the contrary.

Think about it, when you learn scripting, programming, or anything for that matter, would you prefer to see badly written examples, or well written examples?

#148340 06/05/06 07:10 PM
Joined: Oct 2005
Posts: 126
P
PhyxiuS Offline OP
Vogon poet
OP Offline
Vogon poet
P
Joined: Oct 2005
Posts: 126
Well, uuhm... Nice conversation smile

But can someone try to solve my problem? :tongue:

#148341 06/05/06 07:13 PM
Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
Try reading the replies!

#148342 06/05/06 07:18 PM
Joined: Oct 2005
Posts: 126
P
PhyxiuS Offline OP
Vogon poet
OP Offline
Vogon poet
P
Joined: Oct 2005
Posts: 126
Already did, just didn't saw the "page: 2"

#148343 06/05/06 07:51 PM
Joined: Oct 2005
Posts: 126
P
PhyxiuS Offline OP
Vogon poet
OP Offline
Vogon poet
P
Joined: Oct 2005
Posts: 126
HixxY, the code aint working, and i putted it all 100% right.
It's something like this:

Code:
  if (%list == bla || %mkdir == bla || %r3move == bla)  { do.writ3 privmsg %channel : $+ $read(%list) & if ($readed == %list) { (show the requested list of files) & if = mkdir (create dir) & if remove (removedir)  }


So, actually, the %list becomes the script u created... But just in 1 simple word "%list" ... ;\

This code is totally wrong, but I just don't know how to do it...

Last edited by PhyxiuS; 06/05/06 07:53 PM.
#148344 06/05/06 08:06 PM
Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
Hmm I told you how it should be done. If you don't know how to edit a script I can't really help you.

#148345 06/05/06 10:39 PM
Joined: Oct 2005
Posts: 126
P
PhyxiuS Offline OP
Vogon poet
OP Offline
Vogon poet
P
Joined: Oct 2005
Posts: 126
Anyone can help me?

#148346 07/05/06 01:50 AM
Joined: Feb 2004
Posts: 2,013
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Feb 2004
Posts: 2,013
The only one that will help you is yourself, really. If you can't get something as easy to work, it's time to pick up scripting. We will assist you with any problems you occur, but you'll have to do the majority of the work yourself. Read some tutorials, check some other users' socket scripts, and you'll be ready to go.

#148347 07/05/06 07:44 AM
Joined: Oct 2005
Posts: 126
P
PhyxiuS Offline OP
Vogon poet
OP Offline
Vogon poet
P
Joined: Oct 2005
Posts: 126
Yeah m8, my socket script is working fine... it's just that ".list" and ".mkdir" and ".remove" ... It's not easy to put that in my Socket Script, i did like HixxY said, but, i know it aint right.
-
I've already know the way of doing it right, but, HixxY...
Can you please put this ".list" & ".mkdir" & ".remove) in parts? That those r not together.
-
Like this:

if (*:.list iswm %read) {
do stuff
}
if (*:.mkdir iswm %read) {
do stuff
}
& also with .remove ...
-
That's my only problem, HixxY's code = 1, have to split them in 3...
-
... ? confused

Last edited by PhyxiuS; 07/05/06 08:00 AM.
#148348 07/05/06 08:26 AM
Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
That's NOT the correct way to do it.

If I type "Hi :.mkdir c:\x" that would create a directory using your method. I already gave you the correct code several posts back.

#148349 07/05/06 01:53 PM
Joined: Oct 2005
Posts: 126
P
PhyxiuS Offline OP
Vogon poet
OP Offline
Vogon poet
P
Joined: Oct 2005
Posts: 126
That code aint the right code, and I don't know how to fix that, cuz my Socket Script is like I said above.

#148350 07/05/06 01:57 PM
Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
Have you tried what I gave you before?

#148351 09/05/06 06:06 PM
Joined: Oct 2005
Posts: 126
P
PhyxiuS Offline OP
Vogon poet
OP Offline
Vogon poet
P
Joined: Oct 2005
Posts: 126
Yes, I did.

Page 2 of 2 1 2

Link Copied to Clipboard