Jump to content

Widget interaction


potatoer

Recommended Posts

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 by potatoer
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...