|
Joined: Sep 2005
Posts: 2,630
Hoopy frood
|
Hoopy frood
Joined: Sep 2005
Posts: 2,630 |
You would have to do something like this: 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-
} 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.
|
|
|
|
Joined: Feb 2004
Posts: 2,013
Hoopy frood
|
Hoopy frood
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?
|
|
|
|
Joined: Oct 2005
Posts: 126
Vogon poet
|
OP
Vogon poet
Joined: Oct 2005
Posts: 126 |
Well, uuhm... Nice conversation  But can someone try to solve my problem? :tongue:
|
|
|
|
Joined: Sep 2005
Posts: 2,630
Hoopy frood
|
Hoopy frood
Joined: Sep 2005
Posts: 2,630 |
|
|
|
|
Joined: Oct 2005
Posts: 126
Vogon poet
|
OP
Vogon poet
Joined: Oct 2005
Posts: 126 |
Already did, just didn't saw the "page: 2"
|
|
|
|
Joined: Oct 2005
Posts: 126
Vogon poet
|
OP
Vogon poet
Joined: Oct 2005
Posts: 126 |
HixxY, the code aint working, and i putted it all 100% right. It's something like this:
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.
|
|
|
|
Joined: Sep 2005
Posts: 2,630
Hoopy frood
|
Hoopy frood
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.
|
|
|
|
Joined: Oct 2005
Posts: 126
Vogon poet
|
OP
Vogon poet
Joined: Oct 2005
Posts: 126 |
|
|
|
|
Joined: Feb 2004
Posts: 2,013
Hoopy frood
|
Hoopy frood
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.
|
|
|
|
Joined: Oct 2005
Posts: 126
Vogon poet
|
OP
Vogon poet
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... - ... ? 
Last edited by PhyxiuS; 07/05/06 08:00 AM.
|
|
|
|
Joined: Sep 2005
Posts: 2,630
Hoopy frood
|
Hoopy frood
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.
|
|
|
|
Joined: Oct 2005
Posts: 126
Vogon poet
|
OP
Vogon poet
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.
|
|
|
|
Joined: Sep 2005
Posts: 2,630
Hoopy frood
|
Hoopy frood
Joined: Sep 2005
Posts: 2,630 |
Have you tried what I gave you before?
|
|
|
|
Joined: Oct 2005
Posts: 126
Vogon poet
|
OP
Vogon poet
Joined: Oct 2005
Posts: 126 |
|
|
|
|
|