Thread: Atk Ani not working

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 33
  1. #1 Atk Ani not working 
    You only get one shot.

    `Lubricant's Avatar
    Join Date
    Jun 2008
    Age
    29
    Posts
    1,611
    Thanks given
    96
    Thanks received
    86
    Rep Power
    126
    Nobodys looking at my help thread so i misewell post here
    my Atk Ani is not working, i have this, what else do i need
    Code:
    public int getAttackEmote(int id) {
            String weapon = Engine.items.getItemName(id);
            if(weapon.endsWith(" dart") || weapon.endsWith(" knife")) {
                return 2;
           } else if(weapon.endsWith("  c'bow") || weapon.endsWith(" c'bow")) {
                return 4230;
            } else if(weapon.endsWith(" bow") || weapon.equals("Shortbow") || weapon.endsWith(" longbow") || weapon.endsWith(" shortbow")) {
                return 426;
            } else if (weapon.endsWith("2h sword") || weapon.endsWith("godsword") || weapon.equals("Saradomin sword")) {
                return 7041;
            } else if (weapon.equals("Abyssal whip")) {
                return 1658;
            } else if (weapon.endsWith("longsword") || weapon.endsWith("scimitar")) {
    		return 451;
            }
            return 422;
        }



    Neuro-X Supporter
    Helios Supporter
    Matrix RSPS Supporter
    Reply With Quote  
     

  2. #2  
    Registered Member Coty's Avatar
    Join Date
    Sep 2007
    Age
    31
    Posts
    365
    Thanks given
    1
    Thanks received
    0
    Rep Power
    16
    Wrong section

    Reply With Quote  
     

  3. #3  
    You only get one shot.

    `Lubricant's Avatar
    Join Date
    Jun 2008
    Age
    29
    Posts
    1,611
    Thanks given
    96
    Thanks received
    86
    Rep Power
    126
    as said in topic.. nobody looked at my help section topic



    Neuro-X Supporter
    Helios Supporter
    Matrix RSPS Supporter
    Reply With Quote  
     

  4. #4  
    Registered Member
    Hotyute's Avatar
    Join Date
    Jan 2008
    Posts
    2,016
    Thanks given
    7
    Thanks received
    92
    Rep Power
    1482
    a section is a section fudge, stop breaking the rules

    only if you've already posted there, and no one helps you, then you can look to make exceptions


    Reply With Quote  
     

  5. #5  
    You only get one shot.

    `Lubricant's Avatar
    Join Date
    Jun 2008
    Age
    29
    Posts
    1,611
    Thanks given
    96
    Thanks received
    86
    Rep Power
    126
    sorry mtfs



    Neuro-X Supporter
    Helios Supporter
    Matrix RSPS Supporter
    Reply With Quote  
     

  6. #6  
    Registered Member
    Hotyute's Avatar
    Join Date
    Jan 2008
    Posts
    2,016
    Thanks given
    7
    Thanks received
    92
    Rep Power
    1482
    ok well declaring an int wont do any action what so ever, that int needs to be applied to something


    Reply With Quote  
     

  7. #7  
    You only get one shot.

    `Lubricant's Avatar
    Join Date
    Jun 2008
    Age
    29
    Posts
    1,611
    Thanks given
    96
    Thanks received
    86
    Rep Power
    126
    well what do i apply to



    Neuro-X Supporter
    Helios Supporter
    Matrix RSPS Supporter
    Reply With Quote  
     

  8. #8  
    Doctor p - Sweet Shop

    Join Date
    Apr 2007
    Age
    31
    Posts
    6,835
    Thanks given
    150
    Thanks received
    584
    Rep Power
    2595
    Quote Originally Posted by [email protected] View Post
    a section is a section fudge, stop breaking the rules

    only if you've already posted there, and no one helps you, then you can look to make exceptions
    posting in wrong section is a normal thing these days everyone does it

    Reply With Quote  
     

  9. #9  
    You only get one shot.

    `Lubricant's Avatar
    Join Date
    Jun 2008
    Age
    29
    Posts
    1,611
    Thanks given
    96
    Thanks received
    86
    Rep Power
    126
    im guessing no1's gunna help



    Neuro-X Supporter
    Helios Supporter
    Matrix RSPS Supporter
    Reply With Quote  
     

  10. #10  
    Tih0n
    Guest
    Quote Originally Posted by fudge View Post
    Nobodys looking at my help thread so i misewell post here
    my Atk Ani is not working, i have this, what else do i need
    Code:
    public int getAttackEmote(int id) {
            String weapon = Engine.items.getItemName(id);
            if(weapon.endsWith(" dart") || weapon.endsWith(" knife")) {
                return 2;
           } else if(weapon.endsWith("  c'bow") || weapon.endsWith(" c'bow")) {
                return 4230;
            } else if(weapon.endsWith(" bow") || weapon.equals("Shortbow") || weapon.endsWith(" longbow") || weapon.endsWith(" shortbow")) {
                return 426;
            } else if (weapon.endsWith("2h sword") || weapon.endsWith("godsword") || weapon.equals("Saradomin sword")) {
                return 7041;
            } else if (weapon.equals("Abyssal whip")) {
                return 1658;
            } else if (weapon.endsWith("longsword") || weapon.endsWith("scimitar")) {
    		return 451;
            }
            return 422;
        }
    where did you add this?
    Reply With Quote  
     

Page 1 of 4 123 ... 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
  •