Thread: Poisoning

Results 1 to 7 of 7
  1. #1 Poisoning 
    If you read this you're gay!
    Infexis's Avatar
    Join Date
    Aug 2009
    Age
    28
    Posts
    4,557
    Thanks given
    1,158
    Thanks received
    1,174
    Rep Power
    2949
    I got full poisoning but how do i make it so it shows into green color when the damage comes instead of red.

    "If you can't explain it simply, you don't understand it well enough." - Albert Einstein
    Reply With Quote  
     

  2. #2  
    Donator

    Join Date
    Jul 2009
    Posts
    1,452
    Thanks given
    27
    Thanks received
    13
    Rep Power
    69
    For most servers, the hitdsplash id's look like these:
    Code:
    0 = blue hitsplash
    1 = red hitsplash
    2 = green hitsplash
    3 = orange hitrsplash
    Reply With Quote  
     

  3. #3  
    If you read this you're gay!
    Infexis's Avatar
    Join Date
    Aug 2009
    Age
    28
    Posts
    4,557
    Thanks given
    1,158
    Thanks received
    1,174
    Rep Power
    2949
    what should i change and where?

    "If you can't explain it simply, you don't understand it well enough." - Albert Einstein
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Feb 2009
    Age
    27
    Posts
    2,861
    Thanks given
    127
    Thanks received
    226
    Rep Power
    700
    The playerDamage method.
    Reply With Quote  
     

  5. #5  
    If you read this you're gay!
    Infexis's Avatar
    Join Date
    Aug 2009
    Age
    28
    Posts
    4,557
    Thanks given
    1,158
    Thanks received
    1,174
    Rep Power
    2949
    The only i find is this one:
    Code:
    	protected void appendHitUpdate(stream str) {		
    		try {
    			str.writeByte(hitDiff); // What the perseon got 'hit' for
    
    			if(hitDiff > 2 && healUpdateRequired && poisonDmg == false){
    				str.writeByteA(0);
    			} else if (hitDiff > 0 && newhptype == false && poisonDmg == false) {
    				str.writeByteA(1); // 0: red hitting - 1: blue hitting
    			} else if (hitDiff > 0 && poisonDmg == true) {
    				str.writeByteA(2); // 0: red hitting - 1: blue hitting 2: poison 3: orange
    			} else if (hitDiff == 0 && poisonDmg == true) {
    				str.writeByteA(2); // 0: red hitting - 1: blue hitting 2: poison 3: orange
    			} else if (hitDiff > 0 && newhptype == true && poisonDmg == false) {
    				str.writeByteA(hptype); // 0: red hitting - 1: blue hitting
    			} else {
    				str.writeByteA(0); // 0: red hitting - 1: blue hitting
    			}
    And if so could u fix it for me, i am confused today

    "If you can't explain it simply, you don't understand it well enough." - Albert Einstein
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Mar 2010
    Posts
    17
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    protected void appendHitUpdate(stream str) {
    try {
    str.writeByte(hitDiff); // What the perseon got 'hit' for

    if(hitDiff > 2 && healUpdateRequired && poisonDmg == false){
    str.writeByteA(0);
    } else if (hitDiff > 0 && newhptype == false && poisonDmg == false) {
    str.writeByteA(1); // 0: red hitting - 1: blue hitting
    } else if (hitDiff > 3 && poisonDmg == true) {
    str.writeByteA(2); // 0: red hitting - 1: blue hitting 2: poison 3: orange
    } else if (hitDiff == 0 && poisonDmg == true) {
    str.writeByteA(2); // 0: red hitting - 1: blue hitting 2: poison 3: orange
    } else if (hitDiff > 0 && newhptype == true && poisonDmg == false) {
    str.writeByteA(hptype); // 0: red hitting - 1: blue hitting
    } else {
    str.writeByteA(0); // 0: red hitting - 1: blue hitting
    }
    try dat sir.

    Haven't been working with java for some time also i was pretty low at it too..
    Reply With Quote  
     

  7. #7  
    Donator

    Join Date
    Jul 2009
    Posts
    1,452
    Thanks given
    27
    Thanks received
    13
    Rep Power
    69
    Code:
    		} else if (hitDiff > 0 && poisonDmg == true) {
    				str.writeByteA(2); // 0: red hitting - 1: blue hitting 2: poison 3: orange
    			} else if (hitDiff == 0 && poisonDmg == true) {
    				str.writeByteA(2); // 0: red hitting - 1: blue hitting 2: poison 3: orange
    str.writeByte(2) equals to green hitsplashes, so its most likely somewere else this goes wrong..
    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

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