mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2014
Posts: 42
K
Kooky Offline OP
Ameglian cow
OP Offline
Ameglian cow
K
Joined: Oct 2014
Posts: 42
So I have this script working to tell the person that the file has been made, but the file itself is not being created. Can anyone help? I want the file to be the $nick

Code:
on *:text:!Name*:#MyRoom: { 
  writeini -n $qt(F:\MyBot\Myfile) $nick $+ .ini $nick Name $2-
  writeini -n $qt(F:\MyBot\Myfile) $nick $+ .ini Register Name on
  notice $nick Your character name is registered. Step 2: $2- $+ , Get ready for more!
}

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
You need to set $nick $+ .ini as part of the path. Your current path is F:\MyBot\Myfile

I guess what you're looking for is F:\MyBot\ $+ $nick $+ .ini


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Oct 2014
Posts: 42
K
Kooky Offline OP
Ameglian cow
OP Offline
Ameglian cow
K
Joined: Oct 2014
Posts: 42
Well I think I modified it how you suggested, but it's still not working.

Code:
on *:text:!Name*:#MyRoom: { 
  writeini -n $qt(F:\MyBot\ $+ $nick $+ .ini) Name $2-
  writeini -n $qt(F:\MyBot\ $+ $nick $+ .ini) Register Name on
  notice $nick Your character name is registered. Step 2: $2- $+ , Get ready for more!
}

Joined: Oct 2014
Posts: 42
K
Kooky Offline OP
Ameglian cow
OP Offline
Ameglian cow
K
Joined: Oct 2014
Posts: 42
If it helps any, I'm using mIRC v6.2 for the shell of my bot.

Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
6.2 ? since 2000 version we have 2014 LOL!!! there is 7.36 and 7.37 beta man please go and update your mirc version ! immediately!!!!!!


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Oct 2014
Posts: 42
K
Kooky Offline OP
Ameglian cow
OP Offline
Ameglian cow
K
Joined: Oct 2014
Posts: 42
I can't. I selected this version because no matter what I do, no matter what drive I install my bot onto, it overrides my other mIRC files located elsewhere and I lose my stuff. This version is the only version that doesn't happen with.

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
Let me just ask the most basic question, did you check the portable option when installing?


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Try install the 7.36 and create an folder on the desktop and select the path on the install to this folder when you install select the "Install as Portable" option on the installer so the new mIRC will be created on the desktop to your new folder try replace the new mIRC.exe with the old that your bot is using. and the update will be success with not loses anything.


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Oct 2014
Posts: 42
K
Kooky Offline OP
Ameglian cow
OP Offline
Ameglian cow
K
Joined: Oct 2014
Posts: 42
Went through, updated it to the newest version as a portable.

Still the same issue. Not writing an ini.

Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Does it provide you an error message if yes please paste it here.


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Oct 2014
Posts: 42
K
Kooky Offline OP
Ameglian cow
OP Offline
Ameglian cow
K
Joined: Oct 2014
Posts: 42
No error message. Just nothing at all.

I'm using mIRC v7.36

Edit.. On toying around, this comes up:

* /writeini: insufficient parameters (line 2, script.ini)
-
* /writeini: insufficient parameters (line 2, script.ini)


Last edited by Kooky; 12/11/14 02:20 AM.
Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Well probably the path is incorrect F:/Mybot... so try using this code it will store the register.ini file with the details that you want, it is also much safer rather the $nick $+ .ini file because there will be devices and /writeini issues because windows cannot write an file that exist on devices and if the $nick is an machine device there will be an unfixable error and will brake the code.

Code:
ON *:TEXT:!Name*:#MyRoom: { 
  writeini -n register.ini $chan $+ ~ $+ $nick Name $2-
  writeini -n register.ini $chan $+ ~ $+ $nick Register on
  notice $nick Your character name is registered. Step 2: $2- $+ , Get ready for more!
}


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Oct 2014
Posts: 42
K
Kooky Offline OP
Ameglian cow
OP Offline
Ameglian cow
K
Joined: Oct 2014
Posts: 42
But I'm trying to create an ini file for the character that's being registered, not just alter the register file. Because it's going to be used by multiple people, so multiple files need to be made, and names will be added to my register file.

Joined: Oct 2014
Posts: 42
K
Kooky Offline OP
Ameglian cow
OP Offline
Ameglian cow
K
Joined: Oct 2014
Posts: 42
Plus I could alter it into a .chr or .txt file and that would help.

Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
The code i gave you working on multi nicknames if you want to write an extra line follow the /writeini command and replace the write things with yours.

Help Details: /help /writeini


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-

Link Copied to Clipboard