Originally Posted by
NicknKickn
Ok, so I know how to add a case that removes an object after being click as demonstrated here:
--clickObject.java--
case 122:
c.startAnimation(794);
c.getItems().addItem(c.getPA().objectClicked2(), 1);
c.sendMessage("Thanks for donating, here is one free item!");
c.sendMessage("This can only be clicked once, hope you got something good!");
c.getPA().checkObjectSpawn(-1, 3305, 2759, 0, 10); //Donor balloons!
Clicking that calls this, then the balloons disappear (Ballons are 122):
public static int objectClicked[] = {11732, 4087, 3140, 4151, 6585, 11283, 11235, 20072, 2643, 13736};
public int objectClicked2() {
return objectClicked[(int)(Math.random()*objectClicked.length)];
}
Although, when you teleport back to the area, logout, or dc of some sort, the balloons spawn back and you're able to click them again. I want to know how to have the balloons vanish forever when clicked by each individual person. Has anyone got ANY ideas?