Thread: [PI] appendVeng issue

Results 1 to 4 of 4
  1. #1 [PI] appendVeng issue 
    Banned
    Join Date
    Jul 2010
    Posts
    3
    Thanks given
    29
    Thanks received
    15
    Rep Power
    0
    Ok, so i go to use veng, as i am hit it doesn't apply any damage dealt back to the player who hit me. The appendVeng void just shows the forced text.

    I'll show you my appendVeng.

    *Note that my server has constitution
    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, -1, false);
    		}	
    		c.updateRequired = true;
    	}

    Someone help.
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Jul 2010
    Posts
    3
    Thanks given
    29
    Thanks received
    15
    Rep Power
    0
    bump... need this..
    Reply With Quote  
     

  3. #3  
    Banned imsuperman05's Avatar
    Join Date
    May 2011
    Posts
    410
    Thanks given
    21
    Thanks received
    25
    Rep Power
    0
    try this.
    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.playerLevel[3] - damage) > 0) {
    			damage = (int)(damage * 0.75);
    			if (damage > c.playerLevel[3]) {
    				damage = c.playerLevel[3];
    			}
    			c.setHitDiff2(damage);
    			c.setHitUpdateRequired2(true);
    			c.playerLevel[3] -= damage;
    			c.getPA().refreshSkill(3);
    		}	
    		c.updateRequired = true;
    	}
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Jul 2010
    Posts
    3
    Thanks given
    29
    Thanks received
    15
    Rep Power
    0
    It worked the very first time i casted veng. Now it's not working at all. Wow, this is odd.
    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. Jar issue & Cache Issue
    By Chachi in forum Help
    Replies: 0
    Last Post: 06-19-2009, 02:40 PM
  2. 546 Issue!
    By Inspired Dreams in forum Help
    Replies: 13
    Last Post: 05-31-2009, 09:26 AM
Tags for this Thread

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •