Thread: Deflect sprite.

Results 1 to 3 of 3
  1. #1 Deflect sprite. 
    Registered Member

    Join Date
    Sep 2011
    Posts
    5,121
    Thanks given
    1,333
    Thanks received
    1,795
    Rep Power
    1731
    So I fixed my veng recently and here's my veng method. The problem I'm facing is that the combat icon shows up with the deflect icon. I've highlighted the line where this is all handled, and the 0 in: c, damage, 0, 3, and the 3 represents the recoil hit. When I comment out that line that I've highlighted it shows the melee icon as a recoil hit from the veng. I need it so that the recoil sprite will show up by itself.


    Code:
    	public void appendVengeance(int otherPlayer, int damage) {
    		if (damage <= 0)
    			return;
    		Player o = Server.playerHandler.players[otherPlayer];
    		o.forcedText = "Taste vengeance!";
    		o.forcedChatUpdateRequired = true;
    		o.updateRequired = true;
    		o.vengOn = false;
    		if ((o.constitution - damage) > 0) {
    			damage = (int)(damage * 0.75);
    			if (damage > c.constitution)
    				damage = c.constitution;
    			appendHit(c, damage, 0, 3, false, 0); //3= deflect sprite!
    			c.setHitDiff2(damage);
    			c.setHitUpdateRequired2(true);
    			c.constitution -= damage;
    			c.getPA().refreshSkill(3);
    		}	
    		c.updateRequired = true;
    	}
    Picture:

    Retired from RSPS. Please don't message me for services, sales or help. Apologies.
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Sep 2011
    Posts
    5,121
    Thanks given
    1,333
    Thanks received
    1,795
    Rep Power
    1731
    Fixed l0l. Thread closed.
    Retired from RSPS. Please don't message me for services, sales or help. Apologies.
    Reply With Quote  
     

  3. #3  
    Registered Member DarkSlayerz's Avatar
    Join Date
    Nov 2008
    Posts
    928
    Thanks given
    88
    Thanks received
    44
    Rep Power
    46
    oty for ur veng method
    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. [PI] Deflect Prayers
    By Mr Impact in forum Tutorials
    Replies: 40
    Last Post: 12-26-2011, 11:07 AM
  2. Deflect Animations & GFx
    By Archspire in forum Requests
    Replies: 5
    Last Post: 08-01-2011, 07:58 PM
  3. [562] deflect curses!
    By iSacred in forum Help
    Replies: 6
    Last Post: 07-06-2011, 04:21 PM
  4. How To Add Deflect Prayers?
    By d43d pk3r in forum Help
    Replies: 0
    Last Post: 02-19-2011, 06:48 PM
  5. Deflect Curses
    By Seb Bruce in forum Show-off
    Replies: 8
    Last Post: 02-06-2010, 09:43 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
  •