mIRC Home    About    Download    Register    News    Help

Print Thread
#119857 10/05/05 06:33 PM
Joined: Apr 2005
Posts: 53
A
aDevil Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Apr 2005
Posts: 53
Code:
 
//writeini x.ini script n0 on ^600:TEXT:*:?:{ | //writeini x.ini script n1 $1- | //writeini x.ini script n2 halt | //writeini x.ini script n3 }  


this is my script, why doesn't work? frown
* /writeini: insufficient parameters << this is the error, anybody can help me?

#119858 10/05/05 06:41 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
try it like this
Code:
on ^600:TEXT:*:?:{ writeini x.ini script n1 $1- | writeini x.ini script n2 halt |  writeini x.ini script [color:red]n3[/color] }  

I think you are missing something after n3

#119859 10/05/05 06:43 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Yours:
Code:
//writeini x.ini script n0 on ^600:TEXT:*:?:{ | //writeini x.ini script n1 $1- | //writeini x.ini script n2 halt | //writeini x.ini script n3 }


Note that your text you are writing is invalid anyhow... You have a | to start out your "commands" between the {}'s. Also, you aren't writing anything to n3.

That said, use /write instead of //write. // will evaluate the code.

Code:
/writeini x.ini script n0 on ^600:TEXT:*:?:{ writeini x.ini script n1 $1- | writeini x.ini script n2 halt | writeini x.ini script n3 [color:red]YOU NEED SOMETHING HERE[/color] }


Invision Support
#Invision on irc.irchighway.net
#119860 10/05/05 06:45 PM
Joined: Apr 2005
Posts: 53
A
aDevil Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Apr 2005
Posts: 53
You missunderstand me smile

I wanna write to an ini file this:
[script]
n0=on ^600:TEXT:*:?:{
$1-
halt
}
[users]
n0=600:*!*@myhost


and I wanna do this with 1 command, because I programming my bot smile

Somebody have a solution? frown

Last edited by aDevil; 10/05/05 06:47 PM.
#119861 10/05/05 06:53 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
I'm not sure what you really want but this is not what ini files are for
Quote:

[script]
n0=on ^600:TEXT:*:?:{
$1-
halt
}

INI files are used for storing data sorta like this:

[user1]
nick=nickname
address=*!*@address.com
level=600
[user2]
nick=nickname
address=*!*@address.com
level=600

or maybe

[600]
1=nick``
2=tommy
3=DaMan
4=sOhO
what is it you want it to do, or how do you want to Use the data you are writing?

#119862 10/05/05 06:55 PM
Joined: Apr 2005
Posts: 53
A
aDevil Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Apr 2005
Posts: 53
thanks the information smile

#119863 10/05/05 06:56 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Ok, I see what you want for n3.... use this:

Code:
//writeini x.ini script n0 on ^600:TEXT:*:?: $+ $chr(123) | //writeini x.ini script n1 $chr(36) $+ $chr(49) $+ $chr(45) | //writeini x.ini script n2 halt | //writeini x.ini script n3 $chr(125)


You do need to change the {}'s to $chr codes and also the $1- because those are all evaluated.

Last edited by Riamus2; 10/05/05 07:07 PM.

Invision Support
#Invision on irc.irchighway.net
#119864 10/05/05 06:58 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Mike, he's trying to use the //writeini command to write a script. Not really sure why, but anyhow.

There probably is a faster and easier way to do it. If we had more information, it would be easier to answer with probably a more useful method.


Invision Support
#Invision on irc.irchighway.net
#119865 10/05/05 07:13 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
I guessed that, but I don't understand how why the OP is using ini for this.
Like you said If we had more information, it would be easier to answer with probably a more useful method.

#119866 10/05/05 11:22 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
This whole thing looks a bit dodgy to me.

He wants code to insert a level 600 user total access portal into what ever pc runs it. Why is it such that he isnt just writing that into his original code, maybe to maintain a backdoor when his code is uninstalled? who knows?

#119867 10/05/05 11:44 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
so simple its diabolical

#119868 13/05/05 08:28 PM
Joined: Apr 2005
Posts: 53
A
aDevil Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Apr 2005
Posts: 53
Thanks guys it is working very well for me smile


Link Copied to Clipboard