System.currentTimeMillis()
|
Well i made an exp lamp (dragonkin lamp) and i added the little interface to it. But when you mass click the button, it gives you the exp as many times as you click it. heres a vid to show you:
I would really like to find a way to fix this :/ if you need to see my code for it let me know
System.currentTimeMillis()
can you explain to me how i would add that to this:
Code:case 10252: //attack xp give c.getPA().addSkillXP(1500000, 0); c.getPA().closeAllWindows(); c.getItems().deleteItem(18782, 1); c.sendMessage("You have received 1.5m Attack experience."); break;
im obviously new to this
i don't code but i've read enough of these threads so..
"delete item and close window before giving exp" is the usual response.
even if i re-order it like this:
your still able to spam click itCode:case 10252: //attack xp give c.getPA().closeAllWindows(); c.getItems().deleteItem(18782, 1); c.getPA().addSkillXP(1500000, 0); c.sendMessage("You have received 1.5m Attack experience."); break;
Here:
Code:case BUTTONID: if (c.getItems().playerHasItem(18782)) { c.getPA().addSkillXP(skill method); c.getItems().deleteItem2(18782, 1); c.sendMessage("You gained 1,5m exp"); c.getPA().closeAllWindows(); } else c.sendMessage("You dont have a Lamp"); break;
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |