mirror of
https://github.com/2006-Scape/Parabot-317-API-Minified.git
synced 2026-07-06 16:50:40 +00:00
Fixed interacting with items
This commit is contained in:
@@ -148,6 +148,25 @@ public class Menu {
|
|||||||
sendAction(actionId, item.getId(), item.getX(), item.getY());
|
sendAction(actionId, item.getId(), item.getX(), item.getY());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void interact(Item item, int action){
|
||||||
|
int actionId = 447;
|
||||||
|
switch (action){
|
||||||
|
case 0:
|
||||||
|
actionId = 447;
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
actionId = 847;
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
actionId = 1125;
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
actionId = 1107;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
sendAction(actionId, item.getSlot(), item.getId(), 3214);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Drops an item
|
* Drops an item
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ public class Item {
|
|||||||
* @param i
|
* @param i
|
||||||
*/
|
*/
|
||||||
public void interact(int i) {
|
public void interact(int i) {
|
||||||
// TODO
|
Menu.interact(this, i);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void transform(int actionIndex, int interfaceParentId) {
|
public void transform(int actionIndex, int interfaceParentId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user