Log in

View Full Version : Find Item ChatBox using Refleciton??



Brandon
03-07-2011, 11:38 PM
KK I have learned nice reflection procedures in 2.5 days.. Im quite good at it I think? But now Im stuck..


I know R_ItemExists checks if an item is in the invent.. But lets say your making a fletching bot using reflection only.. Example:

Items in the invent: Knife & Logs..

R_clickItem knife, R_clickItem Log...

Then in the chat box, that thing button comes up.. and now U gotta click it.. to make all..

How do I "Click that with reflection" or Check if that box is there or not?
OR
Check what item is showing in that box.. I didnt wanna use DTM's but I may have to if no one has the answers..

Help please.

Train
03-08-2011, 12:11 AM
r_GetInterface..
TBox := r_GetInterfaceAbsoluteBounds
r_ClickMouseBox(..);


Get the interface, get the absolute bounds, then click it. : ] Easy as pie.

Brandon
03-08-2011, 06:49 AM
not as easy as u make it out to be... I got the following information from Interface Explorer.. It never finds it when I try to find if the interface is up.. it always says valid even when its not :S Well I guess the interface is always there but I do not see the Make All box.. and even when that is up, it never finds it or clicks it..

I followed this tutorial: http://villavu.com/forum/showthread.php?t=59400&highlight=reflection+december

And got this info:



Make All Box:

Interface 905
Component 14
Actiontype :-1
Type:0
SpecialType:0
TextureID:-1
ParentID: 59310093
Text:
ToolTip: MakeAll
SelActionName:
Component ID:-1
Component Stack Size: 0
Relative Location (7,13)
Absolute Location: (205, 393)


Picture of Item on the Make all Box:

Component 56
Type 5
bounds 10
ParentID 59310094
Component ID 99
Stacksize 1
rel Loc 35,4
Abs Loc 240,397


Text On the Make All Box:

Component 57
Action type: -1
Type:4
Special: 0
Bounds Index: 10
Model ID;0
Texture ID:-1
ParentID: 59310094
Text: Ranarr potion (unf)
tooltip:null
SelActionName:
Component ID: -1
Component Stack Size :0
Rel Location (4,33)
Abs Location (209,426


I used Ranarr Potion unf to test it :S not sure if that works or not.. But I did it like this: Withdrew 2 vials of water, 2 ranarrs, cuz thats all my bank has.. then click a vial of water and a ranarr and the interface came up.. and I grabbed that info.

P.S. The commands you gave me above does not exist.. It exists without the R_ for "getinterface" and "MouseBox"

Harry
03-08-2011, 08:32 AM
I just use color for that stuff usually. It doesn't often change, so it should work fine. Check out text.scar in SRL.

Frement
03-08-2011, 08:36 AM
Basic coord clicking should work also, just make a failsafe to make sure the interface is open.