Thread: [PI] Correct Korasi spec (Single combat)

Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1. #1 [PI] Correct Korasi spec (Single combat) 
    Registered Member

    Join Date
    Aug 2008
    Posts
    2,730
    Thanks given
    336
    Thanks received
    311
    Rep Power
    845


    Before anyone says anything, this is using 317 gfx and animations. Don't like em, substitute them with the correct 641 ones.

    This includes the sword doing a magic based attack with the xp etc.

    And I'm not releasing my on player spec but it's very easy to convert this for pvp also. I'm also not releasing the multi effect which is only slightly more difficult.

    Code:
    		String weaponName = c.getItems().getItemName(weapon).toLowerCase();
    		if(weaponName.contains("korasi")) {
    			Random r = new Random();
    			c.startAnimation(1872);
            	final double multiplier = r.nextDouble() + 0.5;
                if (c.playerIndex > 0) {
                	Client o = (Client) PlayerHandler.players[c.playerIndex];
                	
                } else if (c.npcIndex > 0) {
                	final NPC n = NPCHandler.npcs[c.npcIndex];
        			EventManager.getSingleton().addEvent(new Event() {
        				int timer = 1;
        				public void execute(EventContainer c) {
        					if(c == null)
        						c.stop();
        					switch(timer) {
    	    					case 1:
    	    						n.gfx100(1224);
    	    					break;
    	    					case 0:
    	    		            	npcMageDamage((int) (calculateMeleeMaxHit() * multiplier));
    	        					c.stop();
    	    					break;
        					}
        					timer--;
        				}
        			}, 600);
                	c.attackTimer = 5;
                }
    		}
    Code:
    	public void npcMageDamage(int damage) {
    		int i = c.npcIndex;
    		int bonusAttack = getBonusAttack(i);
    		if (Misc.random(Server.npcHandler.npcs[i].defence) > 10+ Misc.random(mageAtk()) + bonusAttack) {
    			damage/=2;
    		} else if (Server.npcHandler.npcs[i].npcType == 2881 || Server.npcHandler.npcs[i].npcType == 2882) {
    			damage/=2;
    		}
    		if (Server.npcHandler.npcs[i].HP - damage < 0) { 
    			damage = Server.npcHandler.npcs[i].HP;
    		}
    		c.getPA().addSkillXP((damage*Config.MAGIC_EXP_RATE), 6); 
    		c.getPA().addSkillXP((damage*Config.MAGIC_EXP_RATE/3), 3);
    		c.getPA().refreshSkill(3);
    		c.getPA().refreshSkill(6);
    		if (damage > 0) {
    			if (Server.npcHandler.npcs[i].npcType >= 3777 && Server.npcHandler.npcs[i].npcType <= 3780) {
    				c.pcDamage += damage;					
    			}				
    		}
    		Server.npcHandler.npcs[i].underAttack = true;
    		Server.npcHandler.npcs[i].hitDiff = damage;
    		Server.npcHandler.npcs[i].HP -= damage;
    		Server.npcHandler.npcs[i].hitUpdateRequired = true;
    		c.totalDamageDealt += damage;
    		c.killingNpcIndex = c.oldNpcIndex;			
    		Server.npcHandler.npcs[i].updateRequired = true;
    	}
    Rune-server ****ed up my conventions...hell yea...
    >Animes
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Aug 2010
    Posts
    171
    Thanks given
    28
    Thanks received
    1
    Rep Power
    0
    Correct? Its a d scim spec.
    Reply With Quote  
     

  3. #3  
    Owner of OverloadX
    Richie's Avatar
    Join Date
    Sep 2009
    Age
    18
    Posts
    791
    Thanks given
    82
    Thanks received
    18
    Rep Power
    6
    Ohh damn looks good.
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Apr 2011
    Age
    19
    Posts
    544
    Thanks given
    242
    Thanks received
    48
    Rep Power
    0
    d scim spec + sum sparks (those sparks seem like turmoil on 474's)
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Aug 2008
    Posts
    2,730
    Thanks given
    336
    Thanks received
    311
    Rep Power
    845
    Quote Originally Posted by Tea v2 View Post
    Correct? Its a d scim spec.
    It's the closest animation to the Korasi in a 317 loading 641 models client.

    And the effects are certainly not those of the Dragon Scimitar.
    >Animes
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Apr 2011
    Posts
    59
    Thanks given
    15
    Thanks received
    4
    Rep Power
    1
    Quote Originally Posted by Kataang View Post
    It's the closest animation to the Korasi in a 317 loading 641 models client.

    And the effects are certainly not those of the Dragon Scimitar.
    The "animations" for the korasi have all been released.
    Reply With Quote  
     

  7. #7  
    Registered Member

    Join Date
    Aug 2008
    Posts
    2,730
    Thanks given
    336
    Thanks received
    311
    Rep Power
    845
    in a 317 loading 641 models client.
    Mind reading my post next time?
    >Animes
    Reply With Quote  
     

  8. #8  
    Registered Member PvpAllDay's Avatar
    Join Date
    Oct 2010
    Posts
    188
    Thanks given
    5
    Thanks received
    10
    Rep Power
    40
    Looks awesome
    If the sperms are strong enough to swim down your belly and up your ****** and tubes, they deserve to live.
    Reply With Quote  
     

  9. #9  
    Banned
    Join Date
    Mar 2008
    Posts
    1,945
    Thanks given
    131
    Thanks received
    62
    Rep Power
    0
    this is long and pointless, easier way of doing it in 2 lines
    Reply With Quote  
     

  10. #10  
    Registered Member
    Lomo's Avatar
    Join Date
    Dec 2010
    Posts
    2,657
    Thanks given
    434
    Thanks received
    1,442
    Rep Power
    3051
    Code:
        					if(c == null)
        						c.stop();
    somewhat redundant as it will throw a nullpointerexception, replace with a return statement

    not going to comment on the rest of the code because it will be "flame"
    Signature Removed due to violation of rules
    Reply With Quote  
     

Page 1 of 3 123 LastLast

Thread Information
Users Browsing this Thread

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

Similar Threads

  1. [PI] Korasi Sword Spec! [PI]
    By Mikey in forum Snippets
    Replies: 18
    Last Post: 03-11-2012, 11:40 AM
  2. Korasi, stance adding spec.
    By kenkiter in forum Help
    Replies: 9
    Last Post: 03-12-2011, 02:01 AM
  3. [PI] Correct Korasi Animation
    By I'm A Jerk in forum Help
    Replies: 4
    Last Post: 03-07-2011, 05:17 AM
  4. Trying to add Korasi Sword Spec Rep++
    By kiefer in forum Help
    Replies: 7
    Last Post: 02-10-2011, 09:36 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •