Thread: help help help help help!!!!!

Results 1 to 3 of 3
  1. #1 help help help help help!!!!! 
    Registered Member ScoobyDoo's Avatar
    Join Date
    Mar 2013
    Posts
    132
    Thanks given
    18
    Thanks received
    2
    Rep Power
    10
    Hello, i need requestance on my combatassitant : so when i attack a npc or a player with a weapon and i would switch to another weapon it would keep attacking the guy instead of just stop the auto attack : i would need the methods for switching weps so i could add a resetCombat to it but i don't know the cases could anyone help me out with this please?
    so wot would be the method i would add the resetCombat method to or better where should i add it


    this is the 3rd topic i make about this in one week no one managed to help me : this is sad please anyone who can help me.
    Attached image
    Reply With Quote  
     

  2. #2  
    Registered Member muppet head's Avatar
    Join Date
    Aug 2010
    Posts
    68
    Thanks given
    1
    Thanks received
    1
    Rep Power
    27
    In your WearItem.java (server\model\players\packets\WearItem.java):

    find: "int oldCombatTimer = c.attackTimer;" or

    "if (!c.getItems().playerHasItem(c.wearId, 1, c.wearSlot)) {
    return;
    }
    "

    and add after that:
    Code:
    if (c.playerIndex > 0 || c.npcIndex > 0)
    			c.getCombat().resetPlayerAttack();
    Reply With Quote  
     

  3. #3  
    Registered Member ScoobyDoo's Avatar
    Join Date
    Mar 2013
    Posts
    132
    Thanks given
    18
    Thanks received
    2
    Rep Power
    10
    Quote Originally Posted by muppet head View Post
    In your WearItem.java (server\model\players\packets\WearItem.java):

    find: "int oldCombatTimer = c.attackTimer;" or

    "if (!c.getItems().playerHasItem(c.wearId, 1, c.wearSlot)) {
    return;
    }
    "

    and add after that:
    Code:
    if (c.playerIndex > 0 || c.npcIndex > 0)
    			c.getCombat().resetPlayerAttack();
    it was written like that already . so didn't help . no one who can help me on this i guess.
    Attached image
    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. [Help] Vista to Xp [Help]
    By Angelo in forum Software
    Replies: 8
    Last Post: 01-03-2009, 07:14 AM
  2. [HELP]Closing a client[HELP]
    By t3aowner in forum Help
    Replies: 0
    Last Post: 10-25-2008, 04:04 AM
  3. [HELP] 1 Compiling Error [HELP]
    By eXtrosion in forum Help
    Replies: 6
    Last Post: 10-18-2008, 07:31 PM
  4. Java Help + Compiler Errors + highscores help
    By Silenced in forum Requests
    Replies: 6
    Last Post: 10-16-2008, 03:38 PM
  5. help dragonplate need arms? help? messedupp?
    By Dragonking in forum Models
    Replies: 12
    Last Post: 09-14-2008, 09:31 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
  •