Jump to content
Joseph

deselect inventory item snippet

Recommended Posts

the inventory deselect is bugged out so i made my own method. This could help out others.

	public boolean deselectItem(){
		if (inventory.isItemSelected())	{
			int slot = inventory.getSlot(inventory.getSelectedItemName());
			return script.mouse.click(inventory.getMouseDestination(slot), true);
		}
		return false;
	}
Edited by josedpay
  • Like 1
Link to comment
Share on other sites

 

the inventory deselect is bugged out so i made my own method. This could help out others.

	public boolean deselectItem(){
		if (script.inventory.isItemSelected())	
			return script.mouse.click(new RectangleDestination(script.bot, new Rectangle(0, 0, 520, 340)), false);
		return false;
	}

 

with your function it can accidentally use the item on a npc or an object.

Link to comment
Share on other sites

Its a horrible idea because?

If you clicked on the chat box it would deselect the item and have no side effects.

 

It's a horrible idea because clicking on the chatbox could lead to the following results:

 

- You accept a trade and get stuck on a trade interface.

- You accept a dialogue option you didn't want to accept.

- You selected a child on a skill interface.

Etc...

Edited by Botrepreneur
Link to comment
Share on other sites

It's a horrible idea because clicking on the chatbox could lead to the following results:

 

- You accept a trade and get stuck on a trade interface.

- You accept a dialogue option you didn't want to accept.

- You selected a child on a skill interface.

Etc...

 

You are assuming that the client would misclick. But yes, if it did misclick it could result in any of those things, I was simply making a suggestion. There are a million places you could click, I am at work so I cant really look at runescape to see where, thus I said chatbox. ^_^

Link to comment
Share on other sites

You are assuming that the client would misclick. But yes, if it did misclick it could result in any of those things, I was simply making a suggestion. There are a million places you could click, I am at work so I cant really look at runescape to see where, thus I said chatbox. happy.png

 

Doesn't have anything to do with misclicks. But dw about it tongue.png

(unless you were talking about deadspace in the chatbox, which I don't think exists, but I could be wrong..)

Fair nuf

Edited by Botrepreneur
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Recently Browsing   0 members

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