Item Information Daemon

Amadeus

The Maestro
Staff member
First of all, this script is intended to be a learning tool for those that are learning to script and/or those that wish to create some sort of tool that deals with item information gathering (ie, someone that was making a massive database of items and their stats.) So, the script is not overly beautiful and most will want to format it differently.

This is how you would use the script:
  1. Place EQ2ItemInfoCollector.iss in your /scripts directory
  2. In the console, type "run EQ2ItemInfoCollector"
At this point, the collector runs perpetually until you either 'endscript *', unload isxeq2, or something similar. WHILE it is running, it will recognize any time you "EXAMINE" an item and write to the file "eq2ItemInfoDatabase.txt" (which is in your /extensions directory.)

And, there you have it. So, let's say you have a massive database of ID#s of items. Then all you'd need to do is run this script so that the collector is active ...then, run another script that simply does something like:
Code:
eq2execute /examine_item #
wait 10
eq2execute /default_esc_key_function
eq2execute /default_esc_key_function
wait 5
;...loop....
Or, if you have some other method of making the examine window pop up for items ...then go nuts (It doesn't matter what method you use to cause the examine window to appear -- the event fires when the window opens no matter how it's done.) My only suggestion would be to put in a slight pause between each one (.5 - 1 second or so) just to give the client a chance to catch up in case something funky happens.



PvP Server Stats
If you want to get the pvp server stats on a particular item, then what you have to do is actually click the checkbox before accessing the stats. To do that, you would use this line:
Code:
ExamineItemWindow[${WindowID}].GetPVPCheckBox:LeftClick
Then, if you need to check the status of whether the checkbox is 'checked' or not, then you can simply use the "IsChecked" member of the eq2uielement datatype like so:
Code:
if (${ExamineItemWindow[${WindowID}].GetPVPCheckBox.IsChecked})
So, you might want to have a script that would go through all the stats like this one does, then 'click on' the checkbox, and then do it all again with the pvp stats. Make sense?
 

Attachments

Amadeus

The Maestro
Staff member
Here are a couple examples of the output you get running the script in it's original (rough) form:

Code:
Name: Grizzfazzle's Walking Stick 
Level: 65 
Weight: 3.00 
ID: 90250984 
Tier: LEGENDARY 
Condition: 80% 
Type: Weapon 
Damage Rating: 59.44 
My Minimum Damage: 10 
My Maximum Damage: 86 
Base Minimum Damage: 10 
Base Maximum Damage: 86 
Mastery Minimum Damage: 10 
Mastery Maximum Damage: 86 
Delay: 1.60 
Wield Style: One-Handed 
SubType: Staff 
Damage Type: Crushing 
Damage Verb: Crush 
Equipable Slots: Primary 
Classes: templar(65) inquisitor(65) warden(65) fury(65) mystic(65) defiler(65) wizard(65) warlock(65) illusionist(65) coercer(65) conjuror(65) necromancer(65) 
Flags: Lore NoTrade 
 
Modifiers:
-------
Disruption +6 
Health +80 
Intelligence +27 
Power +80 
Stamina +27 
 
Effects:
-------
1. Grizzfazzle's Burst: Your weapon burns with an eerie red glow. 
 
Examine Window Strings:
-------
1. Grizzfazzle's Burst 
2. Staff 
3. One-Handed Crushing 
4. Damage 
5. 10 - 86 
6. (59.4 Rating) 
7. Delay 
8. 1.6 seconds 
9. Condition 
10. 80% 
11. Weight 
12. 3.0 
13. Level 
14. 65 
15. #22FF22All Mages/c, All Priests 
16. When Equipped 
17. NULL 
18. On a successful hostile spell this spell has a chance to cast Grizzfazzle's Rage on target of spell. This effect will trigger an average of 2.0 times per minute. 
19. NULL 
20. Inflicts 286 - 531 heat damage on target 
21. NULL 
22. Effects 
23. NULL 
 
 
----------------------------------------------
 
Name: Enspelled Vultak Eye 
Level: 62 
Weight: 1.00 
ID: 90251020 
Tier: LEGENDARY 
Condition: 80% 
Type: Shield 
Equipable Slots: Secondary Ranged 
Classes: shadowknight(62) paladin(62) templar(62) inquisitor(62) warden(62) fury(62) mystic(62) defiler(62) wizard(62) warlock(62) illusionist(62) coercer(62) conjuror(62) necromancer(62) 
Flags: Attuned NoTrade 
 
Modifiers:
-------
Health +25 
Intelligence +20 
Power +60 
Stamina +10 
vsDisease +163 
vsPoison +163 
 
Effects:
-------
1. Rune of the Eye: 
 
Examine Window Strings:
-------
1. Rune of the Eye 
2. Symbols 
3. Type 
4. Symbols 
5. Slots 
6. Secondary, Ranged 
7. Condition 
8. 80% 
9. Weight 
10. 1.0 
11. Level 
12. 62 
13. #22FF22All Mages/c, All Priests, Paladin, Shadowknight 
14. Made by 
15. Laset
16. When Equipped 
17. NULL 
18. On a successful hostile spell this spell has a chance to cast Rune of the Eye on caster. Lasts for 10 minutes. This effect will trigger an average of 1.8 times per minute. 
19. NULL 
20. Wards caster against 400 points of all damage 
21. NULL 
22. Increases Disruption of caster by 5.0 
23. NULL 
24. Effects 
25. NULL 
 
 
----------------------------------------------
 

Amadeus

The Maestro
Staff member
Script File Update:
- Seems that I forgot that negative numbers come with their own minus sign...lol.
- removed NULL textvector strings
- 'effects' won't show if the item has no effects
- other little cleanups
 

Amadeus

The Maestro
Staff member
Script File Update:
- Changed the script to use the innerspace 'redirect' command instead of 'eq2echo'. 'redirect' is a better option when only sending information to files.
 
Top Bottom