Thread: Custom weapon special attack?

Results 1 to 2 of 2
  1. #1 Custom weapon special attack? 
    Registered Member
    Join Date
    Jan 2012
    Posts
    2
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    okay, so im trying to make the special bar show up on a weapon, i got it coded in, but its not showing up. This is the coding i have in combatassistant. And i have it coded in i think its in itemhandler.java, under the show special bar. I have them both coded in.

    Its located under this public boolean.

    Code:
    public boolean checkSpecAmount(int weapon) {
    Code:
                            case 4587:
                            case 859:
                            case 861:
                            case 15701: // dark bow        
                    case 15702: // dark bow        
                    case 15703: // dark bow        
                    case 15704: // dark bow
                    case        14010: <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Custom weapon id.
                    case        14011: <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Custom weapon id.
                            case 11235:
                            case 11700:
                            if(c.specAmount >= 5.5) {
                                    c.specAmount -= 5.5;
                                    c.getItems().addSpecialBar(weapon);
                                    return true;
                            }
                            return false;
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Jan 2012
    Posts
    54
    Thanks given
    1
    Thanks received
    11
    Rep Power
    0
    case <CUSTOM ITEM ID ####>:
    if(c.specAmount >= 5.5) {
    c.specAmount -= 5.5;
    c.getItems().addSpecialBar(weapon);
    return true;
    }
    return false;
    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

Similar Threads

  1. Replies: 4
    Last Post: 07-05-2011, 05:20 PM
  2. Replies: 9
    Last Post: 06-20-2010, 06:58 AM
  3. Replies: 3
    Last Post: 01-23-2010, 06:08 AM
  4. Making a Weapon have a special attack
    By Juvan in forum Tutorials
    Replies: 8
    Last Post: 06-08-2009, 01:10 PM
  5. [help] Adding A custom Special on a weapon
    By pkownage135 in forum Help
    Replies: 3
    Last Post: 02-02-2009, 11:35 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •