Thread: Special bug, shows up after weapon switch

Results 1 to 3 of 3
  1. #1 Special bug, shows up after weapon switch 
    Registered Member
    Join Date
    Nov 2011
    Posts
    2
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    I found out that my client has korasi, but not special, so i decided to try to add it.
    I viewed a lot of tutorials on how to do it, but at the end i just decided to do it myself.
    so firstly i copied sgs special and added everything into combatassistant.java. it looked something like this
    Code:
    			case 19784:
    			if(c.specAmount >= 5.5) {
    				c.specAmount -= 5.5;
    				c.getItems().addSpecialBar(weapon);
    					return true;
    			}
    			return false;
    and the special bar code =
    Code:
                 case 19784: //korasi
    			c.getPA().sendFrame171(0, 7599);
    			specialAmount(weapon, c.specAmount, 7686);
    			break;
    and the bar, only appears after you scrool trough weapons that have specal working. But when you get it to work - switch weapon aand it's gone again.
    Biggest confusion i ever had. help anyone please?
    Reply With Quote  
     

  2. #2  
    Registered Member Aintaro.'s Avatar
    Join Date
    Sep 2010
    Posts
    998
    Thanks given
    188
    Thanks received
    213
    Rep Power
    37
    Quote Originally Posted by iamtotalygonnaregister View Post
    I found out that my client has korasi, but not special, so i decided to try to add it.
    I viewed a lot of tutorials on how to do it, but at the end i just decided to do it myself.
    so firstly i copied sgs special and added everything into combatassistant.java. it looked something like this
    Code:
    			case 19784:
    			if(c.specAmount >= 5.5) {
    				c.specAmount -= 5.5;
    				c.getItems().addSpecialBar(weapon);
    					return true;
    			}
    			return false;
    and the special bar code =
    Code:
                 case 19784: //korasi
    			c.getPA().sendFrame171(0, 7599);
    			specialAmount(weapon, c.specAmount, 7686);
    			break;
    and the bar, only appears after you scrool trough weapons that have specal working. But when you get it to work - switch weapon aand it's gone again.
    Biggest confusion i ever had. help anyone please?
    your sending the wrong frame to the client:

    it should be like this :
    Code:
    c.getPA().sendFrame171(0, 7574); 
    specialAmount(weapon, c.specAmount, 7586);
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Nov 2011
    Posts
    2
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    nope still the same :/
    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. weapon switch glitsch! HELP
    By samet50 in forum Help
    Replies: 0
    Last Post: 02-06-2010, 02:43 AM
  2. 525 setInterfaceConfig (Shows special bar)
    By Edu in forum Configuration
    Replies: 64
    Last Post: 08-20-2009, 04:19 AM
  3. Replies: 0
    Last Post: 05-19-2009, 05:29 AM
  4. [508] Weapon switch
    By iZAjz in forum Requests
    Replies: 4
    Last Post: 04-17-2009, 11:46 PM
  5. [508] 2 sec waiting before switch weapon[508]
    By ghostrevan in forum Help
    Replies: 5
    Last Post: 03-16-2009, 11:41 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
  •