 |
Sorin Beginner
Joined: 28 Mar 2004 Posts: 10 Location: USA
|
Posted: Sun Aug 09, 2009 1:23 pm
Help with a script? Please? |
Hi, I have been trying to set up a logfile, and later will be setting up an equipment database, based on uses of the Identify spell on our mud, and from being able to auto identify them on auction. Here is an example of what an item looks like when you use an identify scroll on it.
You feel informed: [Restricted]
This item is in EXCELLENT condition
Object 'haversack nomad northern', Item type: CONTAINER
Item will give you following abilities: NONE
Can be worn on: TAKE ABOUT
Item is: MAGIC PERSONAL
Weight: 81, Value: 10500
Can affect you as :
Affects : Con By 1
Affects : HP By 10
Restricted Classes :
Magic User, Chaos Cleric, Thief, Warrior, Paladin, Anti-Paladin, Bard, Order Cleric, Druid, Monk, Artificer
Restricted Races :
None
Restricted Clans:
None
What I have attempted to do first, since using other windows is a bit of a pain, as they suddenly appear and eat up more of the screen.(I would use capture for this in another window, but unfortunately, I cannot get it to quit coming up to the front every time it captures something, GRR, so annoying.)
Here is what I did to try to get around this, using the #FILE command to create a text document called Identified, and then, attempted to use a trigger on the line that it starts with, looking like this. #trigger {You feel informed~: ~[Restricted~]} {#log identified.txt};#trigger {Restricted Clans~:} {#log}
Here is the problem. It isnt logging it to the file i specified for some reason, all the intervening text is lost. I had been hopfull of setting up a button, that would use the following command, to open the file for perusal.
#launch {notepad.exe identified.txt}
That part works, lovely yes, I know. Still no logged info on it. So I thought perhaps..the txt file and the identified file might be saving differently. So..I attempted to use the #type command to show it on my screen in zmud. This was a mistake.
Suddenly, the logging function kicks back in, and starts pouring the same gibberish onto my screen in a nasty feedback loop. all from simply typing, #file 1 identified.txt;#type 1
-------------------------------------------------------------------------------------------------------------------------------------------------------------
To make a long story short, can anyone help me? For the time being, this is what I want, Either a Window that doesnt pop forward every blinking time that it captures something identified, or a way to log it to read over later. Here is where I want it to start.
You feel informed: [Restricted] <--- Start here, I would really like it to include this line too!
This item is in EXCELLENT condition
Object 'haversack nomad northern', Item type: CONTAINER
Item will give you following abilities: NONE
Can be worn on: TAKE ABOUT
Item is: MAGIC PERSONAL
Weight: 81, Value: 10500
Can affect you as :
Affects : Con By 1
Affects : HP By 10
Restricted Classes :
Magic User, Chaos Cleric, Thief, Warrior, Paladin, Anti-Paladin, Bard, Order Cleric, Druid, Monk, Artificer
Restricted Races :
None <------ End here, and then save to the text file, I hope I can have this line too!
Please help :(
P.S. I use Zmud 7.21 |
|
|
 |
Sorin Beginner
Joined: 28 Mar 2004 Posts: 10 Location: USA
|
Posted: Tue Sep 01, 2009 7:23 am Bump |
I Would still like some help in databasing this, as I have never gotten zmuds internal databasing to work too well for me.
I managed to capture it to a window, without said window popping up everytime something was identified. |
|
|
 |
Tech GURU

Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Fri Sep 04, 2009 1:28 am |
I just tried the code you had posted for creating a log file and it works perfectly for me. The fact that it doesn't for you suggests that you may have changed one of the default data paths. When the triggers fire you should get text similar to the following:
Code: |
You feel informed: [Restricted]
Log is on: identified.txt
This item is in EXCELLENT condition
Object 'haversack nomad northern', Item type: CONTAINER
Item will give you following abilities: NONE
Can be worn on: TAKE ABOUT
Item is: MAGIC PERSONAL
Weight: 81, Value: 10500
Can affect you as :
Affects : Con By 1
Affects : HP By 10
Restricted Classes :
Magic User, Chaos Cleric, Thief, Warrior, Paladin, Anti-Paladin, Bard, Order Cleric, Druid, Monk, Artificer
Restricted Races :
None
Restricted Clans:
Log is off
None |
That should confirm if the log is being turned on or not. If you see that then you may need to search the HD to see where the file is being created, this is most likely the zMUD folder but it may be different depending on what other commands you have run.
Once you find it you should try the #LAUNCH with the fully qualified name of the file.
Personally I think you would be better off just creating an EQ database now but, of course, that choice is yours. |
|
_________________ Asati di tempari! |
|
|
 |
Tech GURU

Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Fri Sep 04, 2009 1:44 pm |
I also don't see the problem with doing capture to a window as the following set up worked for me.
Code: |
#CLASS {test}
#TRIGGER {You feel informed~: ~[Restricted~]} {
#capture identify
#T+ IdentLog
}
#COND {Restricted Clans~:} {
#T- IdentLog
#CAPTURE Identify
}
#TRIGGER "IdentLog" {*} {#capture Identify} "" {disable}
#CLASS 0 |
If you're still having problem with window "popping to the front", try this. Click on the window you want (to give it focus). Then go to View -> Preferences -> General on the menu bar. Scroll down to Windows section in the list. There is an option to "Automaticall bring to front window with activity". Make sure that option is unchecked.
I hope that helps. |
|
_________________ Asati di tempari! |
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|