Ok, so heres what you do
go to actionhandler and in your first click object method, add a case for the object id...
then in that case do somthing like this, to delete the object. and send a message
case ****:
c.getPA().checkObjectSpawn(-1, x, y, 0, 10); //spider web coords
c.sendMessage("You slash throught the web.");
break;
hope this helped
EDIT: my case:
Code:
case 733:
c.startAnimation(451);
if (Misc.random(1) == 1) {
c.getPA().removeObject(c.objectX, c.objectY);
c.sendMessage("You slash the web.");
} else {
c.sendMessage("You fail to slash the webs.");
}
if (c.objectX == 3158 && c.objectY == 3951) {
new Object(734, c.objectX, c.objectY, c.heightLevel, 1, 10, 733, 50);
} else {
new Object(734, c.objectX, c.objectY, c.heightLevel, 0, 10, 733, 50);
}
break;