April 28, 201510 yr Haven't scripted for 1.5 years now so how do i check if my player is in the area with this current api?
April 28, 201510 yr Author Area a = new Area(x,y,x,y); if (a.contains(myPlayer()) { //blah } One more, back in the day we had selectinventoryoption what is it now? Edited April 28, 201510 yr by ProxDox
April 28, 201510 yr One more, back in the day we had selectinventoryoption what is it now? select inventory option? not sure what that's trying to do. Perhaps you mean interacting with an item in ur inventory? inventory.interact(this.inventory.getSlot("item name"), "Use");
April 28, 201510 yr Author select inventory option? not sure what that's trying to do. Perhaps you mean interacting with an item in ur inventory? inventory.interact(this.inventory.getSlot("item name"), "Use"); Yeha that helped me thanks just one more x.D can you give an example of getting the distance between player and grounditem Edited April 28, 201510 yr by ProxDox
April 28, 201510 yr Yeha that helped me thanks just one more x.D can you give an example of getting the distance between player and grounditem GroundItem g = new GroundItem("name"); int dist = map.distance(g); i think
April 28, 201510 yr select inventory option? not sure what that's trying to do. Perhaps you mean interacting with an item in ur inventory? inventory.interact(this.inventory.getSlot("item name"), "Use"); Why you give him ugly code getInventory().getItem("item name").interact("action");
Create an account or sign in to comment