Thread: 525 veng...

Results 1 to 3 of 3
  1. #1 525 veng... 
    devildreams54
    Guest
    hello, im trying to make veng need the levels and the items but im not sure how to do that....

    this is my veng code

    if (buttonId == 14) {
    if(p.veng == true) {
    p.sm("You already have Vengeance casted.");
    return;
    }
    if(p.vengTimer > 0) {
    p.sm("You must wait "+p.vengTimer+" more seconds before casting Vengeance again.");
    return;
    }
    if(p.getSkills().getLevelForXp(6) < 95) {
    p.sm("You need a magic level of 94 to cast this spell.");
    return;
    }
    p.graphics(726, 0);
    p.getInventory().deleteItem(557, 10);
    p.getInventory().deleteItem(560, 2);
    p.getInventory().deleteItem(9075, 4);
    p.animate(4410, 0);
    p.vengTimer = 60;
    p.veng = true;
    p.sm("You cast Vengeance.");


    and theses are the errors i get


    Compiling rs2hd/*.java
    rs2hd/*.java complete
    src\com\rs2hd\content\Magic.java:115: orphaned default
    default:
    ^
    src\com\rs2hd\content\Magic.java:120: 'catch' without 'try'
    } catch (Exception e) { //Stops Exceptions from happening and crashing the serve
    r.
    ^
    src\com\rs2hd\content\Magic.java:120: ')' expected
    } catch (Exception e) { //Stops Exceptions from happening and crashing the serve
    r.
    ^
    src\com\rs2hd\content\Magic.java:120: not a statement
    } catch (Exception e) { //Stops Exceptions from happening and crashing the serve
    r.
    ^
    src\com\rs2hd\content\Magic.java:120: ';' expected
    } catch (Exception e) { //Stops Exceptions from happening and crashing the serve
    r.
    ^
    src\com\rs2hd\content\Magic.java:24: 'try' without 'catch' or 'finally'
    try {
    ^
    src\com\rs2hd\content\Magic.java:123: reached end of file while parsing
    }
    ^
    7 errors
    src\com\rs2hd\content\Magic.java:115: orphaned default
    default:
    ^
    src\com\rs2hd\content\Magic.java:120: 'catch' without 'try'
    } catch (Exception e) { //Stops Exceptions from happening and crashing the serve
    r.
    ^
    src\com\rs2hd\content\Magic.java:120: ')' expected
    } catch (Exception e) { //Stops Exceptions from happening and crashing the serve
    r.
    ^
    src\com\rs2hd\content\Magic.java:120: not a statement
    } catch (Exception e) { //Stops Exceptions from happening and crashing the serve
    r.
    ^
    src\com\rs2hd\content\Magic.java:120: ';' expected
    } catch (Exception e) { //Stops Exceptions from happening and crashing the serve
    r.
    ^
    src\com\rs2hd\content\Magic.java:24: 'try' without 'catch' or 'finally'
    try {
    ^
    src\com\rs2hd\content\Magic.java:123: reached end of file while parsing
    }
    ^
    src\com\rs2hd\content\Magic.java:120: cannot find symbol
    symbol : variable e
    location: class com.rs2hd.content.Magic
    } catch (Exception e) { //Stops Exceptions from happening and crashing the serve
    r.
    ^
    8 errors

    thanks il rep if you can help... im using a 525 server
    Reply With Quote  
     

  2. #2  
    Donator

    iZAjz's Avatar
    Join Date
    Mar 2007
    Age
    26
    Posts
    3,675
    Thanks given
    105
    Thanks received
    47
    Rep Power
    1882
    Missing a brace "}"
    Reply With Quote  
     

  3. #3  
    devildreams54
    Guest
    thank you........
    Reply With Quote  
     


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
  •