Thread: a quick little question

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 a quick little question 
    Registered Member
    Vox''s Avatar
    Join Date
    Nov 2008
    Age
    31
    Posts
    3,113
    Thanks given
    49
    Thanks received
    181
    Rep Power
    731
    im making a better magic combat in emu 1.7, and should i make it so when you equip ancient staff, it opens the ancient side bar? or have it say "You cannot use blah blah blah with ancient staff"?

    Quote Originally Posted by Zirtrix View Post
    So I've recently changed some things in the server, but when i compile it says
    Code:
    source\server\model\players\packets\Commands.java: 58: error: cannot find symbol
    This.Antileech("Remove This Line");
    ^
    Anyone know the problem?
    Student and Developer for http://www.rune-server.org/runescape...pve-based.html
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Dec 2008
    Posts
    207
    Thanks given
    1
    Thanks received
    0
    Rep Power
    14
    Make it say You cannot use.
    Reply With Quote  
     

  3. #3  
    Member a quick little question Market Banned

    Robin Spud's Avatar
    Join Date
    Aug 2008
    Age
    31
    Posts
    2,338
    Thanks given
    46
    Thanks received
    73
    Rep Power
    1068
    make it load the ancient sidebar whats point making em swith to ancients if they dnt gotta do it proper so..
    ILY Stewie.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Dec 2008
    Posts
    207
    Thanks given
    1
    Thanks received
    0
    Rep Power
    14
    Because they should switch to ancients that's why.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Vox''s Avatar
    Join Date
    Nov 2008
    Age
    31
    Posts
    3,113
    Thanks given
    49
    Thanks received
    181
    Rep Power
    731
    iv decided to make it switch to it. but i ran into a problem. this is my code.
    Code:
    if(AStaff() && c.setSidebarInterface(6, 1151)) {
    c.setSidebarInterface(6, 12855); 
    }
    i get this error
    Code:
    .\server\model\players\CombatAssistant.java:80: 'void' type not allowed here
    if(AStaff() && c.setSidebarInterface(6, 1151)) {
             ^
    1 error
    Press any key to continue . . .

    Quote Originally Posted by Zirtrix View Post
    So I've recently changed some things in the server, but when i compile it says
    Code:
    source\server\model\players\packets\Commands.java: 58: error: cannot find symbol
    This.Antileech("Remove This Line");
    ^
    Anyone know the problem?
    Student and Developer for http://www.rune-server.org/runescape...pve-based.html
    Reply With Quote  
     

  6. #6  
    Member a quick little question Market Banned

    Robin Spud's Avatar
    Join Date
    Aug 2008
    Age
    31
    Posts
    2,338
    Thanks given
    46
    Thanks received
    73
    Rep Power
    1068
    your error is saying that u cant use a void like that...thats what booleans r for...at ur code ur saying if astaff == true basically and vodis dnt have true or false values

    Code:
    if(playerequipment[playerweapon] == ancientstaffid && c.setSidebarInterface(6, 1151)) {
    c.setSidebarInterface(6, 12855); 
    }
    or

    Code:
    if(playerequipment[playerweapon] == ancientstaffid && c.playerAncientMagics == 0) {
    c.setSidebarInterface(6, 12855);
    c.playerAncientMagics == 1;
    }
    ??
    ILY Stewie.
    Reply With Quote  
     

  7. #7  
    Registered Member
    Vox''s Avatar
    Join Date
    Nov 2008
    Age
    31
    Posts
    3,113
    Thanks given
    49
    Thanks received
    181
    Rep Power
    731
    stil get
    Code:
    ------ Compiling ------
    .\server\model\players\CombatAssistant.java:103: 'void' type not allowed here
                    if((c.playerEquipment[c.playerWeapon] == 4675) && (c.setSidebarI
    nterface(6, 1151))) {
                       ^
    1 error
    Press any key to continue . . .
    the stupid thing is that before this, i have
    Code:
    if(FullDEquipped() && Misc.random(2)==1 && c.playerLevel[3] > 0 && c.playerLevel[3] < 18){
    damage = Misc.random(58+calculateMeleeMaxHit());
    
    }
    which includes a void...

    Quote Originally Posted by Zirtrix View Post
    So I've recently changed some things in the server, but when i compile it says
    Code:
    source\server\model\players\packets\Commands.java: 58: error: cannot find symbol
    This.Antileech("Remove This Line");
    ^
    Anyone know the problem?
    Student and Developer for http://www.rune-server.org/runescape...pve-based.html
    Reply With Quote  
     

  8. #8  
    Member a quick little question Market Banned

    Robin Spud's Avatar
    Join Date
    Aug 2008
    Age
    31
    Posts
    2,338
    Thanks given
    46
    Thanks received
    73
    Rep Power
    1068
    oo dude i know why ur getting that now ile tell u why if u cnt get it but have a look at ur code.
    ILY Stewie.
    Reply With Quote  
     

  9. #9  
    Member a quick little question Market Banned

    Robin Spud's Avatar
    Join Date
    Aug 2008
    Age
    31
    Posts
    2,338
    Thanks given
    46
    Thanks received
    73
    Rep Power
    1068
    CLUE:

    if(AStaff() && "c.setSidebarInterface(6, 1151)") {
    c.setSidebarInterface(6, 12855);
    }

    "c.setSidebarInterface(6, 1151)"

    thats the void...that sets the interface u cant use that to determine if they r using the sidebar 1151
    ILY Stewie.
    Reply With Quote  
     

  10. #10  
    Registered Member
    Vox''s Avatar
    Join Date
    Nov 2008
    Age
    31
    Posts
    3,113
    Thanks given
    49
    Thanks received
    181
    Rep Power
    731
    i understand where your going, but i dont know how i would set it up. can you help lol, ill rep you (:

    Quote Originally Posted by Zirtrix View Post
    So I've recently changed some things in the server, but when i compile it says
    Code:
    source\server\model\players\packets\Commands.java: 58: error: cannot find symbol
    This.Antileech("Remove This Line");
    ^
    Anyone know the problem?
    Student and Developer for http://www.rune-server.org/runescape...pve-based.html
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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
  •