Thread: JAD Problem [PI]

Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1 JAD Problem [PI] 
    Registered Member
    Join Date
    Dec 2011
    Posts
    286
    Thanks given
    10
    Thanks received
    4
    Rep Power
    27
    hi R-S when i enter the jad cave (@tzhaars) it says i have to relog and when i relog it still doesnt come alrdy waited like 5 mins.
    any1 knows how/where to fix it?

    im using PI

    EDIT: fightcaves.java :
    Code:
    package server.model.minigames;
    
    import server.Server;
    import server.model.players.Client;
    
    /**
     * @author Sanity
     */
    
    public class FightCaves {
    	private final int[][] WAVES = { { 2627 }, { 2627 }, { 2627 }, { 2743 },
    			{ 2630 }, { 2630 }, { 2630 }, { 2630 }, { 2630 }, { 2631 },
    			{ 2627 }, { 2631 }, { 2631 }, { 2631 }, { 2631 }, { 2631 },
    			{ 2741 }, { 2741 }, { 2630 }, { 2741 }, { 2741 }, { 2741 },
    			{ 2743 }, { 2743 }, { 2743 }, { 2743 }, { 2631 }, { 2741 },
    			{ 2741 }, { 2743 }, { 2743 }, { 2745 } };
    	private int[][] coordinates = { { 2398, 5086 }, { 2387, 5095 },
    			{ 2407, 5098 }, { 2417, 5082 }, { 2390, 5076 }, { 2410, 5090 } };
    
    	// 2743 = 360, 2627 = 22, 2630 = 45, 2631 = 90, 2741 = 180
    	public void spawnNextWave(Client c) {
    		if (c != null) {
    			if (c.waveId >= WAVES.length) {
    				c.waveId = 0;
    				return;
    			}
    			if (c.waveId < 0) {
    				return;
    			}
    			int npcAmount = WAVES[c.waveId].length;
    			for (int j = 0; j < npcAmount; j++) {
    				int npc = WAVES[c.waveId][j];
    				int X = coordinates[j][0];
    				int Y = coordinates[j][1];
    				int H = c.heightLevel;
    				int hp = getHp(npc);
    				int max = getMax(npc);
    				int atk = getAtk(npc);
    				int def = getDef(npc);
    				Server.npcHandler.spawnNpc(c, npc, X, Y, H, 0, hp, max, atk,
    						def, true, false);
    			}
    			c.tzhaarToKill = npcAmount;
    			c.tzhaarKilled = 0;
    		}
    	}
    
    	public int getHp(int npc) {
    		switch (npc) {
    		case 2627:
    			return 10;
    		case 2630:
    			return 20;
    		case 2631:
    			return 40;
    		case 2741:
    			return 80;
    		case 2743:
    			return 150;
    		case 2745:
    			return 250;
    		}
    		return 100;
    	}
    
    	public int getMax(int npc) {
    		switch (npc) {
    		case 2627:
    			return 4;
    		case 2630:
    			return 7;
    		case 2631:
    			return 13;
    		case 2741:
    			return 28;
    		case 2743:
    			return 54;
    		case 2745:
    			return 97;
    		}
    		return 5;
    	}
    
    	public int getAtk(int npc) {
    		switch (npc) {
    		case 2627:
    			return 30;
    		case 2630:
    			return 50;
    		case 2631:
    			return 100;
    		case 2741:
    			return 150;
    		case 2743:
    			return 450;
    		case 2745:
    			return 650;
    		}
    		return 100;
    	}
    
    	public int getDef(int npc) {
    		switch (npc) {
    		case 2627:
    			return 30;
    		case 2630:
    			return 50;
    		case 2631:
    			return 100;
    		case 2741:
    			return 150;
    		case 2743:
    			return 300;
    		case 2745:
    			return 500;
    		}
    		return 100;
    	}
    
    }
    entercave method:
    Code:
     public void enterCaves() {
    		c.getPA().movePlayer(2413, 5117, c.playerId * 4);
    		c.waveId = 0;
    		c.tzhaarToKill = -1;
    		c.tzhaarKilled = -1;
    		Server.fightCaves.spawnNextWave(c);
    		c.jadSpawn();
    		EventManager.getSingleton().addEvent(new Event() {
    			@Override
    			public void execute(EventContainer e) {
    				Server.fightCaves.spawnNextWave((Client) PlayerHandler.players[c.playerId]);
    				e.stop();
    			}
    		}, 10000);
    	}
    jadspawn :
    Code:
     	public void jadSpawn() {
    		// getPA().movePlayer(absX, absY, playerId * 4);
    		getDH().sendDialogues(41, 2618);
    		EventManager.getSingleton().addEvent(new Event() {
    			public void execute(EventContainer c) {
    				Server.fightCaves.spawnNextWave((Client) Server.playerHandler.players[playerId]);
    				c.stop();
    			}
    		}, 10000);
    	}
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Apr 2011
    Posts
    72
    Thanks given
    1
    Thanks received
    0
    Rep Power
    1
    Change coords when you go into the cave, when i walked in the cave the java didn't spawn so the best thing to do is change the coords where you teleport to when you go into the cave.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Freezia's Avatar
    Join Date
    Feb 2011
    Posts
    6,013
    Thanks given
    1,147
    Thanks received
    758
    Rep Power
    1311
    This is not moparscape first of all..


    Host your RUNESCAPE PRIVATE SERVER on the cheapest and flagship provider on Rune-Server! Now equipped with DDOS Protection!.


    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Dec 2011
    Posts
    286
    Thanks given
    10
    Thanks received
    4
    Rep Power
    27
    Quote Originally Posted by Freezia View Post
    This is not moparscape first of all..
    oh SHIT my bad
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Dec 2011
    Posts
    286
    Thanks given
    10
    Thanks received
    4
    Rep Power
    27
    bump
    Reply With Quote  
     

  6. #6  
    Registered Member Mayday Parade's Avatar
    Join Date
    Apr 2009
    Age
    27
    Posts
    495
    Thanks given
    20
    Thanks received
    17
    Rep Power
    8
    follow the rules. Wait 24 hours before bumping threads. This is a common issue, use the search bar. Many people have asked for help and there is at least one guide on this forums for this. Don't be lazy, use the search bar.

    Spoiler for LoL:
    Quote Originally Posted by Imbued View Post
    Quote Originally Posted by pasta186 View Post
    That tutorial doesnt walk.
    That's because it got no legs..
    Best report I've sent? "Mass spam? Also in wrong sexual"
    LOL
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Dec 2011
    Posts
    286
    Thanks given
    10
    Thanks received
    4
    Rep Power
    27
    Quote Originally Posted by Mayday Parade View Post
    follow the rules. Wait 24 hours before bumping threads. This is a common issue, use the search bar. Many people have asked for help and there is at least one guide on this forums for this. Don't be lazy, use the search bar.
    soz about the bump but i searched my ass off and added all the info u guys need
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Dec 2011
    Posts
    286
    Thanks given
    10
    Thanks received
    4
    Rep Power
    27
    any1 cmon pl4wx
    Reply With Quote  
     

  9. #9  
    q.q


    Join Date
    Dec 2010
    Posts
    6,519
    Thanks given
    1,072
    Thanks received
    3,535
    Rep Power
    4752
    i beleive the method for spawning it when you relog is called

    checkSpawn which is found in client.java iirc
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Dec 2011
    Posts
    286
    Thanks given
    10
    Thanks received
    4
    Rep Power
    27
    nop
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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. [PI] Jad Problem
    By ParadoxPvP in forum Help
    Replies: 4
    Last Post: 08-25-2011, 06:23 PM
  2. [pi] jad problem [pi]
    By SaGo in forum Help
    Replies: 16
    Last Post: 03-02-2011, 09:22 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
  •