Thread: [PI] Dragonclaws soulsplit dc

Results 1 to 10 of 10
  1. #1 [PI] Dragonclaws soulsplit dc 
    Banned rexz0rd's Avatar
    Join Date
    Jan 2009
    Posts
    721
    Thanks given
    38
    Thanks received
    101
    Rep Power
    0
    When ever i spec with dclaws and use soulsplit i dc (it only dces at players)

    Code:
    	public void applySoulSplit(int index, int damage) {
    		if (!c.curseActive[18])
    			return;
    		if (Server.playerHandler.players[index] != null) { 
    			final Client c2 = (Client)Server.playerHandler.players[index];
    			final int pX = c.getX();
    			final int pY = c.getY();
    			final int oX = c2.getX();
    			final int oY = c2.getY();
    			int offX = (pY - oY)* -1;
    			int offY = (pX - oX)* -1;
    			if (damage > 0) {
    				c2.playerLevel[5] -= 1;
    				if (c2.playerLevel[5] <= 0) {
    					c2.playerLevel[5] = 0;
    					c2.getCombat().resetPrayers();
    				}
    				if (c.playerLevel[3] >= c.getLevelForXP(c.playerXP[3])) {
    					c.playerLevel[3] += 0;
    				} else {
    					if (c.playerLevel[3] + ((damage * 4)/10) < c.getLevelForXP(c.playerXP[3])) {
    						c.playerLevel[3] += (damage * 4) / 10;
    					} else {
    						c.playerLevel[3] += (c.getLevelForXP(c.playerXP[3]) - c.playerLevel[3]);
    					}	
    				}
    			c.getPA().refreshSkill(3);
    			c2.getPA().refreshSkill(5);
    			}
    			c.getPA().createPlayersProjectile(pX, pY, offX, offY, 50, 45, 2263, 31, 31, - c.oldPlayerIndex - 1, 0);
    			c.soulSplitDelay = 4;
    			EventManager.getSingleton().addEvent(new Event() {
    				public void execute(EventContainer s) {
    					if (c.soulSplitDelay > 0) {
    						c.soulSplitDelay--;
    					}
    					if (c.soulSplitDelay == 3) {
    						c2.gfx0(2264);
    					}
    					if (c.soulSplitDelay == 2) {
    						int offX2 = (oY - pY)* -1;
    						int offY2 = (oX - pX)* -1;
    						c.getPA().createPlayersProjectile(oX, oY, offX2, offY2, 50, 45, 2263, 31, 31, - c.playerId - 1, 0);
    					}
    					if (c.soulSplitDelay == 0) {	
    						s.stop();
    					}
    				}
    			}, 500);
    		}
    	}
    i already tried commenting the gfx 2264 out but nothing happend any1 knows a fix?
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Sep 2010
    Age
    29
    Posts
    567
    Thanks given
    147
    Thanks received
    202
    Rep Power
    0
    anything in the cmd?
    Reply With Quote  
     

  3. #3  
    Registered Member
    gomomo11's Avatar
    Join Date
    May 2010
    Posts
    2,379
    Thanks given
    268
    Thanks received
    196
    Rep Power
    177
    Any error b4 u dc?
    Attached image
    no external links without affiliate
    Reply With Quote  
     

  4. #4  
    Banned rexz0rd's Avatar
    Join Date
    Jan 2009
    Posts
    721
    Thanks given
    38
    Thanks received
    101
    Rep Power
    0
    Quote Originally Posted by gomomo11 View Post
    Any error b4 u dc?
    Some client t1's etc
    Reply With Quote  
     

  5. #5  
    Extreme Donator

    Jilic-Matt's Avatar
    Join Date
    May 2011
    Age
    29
    Posts
    1,612
    Thanks given
    799
    Thanks received
    494
    Rep Power
    540
    ask g wishart iknow he fixed this exact problem (i'm a jerk)
    Reply With Quote  
     

  6. #6  
    Banned rexz0rd's Avatar
    Join Date
    Jan 2009
    Posts
    721
    Thanks given
    38
    Thanks received
    101
    Rep Power
    0
    Quote Originally Posted by jilic View Post
    ask g wishart iknow he fixed this exact problem (i'm a jerk)
    ohh kk i got him on msn hes offline tho
    Reply With Quote  
     

  7. #7  
    Extreme Donator

    Jilic-Matt's Avatar
    Join Date
    May 2011
    Age
    29
    Posts
    1,612
    Thanks given
    799
    Thanks received
    494
    Rep Power
    540
    yeh ill tell him when hes back on skype to fix it for ya hes a douche tho lol so might take a lil convincing xD
    Reply With Quote  
     

  8. Thankful user:


  9. #8  
    Banned rexz0rd's Avatar
    Join Date
    Jan 2009
    Posts
    721
    Thanks given
    38
    Thanks received
    101
    Rep Power
    0
    Quote Originally Posted by jilic View Post
    yeh ill tell him when hes back on skype to fix it for ya hes a douche tho lol so might take a lil convincing xD
    thank you.
    Reply With Quote  
     

  10. #9  
    Community Veteran

    WH:II:DOW's Avatar
    Join Date
    Dec 2007
    Age
    34
    Posts
    2,017
    Thanks given
    145
    Thanks received
    872
    Rep Power
    4275
    Quote Originally Posted by rexz0rd View Post
    thank you.
    You're quite the ironic guy, aren't you?
    Reply With Quote  
     

  11. #10  
    Shake n Bake

    Organic's Avatar
    Join Date
    Apr 2010
    Posts
    2,499
    Thanks given
    204
    Thanks received
    324
    Rep Power
    588
    This should work
    Code:
    		if(c.prayerActive[44]) { // SoulSplit
    			if(c.oldPlayerIndex > 0) {
    			Client c2 = (Client)PlayerHandler.players[i];
    			if(Server.playerHandler.players[c.oldPlayerIndex] != null) {
    				try {
    					final int pX = c.getX();
    					final int pY = c.getY();
    					final int nX = Server.playerHandler.players[i].getX();
    					final int nY = Server.playerHandler.players[i].getY();
    					final int offX = (pY - nY)* -1;
    					final int offY = (pX - nX)* -1;
    					c.SSPLIT = true;
    					c.getPA().createPlayersProjectile2(pX, pY, offX, offY, 50, 60, 2263, 15, 15, - c.oldPlayerIndex - 1, 24, 0);
    					c2.getPA().createPlayersProjectile2(pX, pY, offX, offY, 50, 60, 2263, 15,15, - c2.oldPlayerIndex - 1, 24, 0);
    					EventManager.getSingleton().addEvent(new Event() { // CAUSES CRASH
    						public void execute(EventContainer b) {
    							c.SSPLIT = false;
    				        		b.stop();
    						}
    					}, 500);
    					EventManager.getSingleton().addEvent(new Event() { // CAUSES CRASH
    						public void execute(EventContainer b) {
    							c.getPA().createPlayersProjectile2(nX, nY, offX, offY, 50, 50, 2263, 15, 15, - c.playerId - 1, 24, 0);
    				        		b.stop();
    						}
    					}, 600);
    				} catch (Exception e) {
    					e.printStackTrace();
    				}	
    			}
    		}
    	}
    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. Replies: 5
    Last Post: 03-23-2011, 11:58 PM
  2. Need help with soulsplit 317
    By Dion in forum Help
    Replies: 1
    Last Post: 03-01-2011, 02:11 PM
  3. SoulSplit
    By grats in forum Requests
    Replies: 0
    Last Post: 12-22-2010, 07:26 PM
  4. Replies: 14
    Last Post: 01-09-2010, 01:04 AM
  5. [DELTA]DragonClaws
    By Torture in forum Help
    Replies: 1
    Last Post: 07-15-2009, 02:51 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
  •