Jump to content

Dead Zone

Member
  • Content count

    52
  • Joined

  • Last visited

  1. [quote name='Jess']Hmm! nice name what it'll be when server dies :)[/QUOTE] haha it won't die any years soon but i never though if it that way i got the name from killer zone but i didnt wana make it the same so i named it dead zone than later i found out it was a name of a movie dead-zone were the dude can see the future i only saw the movie 1 year after teh server was launched :p
  2. npchandler bug fxied (i hope/think :p)
  3. well the source i got brokenx PI had messed up npchandler so i found a guide how to fix it but now once every 10 hours if u kill a certian npc the server crashes, i found one npc is hill giant id 117 but it doesnt always crash heres the error i get sometimes when server crashes [CODE][7/15/11 3:02 PM]: java.lang.NullPointerException [7/15/11 3:02 PM]: at server.model.npcs.NPCHandler.dropItems(NPCHandler.jav a:1698) [7/15/11 3:02 PM]: at server.model.npcs.NPCHandler.process(NPCHandler.java: 1517) [7/15/11 3:02 PM]: at server.Server.main(Server.java:163) [7/15/11 3:02 PM]: A fatal exception has been thrown! [7/15/11 3:02 PM]: Saved game for deadly mind. Press any key to continue . . .[/CODE] heres the link (1517) [CODE]dropItems(i); // npc drops items![/CODE] in npchandler line (1698) [CODE]Server.itemHandler.createGroundItem(c, item, npcs[i].absX, npcs[i].absY, 1, c.playerId);[/CODE] and line 163 in server.java [CODE]npcHandler.process();[/CODE] here public void process() [CODE] public void process() { for (int i = 0; i < maxNPCs; i++) { if (npcs[i] == null) continue; npcs[i].clearUpdateFlags(); } for (int i = 0; i < maxNPCs; i++) { if (npcs[i] != null) { if (npcs[i].actionTimer > 0) { npcs[i].actionTimer--; } if (npcs[i].freezeTimer > 0) { npcs[i].freezeTimer--; } if (npcs[i].hitDelayTimer > 0) { npcs[i].hitDelayTimer--; } if (npcs[i].hitDelayTimer == 1) { npcs[i].hitDelayTimer = 0; applyDamage(i); } if(npcs[i].attackTimer > 0) { npcs[i].attackTimer--; } if(npcs[i].spawnedBy > 0) { // delete summons npc if(Server.playerHandler.players[npcs[i].spawnedBy] == null || Server.playerHandler.players[npcs[i].spawnedBy].heightLevel != npcs[i].heightLevel || Server.playerHandler.players[npcs[i].spawnedBy].respawnTimer > 0 || !Server.playerHandler.players[npcs[i].spawnedBy].goodDistance(npcs[i].getX(), npcs[i].getY(), Server.playerHandler.players[npcs[i].spawnedBy].getX(), Server.playerHandler.players[npcs[i].spawnedBy].getY(), 20)) { if(Server.playerHandler.players[npcs[i].spawnedBy] != null) { for(int o = 0; o < Server.playerHandler.players[npcs[i].spawnedBy].barrowsNpcs.length; o++){ if(npcs[i].npcType == Server.playerHandler.players[npcs[i].spawnedBy].barrowsNpcs[o][0]) { if (Server.playerHandler.players[npcs[i].spawnedBy].barrowsNpcs[o][1] == 1) Server.playerHandler.players[npcs[i].spawnedBy].barrowsNpcs[o][1] = 0; } } } npcs[i] = null; } } if (npcs[i] == null) continue; /** * Attacking player **/ if (isAggressive(i) && !npcs[i].underAttack && !npcs[i].isDead && !switchesAttackers(i)) { npcs[i].killerId = getCloseRandomPlayer(i); } else if (isAggressive(i) && !npcs[i].underAttack && !npcs[i].isDead && switchesAttackers(i)) { npcs[i].killerId = getCloseRandomPlayer(i); } if (System.currentTimeMillis() - npcs[i].lastDamageTaken > 5000) npcs[i].underAttackBy = 0; if((npcs[i].killerId > 0 || npcs[i].underAttack) && !npcs[i].walkingHome && retaliates(npcs[i].npcType)) { if(!npcs[i].isDead) { int p = npcs[i].killerId; if(Server.playerHandler.players[p] != null) { Client c = (Client) Server.playerHandler.players[p]; followPlayer(i, c.playerId); if (npcs[i] == null) continue; if(npcs[i].attackTimer == 0) { if(c != null) { attackPlayer(c, i); } else { npcs[i].killerId = 0; npcs[i].underAttack = false; npcs[i].facePlayer(0); } } } else { npcs[i].killerId = 0; npcs[i].underAttack = false; npcs[i].facePlayer(0); } } } /** * Random walking and walking home **/ if (npcs[i] == null) continue; if((!npcs[i].underAttack || npcs[i].walkingHome) && npcs[i].randomWalk && !npcs[i].isDead) { npcs[i].facePlayer(0); npcs[i].killerId = 0; if(npcs[i].spawnedBy == 0) { if((npcs[i].absX > npcs[i].makeX + Config.NPC_RANDOM_WALK_DISTANCE) || (npcs[i].absX < npcs[i].makeX - Config.NPC_RANDOM_WALK_DISTANCE) || (npcs[i].absY > npcs[i].makeY + Config.NPC_RANDOM_WALK_DISTANCE) || (npcs[i].absY < npcs[i].makeY - Config.NPC_RANDOM_WALK_DISTANCE)) { npcs[i].walkingHome = true; } } if (npcs[i].walkingHome && npcs[i].absX == npcs[i].makeX && npcs[i].absY == npcs[i].makeY) { npcs[i].walkingHome = false; } else if(npcs[i].walkingHome) { npcs[i].moveX = GetMove(npcs[i].absX, npcs[i].makeX); npcs[i].moveY = GetMove(npcs[i].absY, npcs[i].makeY); npcs[i].getNextNPCMovement(i); npcs[i].updateRequired = true; } if(npcs[i].walkingType == 1) { if(Misc.random(3)== 1 && !npcs[i].walkingHome) { int MoveX = 0; int MoveY = 0; int Rnd = Misc.random(9); if (Rnd == 1) { MoveX = 1; MoveY = 1; } else if (Rnd == 2) { MoveX = -1; } else if (Rnd == 3) { MoveY = -1; } else if (Rnd == 4) { MoveX = 1; } else if (Rnd == 5) { MoveY = 1; } else if (Rnd == 6) { MoveX = -1; MoveY = -1; } else if (Rnd == 7) { MoveX = -1; MoveY = 1; } else if (Rnd == 8) { MoveX = 1; MoveY = -1; } if (MoveX == 1) { if (npcs[i].absX + MoveX < npcs[i].makeX + 1) { npcs[i].moveX = MoveX; } else { npcs[i].moveX = 0; } } if (MoveX == -1) { if (npcs[i].absX - MoveX > npcs[i].makeX - 1) { npcs[i].moveX = MoveX; } else { npcs[i].moveX = 0; } } if(MoveY == 1) { if(npcs[i].absY + MoveY < npcs[i].makeY + 1) { npcs[i].moveY = MoveY; } else { npcs[i].moveY = 0; } } if(MoveY == -1) { if(npcs[i].absY - MoveY > npcs[i].makeY - 1) { npcs[i].moveY = MoveY; } else { npcs[i].moveY = 0; } } int x = (npcs[i].absX + npcs[i].moveX); int y = (npcs[i].absY + npcs[i].moveY); if (VirtualWorld.I(npcs[i].heightLevel, npcs[i].absX, npcs[i].absY, x, y, 0)) npcs[i].getNextNPCMovement(i); else { npcs[i].moveX = 0; npcs[i].moveY = 0; } npcs[i].updateRequired = true; } } } if (npcs[i].isDead == true) { if (npcs[i].actionTimer == 0 && npcs[i].applyDead == false && npcs[i].needRespawn == false) { npcs[i].updateRequired = true; npcs[i].facePlayer(0); npcs[i].killedBy = getNpcKillerId(i); npcs[i].animNumber = getDeadEmote(i); // dead emote npcs[i].animUpdateRequired = true; npcs[i].freezeTimer = 0; npcs[i].applyDead = true; killedBarrow(i); if (isFightCaveNpc(i)) killedTzhaar(i); if (isRFDNpc(i)) killedRFD(i); npcs[i].actionTimer = 4; // delete time resetPlayersInCombat(i); } else if (npcs[i].actionTimer == 0 && npcs[i].applyDead == true && npcs[i].needRespawn == false) { npcs[i].needRespawn = true; npcs[i].actionTimer = getRespawnTime(i); // respawn time dropItems(i); // npc drops items! appendSlayerExperience(i); npcs[i].absX = npcs[i].makeX; npcs[i].absY = npcs[i].makeY; npcs[i].HP = npcs[i].MaxHP; npcs[i].animNumber = 0x328; npcs[i].updateRequired = true; npcs[i].animUpdateRequired = true; if (npcs[i].npcType >= 2440 && npcs[i].npcType <= 2446) { Server.objectManager.removeObject(npcs[i].absX, npcs[i].absY); } if (npcs[i].npcType == 2745) { handleJadDeath(i); } if (npcs[i].npcType == 3491) { handleRFDDeath(i); } } else if (npcs[i].actionTimer == 0 && npcs[i].needRespawn == true) { if(npcs[i].spawnedBy > 0) { npcs[i] = null; } else { int old1 = npcs[i].npcType; int old2 = npcs[i].makeX; int old3 = npcs[i].makeY; int old4 = npcs[i].heightLevel; int old5 = npcs[i].walkingType; int old6 = npcs[i].MaxHP; int old7 = npcs[i].maxHit; int old8 = npcs[i].attack; int old9 = npcs[i].defence; npcs[i] = null; newNPC(old1, old2, old3, old4, old5, old6, old7, old8, old9); } } } } } }[/CODE] Hope you can help :)
  4. [quote name='The Pro Pker']Joining ZOMG :D[/QUOTE] the client was a little bit glitched and some tabs werent working but they are ima be working on shops, fixing npcs and also instead of going to shops you can just click the achievement tab and pick which shops you want :)
  5. thank you someone who understands me :) if you can't find a good tut the best way to add something is to rip it off someones else release :) try brokenx or torvaz they have turmoil working other than that im not really good at add sprites and positing them :p
  6. Dead Zone

    [PI] Client....

    [quote name='I am H3X']It says something in the Console on other Clients I use, but not this one. & I'm connecting to my own computer -_-. Why would I need my port forwarded.. (It is though)[/QUOTE] when ur connecting to ur local ip u dont need to portforward but im pretty sure ur client port must match with the servers. Also are using the same source and client like a package or did u get them from diffrent makers?
  7. Dead Zone

    [PI] Client....

    [quote name='I am H3X']yes..[/QUOTE] okay when u press login it should say something in console if it doesnt that means u didn't portforward properly
  8. Dead Zone

    [PI] Client....

    [quote name='I am H3X']yes. I've compiled.[/QUOTE] does ur port in client files matches the port u portforwarded?
  9. -New prayers -Korasi + spec -All chaotic weapons added -Server almost never offline -Duping is fixed 99.9% Site: [url=http://dead-zone.forummotion.com/]Dead-Zone.tk[/url] Webclient: [url=http://dead-zone.forummotion.com/h2-webclient]Click Here![/url] Download client: [url=http://dead-zone.forummotion.com/h10-download-redirect]Click Here![/url] [IMG]http://i1106.photobucket.com/albums/h370/Vovik3/curses.png[/IMG] [IMG]http://i1106.photobucket.com/albums/h370/Vovik3/weapons.png[/IMG] [IMG]http://i1106.photobucket.com/albums/h370/Vovik3/customs.png[/IMG] [IMG]http://i1106.photobucket.com/albums/h370/Vovik3/godwars.png[/IMG] [IMG]http://i1106.photobucket.com/albums/h370/Vovik3/demons.png[/IMG] [IMG]http://i1106.photobucket.com/albums/h370/Vovik3/client.png[/IMG]
  10. I just want to here what the people have to say about guys shaving their pits. If girls don't like guys with hairy pits and they tell you to shave them how is it gay when in the end your pleasing the chicks....
  11. [quote name='Jello FX']honestly that is the worst cnc i have heard but i appreciate it anyway Ps my works rarely have brushing unless i do some types of masks messy yes some are but that is just my style as you can tell and i already know my text sucks nut sacks :P @ Deadzone those 2 are personally my worst designs i have done lately "Sotw signatures"[/QUOTE] i think this one is the worst :p [IMG]http://i934.photobucket.com/albums/ad181/jello-game/Naruto_RGBC.jpg[/IMG]
  12. best ones :) [IMG]http://i934.photobucket.com/albums/ad181/jello-game/Sotw.jpg[/IMG] [IMG]http://i934.photobucket.com/albums/ad181/jello-game/SOTW_2.jpg[/IMG] [IMG]http://i934.photobucket.com/albums/ad181/jello-game/Star.jpg[/IMG] P.S Wana make me a banner please for my server :)
  13. [quote name='hellman2741']Very smart idea. I for one hate listening to kids (Not just in resturaunts too) who sit there and make the rudest comments, scream at the top of their lungs for no reason, and even worse stuff. And the worst part about it, is that the parents seem to think that it's "adorable" and instead of getting them to stop, they actually end up egging them on, not realizing that everyone around them is having a horrible time because of their son and/or daughter... When I become a father, I personally will not let my child do this, I realize they'll just be a child, but by not telling them to stop, you're just making them think that it's okay, so they'll continue to do it later on even when you're telling them to stop because you made them believe that it was okay earlier on.[/QUOTE] lol when i become a father haha you and your gf already got it planed out lolo
  14. some parents just don't know how to control to raise their children period...i always hate when there a little kid screaming at his mom in the store cuz she won't by him something when i was his age and i did that my mom would slap me and tell me to shut up...
  15. oh shit wrong topic sorry :p was gona post this on a different thread: some parents just don't know how to control to raise their children period...i always hate when there a little kid screaming at his mom in the store cuz she won't by him something when i was his age and i did that my mom would slap me and tell me to shut up...
×