Jump to content

dj3king962

Member
  • Content count

    256
  • Joined

  • Last visited

  1. That will only appear in your inventory, he want it to apepar on the ground.
  2. dj3king962

    safe pk area!!

    Considering you on PI. Go to player.java serch "funpk" Change the coords you want.. If its not there, just add one like all other booleans but change the name and coords. As for keeping iets on death, go to config.java or player hanler or aciton handler i forgot.google it.
  3. You probz put an extra bracket or sumthing.
  4. Add Camelot, for cammy-pking. I like edge, but cammy for pking.
  5. Ok so i have my server and since my router doesnt support portfrwarding im going to host it on VPS 10$/Month. So How does the VPS thing work? Like when i pay them do i send them my source and they will keep it online for me until i say so? And everytime i want to make an update, do i resend them the source? Please explain. And also before i send them do i need to make an no-ip to the server idk. Thanks
  6. Vitilaty you need to add the funpk coordinates to the multipk boolean in player.java
  7. Nice and good for new pi players. But Huge? Defenetly not.
  8. I could fix almost all of them..... reply me on email
  9. Hi. I'm having trouble finding tuts on adding ancietn curses to my 317 server. Base: PI, Overloadx I currently have turmoil inmy normal prayer tab but i want to be able to switch to ancient curses tba with all prayers by clicking on an item like prayer altar..... Please post a Guide/Tut on howto add curses. Thanks.
  10. I created a special atttack restore button. This is only available to donators and only if they are in a specific area. So the problem is: I want text to appear to the player showing him if iether he is not a donator or he is not in the spec area. If the player is outside the area, a messege WILL appear so it works. But if the player is not a donator and uses it in the speczone, nothing appears. so cna u giv me the code for it? This is my current code in clickingbuttons. case 62166: if (c.memberStatus == 1) if (c.inspeczone()){ c.gfx0(342); c.specAmount = 10.0; c.sendMessage("You Restore Your Special Attack!"); } else { c.sendMessage("You can only use this underwater."); } break;
  11. This is the whole thing: /** * Dieing **/ public void applyDead() { c.respawnTimer = 15; c.isDead = false; Client o = (Client) Server.playerHandler.players[c.killerId]; c.DC++; o.KC++; if(c.duelStatus != 6) { c.killerId = findKiller(); if(o != null) { c.playerKilled = c.playerId; if(o.duelStatus == 5) { o.duelStatus++; } if (Server.playerHandler.players[c.playerId].connectedFrom != o.lastKilled) { o.pkPoints = (o.pkPoints + 2); o.lastKilled = Server.playerHandler.players[c.playerId].connectedFrom; } else { o.sendMessage("You do not recieve pk points because you have killed " +c.playerName+ " twice in a row."); } } } c.faceUpdate(0); closeAllWindows(); c.npcIndex = 0; c.playerIndex = 0; c.stopMovement(); if(c.duelStatus <= 4) { c.sendMessage("Oh dear you are dead!"); } else if(c.duelStatus != 6 || !c.inArena()) { c.sendMessage("You have lost the duel!"); } resetDamageDone(); c.specAmount = 10; c.getItems().addSpecialBar(c.playerEquipment[c.playerWeapon]); c.lastVeng = 0; c.vengOn = false; resetFollowers(); c.attackTimer = 10; if (Server.playerHandler.players[c.killerId].connectedFrom.equals(Server.playerHandler.players[c.playerKilled].connectedFrom)) { o.sendMessage("You Don't Recieve PK Points for killing yourself!"); c.faceUpdate(0); c.npcIndex = 0; c.playerIndex = 0; c.stopMovement(); if(c.duelStatus <= 4) { c.sendMessage("Oh dear you are dead!"); } else if(c.duelStatus != 6) { c.sendMessage("You have lost the duel!"); } resetDamageDone(); c.lastVeng = 0; c.vengOn = false; resetFollowers(); c.attackTimer = 10; removeAllWindows(); c.tradeResetNeeded = true; return; } } public void resetDamageDone() { for (int i = 0; i < PlayerHandler.players.length; i++) { if (PlayerHandler.players[i] != null) { PlayerHandler.players[i].damageTaken[c.playerId] = 0; } } } public void vengMe() { if (System.currentTimeMillis() - c.lastVeng > 30000) { if (c.getItems().playerHasItem(557,10) && c.getItems().playerHasItem(9075,4) && c.getItems().playerHasItem(560,2)) { c.vengOn = true; c.lastVeng = System.currentTimeMillis(); c.startAnimation(4410); c.gfx100(657); c.getItems().deleteItem(557,c.getItems().getItemSlot(557),10); c.getItems().deleteItem(560,c.getItems().getItemSlot(560),2); c.getItems().deleteItem(9075,c.getItems().getItemSlot(9075),4); } else { c.sendMessage("You do not have the required runes to cast this spell. (9075 for astrals)"); } } else { c.sendMessage("You must wait 30 seconds before calling him a bitch again."); } } public void resetTb() { c.teleBlockLength = 0; c.teleBlockDelay = 0; } public void handleStatus(int i, int i2, int i3) { if (i == 1) c.getItems().addItem(i2,i3); else if (i == 2) { c.playerXP[i2] = c.getPA().getXPForLevel(i3)+5; c.playerLevel[i2] = c.getPA().getLevelForXP(c.playerXP[i2]); } } public void resetFollowers() { for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { if (Server.playerHandler.players[j].followId == c.playerId) { Client c = (Client)Server.playerHandler.players[j]; c.getPA().resetFollow(); } } } } public void giveLife() { c.isDead = false; c.faceUpdate(-1); c.freezeTimer = 0; if(c.duelStatus <= 4 && !c.getPA().inPitsWait()) { // if we are not in a duel we must be in wildy so remove items System.out.println("" + c.playerName + " has died."); if (!c.inPits && !c.inFightCaves()&& !c.inFunPk() && c.playerRights != 3) { c.getItems().resetKeepItems(); if((c.playerRights == 2 && Config.ADMIN_DROP_ITEMS) || c.playerRights != 2 || c.playerRights != 3) { if(!c.isSkulled) { // what items to keep c.getItems().keepItem(0, true); c.getItems().keepItem(1, true); c.getItems().keepItem(2, true); } if(c.prayerActive[10] && System.currentTimeMillis() - c.lastProtItem > 700) { c.getItems().keepItem(3, true); } if (c.isInPVP()) { // c.getItems().dropAllItemsPVP(); // PvP drops c.getItems().deleteAllItems(); // delete all items } else { c.getItems().dropAllItems(); // drop all items c.getItems().deleteAllItems(); // delete all items } if(!c.isSkulled) { // add the kept items once we finish deleting and dropping them for (int i1 = 0; i1 < 3; i1++) { if(c.itemKeptId[i1] > 0) { c.getItems().addItem(c.itemKeptId[i1], 1); } } } if(c.prayerActive[10]) { // if we have protect items if(c.itemKeptId[3] > 0) { c.getItems().addItem(c.itemKeptId[3], 1); } } } c.getItems().resetKeepItems(); } else if (c.inPits) { Server.fightPits.removePlayerFromPits(c.playerId); c.pitsStatus = 1; } } c.getCombat().resetPrayers(); for (int i = 0; i < 20; i++) { c.playerLevel[i] = getLevelForXP(c.playerXP[i]); c.getPA().refreshSkill(i); } if (c.pitsStatus == 1) { movePlayer(2399, 5173, 0); } else if(c.duelStatus <= 4) { // if we are not in a duel repawn to wildy movePlayer(Config.RESPAWN_X, Config.RESPAWN_Y, 0); c.isSkulled = false; c.skullTimer = 0; c.attackedPlayers.clear(); } else if (c.inFightCaves()) { c.getPA().resetTzhaar(); } else { // we are in a duel, respawn outside of arena Client o = (Client) Server.playerHandler.players[c.duelingWith]; if(o != null) { o.getPA().createPlayerHints(10, -1); if(o.duelStatus == 6) { o.getTradeAndDuel().duelVictory(); } } movePlayer(Config.DUELING_RESPAWN_X+(Misc.random(Config.RANDOM_DUELING_RESPAWN)), Config.DUELING_RESPAWN_Y+(Misc.random(Config.RANDOM_DUELING_RESPAWN)), 0); if(c.duelStatus != 6) { // if we have won but have died, don't reset the duel status. c.getTradeAndDuel().resetDuel(); } } //PlayerSaving.getSingleton().requestSave(c.playerId); PlayerSave.saveGame(c); c.getCombat().resetPlayerAttack(); resetAnimation(); c.startAnimation(65535); frame1(); resetTb(); c.isSkulled = false; c.attackedPlayers.clear(); c.headIconPk = -1; c.skullTimer = -1; c.damageTaken = new int[Config.MAX_PLAYERS]; c.getPA().requestUpdates(); }
  12. Reserved the method is called "inspecczone". Why do i need to do it inspecarea? Look: this is it in player.java. public boolean inspeczone() { return absX >= 2944 && absX <= 3007 && absY >= 9427 && absY <= 9535; }
×