Thread: rune claws hit 4 times for espeon

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 33
  1. #1 rune claws hit 4 times for espeon 
    Registered Member
    Join Date
    Dec 2008
    Posts
    241
    Thanks given
    0
    Thanks received
    0
    Rep Power
    4
    ok first off go into player.java and add this

    Code:
    public int specDelay2 = -1;
    then find this in player.java

    Code:
    	if (specDelay > 0) {
    	    specDelay--;
    	}
    	if (specDelay == 0) {
    	    PlayerCombat PC1 = new PlayerCombat(this);
    	    PC1.appendSpecDamage();
    	}
    under that add this

    Code:
    	if (specDelay2 > 0) {
    	    specDelay2--;
    	}
    	if (specDelay2 == 0) {
    	    PlayerCombat PC1 = new PlayerCombat(this);
    	    PC1.appendSpecDamage2();
    	}
    now go into your misc folder should be under items and open playermethods.java

    and add this

    Code:
    	public void setSpecDelay2(int specDelay2) {
    		p.specDelay2 = specDelay2;
    	}
    now go into

    playercombat.java and find this

    Code:
    public void appendSpecDamage() {
    and here is the new code

    Code:
    /**
    	 * Special Damage dealing
    	 */
    	public void appendSpecDamage2() {
    		try {
    			Player en = Server.engine.players[p.enemyIndex];
    			PlayerMethods pm = new PlayerMethods(p);
    			int playerHitDamage = getRandom(getMaxhit());
    			if (p.specDelay2 == 0) {
    				if (!p.duelFight()) {
    					if (!p.isSkulled && en.enemyIndex != p.playerId) {
    						p.headIconSkull = 0;
    						p.skullVanishDelay = 1200;
    						p.isSkulled = true;
    						p.appearanceUpdateReq = true;
    						p.updateReq = true;
    					}
    				}
    				en.enemyIndex = p.playerId;
    				if (!p.hitPlayer(p.enemyIndex)) {
    					if (p.equipment[3] == 5698) {
    						if (p.equipment[3] == 5698) {
    							en.appendHit(0, 0);
    							en.appendHit(0, 0);
    						} else if (p.equipment[3] == 11730 || p.equipment[3] == 11235 || p.equipment[3] == 3204 || p.equipment[3] == 859 || p.equipment[3] == 4153 || p.equipment[3] == 861) {
    							en.appendHit(getRandom(getMaxhit()), 0);
    						}
    						if (p.equipment[3] == 3101) {
    							en.appendHit(getRandom(getMaxhit()), 0);
    							en.appendHit(getRandom(getMaxhit()), 0);
    						}
    						if (p.equipment[3] == 5698) {
    							if (!en.isPoisoned) {
    								en.isPoisoned = true;
    								en.poisonDelay = 45;
    								en.poisonHitCount = 0;
    							}
    						}
    					}
    					else if (hasAccuracy()) {
    						en.appendHit(playerHitDamage, 0);
    						if (p.equipment[3] == 11696) {
    							en.skillLvl[1] -= playerHitDamage;
    							en.getActionSender().setSkillLvl(p, 1);
    						}
    					}
    					else if (!hasAccuracy()) {
    						if (p.equipment[3] == 11235 || p.equipment[3] == 11730 || p.equipment[3] == 3204 || p.equipment[3] == 859 || p.equipment[3] == 861 || p.equipment[3] == 4153) {
    							en.appendHit(getRandom(getMaxhit()), 0);
    						}
    						if (p.equipment[3] == 3101) {
    							en.appendHit(getRandom(getMaxhit()), 0);
    							en.appendHit(getRandom(getMaxhit()), 0);
    						}
    						if (p.equipment[3] == 4151) {
    							en.requestGFX(341, 100);
    						}
    						if (p.equipment[3] == 4153) {
                                                    en.appendHit(0, 0); 
    						}
    						if (p.equipment[3] == 836) {
    							en.requestGFX(1100, 100);
    						}
    						if (p.equipment[3] == 11700) {
                                                          en.freezeDelay = 30;
    							en.requestGFX(369, 0);
    						}
    						if (p.equipment[3] == 11235) {
    							en.requestGFX(1100, 100);
                                              }
    					}
    				} else {
    					if (p.equipment[3] != 5698 && p.equipment[3] != 11235 && p.equipment[3] != 11730 && p.equipment[3] != 3204 && p.equipment[3] != 859 && p.equipment[3] != 4153 && p.equipment[3] != 861 && p.equipment[3] != 3101) {
    						en.appendHit(getRandom(getMaxhit()), 0);
    						if (p.equipment[3] == 4151) {
    							en.requestGFX(341, 100);
    						}
    						if (p.equipment[3] == 11700) {
    							en.requestGFX(369, 0);
    						}
    						if (p.equipment[3] == 11235) {
    							en.requestGFX(1100, 100);
    						}
    						if (p.equipment[3] == 5698) {
    							if (!en.isPoisoned) {
    								en.isPoisoned = true;
    								en.poisonDelay = 45;
    								en.poisonHitCount = 0;
    							}
    						}
    					}
    				}
    				if (en.equipment[5] != -1) {
    					en.requestAnim(en.getBlockAnim(), 0);
    				} else {
    					en.requestAnim(en.getBlockAnim1(), 0);
    				}
    				pm.setSpecDelay2(-1);
    				return;
    			}
    		} catch (Exception e) {
    			return;
    		}
    	}
    
    	/**
    	 * Special Damage dealing
    	 */
    	public void appendSpecDamage() {
    		try {
    			Player en = Server.engine.players[p.enemyIndex];
    			PlayerMethods pm = new PlayerMethods(p);
    			int playerHitDamage = getRandom(getMaxhit());
    			if (p.specDelay == 0) {
    				if (!p.duelFight()) {
    					if (!p.isSkulled && en.enemyIndex != p.playerId) {
    						p.headIconSkull = 0;
    						p.skullVanishDelay = 1200;
    						p.isSkulled = true;
    						p.appearanceUpdateReq = true;
    						p.updateReq = true;
    					}
    				}
    				en.enemyIndex = p.playerId;
    				if (!p.hitPlayer(p.enemyIndex)) {
    					if (p.equipment[3] == 5698) {
    						if (p.equipment[3] == 5698) {
    							en.appendHit(0, 0);
    							en.appendHit(0, 0);
    						} else if (p.equipment[3] == 11730 || p.equipment[3] == 11235 || p.equipment[3] == 3204 || p.equipment[3] == 859 || p.equipment[3] == 4153 || p.equipment[3] == 861) {
    							en.appendHit(getRandom(getMaxhit()), 0);
    						}
    						if (p.equipment[3] == 3101) {
    							en.appendHit(getRandom(getMaxhit()), 0);
    							en.appendHit(getRandom(getMaxhit()), 0);
    						}
    						if (p.equipment[3] == 5698) {
    							if (!en.isPoisoned) {
    								en.isPoisoned = true;
    								en.poisonDelay = 45;
    								en.poisonHitCount = 0;
    							}
    						}
    					}
    					else if (hasAccuracy()) {
    						en.appendHit(playerHitDamage, 0);
    						if (p.equipment[3] == 11696) {
    							en.skillLvl[1] -= playerHitDamage;
    							en.getActionSender().setSkillLvl(p, 1);
    						}
    					}
    					else if (!hasAccuracy()) {
    						if (p.equipment[3] == 11235 || p.equipment[3] == 11730 || p.equipment[3] == 3204 || p.equipment[3] == 859 || p.equipment[3] == 861 || p.equipment[3] == 4153) {
    							en.appendHit(getRandom(getMaxhit()), 0);
    						}
    						if (p.equipment[3] == 3101) {
    							en.appendHit(getRandom(getMaxhit()), 0);
    							en.appendHit(getRandom(getMaxhit()), 0);
    						}
    						if (p.equipment[3] == 4151) {
    							en.requestGFX(341, 100);
    						}
    						if (p.equipment[3] == 4153) {
                                                    en.appendHit(0, 0); 
    						}
    						if (p.equipment[3] == 836) {
    							en.requestGFX(1100, 100);
    						}
    						if (p.equipment[3] == 11700) {
                                                          en.freezeDelay = 30;
    							en.requestGFX(369, 0);
    						}
    						if (p.equipment[3] == 11235) {
    							en.requestGFX(1100, 100);
    						}
    					}
    				} else {
    					if (p.equipment[3] != 5698 && p.equipment[3] != 11235 && p.equipment[3] != 11730 && p.equipment[3] != 3204 && p.equipment[3] != 4153 && p.equipment[3] != 861 && p.equipment[3] != 3101) {
    						en.appendHit(getRandom(getMaxhit()), 0);
    						if (p.equipment[3] == 4151) {
    							en.requestGFX(341, 100);
    						}
    						if (p.equipment[3] == 11700) {
    							en.requestGFX(369, 0);
    						}
    						if (p.equipment[3] == 11235) {
    							en.requestGFX(1100, 100);
    						}
    					} else {
    						en.appendHit(getRandom(getMaxhit()), 0);
    						en.appendHit(getRandom(getMaxhit()), 0);
    						if (p.equipment[3] == 5698) {
    							if (!en.isPoisoned) {
    								en.isPoisoned = true;
    								en.poisonDelay = 45;
    								en.poisonHitCount = 0;
    							}
    						}
    					}
    				}
    				if (en.equipment[5] != -1) {
    					en.requestAnim(en.getBlockAnim(), 0);
    				} else {
    					en.requestAnim(en.getBlockAnim1(), 0);
    				}
    				pm.setSpecDelay(-1);
    				return;
    			}
    		} catch (Exception e) {
    			return;
    		}
    	}
    and now to make it hit 4 times =]]]]

    close playercombat.java and save then reopen and search 11235 two times

    and under that add this

    Code:
     case 3101:
                     /**
    	 * d claws
    	*/
    	p.requestGFX(1215, 100);
    	p.requestAnim(2068, 0);
    	pm.setSpecDelay(2);
    	pm.setSpecDelay2(3);
    	isSpecWep = true;
    	break;
    close save compile and there you go hits 4 times

    if any errors tell me and i will fix for you

    90% credit to me and 10% credit for a palidons source that had specdelay2 so i converted

    have fun dont forgot to add specamount and maxhit to it im not gana show you how cause you probly know how...


    Last edited by josem73111; 03-17-2009 at 09:08 PM. Reason: had to fix something
     

  2. #2  
    Donator

    iZAjz's Avatar
    Join Date
    Mar 2007
    Age
    29
    Posts
    3,675
    Thanks given
    105
    Thanks received
    47
    Rep Power
    1882
    I dont like this tbh..
    And you tried at conventions.
     

  3. #3  
    Donator

    iZAjz's Avatar
    Join Date
    Mar 2007
    Age
    29
    Posts
    3,675
    Thanks given
    105
    Thanks received
    47
    Rep Power
    1882
    Quote Originally Posted by josem73111 View Post
    lmfao smd you nub cake it works fine on my server lol to bad you cant... and btw it's for espeon only i c you use bulby? so smd
    Lmao.. Pretty immature to reply like that.
    Who said im using this?
    And no thanks im using a Clean Pali base.
    I cant help you have to use Espeon or something because you cant proper program.
     

  4. #4  
    That universal language.
    'Ramon's Avatar
    Join Date
    Nov 2008
    Age
    29
    Posts
    3,026
    Thanks given
    116
    Thanks received
    86
    Rep Power
    3165
    Quote Originally Posted by josem73111 View Post
    lol..
    No offence bc it's pretty usefull, but it's just explained a little bit bad


     

  5. #5  
    That universal language.
    'Ramon's Avatar
    Join Date
    Nov 2008
    Age
    29
    Posts
    3,026
    Thanks given
    116
    Thanks received
    86
    Rep Power
    3165
    Quote Originally Posted by josem73111 View Post
    lol..
    No offence bc it's pretty usefull, but it's just explained a little bit bad
    Because of there could be some duplicated cases errors of this tut.


     

  6. #6  
    Brown
    Guest
    Quote Originally Posted by Gєt ∂σωη 4 яคмση♥ View Post
    No offence bc it's pretty usefull, but it's just explained a little bit bad
    Because of there could be some duplicated cases errors of this tut.
    No offence, but you double posted? O,o..
    If you want dragon claws, move to a higher version amfg.
     

  7. #7  
    That universal language.
    'Ramon's Avatar
    Join Date
    Nov 2008
    Age
    29
    Posts
    3,026
    Thanks given
    116
    Thanks received
    86
    Rep Power
    3165
    Quote Originally Posted by Brown View Post
    No offence, but you double posted? O,o..
    If you want dragon claws, move to a higher version amfg.
    I think itīs better to switch to a higher vers. to.


     

  8. #8  
    Registered Member
    Dark Regen's Avatar
    Join Date
    Jan 2009
    Posts
    678
    Thanks given
    184
    Thanks received
    22
    Rep Power
    185
    nice job rep ++
     

  9. #9  
    Registered Member
    Join Date
    Aug 2008
    Posts
    140
    Thanks given
    0
    Thanks received
    0
    Rep Power
    2
    wel oke this is not the best TuT but atleast he was trying it to Convert it.
    wel wat you maybe can change is

    ok first off go into player.java and add this

    Code:

    public int specDelay2 = -1;


    oke i know know i have to put it in player.java but where under?
     

  10. #10  
    kingmoh
    Guest
    i have probelems running now
    when i did that
     

Page 1 of 4 123 ... LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

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
  •