![]() |
Dumping Recipe & Examine info to chat
Is there a way to dump the information in a recipe window, and the examine window of an item directly to the chat logs?
What I'm talking about, is when you examine a recipe (or an item) it pretty much shows all its stats... is there a way to dump all that text to the chatbar or to the logs? |
Sure, and you're lucky, each data type is available as a different text field. Just grab the LocalText data from the examine window that you are interested in and post it to chat (make sure you have logging turned on). If you put an identifier for each data type and the item type first, you can then easily parse it from the log.
|
Swweeeet!
I'll have to dig around in UIBuilder and try to mod those windows to include some kind of method to do that. Have any suggestions? I'm thinking of some kind of button... but I haven't worked with buttons and grabbing / manipulating text yet. Edit: Hmm perhaps some use of the concat function ( ## ) would be useful? Does that work with regular strings AND dynamic data localtext? |
Yes, you'd basically do something like this (below is how it would look in the XML):
Code:
OnPress="say "Modifiers: " ## Parent.Modifiers.LocalText" |
Excellent! Instead of "Say" can I use any valid chat command, such as a chat channel?
Example: Code:
OnPress="ooc "Modifiers: " ## Parent.Modifiers.LocalText"Code:
OnPress="abcdefg "Modifiers: " ## Parent.Modifiers.LocalText"Also... can OnPress have more than one line / say more than one line? |
The commands are like in game, so your custom channel would take a number instead of the name (beware of the channel renumbering bug, hehe).
You can put several commands, yes. Separating them by a space is enough, they are processed right to left. You can also separate by a linebreak by editing the XML manually, processing is top to bottom then. |
One last thing...
Is there a way to send a bogus command that won't return an error, but will still go fully to the logs? For example... /datadump Description: Peanut Butter Jelly Time |
OK...
I have the button properly dumping just the recipe level to say at the moment, but its repeating the level... My button code Code:
<Button LocalText="Dump" LocalTooltip="Dump Data" Location="238,64" Name="DumpButton" OnPress="say "Recipe Level: " ## Parent.FixedPage.LevelValue.LocalText" PackLocation="right,top" PackLocationProp="-035/0001,0064/0001" ScrollExtent="35,20" Size="35,20" Style="/Fetish.ButtonStyles.text_button" Tooltip="Dump Data" UserMovable="true"></Button>You say, "Recipe Level: 40 40" |
Dummy commands won't be logged.
And with respect to the code double numbers you can usually work around like this: OnPress="say=("Modifiers: " ## Parent.Modifiers.LocalText) say=("Modifiers: " ## Parent.Modifiers.LocalText)" |
That workaround didn't work at all for me...
In fact, when I put that in the game wouldn't even load past "Entering world as {charName}" |
| All times are GMT -5. The time now is 02:37 AM. |
vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI