Jump to content

Search the Community

Showing results for tags 'nex'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RuneLocus
    • News & Announcements
    • Information Booth
    • Website Support
    • Introductions
    • Chat
    • Forum Games
  • RuneScape Development
    • RSPS General
    • RuneScape Private Server (RS2)
    • RuneScape Private Server (503+)
    • RuneScape Private Server (EoC 742+)
  • Other
    • Digital Art
    • Gaming
    • Webdevelopment
    • Computers
  • Marketplace
    • RuneScape Market
    • RSPS Market
    • Others Market
    • Freelance Middleman Services
  • Super Secret Club's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 77 results

  1. Hello, ive been looking around and have not been able to find animations for Nex and Vorago, i have both models and they spawn in game. Our server code is a little hard to work with an i am not able to hardcode anims in. If you have these animations and are willing to share please post a link below , also if you are good with adding animations/models/bosses etc. I would be more than happy to extend an invitation to our project. Also if anyone has the ganodermic beast models im looking for those too, all the links for these are on Uppit and none of the work :( theyre all broken. Thanks - Dora (Apoptosis)
  2. It would be great if anyone could give me the link to one.
  3. [CENTER]Hello! And welcome to SOAPK v4 where we hope you will find all of that excellent rsps fun you need and want [URL="http://adf.ly/kSlep"]Desktop client[/URL] [URL="http://sandsofalkahrid.webs.com/"]Website![/URL] [URL="http://www.runelocus.com/toplist/details-38435-SoaPK.html"]screenshots on our runelocus page![/URL] -NEX -KBD -TORMENTED DEMONS -CORPORAL BEAST -KALPHITE QUEEN -ALL GODSWAR BOSSES -BARRELCHEST BOSS -GIANT MOLE -AND MANY MORE besides pvm we have minigames such as -DUEL ARENA -BARROWS -PEST CONTROL -FIGHT PITS/CAVES -ASSAULT -DOMINION TOWER -AND MORE other then whats listed above let me list some of our items that we enjoy -all spirit shields -all godswords -all claws (currently working on a special set of chaotic claws just for you guys:D) -all sets of nex armour -all basic armours like bronze, rune, dragon, etc -ragefire, steadfast, and glaiven boots -polypore staff and many more that you will have to come see (oh did i mention all the chaotics?) With the grand opening of Soapk I walker sadly will not be there seeing as this is my week for finals in college, but never fear! trusty admins are here! with the admins you will find that they will be judging you, watching you, all to see if your fit for our ranks as a mod or bug tester, or what ever else may come in handy for our server. We currently do not have a website(I am working on it though) with due time I will have a support number which you can text/imsg[/CENTER]
  4. Note this system is from Virtue, I take no credit. In NPCHandler.java declare: [CODE] public static int nexCountDown = 0; public boolean[] nexRoom = new boolean[4];[/CODE] and then find public static int getAttackEmote(int i) { under switch (NPCHandler.npcs[i].npcType) { add: [CODE]case 5633: if(npcs[i].nexStage == 1 || npcs[i].nexStage == 2) { switch(npcs[i].glod) { case 1: return 6987; case 2: return 6986; } } else if(npcs[i].nexStage == 3 || npcs[i].nexStage == 4) { switch(npcs[i].glod) { case 1: return 6987; case 2: return 6355; case 3: return 6984; } } else if(npcs[i].nexStage == 5 || npcs[i].nexStage == 6) { switch(npcs[i].glod) { case 1: case 2: return 6987; case 3: return 6948; } } else if(npcs[i].nexStage == 7 || npcs[i].nexStage == 8) { switch(npcs[i].glod) { case 1: case 2: case 3: return 6987; } } else if(npcs[i].nexStage == 9) { switch(npcs[i].glod) { case 1: return 6987; } } return 6354;[/CODE] Now under: public void hitTargetPlayer(Client c, int i, int hit) { add this under npcEffect(c, i, hit); [CODE]if(npcs[i].npcType == 5633) { switch(npcs[i].nexStage) { case 1: case 2: if(npcs[i].glod == 2) { if(c.virusDamage == 0) { c.virusTimer = 10; c.virusDamage = 5; c.forcedChat("*Cough*"); } } if(npcs[i].HP < 2400 && npcs[i].nexStage == 1) { npcs[i].forceChat("Fumus, don't fail me!"); npcs[i].nexStage = 2; nexRoom[0] = true; } break; case 3: case 4: if(npcs[i].glod == 3) { for(int fs = 0; fs < npcs[i].fearShadow.length; fs++) { if(npcs[i].fearShadow[fs][0] == 0) { npcs[i].fearShadow[fs][0] = c.absX; npcs[i].fearShadow[fs][1] = c.absY; break; } } final int DMG = Misc.random(60); final Client c1 = c; final int I = i; EventManager.getSingleton().addEvent(new Event() { public void execute(EventContainer e) { for(int ii = 0; ii < npcs[I].fearShadow.length; ii++) { if(npcs[I].fearShadow[ii][0] > 0) { if(c1.absX == npcs[I].fearShadow[ii][0] && c1.absY == npcs[I].fearShadow[ii][1]) { c1.setHitDiff(DMG); c1.playerLevel[3] -= DMG; c1.getPA().refreshSkill(3); c1.updateRequired = true; c1.setHitUpdateRequired(true); c1.logoutDelay = 20; npcs[I].fearShadow[ii][0] = npcs[I].fearShadow[ii][1] = 0; return; } else { npcs[I].fearShadow[ii][0] = npcs[I].fearShadow[ii][1] = 0; return; } } } e.stop(); } }, 1800); return; } if(npcs[i].HP < 1800 && npcs[i].nexStage == 3) { npcs[i].forceChat("Umbra, don't fail me!"); npcs[i].nexStage = 4; nexRoom[1] = true; } break; case 5: case 6: if(npcs[i].glod == 2) { npcs[i].HP += hit; if(npcs[i].HP > npcs[i].MaxHP) { npcs[i].HP = npcs[i].MaxHP; } c.playerLevel[5] /= 2; } if(npcs[i].glod == 3) { for(int t = 0; t < 1+Misc.random(2); t++) { newNPC3(7643, (npcs[i].absX+1)+Misc.random(2), (npcs[i].absY+1)+Misc.random(2), 0, 0, 101, 15, 140, 10, 2); } npcs[i].cooldown = 30; return; } if(npcs[i].HP < 1200 && npcs[i].nexStage == 5) { npcs[i].forceChat("Cruor, don't fail me!"); npcs[i].nexStage = 6; nexRoom[2] = true; } break; case 7: case 8: if(npcs[i].glod == 1) { if(c.freezeTimer < 0) { c.stopMovement(); c.sendMessage("You have been frozen!"); c.freezeTimer = 30; } } else if(npcs[i].glod == 2) { if(npcs[i].CONTAIN_THIS[0][0] > 0) { if(c.absX > npcs[i].CONTAIN_THIS[0][0] && c.absX < npcs[i].CONTAIN_THIS[1][0] && c.absY > npcs[i].CONTAIN_THIS[0][1] && c.absY < npcs[i].CONTAIN_THIS[1][1]) { int iced = Misc.random(65); c.setHitDiff(iced); c.playerLevel[3] -= iced; c.getPA().refreshSkill(3); c.updateRequired = true; c.setHitUpdateRequired(true); c.logoutDelay = 20; return; } else { return; } } } else if(npcs[i].glod == 3) { c.stopMovement(); int iced = Misc.random(60); c.setHitDiff(iced); c.playerLevel[3] -= iced; c.getPA().refreshSkill(3); c.updateRequired = true; c.setHitUpdateRequired(true); c.logoutDelay = 20; return; } else { return; } if(npcs[i].HP < 600 && npcs[i].nexStage == 7) { npcs[i].forceChat("Glacies, don't fail me!"); npcs[i].nexStage = 8; nexRoom[3] = true; } break; case 9: if(npcs[i].prayerUsed == 1) { npcs[i].HP += hit/5; } break; } }[/CODE] Now in public void attackPlayer(Client c, int i) { add: [CODE]} else if(npcs[i].npcType == 5633) { if(npcs[i].nexStage == 7 || npcs[i].nexStage == 8) { if(npcs[i].glod == 2) { npcs[i].CONTAIN_THIS[0][0] = npcs[i].absX-2; npcs[i].CONTAIN_THIS[0][1] = npcs[i].absY-2; npcs[i].CONTAIN_THIS[1][0] = npcs[i].absX+2; npcs[i].CONTAIN_THIS[1][1] = npcs[i].absY+2; int obx = 0, oby = 0; for(int s = 0; s < 4; s++) { c.getPA().globalObject(534, npcs[i].CONTAIN_THIS[0][0]+obx, npcs[i].CONTAIN_THIS[0][1], 0, 10, 0); c.getPA().globalObject(534, npcs[i].CONTAIN_THIS[1][0]-obx, npcs[i].CONTAIN_THIS[1][1], 0, 10, 0); c.getPA().globalObject(534, npcs[i].CONTAIN_THIS[1][0], npcs[i].CONTAIN_THIS[0][1]+oby, 0, 10, 0); c.getPA().globalObject(534, npcs[i].CONTAIN_THIS[0][0], npcs[i].CONTAIN_THIS[1][1]-oby, 0, 10, 0); obx++; oby++; } final Client c1 = c; final int I = i; EventManager.getSingleton().addEvent(new Event() { public void execute(EventContainer e) { int obX = 0, obY = 0; for(int s = 0; s < 4; s++) { c1.getPA().globalObject(-1, npcs[I].CONTAIN_THIS[0][0]+obX, npcs[I].CONTAIN_THIS[0][1], 0, 10, 0); c1.getPA().globalObject(-1, npcs[I].CONTAIN_THIS[1][0]-obX, npcs[I].CONTAIN_THIS[1][1], 0, 10, 0); c1.getPA().globalObject(-1, npcs[I].CONTAIN_THIS[1][0], npcs[I].CONTAIN_THIS[0][1]+obY, 0, 10, 0); c1.getPA().globalObject(-1, npcs[I].CONTAIN_THIS[0][0], npcs[I].CONTAIN_THIS[1][1]-obY, 0, 10, 0); obX++; obY++; } npcs[I].CONTAIN_THIS[0][0] = 0; e.stop(); } }, 4000); } else if(npcs[i].glod == 3) { c.getPA().globalObject(534, c.absX-1, c.absY-1, 0, 10, 0); c.getPA().globalObject(534, c.absX, c.absY-1, 0, 10, 0); c.getPA().globalObject(534, c.absX+1, c.absY-1, 0, 10, 0); c.getPA().globalObject(534, c.absX+1, c.absY, 0, 10, 0); c.getPA().globalObject(534, c.absX+1, c.absY+1, 0, 10, 0); c.getPA().globalObject(534, c.absX, c.absY+1, 0, 10, 0); c.getPA().globalObject(534, c.absX-1, c.absY+1, 0, 10, 0); c.getPA().globalObject(534, c.absX-1, c.absY, 0, 10, 0); final Client c1 = c; final int I = i; EventManager.getSingleton().addEvent(new Event() { public void execute(EventContainer e) { c1.getPA().globalObject(-1, c1.absX-1, c1.absY-1, 0, 10, 0); c1.getPA().globalObject(-1, c1.absX, c1.absY-1, 0, 10, 0); c1.getPA().globalObject(-1, c1.absX+1, c1.absY-1, 0, 10, 0); c1.getPA().globalObject(-1, c1.absX+1, c1.absY, 0, 10, 0); c1.getPA().globalObject(-1, c1.absX+1, c1.absY+1, 0, 10, 0); c1.getPA().globalObject(-1, c1.absX, c1.absY+1, 0, 10, 0); c1.getPA().globalObject(-1, c1.absX-1, c1.absY+1, 0, 10, 0); c1.getPA().globalObject(-1, c1.absX-1, c1.absY, 0, 10, 0); e.stop(); } }, 4000); } } }[/CODE] Under public static int distanceRequired(int i) { add: [CODE]case 5633: Client c11 = (Client)PlayerHandler.players[npcs[i].killerId]; if(goodDistance(npcs[i].absX, npcs[i].absY, c11.absX, c11.absY, 1 + npcs[i].getTotalNPCSize())) { if(npcs[i].nexStage == 1 || npcs[i].nexStage == 2) { npcs[i].glod = Misc.random2(2); } else if((npcs[i].nexStage == 3 || npcs[i].nexStage == 4) || (npcs[i].nexStage == 5 || npcs[i].nexStage == 6) || (npcs[i].nexStage == 7 || npcs[i].nexStage == 8)) { npcs[i].glod = Misc.random2(3); } else if(npcs[i].nexStage == 9) { npcs[i].glod = Misc.random(1); } } else { if(npcs[i].nexStage == 1 || npcs[i].nexStage == 2) { npcs[i].glod = 1+Misc.random2(1); } else if((npcs[i].nexStage == 3 || npcs[i].nexStage == 4) || (npcs[i].nexStage == 5 || npcs[i].nexStage == 6) || (npcs[i].nexStage == 7 || npcs[i].nexStage == 8)) { npcs[i].glod = 1+Misc.random2(2); } else if(npcs[i].nexStage == 9) { npcs[i].glod = 1; } } if(npcs[i].cooldown > 0) { if(((npcs[i].nexStage == 1 || npcs[i].nexStage == 2) && npcs[i].glod == 2) || ((npcs[i].nexStage == 3 || npcs[i].nexStage == 4) && npcs[i].glod == 2) || ((npcs[i].nexStage == 5 || npcs[i].nexStage == 6) && npcs[i].glod == 2 || npcs[i].glod == 3) || ((npcs[i].nexStage == 7 || npcs[i].nexStage == 8) && (npcs[i].glod == 2 || npcs[i].glod == 3))) { npcs[i].glod = 1; } } return 6 + npcs[i].getNPCSize();[/CODE] under getDeadEmote: [CODE] case 5633: return 6951;[/CODE] under public int getHitDelay(int i) { add: [CODE]case 5633: if(npcs[i].nexStage == 1 || npcs[i].nexStage == 2) { switch(npcs[i].glod){ case 1: case 2: return 4; } } else if(npcs[i].nexStage == 3 || npcs[i].nexStage == 4) { switch(npcs[i].glod){ case 1: case 2: return 4; } } else if(npcs[i].nexStage == 5 || npcs[i].nexStage == 6) { switch(npcs[i].glod){ case 1: case 2: return 4; } } else if(npcs[i].nexStage == 7 || npcs[i].nexStage == 8) { switch(npcs[i].glod){ case 1: return 4; case 2: case 3: return 6; } } else if(npcs[i].nexStage == 9) { switch(npcs[i].glod){ case 1: return 4; } } return 2;[/CODE] Under public int getNpcDelay(final int i) { add: [CODE]case 5633: if((npcs[i].nexStage == 3 || npcs[i].nexStage == 4) && npcs[i].glod == 3) { return 8; } if((npcs[i].nexStage == 5 || npcs[i].nexStage == 6) && npcs[i].glod == 3) { return 18; } if((npcs[i].nexStage == 7 || npcs[i].nexStage == 8) && (npcs[i].glod == 2 || npcs[i].glod == 3)) { return 8; } return 6;[/CODE] Now find public int getProjectileSpeed(int i) { under it find and switch(npcs[i].npcType) { and this under it: [CODE] case 5633: return 100;[/CODE] In getRespawnTime add: [CODE] case 5633: return 300[/CODE] Now find public void loadSpell(Client c, int i) { and add: [CODE]case 5633: if(npcs[i].nexStage == 1 || npcs[i].nexStage == 2) { if(npcs[i].glod == 1) { npcs[i].multiAttack = true; npcs[i].attackType = 2; npcs[i].projectileId = 386; npcs[i].endGfx = 390; } else if(npcs[i].glod == 2) { npcs[i].forceChat("Let the virus flow through you!"); npcs[i].multiAttack = true; npcs[i].attackType = 4; npcs[i].projectileId = -1; npcs[i].endGfx = -1; npcs[i].cooldown = 30; } else { npcs[i].attackType = 0; npcs[i].projectileId = -1; npcs[i].endGfx = -1; } } else if(npcs[i].nexStage == 3 || npcs[i].nexStage == 4) { if(npcs[i].glod == 1) { npcs[i].multiAttack = true; npcs[i].attackType = 1; npcs[i].projectileId = 378; npcs[i].endGfx = -1; } else if(npcs[i].glod == 2) { npcs[i].forceChat("Embrace darkness!"); npcs[i].multiAttack = true; npcs[i].attackType = 4; npcs[i].projectileId = -1; npcs[i].endGfx = -1; npcs[i].cooldown = 30; } else if(npcs[i].glod == 3) { npcs[i].forceChat("Fear the shadow!"); npcs[i].multiAttack = true; npcs[i].attackType = 4; npcs[i].projectileId = -1; npcs[i].endGfx = 382; } else { npcs[i].attackType = 0; npcs[i].projectileId = -1; npcs[i].endGfx = -1; } } else if(npcs[i].nexStage == 5 || npcs[i].nexStage == 6) { if(npcs[i].glod == 1) { npcs[i].multiAttack = true; npcs[i].attackType = 2; npcs[i].projectileId = 374; npcs[i].endGfx = 376; } else if(npcs[i].glod == 2) { npcs[i].forceChat("I demand a blood sacrifice!"); npcs[i].multiAttack = true; npcs[i].attackType = 2; npcs[i].projectileId = -1; npcs[i].endGfx = 377; npcs[i].cooldown = 20; } else if(npcs[i].glod == 3) { npcs[i].forceChat("A siphon will solve this!"); npcs[i].attackType = 2; npcs[i].projectileId = -1; npcs[i].endGfx = -1; } else { npcs[i].attackType = 0; npcs[i].projectileId = -1; npcs[i].endGfx = -1; } } else if(npcs[i].nexStage == 7 || npcs[i].nexStage == 8) { if(npcs[i].glod == 1) { npcs[i].multiAttack = true; npcs[i].attackType = 2; npcs[i].projectileId = 362; npcs[i].endGfx = 369; } else if(npcs[i].glod == 2) { npcs[i].forceChat("Contain this!"); npcs[i].multiAttack = true; npcs[i].attackType = 2; npcs[i].projectileId = -1; npcs[i].endGfx = -1; npcs[i].cooldown = 16; } else if(npcs[i].glod == 3) { npcs[i].forceChat("Die now, in a prison of ice!"); npcs[i].attackType = 2; npcs[i].projectileId = -1; npcs[i].endGfx = -1; npcs[i].cooldown = 16; } else { npcs[i].attackType = 0; npcs[i].projectileId = -1; npcs[i].endGfx = -1; } } else if(npcs[i].nexStage == 9) { if(npcs[i].glod == 1) { npcs[i].multiAttack = true; npcs[i].attackType = 2; npcs[i].projectileId = 386; npcs[i].endGfx = 390; } else { npcs[i].attackType = 0; npcs[i].projectileId = (npcs[i].prayerUsed == 1 ? 2263:-1); npcs[i].endGfx = (npcs[i].prayerUsed == 1 ? 2264:-1); } } break; [/CODE] now find public void multiAttackDamage(final int i) { replace the whole void with this: [CODE] public void multiAttackDamage(final int i) { int dmg2 = npcs[i].maxHit; final int max = getMaxHit(i); for (final Player player : PlayerHandler.players) { if (player != null) { final Client c = (Client) player; if (c.isDead || c.heightLevel != NPCHandler.npcs[i].heightLevel) { continue; } if (player.goodDistance(c.absX, c.absY, NPCHandler.npcs[i].absX, NPCHandler.npcs[i].absY, 15)) { if (NPCHandler.npcs[i].attackType == 2) { if ((15 + Misc.random(c.getCombat().calculateMagicDefence()) < Misc.random(Server.npcHandler.npcs[i].attack)) && !c.prayerActive[16]) { int damage = Misc.random(dmg2); switch(npcs[i].npcType) { case 6222: damage = Misc.random(21); break; case 6203: damage = Misc.random(30); break; case 3072: damage = Misc.random(20); break; case 5633: damage = Misc.random((55)); break; } npcs[i].multiAttack = false; hitTargetPlayer(c, i, damage); } else { int damage = Misc.random(dmg2); npcs[i].multiAttack = false; if(npcs[i].npcType == 3072 && npcs[i].dragon == 5) { hitTargetPlayer(c, i, damage/2); } if(npcs[i].npcType == 5633) { hitTargetPlayer(c, i, damage/2); } else { npcs[i].multiAttack = false; c.gfx100(85); return; } } } else if (NPCHandler.npcs[i].attackType == 1) { if ((15 + Misc.random(c.getCombat().calculateRangeDefence()) < Misc.random(Server.npcHandler.npcs[i].attack)) && !c.prayerActive[17]) { int damage = Misc.random(dmg2); if(npcs[i].npcType == 6260) { damage = Misc.random(35); } else if(npcs[i].npcType == 3072) { damage = Misc.random(25); } else if(npcs[i].npcType == 5633) { damage = Misc.random(40); } npcs[i].multiAttack = false; hitTargetPlayer(c, i, damage); } else { npcs[i].multiAttack = false; hitTargetPlayer(c, i, (npcs[i].npcType == 5633 ? Misc.random(40/2):0)); } } if (NPCHandler.npcs[i].endGfx > 0) { c.gfx0(NPCHandler.npcs[i].endGfx); } } c.getPA().refreshSkill(3); } } }[/CODE] find public boolean multiAttackingNPC(int i) { & add case 5633: (or the ID for Nex). Now, find: public void process() { and add this somewhere: [CODE]if(npcs[i].npcType == 5633) { if(nexCountDown > 0) { nexCountDown--; if(npcs[i].nexStage == 0) { if(nexCountDown == 24) { npcs[i].forceChat("AT LAST!"); } else if(nexCountDown == 18) { npcs[i].forceChat("Fumus!"); npcs[i].startAnimation(6987); npcs[i].turnNpc(2552, 4967); } else if(nexCountDown == 14) { npcs[i].forceChat("Umbra!"); npcs[i].startAnimation(6987); npcs[i].turnNpc(2567, 4967); } else if(nexCountDown == 10) { npcs[i].forceChat("Cruor!"); npcs[i].startAnimation(6987); npcs[i].turnNpc(2567, 4952); } else if(nexCountDown == 6) { npcs[i].forceChat("Glacies!"); npcs[i].startAnimation(6987); npcs[i].turnNpc(2552, 4952); } else if(nexCountDown == 2) { npcs[i].forceChat("Fill my soul with smoke!"); npcs[i].nexStage = 1; } } else if(npcs[i].nexStage == 2) { if(nexCountDown == 1) { npcs[i].forceChat("Darken my shadow!"); npcs[i].nexStage = 3; } } else if(npcs[i].nexStage == 4) { if(nexCountDown == 1) { npcs[i].forceChat("Flood my lungs with blood!"); npcs[i].nexStage = 5; } } else if(npcs[i].nexStage == 6) { if(nexCountDown == 1) { npcs[i].forceChat("Infuse me with the power of ice!"); npcs[i].nexStage = 7; } } else if(npcs[i].nexStage == 8) { if(nexCountDown == 1) { npcs[i].forceChat("NOW, THE POWER OF ZAROS!"); npcs[i].nexStage = 9; nexCountDown = 10; npcs[i].HP += 600; npcs[i].startAnimation(6326); NPCHandler.npcs[i].updateRequired = true; } } } }[/CODE] now find handleJadDeath under the } under it add: [CODE] if(npcs[i].npcType == 5633) { npcs[i].requestTransform(5636); npcs[i].forceChat("Taste my wrath!"); npcs[i].gfx0(2259); }[/CODE] now find npcs[i].isDead) { and add this somewherE: [CODE] } else if(npcs[i].npcType == 5633) { newNPC3(5630, 2552, 4967, 0, 0, 600, 32, 120, 100, 4); newNPC3(5632, 2567, 4967, 0, 0, 600, 32, 120, 100, 4); newNPC3(5631, 2567, 4952, 0, 0, 600, 32, 120, 100, 4); newNPC3(5629, 2552, 4952, 0, 0, 600, 32, 120, 100, 4); for(int nr = 0; nr < nexRoom.length; nr++) { nexRoom[nr] = false; } }[/CODE] Now open NPC.java add declare [CODE] int npcSize; public int prayerUsed = 0; public int extraHitDelay = 0, glod, deadCyle = 1; public final int[][] fearShadow = new int[100][100]; public int diliHits = 30, nexStage = 0, cooldown = 0, mustDie = 0; /** * Face */ public int FocusPointX = -1, FocusPointY = -1; public int face = 0;[/CODE] now add this somewhere: [CODE] public String Glod() { int talk = Misc.random(2); switch(talk) { case 1: return "Glod Angry!"; case 2: return "Glod Bash!"; } return "Glod Smash!"; }[/CODE] add the following anywhere: [CODE] public void turnNpc(final int i, final int j) { FocusPointX = 2 * i + 1; FocusPointY = 2 * j + 1; updateRequired = true; }[/CODE] Now open up Player.Java and add this somewhere: [CODE] public void poisonProcess() { Client p = (Client) Server.playerHandler.players[playerId]; if(virusTimer > -1) { virusTimer--; if (virusTimer == 0 && virusDamage > 0) { forcedChat("*Cough*"); playerLevel[3] -= (playerLevel[3] - virusDamage < 0 ? playerLevel[3]:virusDamage); setHitDiff(virusDamage); setHitUpdateRequired(true); updateRequired = true; p.getPA().refreshSkill(3); virusTimer = 10; virusDamage--; if(virusDamage == 0) { virusTimer = -1; p.sendMessage("The smoke clouds around you dissipate."); } } } }[/CODE] Now find public final int[] PRAYER_DRAIN_RATE = above that add: [CODE]public int virusTimer = -1, virusDamage = 0; public byte poisonMask = 0,[/CODE] Finally add a new class in server.model.npc, call the class NPCSize: [CODE]package server.model.npc; /** * NPC Sizes. * * @author Primadude. */ public class NPCSize { /** * Gets the size of the specified NPC. * * @param npcType * The type of the NPC. * @return The NPC size. */ public static int getNPCSize(int npcType) { int NPC_TYPE = 0; int NPC_SIZE = 1; for (int i = 0; i < NPC_SIZES.length; i++) { if (npcType == NPC_SIZES[i][NPC_TYPE]) { return NPC_SIZES[i][NPC_SIZE]; } } if(npcType >= 9948 && npcType <= 9957) { return 5; } else if(npcType >= 9912 && npcType <= 9928) { return 2; } else if(npcType == 9727) { return 4; } return 1; } /** * NPC Sizes. {NPC TYPE, SIZE}. */ private static final int[][] NPC_SIZES = { { 49, 2 }, { 50, 5 }, { 51, 2 }, { 52, 2 }, { 53, 4 }, { 54, 4 }, { 55, 4 }, { 69, 2 }, { 78, 2 }, { 79, 2 }, { 80, 2 }, { 81, 2 }, { 82, 2 }, { 83, 3 }, { 84, 3 }, { 85, 2 }, { 86, 2 }, { 87, 2 }, { 88, 2 }, { 89, 2 }, { 95, 2 }, { 96, 2 }, { 97, 2 }, { 105, 2 }, { 106, 2 }, { 107, 2 }, { 108, 2 }, { 110, 2 }, { 111, 2 }, { 112, 2 }, { 113, 2 }, { 114, 2 }, { 115, 2 }, { 116, 2 }, { 117, 2 }, { 130, 3 }, { 133, 2 }, { 135, 3 }, { 136, 2 }, { 137, 2 }, { 138, 2 }, { 141, 2 }, { 142, 2 }, { 143, 2 }, { 144, 2 }, { 146, 2 }, { 147, 2 }, { 148, 2 }, { 149, 2 }, { 150, 2 }, { 269, 2 }, { 270, 2 }, { 271, 2 }, { 374, 2 }, { 397, 2 }, { 446, 2 }, { 667, 3 }, { 677, 3 }, { 742, 4 }, { 752, 2 }, { 839, 2 }, { 840, 2 }, { 852, 2 }, { 853, 2 }, { 854, 2 }, { 855, 2 }, { 856, 2 }, { 857, 2 }, { 858, 2 }, { 859, 2 }, { 860, 2 }, { 861, 2 }, { 862, 2 }, { 863, 2 }, { 864, 2 }, { 865, 2 }, { 866, 2 }, { 867, 2 }, { 868, 2 }, { 869, 2 }, { 870, 2 }, { 871, 2 }, { 873, 2 }, { 874, 2 }, { 875, 2 }, { 876, 2 }, { 879, 2 }, { 880, 2 }, { 899, 2 }, { 909, 3 }, { 911, 3 }, { 934, 3 }, { 939, 2 }, { 941, 4 }, { 950, 2 }, { 955, 2 }, { 978, 2 }, { 986, 2 }, { 987, 2 }, { 991, 2 }, { 997, 3 }, { 998, 3 }, { 999, 3 }, { 1000, 3 }, { 1003, 2 }, { 1005, 2 }, { 1010, 2 }, { 1047, 2 }, { 1052, 2 }, { 1053, 2 }, { 1069, 2 }, { 1095, 2 }, { 1096, 2 }, { 1097, 2 }, { 1098, 2 }, { 1099, 2 }, { 1100, 2 }, { 1115, 2 }, { 1116, 2 }, { 1117, 2 }, { 1125, 3 }, { 1126, 2 }, { 1127, 2 }, { 1128, 2 }, { 1129, 2 }, { 1135, 2 }, { 1136, 2 }, { 1137, 2 }, { 1139, 2 }, { 1151, 2 }, { 1153, 2 }, { 1154, 3 }, { 1155, 4 }, { 1156, 2 }, { 1157, 4 }, { 1158, 5 }, { 1159, 5 }, { 1160, 5 }, { 1172, 3 }, { 1173, 3 }, { 1179, 2 }, { 1180, 2 }, { 1181, 2 }, { 1195, 2 }, { 1196, 2 }, { 1197, 2 }, { 1198, 2 }, { 1213, 2 }, { 1222, 2 }, { 1224, 2 }, { 1326, 2 }, { 1328, 2 }, { 1329, 2 }, { 1330, 2 }, { 1335, 2 }, { 1341, 2 }, { 1342, 2 }, { 1343, 2 }, { 1344, 2 }, { 1345, 2 }, { 1346, 2 }, { 1347, 2 }, { 1348, 3 }, { 1349, 3 }, { 1350, 3 }, { 1351, 3 }, { 1352, 3 }, { 1353, 3 }, { 1354, 3 }, { 1355, 3 }, { 1356, 3 }, { 1373, 2 }, { 1431, 2 }, { 1432, 2 }, { 1438, 2 }, { 1459, 2 }, { 1460, 2 }, { 1461, 2 }, { 1462, 2 }, { 1472, 3 }, { 1505, 2 }, { 1506, 2 }, { 1507, 2 }, { 1508, 2 }, { 1509, 2 }, { 1516, 3 }, { 1521, 2 }, { 1522, 2 }, { 1542, 3 }, { 1555, 2 }, { 1556, 2 }, { 1558, 2 }, { 1559, 2 }, { 1575, 2 }, { 1578, 3 }, { 1580, 2 }, { 1581, 2 }, { 1582, 2 }, { 1583, 2 }, { 1584, 2 }, { 1585, 2 }, { 1586, 2 }, { 1587, 2 }, { 1588, 2 }, { 1589, 2 }, { 1590, 4 }, { 1591, 4 }, { 1592, 4 }, { 1600, 2 }, { 1601, 2 }, { 1602, 2 }, { 1603, 2 }, { 1604, 2 }, { 1605, 2 }, { 1606, 2 }, { 1607, 2 }, { 1608, 3 }, { 1609, 3 }, { 1610, 3 }, { 1611, 3 }, { 1612, 2 }, { 1616, 2 }, { 1617, 2 }, { 1618, 2 }, { 1619, 2 }, { 1620, 2 }, { 1621, 3 }, { 1627, 2 }, { 1628, 2 }, { 1631, 2 }, { 1632, 2 }, { 1653, 2 }, { 1654, 2 }, { 1655, 2 }, { 1656, 2 }, { 1657, 2 }, { 1676, 2 }, { 1677, 2 }, { 1681, 2 }, { 1689, 3 }, { 1691, 2 }, { 1693, 2 }, { 1719, 2 }, { 1720, 2 }, { 1721, 2 }, { 1722, 2 }, { 1723, 2 }, { 1728, 2 }, { 1730, 2 }, { 1731, 2 }, { 1732, 2 }, { 1733, 2 }, { 1734, 2 }, { 1735, 2 }, { 1736, 2 }, { 1737, 2 }, { 1738, 2 }, { 1739, 3 }, { 1740, 3 }, { 1741, 2 }, { 1742, 3 }, { 1743, 3 }, { 1744, 3 }, { 1745, 2 }, { 1746, 2 }, { 1747, 3 }, { 1748, 3 }, { 1750, 2 }, { 1766, 2 }, { 1767, 2 }, { 1768, 2 }, { 1778, 2 }, { 1779, 2 }, { 1780, 2 }, { 1781, 2 }, { 1782, 2 }, { 1783, 2 }, { 1784, 2 }, { 1785, 2 }, { 1786, 2 }, { 1787, 2 }, { 1792, 2 }, { 1802, 2 }, { 1803, 2 }, { 1804, 2 }, { 1811, 2 }, { 1812, 2 }, { 1813, 2 }, { 1821, 2 }, { 1828, 2 }, { 1873, 2 }, { 1943, 2 }, { 1944, 2 }, { 1945, 2 }, { 1946, 2 }, { 1951, 2 }, { 1952, 2 }, { 1953, 2 }, { 1954, 2 }, { 1955, 2 }, { 1956, 2 }, { 1970, 2 }, { 1971, 2 }, { 1990, 2 }, { 1993, 2 }, { 1996, 2 }, { 1998, 2 }, { 1999, 2 }, { 2000, 2 }, { 2022, 3 }, { 2033, 2 }, { 2038, 2 }, { 2039, 2 }, { 2040, 2 }, { 2041, 2 }, { 2042, 2 }, { 2043, 2 }, { 2044, 2 }, { 2045, 2 }, { 2046, 2 }, { 2047, 2 }, { 2048, 2 }, { 2049, 2 }, { 2050, 2 }, { 2051, 2 }, { 2052, 2 }, { 2053, 2 }, { 2054, 2 }, { 2055, 2 }, { 2056, 2 }, { 2057, 2 }, { 2060, 3 }, { 2063, 2 }, { 2064, 2 }, { 2065, 2 }, { 2240, 2 }, { 2252, 2 }, { 2254, 2 }, { 2255, 2 }, { 2289, 2 }, { 2317, 2 }, { 2417, 2 }, { 2418, 2 }, { 2419, 2 }, { 2434, 2 }, { 2452, 2 }, { 2453, 2 }, { 2482, 2 }, { 2534, 3 }, { 2554, 3 }, { 2555, 3 }, { 2556, 3 }, { 2557, 3 }, { 2558, 3 }, { 2559, 3 }, { 2560, 3 }, { 2561, 3 }, { 2562, 3 }, { 2563, 3 }, { 2629, 2 }, { 2630, 2 }, { 2631, 3 }, { 2632, 3 }, { 2637, 2 }, { 2640, 2 }, { 2641, 3 }, { 2642, 5 }, { 2644, 2 }, { 2651, 2 }, { 2722, 2 }, { 2723, 2 }, { 2736, 2 }, { 2737, 2 }, { 2739, 3 }, { 2740, 3 }, { 2741, 4 }, { 2742, 4 }, { 2743, 5 }, { 2744, 5 }, { 2745, 5 }, { 2783, 3 }, { 2801, 2 }, { 2803, 3 }, { 2804, 2 }, { 2805, 2 }, { 2806, 2 }, { 2809, 2 }, { 2810, 2 }, { 2811, 2 }, { 2812, 2 }, { 2813, 2 }, { 2814, 2 }, { 2815, 2 }, { 2849, 2 }, { 2850, 2 }, { 2880, 2 }, { 2881, 3 }, { 2882, 3 }, { 2883, 3 }, { 2885, 2 }, { 2886, 2 }, { 2889, 2 }, { 2890, 2 }, { 2919, 3 }, { 2920, 3 }, { 2921, 3 }, { 3051, 2 }, { 3052, 2 }, { 3053, 2 }, { 3054, 2 }, { 3055, 2 }, { 3056, 2 }, { 3058, 2 }, { 3063, 2 }, { 3064, 2 }, { 3066, 2 }, { 3068, 3 }, { 3069, 3 }, { 3070, 3 }, { 3071, 3 }, { 3072, 2 }, { 3076, 2 }, { 3077, 2 }, { 3100, 2 }, { 3101, 2 }, { 3103, 2 }, { 3124, 2 }, { 3125, 2 }, { 3129, 2 }, { 3130, 2 }, { 3132, 2 }, { 3133, 2 }, { 3134, 2 }, { 3135, 2 }, { 3140, 3 }, { 3154, 2 }, { 3200, 3 }, { 3203, 3 }, { 3301, 3 }, { 3309, 2 }, { 3332, 5 }, { 3333, 5 }, { 3334, 5 }, { 3337, 3 }, { 3338, 3 }, { 3339, 4 }, { 3340, 3 }, { 3347, 2 }, { 3376, 2 }, { 3398, 2 }, { 3419, 2 }, { 3420, 2 }, { 3421, 2 }, { 3423, 2 }, { 3443, 2 }, { 3444, 2 }, { 3445, 3 }, { 3446, 2 }, { 3447, 2 }, { 3448, 3 }, { 3463, 2 }, { 3464, 2 }, { 3466, 2 }, { 3467, 2 }, { 3468, 2 }, { 3469, 5 }, { 3470, 5 }, { 3471, 5 }, { 3472, 5 }, { 3476, 3 }, { 3477, 3 }, { 3484, 2 }, { 3493, 3 }, { 3494, 5 }, { 3497, 3 }, { 3498, 3 }, { 3499, 3 }, { 3500, 3 }, { 3501, 3 }, { 3502, 3 }, { 3519, 2 }, { 3530, 3 }, { 3556, 2 }, { 3558, 2 }, { 3585, 2 }, { 3586, 2 }, { 3587, 2 }, { 3588, 2 }, { 3589, 3 }, { 3590, 3 }, { 3591, 3 }, { 3592, 3 }, { 3593, 3 }, { 3594, 2 }, { 3599, 3 }, { 3600, 4 }, { 3601, 5 }, { 3602, 3 }, { 3603, 3 }, { 3604, 4 }, { 3605, 5 }, { 3606, 2 }, { 3607, 2 }, { 3608, 2 }, { 3609, 2 }, { 3610, 2 }, { 3611, 2 }, { 3612, 3 }, { 3613, 3 }, { 3614, 3 }, { 3636, 2 }, { 3637, 4 }, { 3645, 2 }, { 3646, 2 }, { 3647, 2 }, { 3649, 2 }, { 3650, 2 }, { 3651, 2 }, { 3652, 2 }, { 3653, 2 }, { 3654, 2 }, { 3655, 2 }, { 3656, 2 }, { 3657, 2 }, { 3658, 3 }, { 3659, 3 }, { 3660, 3 }, { 3661, 2 }, { 3662, 2 }, { 3664, 2 }, { 3665, 2 }, { 3666, 2 }, { 3667, 2 }, { 3668, 2 }, { 3669, 2 }, { 3670, 2 }, { 3675, 2 }, { 3676, 2 }, { 3681, 3 }, { 3772, 2 }, { 3773, 2 }, { 3774, 2 }, { 3775, 2 }, { 3776, 2 }, { 6142, 3 }, { 6143, 3 }, { 6144, 3 }, { 6145, 3 }, { 3808, 3 }, { 3819, 3 }, { 3835, 5 }, { 3836, 5 }, { 5529, 2 }, { 6829, 2 }, { 6831, 2 }, { 6847, 2 }, { 6994, 2 }, { 6871, 2 }, { 6847, 2 }, { 6853, 2 }, { 6875, 2 }, { 6877, 2 }, { 6879, 2 }, { 6881, 2 }, { 6883, 2 }, { 6885, 2 }, { 6887, 2 }, { 6855, 2 }, { 6794, 2 }, { 6857, 2 }, { 7363, 2 }, { 7365, 2 }, { 7337, 2 }, { 6802, 2 }, { 6859, 2 }, { 6815, 2 }, { 6813, 2 }, { 6839, 2 }, { 8575, 2 }, { 7345, 2 }, { 6861, 2 }, { 7347, 2 }, { 6800, 2 }, { 7355, 2 }, { 7357, 2 }, { 7359, 2 }, { 6811, 2 }, { 6804, 2 }, { 7341, 2 }, { 7329, 2 }, { 6863, 2 }, { 6822, 2 }, { 7339, 2 }, { 7349, 2 }, { 7375, 2 }, { 6873, 2 }, { 7343, 2 }, { 5807, 5 }, { 8349, 3 }, { 8350, 3 }, { 8351, 3 } }; }[/CODE] and just incase anyone needs this: [CODE]package server.model.npcs; public class NPCDefinitions { public static int NPCS = 15000; private static NPCDefinitions[] definitions = new NPCDefinitions[NPCS]; /** * @return the definitions */ public static NPCDefinitions[] getDefinitions() { return definitions; } private int npcId; private String npcName; private int npcCombat; private int npcHealth; public NPCDefinitions(int _npcId) { npcId = _npcId; } public NPCDefinitions(NPCDefinitions def) { definitions[def.getNpcId()] = def; } /** * @return the npcId */ public int getNpcId() { return npcId; } /** * @param npcId * the npcId to set */ public void setNpcId(int npcId) { this.npcId = npcId; } /** * @return the npcName */ public String getNpcName() { return npcName; } /** * @param npcName * the npcName to set */ public void setNpcName(String npcName) { this.npcName = npcName; } /** * @return the npcCombat */ public int getNpcCombat() { return npcCombat; } /** * @param npcCombat * the npcCombat to set */ public void setNpcCombat(int npcCombat) { this.npcCombat = npcCombat; } /** * @return the npcHealth */ public int getNpcHealth() { return npcHealth; } /** * @param npcHealth * the npcHealth to set */ public void setNpcHealth(int npcHealth) { this.npcHealth = npcHealth; } }[/CODE] [CODE]public void newNPC3(int npcType, int x, int y, int heightLevel, int WalkingType, int HP, int maxHit, int attack, int defence, int size) { // first, search for a free slot int slot = -1; for (int i = 1; i < maxNPCs; i++) { if (npcs[i] == null) { slot = i; break; } } if (slot == -1) return; // no free slot found NPC newNPC = new NPC(slot, npcType); newNPC.absX = x; newNPC.absY = y; newNPC.makeX = x; newNPC.makeY = y; newNPC.heightLevel = heightLevel; newNPC.walkingType = WalkingType; newNPC.HP = HP; newNPC.MaxHP = HP; newNPC.maxHit = maxHit; newNPC.attack = attack; newNPC.defence = defence; newNPC.npcSize = size; npcs[slot] = newNPC; /*if (npcType == 1160) { npcs[slot].actionTimer = 4; npcs[slot].startAnimation(6237);*/ } }[/CODE] Not sure if I missed anything, if I have just say so.
  5. [CENTER]Navigation Homepage - [url=http://www.projectlegacy317.com]Project Legacy[/url] Webclient - [url=http://www.projectlegacy317.com/webclient]Project Legacy 317 Webclient[/url] Download - [url]www.projectlegacy317.com/download[/url] Vote [url=http://www.projectlegacy317.com/vote]Project Legacy - Voting[/url] Highscores - [url=http://www.projectlegacy317.com/highscores]Project Legacy[/url] Owners: Drew & Austin [IMG]http://i46.tinypic.com/30m98c1.png[/IMG] DROP PARTY AT 30 Players Project Legacy is the most advanced 317 available with a 100% 719 GameFrame, featuring items from 700+ cache revisions, with Nex & other bosses, a very savvy interface for each teleport and more! Project Legacy is the ultimate choice whether your interest is in PvM, PvP, or Skilling! We are also looking for potential staff! Join today in order to take advantage of our giveaway of a FREE VESTA'S LONGSWORD in every starter! In order to make your experience the absolute best, we at Project Legacy guarantee: •100% Uptime-We are VPS hosted in the land of the free, home of the brave, the United States of America with Windows Server 2008! It's unpatriotic to not give it a try! •NO LAG-With 4 GB of RAM, 4 CPU Cores (8 Logical), & Unmetered Bandwidth, you'd be hard pressed to find a server that better suits your needs! •Account Security-With a server this amazing, it would be devastating to lose all your work due to a rollback or crash that has nothing to do with you. Thankfully, we've thought of this. With automatic account saving, backups to the Cloud, RAID 1+0 (or RAID 10 , if you prefer), as well as bi-weekly manual backups, you KNOW your account is safe. •Limited Annoyances-With a banning system based on UUIDs (Universally Unique Indentifiers), those pesky spammers are out of the question faster than you can say Project Legacy! •Knowledgeable Staff & Constant Updates-With our extremely intelligent staff members and Developer, Drew, you know you are in safe hands. Coupled with our plethora of in-depth forum guides, you would have to be blind to be lost! Drew is an extremely talented programmer with college-level experience in Java, Python, MySQL, HTML, & PHP as well as being certified by Microsoft in Networking Essentials, Network Security, Windows XP/7, and Windows Server. Rest assured that any problems you have we will work tirelessly to solve. This is also no stagnant, leeched source that a 12 year-old with no experience just pressed run.bat and let it fly, no sirree, but an ever evolving masterpiece. Other Amazing Features include, but are not limited to: ~NEX ~Dominion Tower (Rewards include Dominion Weapons, Goliath/Spellcaster/Swift Gloves) ~New items such as Saradomin GWD Amulet's (Saradomin's Hiss, Saradomin's ~Squeal of Fortune ~Double XP Weekend, every weekend! ~Unique Milestone Cape System with message, capes, up to Completionist! ~100% Castle Wars ~A very user-friendly donation system ~24/7 Active Skilling, PvMing and PKing ~Active forums (Licensed IPBoard, no pirates here!) ~3 (and counting) unique quests ~Email Password Recovery System ~Optional Bank Pins ~Professional, Dedicated Staff (Although we are always looking for more qualified staff!) ~Daily Server Events ~Choice of Melee, Ranged, or Mage Starter Packages ~Stable economy, no economy-resets ~Amazing donator benefits (Instant Slayer Task, Magic book switch, Donor Zone) ~Vote for rewards ~100% working highscores for all 24 Skills ~TokHaar-Kal Cape, fight Jad ~All PvP items, chaotics, nex sets, corrupts ~All skills work ~Classic Dungeoneering ~Project Legacy points gained from PC, Pking, Slayer & more in order to buy unique rewards! ~Help Zone Here's the part I know you're looking for: Images Link to Imgur album: imgur.com/a/BjHE8 Project Legacy Homepage: [IMG]http://i.imgur.com/oHaJwDHh.jpg[/IMG] Project Legacy Home: [IMG]http://i.imgur.com/SZv3w5Z.jpg[/IMG] Nex!: [IMG]http://i.imgur.com/4YzXkGS.jpg [/IMG] Dungeoneering Tab: [IMG]http://i.imgur.com/MOEnMCh.png[/IMG] Dominion Tower Shop [IMG]http://i.imgur.com/nMXE9cq.png[/IMG] Example of Teleports: [IMG]http://i.imgur.com/3fA97Yv.png[/IMG] F.A.Q. 1. How do I know you won't just take my donation and shut down? Project Legacy has been a pillar in the RSPS community for over 3 years (and counting!), rest assured that if you trust us enough to donate to us, we will always honor it. 2. English isn't my native language, can I still play? At Project Legacy, our first commitment is to the player. We have a diverse population of players from around the world. Drew is fluent in Spanish as well as English, and there are a number of foreign players from around the world that speak a myriad of languages, including Swedish, Dutch, & more! 3. There's no XAT box, where do I get help? Unfortunately, we had to remove our Xat chat as ultimately, it attracted DDoSers who enjoyed seeing players frustrated in the chatbox. If you need help, please register and post on our forums or message me here on TTG. 4. Has Project Legacy really been around for 3 years? Yes indeed. From its initial days being hosted on Drew's home computer, Project Legacy has been committed to providing quality content to its players. Due to various reasons, such as legal issues that the other owner Austin is currently facing, to DDoSers, we have had to come up and down a few times, but I assure you we are here to stay! We are making a comeback and are also looking for professional, qualified staff! 5. Why are you still reading this FAQ? Play Project Legacy Now! [url=http://www.projectlegacy317.com/webclient]Project Legacy 317 Webclient[/url][/CENTER]
  6. So Nex is a really big part of my server and drops a lot of good gear. But the problem is, it doesn't regenerate any HP for a long ass time. So I tried to stop this by making it when your in Nex that you are skulled. This worked for some time until people started bringing claws and using mage protection and kept specing and specing for kill. Can someone help me with making it so Nex regenerates HP after like 10 seconds of not being attacked or when no one is at Nex (I have already defined the Nex area in a boolean). I am willing to pay 5$ just for a fix to this because it is a big portion of my server. You can leave a comment below or you can help me through Skype then I will send the money via Payapl once the issue is fixed.
  7. Starkzter

    [PI] Nex Troubles

    So, Nex is really hard and takes a lot of people to legit beat it on my server. But if you keep dieing and going back and attacking then dieing, Nex never regenerates health. So you can just keep doing that until Nex dies and get the loot. So, I tried to stop this by making it so you can only teleport to Nex every 10 minutes. But after implementing that I then realized something. What if you die and you want your loot back. Or what if you kill Nex but run out of food and forced to teleport. So my question is, which file can I find where to make a NPC regenerate health. I've tried searching some things throughout my source folder but the search option on my computer is messed up. It doesn't search for the word inside of the documents only on the names. It has just started doing this recently. I don't want you to spoon feed how to do it for me I just need to know where I can find it. EDIT: I only want it to regenerate health when it isn't being attacked or when no one is at nex EDIT 2: I just got finished defining the Nex area
  8. [IMG]http://i.imgur.com/DEYPS.gif[/IMG] Youtube Channel + Video [LIST] [*][URL="http://www.youtube.com/user/ChaoticScape317?feature=mhee"]Youtube Channel[/URL] [*][URL="http://www.youtube.com/watch?v=vJCkZIAcwfY&feature=plcp"]Chaotic-Scape V2 | RSPS | 24/7[/URL] [/LIST] [IMG]http://i.imgur.com/E5MhB.png[/IMG] [IMG]http://i56.tinypic.com/imijbl.png[/IMG][url=http://leagueofchaos.net/play.php/]Webclient[/url] [IMG]http://i44.tinypic.com/9j41t1.jpg[/IMG][url=http://leagueofchaos.net/forums/]Forums[/url] [SPOILER="More Links"][url=http://leagueofchaos.net]Home Page[/url] [URL="http://leagueofchaos.net/ChaoticScapeClientV2.jar"]Downloadable Client[/URL][/SPOILER] Chaotic-Scape, bringing in every type of player. [B][COLOR="LemonChiffon"]Dungeoneering[/COLOR][/B] [IMG]http://i48.tinypic.com/20hkprk.png[/IMG] [SPOILER="Media"] [B][COLOR="LemonChiffon"]Summoning[/COLOR][/B] [IMG]http://i49.tinypic.com/25a22vm.png[/IMG] [B][COLOR="LemonChiffon"]Nex Armor[/COLOR][/B] [IMG]http://i48.tinypic.com/27yms03.png[/IMG] [B][COLOR="LemonChiffon"]Dragonbone Melee + Angelic Wings (Salvation)[/COLOR][/B] [IMG]http://leagueofchaos.net/images/dragonbonemelee.png[/IMG] [B][COLOR="LemonChiffon"]Dragonbone Melee Skirt[/COLOR][/B] [IMG]http://leagueofchaos.net/images/dragonbonemeleeskirt.png[/IMG] [B][COLOR="LemonChiffon"]Dragonbone Mage + Demonic Wings (Corruption)[/COLOR][/B] [IMG]http://leagueofchaos.net/images/dragonbonemage.png[/IMG][/SPOILER] [COLOR="DarkGreen"]Main Features:[/COLOR] [LIST] [*]100% Uptime [*]Dungeoneering(Fixing it up too look nicer and better) [*]Skill Point System [*]Perfect Switching [*]Perfect Hybriding [/LIST] [SPOILER="More Server Features"] [COLOR="Red"]Mini-Games:[/COLOR] [LIST] [*]Pest Control [*]Fight Pits [*]Barrows [*]Tokkul/Tzhaar Mini-gaame [*]Warrior's Guild [/LIST] [COLOR="Red"]Player VS Player[/COLOR] [LIST] [*]Torva, Pernix, Virtus [*]Chaotics [*]Sprit Shields [*]Curses [*]Vengeance and more [/LIST] [COLOR="red"]Player VS Monster[/COLOR] [LIST] [*]Tz-Tok-Jad [*]Barrelchest [*]Sea Troll Queen [*]Lahkrahnaz [*]Nomad [*]Giant Sea Snake [*]General Graardor [*]Saradomin [*]Kree'Ara [*]King Black Dragon [*]Dagannoth Kings [*]Tormented Demons [*]Corporal Beast [*]Chaos Elemental [*]Giant Mole [/LIST] [COLOR="red"]Skilling[/COLOR] [LIST] [*]Skilling Points and Shop [*]24/25 working skills [*]Flowers [*]Afro's [*]Flared Trousers [*]Hard skills too train for the die hards [/LIST] [COLOR="Red"]Point Systems[/COLOR] [LIST] [*]Skilling [*]PvP [*]Slayer/PC [*]Voting [*]Donating [/LIST] [/SPOILER] [SPOILER="Support Picture"] [IMG]http://i47.tinypic.com/2q8qyoi.png[/IMG] [URL="http://i47.tinypic.com/2q8qyoi.png"]Link[/URL][/SPOILER]
  9. Starkzter

    Nex Animations

    I added the animation file and ints for Nex. (NPC was already added). When I put this into my animations.java: [CODE]anims[6319].fileId = 3502; anims[6319].frameCount = 24; anims[6319].priority = 4; anims[6319].delays = new int[]{2, 2, 2, 2, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 2, 2, 2, 2}; anims[6319].frames = new int[]{229507415, 229507219, 229507411, 229507095, 229507202, 229507224, 229507326, 229507235, 229507337, 229507288, 229507430, 229507317, 229507239, 229507312, 229507404, 229507121, 229507464, 229507413, 229507329, 229507378, 229507173, 229507150, 229507292, 229507308}; anims[6320].fileId = 3502; anims[6320].frameCount = 32; anims[6320].priority = 2; anims[6320].delays = new int[]{3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3}; anims[6320].frames = new int[]{229507242, 229507350, 229507403, 229507099, 229507086, 229507365, 229507148, 229507289, 229507075, 229507246, 229507229, 229507171, 229507371, 229507296, 229507153, 229507333, 229507310, 229507198, 229507399, 229507458, 229507344, 229507142, 229507402, 229507154, 229507393, 229507220, 229507180, 229507479, 229507133, 229507450, 229507469, 229507204}; anims[6321].fileId = 3502; anims[6321].frameCount = 53; anims[6321].priority = 10; anims[6321].delays = new int[]{1, 3, 4, 4, 3, 3, 3, 3, 2, 2, 2, 2, 7, 7, 4, 6, 3, 2, 3, 2, 2, 2, 2, 3, 4, 3, 3, 3, 2, 6, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 4, 6, 6, 5, 5, 6, 2}; anims[6321].frames = new int[]{229507234, 229507100, 229507316, 229507266, 229507363, 229507217, 229507382, 229507257, 229507177, 229507092, 229507389, 229507163, 229507117, 229507354, 229507347, 229507123, 229507111, 229507081, 229507453, 229507309, 229507390, 229507258, 229507160, 229507213, 229507162, 229507282, 229507304, 229507164, 229507098, 229507103, 229507195, 229507103, 229507195, 229507103, 229507195, 229507103, 229507195, 229507103, 229507195, 229507103, 229507195, 229507103, 229507195, 229507103, 229507195, 229507103, 229507195, 229507174, 229507394, 229507225, 229507376, 229507271, 229507332}; anims[6326].fileId = 3502; anims[6326].frameCount = 36; anims[6326].priority = 10; anims[6326].delays = new int[]{1, 3, 3, 4, 3, 3, 3, 3, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 7, 8, 8, 7, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2}; anims[6326].frames = new int[]{229507157, 229507156, 229507446, 229507440, 229507406, 229507431, 229507247, 229507218, 229507465, 229507474, 229507077, 229507357, 229507327, 229507482, 229507116, 229507259, 229507129, 229507275, 229507322, 229507087, 229507102, 229507436, 229507268, 229507443, 229507361, 229507128, 229507372, 229507407, 229507185, 229507293, 229507226, 229507323, 229507255, 229507352, 229507401, 229507159}; anims[6354].fileId = 3502; anims[6354].frameCount = 25; anims[6354].priority = 8; anims[6354].delays = new int[]{1, 1, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 5, 5, 2, 1, 1, 2, 2, 3}; anims[6354].frames = new int[]{229507373, 229507203, 229507097, 229507298, 229507386, 229507264, 229507277, 229507080, 229507089, 229507481, 229507078, 229507094, 229507451, 229507384, 229507183, 229507385, 229507209, 229507414, 229507417, 229507335, 229507270, 229507178, 229507331, 229507096, 229507260}; anims[6355].fileId = 3502; anims[6355].frameCount = 36; anims[6355].priority = 10; anims[6355].delays = new int[]{2, 3, 2, 2, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 2, 2, 2, 2, 2, 3, 2, 1, 1, 1, 2, 2, 1, 2, 2, 3, 6, 5, 3, 1, 1, 1}; anims[6355].frames = new int[]{229507412, 229507243, 229507299, 229507483, 229507428, 229507470, 229507113, 229507122, 229507468, 229507197, 229507251, 229507284, 229507215, 229507125, 229507447, 229507471, 229507303, 229507265, 229507093, 229507328, 229507273, 229507283, 229507346, 229507302, 229507480, 229507141, 229507475, 229507208, 229507396, 229507172, 229507375, 229507355, 229507305, 229507387, 229507138, 229507082}; anims[6948].fileId = 3502; anims[6948].frameCount = 29; anims[6948].priority = 10; anims[6948].delays = new int[]{5, 5, 6, 3, 3, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 3, 3, 4, 5, 8}; anims[6948].frames = new int[]{229507301, 229507367, 229507205, 229507131, 229507132, 229507395, 229507318, 229507194, 229507462, 229507395, 229507318, 229507194, 229507462, 229507395, 229507318, 229507194, 229507462, 229507395, 229507318, 229507194, 229507462, 229507395, 229507318, 229507194, 229507426, 229507278, 229507147, 229507236, 229507353}; anims[6951].fileId = 3502; anims[6951].frameCount = 65; anims[6951].priority = 10; anims[6951].delays = new int[]{4, 4, 3, 3, 4, 6, 5, 5, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 4, 4, 8, 6, 5, 1, 1, 1, 1, 3, 3, 3, 3, 3, 5, 6, 6, 6, 6, 36, 22, 22}; anims[6951].frames = new int[]{229507307, 229507427, 229507228, 229507272, 229507422, 229507168, 229507107, 229507306, 229507249, 229507409, 229507476, 229507294, 229507250, 229507109, 229507461, 229507211, 229507244, 229507364, 229507348, 229507237, 229507341, 229507405, 229507408, 229507090, 229507079, 229507280, 229507290, 229507398, 229507119, 229507467, 229507330, 229507319, 229507181, 229507200, 229507112, 229507167, 229507334, 229507254, 229507340, 229507410, 229507383, 229507106, 229507377, 229507151, 229507269, 229507429, 229507196, 229507073, 229507136, 229507311, 229507313, 229507088, 229507432, 229507388, 229507074, 229507477, 229507456, 229507188, 229507274, 229507165, 229507212, 229507439, 229507118, 229507356, 229507438}; anims[6983].fileId = 3502; anims[6983].frameCount = 32; anims[6983].priority = 2; anims[6983].delays = new int[]{2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2}; anims[6983].frames = new int[]{229507321, 229507140, 229507338, 229507135, 229507374, 229507419, 229507230, 229507320, 229507454, 229507392, 229507421, 229507084, 229507166, 229507444, 229507425, 229507120, 229507201, 229507459, 229507449, 229507190, 229507435, 229507110, 229507380, 229507083, 229507420, 229507206, 229507360, 229507452, 229507297, 229507262, 229507381, 229507104}; anims[6984].fileId = 3502; anims[6984].frameCount = 25; anims[6984].priority = 8; anims[6984].delays = new int[]{3, 5, 5, 5, 4, 4, 3, 3, 3, 3, 5, 8, 6, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 3, 3}; anims[6984].frames = new int[]{229507276, 229507448, 229507161, 229507325, 229507145, 229507076, 229507416, 229507351, 229507170, 229507358, 229507418, 229507457, 229507115, 229507158, 229507473, 229507169, 229507362, 229507182, 229507287, 229507191, 229507240, 229507434, 229507279, 229507091, 229507126}; anims[6985].fileId = 3502; anims[6985].frameCount = 9; anims[6985].priority = 10; anims[6985].delays = new int[]{3, 3, 2, 3, 4, 4, 4, 4, 3}; anims[6985].frames = new int[]{229507397, 229507424, 229507186, 229507245, 229507175, 229507248, 229507445, 229507139, 229507291}; anims[6986].fileId = 3502; anims[6986].frameCount = 33; anims[6986].priority = 6; anims[6986].delays = new int[]{4, 4, 8, 4, 4, 4, 4, 4, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 2, 2}; anims[6986].frames = new int[]{229507149, 229507222, 229507134, 229507114, 229507130, 229507423, 229507144, 229507127, 229507227, 229507189, 229507463, 229507101, 229507263, 229507400, 229507324, 229507267, 229507238, 229507295, 229507072, 229507342, 229507300, 229507179, 229507359, 229507281, 229507105, 229507192, 229507343, 229507370, 229507339, 229507437, 229507146, 229507369, 229507252}; anims[6987].fileId = 3502; anims[6987].frameCount = 28; anims[6987].priority = 6; anims[6987].delays = new int[]{2, 6, 6, 5, 2, 3, 4, 4, 4, 4, 4, 2, 2, 3, 3, 2, 2, 3, 2, 4, 4, 3, 3, 3, 3, 2, 3, 2}; anims[6987].frames = new int[]{229507216, 229507231, 229507442, 229507315, 229507478, 229507108, 229507193, 229507472, 229507261, 229507441, 229507460, 229507433, 229507285, 229507210, 229507155, 229507336, 229507286, 229507232, 229507366, 229507368, 229507391, 229507124, 229507253, 229507233, 229507221, 229507345, 229507143, 229507466};[/CODE] I get 100+ errors. Am I missing a bracket?
  10. [COLOR="#0000FF"][B][CENTER][IMG]http://i49.tinypic.com/15md948.png[/IMG] TsScape the brand new server that is worth your while! Here at TsScape we offer the best for our players, and make sure your voices are heard by staff in-game and on the forums! Some of our original features are - You can pick your own titles, whenever you want! Just pick one, then log. [IMG]http://img513.imageshack.us/img513/7895/b7da278d8e4843718778818.png[/img] Squeal of fortune! [IMG]http://img222.imageshack.us/img222/9037/8b38e9be0c7544fc90e26a9.png[/img] Money Pouch! When you go in-game you MUST withdraw cash without letters. Eg. To withdraw 10m you must type - 10000000 Tokhaar-Kal, Can be retrieved by going to jad cave, and selecting second option [IMG]http://img6.imageshack.us/img6/9624/563bb77301524bd49fa1b5b.png[/IMG] We hope to see you soon! As the game is new, we have the maximum of 5 players online, but very soon we can guarantee this will be a success, so why not give it a try? [URL="http://tsscape.netai.net/"]Website[/URL] [URL="http://tsscape.netai.net/webclient.html"]Webclient[/URL] [URL="http://tsscape.netai.net/forums"]Forums[/URL][/CENTER][/B][/COLOR]
  11. jaideep00

    nex

    i guys i added nex but when i spawn it its invisible we cane attack but we cannot see him if someone have maps please thanks for help i have skype add me on skype skype - helprsps
  12. how do i add nex
  13. how do i make nex in my project insanity server base:insidiax v1
  14. jaideep00

    adding nex help

    hi guys i need a good tut for adding nex if someone know how to add nex for pi add me on skype :helprsps
  15. Darker

    Nex Shadow Effect

    Ok, ill explain it all on a picture. #epicfail [img]https://dl.dropbox.com/u/30678415/shadowglitch.png[/img] Where i can enter the correct position to the shadow on fixed mode?
  16. hello, how do i change the ammount of hp that nex has? new to editing nex.
  17. This is outdated find the new thread
  18. im using a blank PI source and client and i have torva pernix and virtus coded, but when i wear it, the armour goes in the right places, but it doesnt show up on my body, so if i was wearing full ahrims then put full torva, pernix, or virtus on...i would have full torva pernix and virtus in the equipment slots, but my actual guy that people will see is still wearing the ahrims....so basically, its invisible, and also, when i teleport, im wearing the armour but my guy is invisible.... [url]http://uppit.com/w0ku7sd9vcto/screenshots.zip[/url] very small file for some reason i couldnt get any photos on here to show, but please look at them and if anyone knows how to help, it would be much appretiated!
  19. [B]Picture:[/B] [IMG]http://screensnapr.com/e/uKhVzr.png[/IMG] [B]Note: This is Nex (Level 1001) Without attack/death animations.. You can figure them out yourself.. Before you start, Add all the client sided code.. Then if you don't want Nex to drain prayer/be aggressive or poison you then skip to the[COLOR=#008000] GREEN TEXT [/COLOR] [/B] [COLOR=#ff0000][B][SIZE=4]**CLIENT SIDED**[/SIZE] [/B][/COLOR][B]Add the following ints to your "EntityDef.java" [CODE]if(i == 6032) { stream.currentOffset = streamIndices[630]; entitydef.aByte68 = 1; entitydef.readValues(stream); entitydef.itemActions = new String[5]; entitydef.itemActions[1] = "Attack"; entitydef.anIntArray94 = new int[1]; entitydef.anIntArray94[0] = 62717; entitydef.name = "Nex"; entitydef.combatLevel = 1001; entitydef.description = "Even the gods fear it.".getBytes(); } [/CODE] Download this: [/B][URL]http://up.ht/qiyrAJ[/URL][B] Virus Scan: [/B][URL="http://www.virustotal.com/file-scan/report.html?id=270526f8eca182de8e9d51f5afc792fb06724b32d15d5c9be003e1966619917d-1318109585"]http://www.virustotal.com/file-scan/report.html?id=270526f8eca182de8e9d51f5afc792fb06724b32d15d5c9be003e1966619917d-1318109585 [/URL] [B]Place the .dat file within your cache/raw folder[/B] [SIZE=4][COLOR=#ff0000][B]**SERVER SIDED**[/B][/COLOR] [/SIZE] [B]You can leave this as it is, But I have taken the Strykewyrm Prayer drain, And also added poisoning to Nex.. This part is entirely optional Open up "NPCHandler.java" [QUOTE]\src\server\model\npcs[/QUOTE] Look for [QUOTE]case 9465:[/QUOTE] Change the entire case to: [CODE][B]case 9465: [/B] random = Misc.random(2); if (random == 0 || random == 1) npcs[i].attackType = 0; else { c.playerLevel[5] -= (c.playerLevel[5] * .22); npcs[i].attackType = 2; c.sendMessage("Your prayer points have been drained!"); c.getPA().refreshSkill(5); } [B] break;[/B] [/CODE] Now look for [QUOTE]case 9467:[/QUOTE][/B] [B]Below the[/B] [B]last [/B][CODE] } }[/CODE] [B]Add this:[/B] [CODE]case 6032: random = Misc.random(2); if (random == 0 || random == 1) npcs[i].attackType = 0; else { if(c.poisonDamage <= 0) { c.getPA().appendPoison(15); npcs[i].attackType = 2; c.sendMessage("Nex has poisoned you!"); } } [/CODE] [B][COLOR=#ff0000]If you don't have any of the cases I named, You do not have styrkewyrms added.. So skip the above.[/COLOR] If you want to make Nex Aggressive follow these steps: Still within "NPCHandler.java" Search for [CODE]public boolean isAggressive(int i) {[/CODE] Within the cases listed below add: [CODE]case 6032:[/CODE] Make sure you add it below: [CODE]switch (npcs[i].npcType) {[/CODE] [COLOR=#ff0000]Nearly there.. Remember all these steps are optional.. You do not NEED To add them.. For max hit calculations.. Figure that out yourself.. Here are mine[/COLOR] First search: [CODE]public int getMaxHit(int i) {[/CODE] Add below: [CODE]switch (npcs[i].npcType) {[/CODE] [CODE]case 6032: if (npcs[i].attackType == 0) return 70; else if (npcs[i].attackType == 1) return 60; else if (npcs[i].attackType == 2) return 65; [/CODE] [COLOR=#008000]Last but not least.. In your source go to: [/COLOR][QUOTE]Data\cfg[/QUOTE][/B][COLOR=#008000] [B]Open "spawn-config.cfg" Here is my spawn code: [/B][/COLOR][B][CODE]spawn = 6032 3319 9798 0 1 85 950 950 1 Nex[/CODE] [SIZE=3][COLOR=#008000][B]You are DONE! Enjoy![/B][/COLOR][/SIZE][/B]
  20. [CENTER] [IMG]http://i.imgur.com/CLqvR.png[/IMG] Links [url=http://durathium.info/index.php]Forums[/url] WebClient - Coming Soon Highscores - Coming Soon Welcome to Durathium We are a brand new Server based on the Massively Multiplayer On-line Role-Playing Game- RuneScape. We're Still under development, So post glitches\bugs you find on forums. We have a lot of features to our server, these include; - Many armours like The PvP based armours (statius's, Vesta's, Morrigan'e ect..) - Many new armours like the Torva, Pernix, and the Virtus set. - Many cool bosses. - Many skills trainable and those that aren't are still being coded. - Fullscreen -HD - Friendly Staff - Spawn\Eco - Special Weapons - Hybriding - PvP - PvM - Summoning - Dungeoneering - Dicing! - Clan Chat Loads Of More Features! Come and Check it out MEDIA [IMG]http://i.imgur.com/RikJ1.png[/IMG] [IMG]http://i.imgur.com/6jlQs.png[/IMG] [IMG]http://i.imgur.com/enYBP.png[/IMG] [IMG]http://i.imgur.com/Ksjs2.png[/IMG] [IMG]http://i.imgur.com/LK9pJ.png[/IMG] [IMG]http://i.imgur.com/DuUBf.png[/IMG] [IMG]http://i.imgur.com/DLtpO.png[/IMG] [IMG]http://i.imgur.com/mRvVM.png[/IMG] [IMG]http://i.imgur.com/LcIt4.png[/IMG] [IMG]http://i.imgur.com/mUA6A.png[/IMG] [IMG]http://i.imgur.com/z7mFv.png[/IMG] [IMG]http://i.imgur.com/QkQ8C.png[/IMG] [IMG]http://i.imgur.com/vSC2U.png[/IMG] [IMG]http://i.imgur.com/VRuQl.png[/IMG] [IMG]http://i.imgur.com/QsuGE.png[/IMG] [IMG]http://i.imgur.com/0EcSX.png[/IMG] [IMG]http://i.imgur.com/cQeDQ.png[/IMG] [IMG]http://i.imgur.com/bwV0k.png[/IMG] [IMG]http://i.imgur.com/CLqvR.png[/IMG] This Thread Is Under Construction.[/CENTER]
  21. So i need Some Help To adding Nex On my 317 [PI] Server EntityDef.java file [CODE]import java.io.PrintStream; import sign.signlink; public final class EntityDef { public static int NPCAMOUNT = 11599; public int anInt55; public static int anInt56; public int anInt57; public int anInt58; public int anInt59; public static Stream stream; public int combatLevel; public final int anInt64 = 1834; public String name; public String itemActions[]; public int anInt67; public byte aByte68; public int anIntArray70[]; public static int streamIndices[]; public int anIntArray73[]; public int anInt75; public int anIntArray76[]; public int anInt77; public long interfaceType; public int anInt79; public static EntityDef cache[]; public static client clientInstance; public int anInt83; public boolean aBoolean84; public int anInt85; public int anInt86; public boolean aBoolean87; public int childrenIDs[]; public byte description[]; public int anInt91; public int anInt92; public boolean aBoolean93; public int anIntArray94[]; public static MRUNodes mruNodes = new MRUNodes(30); public static EntityDef forID(int i) { for(int j = 0; j < 20; j++) { if(cache[j].interfaceType == (long)i) { return cache[j]; } } anInt56 = (anInt56 + 1) % 20; EntityDef entitydef = cache[anInt56] = new EntityDef(); stream.currentOffset = streamIndices[i]; entitydef.interfaceType = i; entitydef.readValues(stream); return entitydef; } public Model method160() { if(childrenIDs != null) { EntityDef entitydef = method161(); if(entitydef == null) { return null; } else { return entitydef.method160(); } } if(anIntArray73 == null) { return null; } boolean flag = false; for(int i = 0; i < anIntArray73.length; i++) { if(!Model.method463(anIntArray73[i])) { flag = true; } } if(flag) { return null; } Model amodel[] = new Model[anIntArray73.length]; for(int j = 0; j < anIntArray73.length; j++) { amodel[j] = Model.method462(anIntArray73[j]); } Model model; if(amodel.length == 1) { model = amodel[0]; } else { model = new Model(amodel.length, amodel); } if(anIntArray76 != null) { for(int k = 0; k < anIntArray76.length; k++) { model.method476(anIntArray76[k], anIntArray70[k]); } } return model; } public EntityDef method161() { try { int j = -1; if(anInt57 != -1) { VarBit varBit = VarBit.cache[anInt57]; int k = varBit.anInt648; int l = varBit.anInt649; int i1 = varBit.anInt650; int j1 = client.anIntArray1232[i1 - l]; j = clientInstance.variousSettings[k] >> l & j1; } else if(anInt59 != -1) { j = clientInstance.variousSettings[anInt59]; } if(j < 0 || j >= childrenIDs.length || childrenIDs[j] == -1) { return null; } else { return forID(childrenIDs[j]); } } catch (Exception e) { return null; } } public static byte[] getData(String s) { return FileOperations.ReadFile(s); } public static void unpackConfig(NamedArchive namedarchive) { stream = new Stream(getData((new StringBuilder()).append(signlink.findcachedir()).append("npc.dat").toString())); Stream bytebuffer = new Stream(getData((new StringBuilder()).append(signlink.findcachedir()).append("npc.idx").toString())); int i = bytebuffer.readUnsignedWord(); System.out.println((new StringBuilder()).append("602 NPC Amount: ").append(i).toString()); streamIndices = new int[i]; int j = 2; for(int k = 0; k < i; k++) { streamIndices[k] = j; j += bytebuffer.readUnsignedWord(); } cache = new EntityDef[20]; for(int l = 0; l < 20; l++) { cache[l] = new EntityDef(); } } public static void nullLoader() { mruNodes = null; streamIndices = null; cache = null; stream = null; } public Model method164(int i, int j, int ai[]) { if(childrenIDs != null) { EntityDef entitydef = method161(); if(entitydef == null) { return null; } else { return entitydef.method164(i, j, ai); } } Model model = (Model)mruNodes.insertFromCache(interfaceType); if(model == null) { boolean flag = false; for(int k = 0; k < anIntArray94.length; k++) { if(!Model.method463(anIntArray94[k])) { flag = true; } } if(flag) { return null; } Model amodel[] = new Model[anIntArray94.length]; for(int l = 0; l < anIntArray94.length; l++) { amodel[l] = Model.method462(anIntArray94[l]); } if(amodel.length == 1) { model = amodel[0]; } else { model = new Model(amodel.length, amodel); } if(anIntArray76 != null) { for(int i1 = 0; i1 < anIntArray76.length; i1++) { model.method476(anIntArray76[i1], anIntArray70[i1]); } } model.method469(); model.method479(84 + anInt85, 1000 + anInt92, -90, -580, -90, true); mruNodes.removeFromCache(model, interfaceType); } Model model1 = Model.aModel_1621; model1.method464(model, Class36.method532(j) & Class36.method532(i)); if(j != -1 && i != -1) { model1.method471(ai, i, j); } else if(j != -1) { model1.method470(j); } if(anInt91 != 128 || anInt86 != 128) { model1.method478(anInt91, anInt91, anInt86); } model1.method466(); model1.anIntArrayArray1658 = (int[][])null; model1.anIntArrayArray1657 = (int[][])null; if(aByte68 == 1) { model1.aBoolean1659 = true; } return model1; } public void readValues(Stream bytebuffer) { do { int i = bytebuffer.readUnsignedByte(); if(i == 0) { return; } if(i == 1) { int j = bytebuffer.readUnsignedByte(); anIntArray94 = new int[j]; int j1 = 0; while(j1 < j) { anIntArray94[j1] = bytebuffer.readUnsignedWord(); j1++; } } else if(i == 2) { name = bytebuffer.readString(); } else if(i == 3) { description = bytebuffer.readBytes(); } else if(i == 12) { aByte68 = bytebuffer.readSignedByte(); } else if(i == 13) { anInt77 = bytebuffer.readUnsignedWord(); } else if(i == 14) { anInt67 = bytebuffer.readUnsignedWord(); } else if(i == 17) { anInt67 = bytebuffer.readUnsignedWord(); anInt58 = bytebuffer.readUnsignedWord(); anInt83 = bytebuffer.readUnsignedWord(); anInt55 = bytebuffer.readUnsignedWord(); if(anInt67 == 65535) { anInt67 = -1; } if(anInt58 == 65535) { anInt58 = -1; } if(anInt83 == 65535) { anInt83 = -1; } if(anInt55 == 65535) { anInt55 = -1; } } else if(i >= 30 && i < 40) { if(itemActions == null) { itemActions = new String[5]; } itemActions[i - 30] = bytebuffer.readString(); if(itemActions[i - 30].equalsIgnoreCase("hidden")) { itemActions[i - 30] = null; } } else if(i == 40) { int k = bytebuffer.readUnsignedByte(); anIntArray70 = new int[k]; anIntArray76 = new int[k]; int k1 = 0; while(k1 < k) { anIntArray76[k1] = bytebuffer.readUnsignedWord(); anIntArray70[k1] = bytebuffer.readUnsignedWord(); k1++; } } else if(i == 60) { int l = bytebuffer.readUnsignedByte(); anIntArray73 = new int[l]; int l1 = 0; while(l1 < l) { anIntArray73[l1] = bytebuffer.readUnsignedWord(); l1++; } } else if(i == 90) { bytebuffer.readUnsignedWord(); } else if(i == 91) { bytebuffer.readUnsignedWord(); } else if(i == 92) { bytebuffer.readUnsignedWord(); } else if(i == 93) { aBoolean87 = false; } else if(i == 95) { combatLevel = bytebuffer.readUnsignedWord(); } else if(i == 97) { anInt91 = bytebuffer.readUnsignedWord(); } else if(i == 98) { anInt86 = bytebuffer.readUnsignedWord(); } else if(i == 99) { aBoolean93 = true; } else if(i == 100) { anInt85 = bytebuffer.readSignedByte(); } else if(i == 101) { anInt92 = bytebuffer.readSignedByte() * 5; } else if(i == 102) { anInt75 = bytebuffer.readUnsignedWord(); } else if(i == 103) { anInt79 = bytebuffer.readUnsignedWord(); } else if(i == 106) { anInt57 = bytebuffer.readUnsignedWord(); if(anInt57 == 65535) { anInt57 = -1; } anInt59 = bytebuffer.readUnsignedWord(); if(anInt59 == 65535) { anInt59 = -1; } int i1 = bytebuffer.readUnsignedByte(); childrenIDs = new int[i1 + 1]; int i2 = 0; while(i2 <= i1) { childrenIDs[i2] = bytebuffer.readUnsignedWord(); if(childrenIDs[i2] == 65535) { childrenIDs[i2] = -1; } i2++; } } else if(i == 107) { aBoolean84 = false; } } while(true); } public EntityDef() { anInt55 = -1; anInt57 = -1; anInt58 = -1; anInt59 = -1; combatLevel = -1; anInt67 = -1; aByte68 = 1; anInt75 = -1; anInt77 = -1; interfaceType = -1L; anInt79 = 32; anInt83 = -1; aBoolean84 = true; anInt86 = 128; aBoolean87 = true; anInt91 = 128; aBoolean93 = false; } }[/CODE] Nex Code [CODE]if(i == 6032) { stream.currentOffset = streamIndices[630]; entitydef.aByte68 = 1; entitydef.readValues(stream); entitydef.itemActions = new String[5]; entitydef.itemActions[1] = "Attack"; entitydef.anIntArray94 = new int[1]; entitydef.anIntArray94[0] = 62717; entitydef.name = "Nex"; entitydef.combatLevel = 1001; entitydef.description = "Even the gods fear it.".getBytes(); }[/CODE] Where i Add The Command On entitydef File?
  22. qpanel

    pi nex anims.

    can any1 help me with my nex, ive added it in, but the anims are wrong and i cant find any that work correct. i will pay for a fix, skype me qpanel1
  23. Aha just decided to make this as a little bit of fun. I will be nexing all week pretty damn often, so it will be fun. First Drop: [IMG]http://screensnapr.com/e/FOyVGA.jpg[/IMG]
×