Hello, I have been working on my hyperion server and right now I am doing clue scrolls. I have everything working correctly except i can not figure out this bug/glitch.
Say you need to dig at 2515 3860
if you walk over 2515 3860 - you complete the clue
without digging or anything
Code:
This is in the Click Item packet
if(item.getId() == 952) {
player.playAnimation(Animation.create(831));
World.getWorld().submit(new Event(600) {
@Override
public void execute() {
player.playAnimation(Animation.create(-1));
if(player.getLocation().getX() == player.clueCoords[0][0] && player.getLocation().getY() == player.clueCoords[0][1]) {
if(player.clueTask[0] == 1 && player.getMob().getInventory().contains(2678)) {
player.clueTask[0] = 0;
player.playAnimation(Animation.create(862));
player.getActionSender().sendMessage("You have found another casket..");
player.getInventory().remove(new Item(2678, 1));
player.getInventory().add(new Item(2720, 1));
}
}
}
});
any suggestions
thanks in advance!