Show us what you added.
Or show the error in the server logs.
|
I added thieving stalls, they work but whenever I level up it freezes. Anyone know what the problem is?
Show us what you added.
Or show the error in the server logs.
this is the error on clientThis is my theifstall void:Exception in thread "Thread-5" java.lang.ArithmeticException: / by zero
at Class30_Sub2_Sub4_Sub6.method482(Class30_Sub2_Sub4 _Sub6.java:1495)
at client.method105(client.java:8399)
at client.method18(client.java:175)
at client.method102(client.java:7906)
at client.method9(client.java:8761)
at Applet_Sub1.run(Applet_Sub1.java:122)
at client.run(client.java:4438)
at java.lang.Thread.run(Thread.java:619)
And these are some of my stalls:public void TheifStall2(String stallName, String message, int lvlReq, int XPamount, int item, int itemAmount, int delay, int emote) {
if(theifTimer == 0) {
if(playerLevel[17] >= lvlReq) {
setAnimation(emote);
sendMessage(message);
addItem(item, itemAmount);
addSkillXP(XPamount, 17);
theifTimer = delay;
}
else if(playerLevel[17] < lvlReq) {
sendMessage("You need a theiving level of "+lvlReq+" to theif from this stall.");
}
}
}
case 4464: //
TheifStall2("table", "You Steal 100k!", 40, 200*playerLevel[17], Item.randomarmour(), 100000, 40, 0x340);
break;
case 4463: //
TheifStall2("table", "You Steal 300k!", 80, 300*playerLevel[17], Item.randomarmour(), 300000, 40, 0x340);
break;
case 4462: //
TheifStall2("table", "You Steal 50k!", 1, 100*playerLevel[17], Item.randomarmour(), 50000, 40, 0x340);
break;
case 4460: //
TheifStall2("table", "You Steal 250k!", 65, 400*playerLevel[17], Item.randomarmour(), 250000, 40, 0x340);
break;
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |