Thread: Thieving freezes server and client..

Results 1 to 3 of 3
  1. #1 Thieving freezes server and client.. 
    Registered Member
    Join Date
    Feb 2009
    Posts
    28
    Thanks given
    1
    Thanks received
    0
    Rep Power
    9
    I added thieving stalls, they work but whenever I level up it freezes. Anyone know what the problem is?
     

  2. #2  
    Banned

    Join Date
    Apr 2008
    Posts
    1,075
    Thanks given
    106
    Thanks received
    39
    Rep Power
    0
    Show us what you added.
    Or show the error in the server logs.
     

  3. #3  
    Registered Member
    Join Date
    Feb 2009
    Posts
    28
    Thanks given
    1
    Thanks received
    0
    Rep Power
    9
    this is the error on client
    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)
    This is my theifstall void:
    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.");
    }
    }
    }
    And these are some of my stalls:
    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;
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •