Thread: Stop attack on item switch

Results 1 to 3 of 3
  1. #1 Stop attack on item switch 
    Registered Member
    Join Date
    Nov 2012
    Posts
    78
    Thanks given
    4
    Thanks received
    2
    Rep Power
    11
    Hey Rune-server I have a problem with my server. the problem is when I switch from a weapon to a staff like chaotic or staff of light it keeps attacking with melee. does anyone know how to reset the attack on equipping a staff?
    Thanks if anyone would know this.

    and a happy new year to the whole rune-server community
    Reply With Quote  
     

  2. #2  
    Donator


    Join Date
    Sep 2011
    Posts
    2,730
    Thanks given
    1,150
    Thanks received
    907
    Rep Power
    668
    In WearItem, just make it switch to attackStyle = 0; which would switch it to the first attack, which should be bash or something like that.

    Not sure if that's what your question was, but hope this helps.
    Reply With Quote  
     

  3. #3  
    Donator

    Arithium's Avatar
    Join Date
    May 2010
    Age
    31
    Posts
    4,721
    Thanks given
    199
    Thanks received
    1,256
    Rep Power
    1114
    public boolean wearItem(int wearID) { in itemassistant.java somewhere along the lines add c.getCombat().resetPlayerAttack();
    Reply With Quote  
     

  4. Thankful user:



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. [317] switch item [delta]
    By pkersworld in forum Help
    Replies: 21
    Last Post: 07-08-2011, 12:53 AM
  2. Hyperion Switch-Item Streams
    By Brandyn in forum Help
    Replies: 5
    Last Post: 09-16-2010, 05:41 AM
  3. Stop Item Drop on death command/ATTACK ANYWHERE
    By the a g s in forum Requests
    Replies: 2
    Last Post: 05-11-2010, 10:35 PM
  4. [474] - Switch Item Packet
    By Vastiko in forum Snippets
    Replies: 2
    Last Post: 04-10-2010, 04:45 PM
  5. NPC's requirements to attack (switch statement)
    By Greyfield in forum Tutorials
    Replies: 2
    Last Post: 11-29-2009, 04:38 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
  •