Gonna type this out right now, let's see.
In ClickItem
Code:
case 952:
if (c.getItems().playerHasItem(2677, 1) && c.absX == 1000 && c.absY == 2000)) {
c.getItems().deleteItem(2677, 1);
c.getItems().addItem(14484, 1);
c.sendMessage("You dig and find a pair of dragon claws!");
} else {
c.sendMessage("You did but find nothing.");
}
break;
Not tested, but something along those lines should work.
EDIT: Some explanation now that I posted.
Code:
if (c.getItems().playerHasItem(2677, 1) && c.absX == 1000 && c.absY == 2000)) {
This checks that the player has the item 2677 in their inventory, and is sitting on the exact coordinate 1000, 2000. If they do have 2677, and are on 1000, 2000, they will receive dragon claws and their clue scroll will disappear.
Otherwise, you won't find anything.
c.getItems().playerHasItem(2677, 1) = Checks if has clue scroll
c.absX == 1000 = Checks if player is on the 1,000th x coordinate
c.absY == 2000 = Checks if player ison the 1,000th y coordinate
c.getItems().deleteItem(2677, 1); = Deletes the first 2677 it finds in your inventory.
c.getItems().addItem(14484, 1); = Adds a pair of dragon claws
c.sendMessage("You dig and find a pair of dragon claws!"); = Sends message of success
} else {
c.sendMessage("You did but find nothing.");
} = You either didn't have a clue scroll, weren't on the 1,000th x coordinate, or weren't on the 2,000th y coordinate.
Very easy stuff.