Thread: [PI]Very buggged fightcave

Results 1 to 9 of 9
  1. #1 [PI]Very buggged fightcave 
    Banned
    Join Date
    Dec 2009
    Posts
    245
    Thanks given
    11
    Thanks received
    18
    Rep Power
    0
    1. When I enter cave you see this lv. 360 npc after killing him nothing else comes up.

    2. When I normally get jad you can see him but when jad attacks you, the client freezes this happens always when jad attacks.

    Can someone fully explain me how to re-add fightcave with 1 wave if can.
    Also so simply enough and working.

    Fightcave.java
    Code:
    package server.model.minigames;
    
    import server.model.players.Client;
    import server.Server;
    
    /**
    * @author Sanity
    */
    
    public class FightCaves {
    private final int[][] WAVES = {{2743},{2743}};
    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 > 1){
    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;
    }
    
    
    }
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Dec 2009
    Posts
    245
    Thanks given
    11
    Thanks received
    18
    Rep Power
    0
    Still need help
    Reply With Quote  
     

  3. #3  
    Registered Member
    Spoof's Avatar
    Join Date
    Jun 2009
    Age
    14
    Posts
    1,475
    Thanks given
    105
    Thanks received
    122
    Rep Power
    1634
    Post your code for number 1.

    Number 2. It's NPC animations are probably screwed, check in NPC.java
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Dec 2009
    Posts
    245
    Thanks given
    11
    Thanks received
    18
    Rep Power
    0
    Did post now
    Reply With Quote  
     

  5. #5  
    Banned
    Join Date
    Dec 2009
    Posts
    245
    Thanks given
    11
    Thanks received
    18
    Rep Power
    0
    Still need help
    Reply With Quote  
     

  6. #6  
    Banned
    Join Date
    Dec 2009
    Posts
    245
    Thanks given
    11
    Thanks received
    18
    Rep Power
    0
    Meh need help
    Reply With Quote  
     

  7. #7  
    Donator

    Arithium's Avatar
    Join Date
    May 2010
    Age
    31
    Posts
    4,721
    Thanks given
    199
    Thanks received
    1,256
    Rep Power
    1114
    animations being called should be in npcHandler.java not npc.java and you just have to relog when it doesnt show next wave
    Reply With Quote  
     

  8. #8  
    Banned
    Join Date
    Dec 2009
    Posts
    245
    Thanks given
    11
    Thanks received
    18
    Rep Power
    0
    When I spawn the TzTok-Jad in somewhere else then fightcave I can see him, but in tzhaar I can't.
    Reply With Quote  
     

  9. #9  
    Banned
    Join Date
    Dec 2009
    Posts
    245
    Thanks given
    11
    Thanks received
    18
    Rep Power
    0
    Mehh help please anyone really need this
    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. [PI] 100% Correct 63 wave FightCave spawn's [PI]
    By Mr Impact in forum Configuration
    Replies: 26
    Last Post: 11-05-2010, 01:42 PM
  2. [PI]Very bugged fightcave
    By Assassino in forum Help
    Replies: 2
    Last Post: 09-21-2010, 01:39 AM
  3. pi fightcave fix
    By Romania Clan in forum Requests
    Replies: 4
    Last Post: 09-19-2010, 10:11 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
  •