potatoer Posted December 4, 2015 Posted December 4, 2015 (edited) Hey i'm having a problem to get the widget to interact when buying it wont use the right click to access the option 'Buy 10' unless i manually right click the object for it. It also has no problem interacting with the close option on widget 300,1,11 RS2Widget w4 = widgets.get(300,2,2); if (w4 != null){ widgets.interact(300,2,2,"Buy 10"); sleep (random(123,569));} if (inventory.isFull()){ widgets.interact(300,1,11,"Close"); } Widget debug on 300,2,2 Enabled Media Type MediaType.MODEL Enabled Media Id -1 Disabled Media Type MediaType.MODEL Disabled Media Id -1 Item Id 1540 Item Amount 35 Type 5 Position (171, 69) Relative X 171.0 Relative Y 69.0 Width 36 Height 32 Sprite ID 1 (enabled) -1 Sprite ID 2 (disabled) -1 Actions [Value, Buy 1, Buy 5, Buy 10, null, null, null, null, null, Examine] Options null Message Text Colour 0 Selected Action Name Spell Name Tooltip Ok Inv Sprite Padding X 0 Inv Sprite Padding Y 0 Scroll Max 0 Scroll X 0 Scroll Y 0 Action Type 0 Content Type 0 Alpha 0 Condition Type null Condition Compare Values null Dynamic Value Formulas null Get Hidden Until Mouse Hover false Sprites X null Sprites Y null Sprites null Text Draw Area Index -1 Edited December 4, 2015 by potatoer
potatoer Posted December 4, 2015 Author Posted December 4, 2015 w4.interact("Buy 10"); Great X.x thanks for your help it works
potatoer Posted December 4, 2015 Author Posted December 4, 2015 What is this: sleep (random(123,569)); i already removed that ^.^ not to sure why i had it.
potatoer Posted December 5, 2015 Author Posted December 5, 2015 How you get that debug? It is just the client widget debugger in settings>options>widget debugger 1
Joseph Posted December 5, 2015 Posted December 5, 2015 It is just the client widget debugger in settings>options>widget debugger and you simply copied and pasted that's nice