Writing lines to a file?

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

lestor
orc pawn
orc pawn
Posts: 16
Joined: Sat Jan 10, 2004 6:31 am

Writing lines to a file?

Post by lestor » Sun Feb 08, 2004 7:05 am

Is it possible for MQ to add lines to a file? I'm mainly looking to modify the Everquest map files with a macro...


Thanks,

Les

Gumby
a ghoul
a ghoul
Posts: 99
Joined: Sat Jan 24, 2004 5:27 pm

Re: Writing lines to a file?

Post by Gumby » Sun Feb 08, 2004 10:20 am

lestor wrote:Is it possible for MQ to add lines to a file? I'm mainly looking to modify the Everquest map files with a macro...


Thanks,

Les
AFAIK you can only write to an INI file from a script (or ItemDB.txt apparently for a specialized command); but, as I haven't found any way to manually update the map and have it take effect in game unless I restart EQ, it's probably not a terrible solution to do this, and either cut / paste it over or make it automatic with some external code.

Though may be fairly easy to add in another file write call a la the abovementioned /updateitems export file.

Ideally being able to add things through the map toolbox as to make the in game update happen on the fly would be the best solution but that's a development request.

G

User avatar
blueninja
a grimling bloodguard
a grimling bloodguard
Posts: 541
Joined: Thu Aug 28, 2003 7:03 am
Location: Göteborg, Sweden

Post by blueninja » Sun Feb 08, 2004 2:06 pm

You'd have to write a plugin for this. Wouldn't be very hard to do though.