Thread: Need

Results 1 to 3 of 3
  1. #1 Need 
    hmu

    Jakey's Avatar
    Join Date
    Sep 2007
    Age
    34
    Posts
    6,489
    Thanks given
    109
    Thanks received
    277
    Rep Power
    1218
    Some help. I believe its the framework from what people have told me i do not know for sure. But i have all the special attacks and the work 100%.

    What the problem is, Iron scimmy's and battleaxe's and other non special attack weapons have special attack bars.


    How would i get rid other them?
    to contact me, PM me on rune-server.
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Jan 2008
    Age
    31
    Posts
    1,380
    Thanks given
    76
    Thanks received
    384
    Rep Power
    962
    Add this method,

    Code:
    public void specialBar(int id, int bar) {
            outStream.createFrame(171);
            outStream.writeByte(bar);
            outStream.writeWord(id);
            flushOutStream();
        }
    Then,
    Code:
    if (isSpecialWeapon(playerEquipment[3])) {
    			specialBar(12323, 0);
    			specialBar(7574, 0);
    			specialBar(7599, 0);
    			specialBar(7549, 0);
    			specialBar(8493, 0);
    			specialBar(7499, 0); 
    		} else {
    			specialBar(12323, 1);
    			specialBar(7574, 1);
    			specialBar(7599, 1);
    			specialBar(7549, 1);
    			specialBar(8493, 1);
    			specialBar(7499, 1); 
    		}
    Code:
    private int[] specialWeapons = {5698, 4151, 4153, 1305, 4587, 1434};
    Code:
    public boolean isSpecialWeapon(int wep) {
    		for (int id : specialWeapons) {
    			if (id == wep) {
    				return true;
    			}
    		}
    			return false;
    	}
    I'll let you figure out where to add,

    Code:
    if (isSpecialWeapon(playerEquipment[3])) {
    			specialBar(12323, 0);
    			specialBar(7574, 0);
    			specialBar(7599, 0);
    			specialBar(7549, 0);
    			specialBar(8493, 0);
    			specialBar(7499, 0); 
    		} else {
    			specialBar(12323, 1);
    			specialBar(7574, 1);
    			specialBar(7599, 1);
    			specialBar(7549, 1);
    			specialBar(8493, 1);
    			specialBar(7499, 1); 
    		}
    Reply With Quote  
     

  3. #3  
    hmu

    Jakey's Avatar
    Join Date
    Sep 2007
    Age
    34
    Posts
    6,489
    Thanks given
    109
    Thanks received
    277
    Rep Power
    1218
    Alright thanks, lol only problem i have with that junk pissed me off i tried like 2 different methods then i broke my mouse =X
    to contact me, PM me on rune-server.
    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
  •