Thread: Pk zone help

Results 1 to 5 of 5
  1. #1 Pk zone help 
    Tinkerbell1234
    Guest
    Hi i made a funpk zone , but there are a few glitches ; the first one is that you can only attack people from the same level , i want everyone to be attackable at no matter what level .. and also , sometimes it happens that you get 0 hp , but you wont die , you just can't move and stand there , you have to relog to be able to walk again.
    for the first problem i have no idea where to look , for the second : could it have to do with my exectute method in skills.java ? :

    First Execute method is for the Safepvp , second is just for outside safepvp.

    Code:
    public void execute() {
            		  stop();
            		  if (!player.isOnline() || player.destroyed()) {
            			  return;
            		  }
            		  if(player.safePVP()) {
            			  player.animate(9055);
            			  heal(hitPoints);
            			  hitPoints = getMaxHitpoints();
        				  player.animate(Animation.RESET);
        				  player.getPrayer().closeAllPrayers();
        				  player.sendMessage("Oh dear, you have died.");
        				  ActionSender.sendConfig(player, 1240, hitPoints * 2);
        				  player.setSpecialAmount(1000);
        				  player.heal(1555);
        					player.getSkills().restorePray(120);
        				  player.resetCombat();
        				  player.getPoisonManager().removePoison();
        				  player.setAttribute("teleblock", 0);
        				  player.setAttribute("freezeTime", 0);
        				  player.teleport(Mob.DEFAULT);
        				  return;
            		  }
            		  player.animate(9055);
            		  Prayer.wrathEffect(player, player.getCombatExecutor().getLastAttacker());
            		  Prayer.retributionEffect(player, player.getCombatExecutor().getLastAttacker());
            		  player.removeTick("nex_virus");
            		  player.submitTick("death_tick", new Tick(4) {
            			  @Override
    
            			  public void execute() {
            				  stop();
            				  dead = false;
            				  for (int i = 0; i < SKILL_COUNT; i++) {
            					  set(i, getLevelForExperience(i));
            				  }
            				  player.getSkullManager().removeSkull();
            				  hitPoints = getMaxHitpoints();
            				  player.animate(Animation.RESET);
            				  player.getPrayer().closeAllPrayers();
            				  player.sendMessage("Oh dear, you have died.");
            				  ActionSender.sendConfig(player, 1240, hitPoints * 2);
            				  player.setSpecialAmount(1000);
            				  player.resetCombat();
            				  if(player.getInventory().contains(14596)) {
                    			  player.getInventory().addItem(14596, 1);
                    		  }
            				  player.getPoisonManager().removePoison();
            				  player.setAttribute("teleblock", 0);
            				  player.setAttribute("freezeTime", 0);
            				  Mob killer = player.getDamageManager().getKiller();
            				   if (!player.getActivity().onDeath(player)) {
            					  if (killer != null && killer != player) {
            						  if (player.getRights() != 2) {
            							  GraveStoneManager.appendDeath(player, killer);
            						  }
            					  }
            					  player.teleport(Mob.DEFAULT);
            				  }
            			  }
    
            		  }, true);
            	  }
              });
    	}

    Any help is appreaciated
    Reply With Quote  
     

  2. #2  
    Tinkerbell1234
    Guest
    bump
    Reply With Quote  
     

  3. #3  
    Tinkerbell1234
    Guest
    No1 o,O?
    Reply With Quote  
     

  4. #4  
    Certified Stoner

    demon dylan001's Avatar
    Join Date
    Feb 2009
    Age
    28
    Posts
    1,134
    Thanks given
    77
    Thanks received
    96
    Rep Power
    509
    lol post ur check attack option thread like if you can attack
    Quote Originally Posted by Legitimate View Post
    this kids a str8 leecher
    lol ^ this kid calls me a leecher and buys tons of stuff from me.
    I host Call of duty prestige lobbies on xbox 360
    I can host any call of duty you want just make me an offer pm me if interested
    Spoiler for Sig too big:

    skype-demondylan001 discord demon dylan001#8904
    Attached image
    Reply With Quote  
     

  5. #5  
    Tinkerbell1234
    Guest
    you mean this ?

    } else if (World.getWorld().getAreaManager().getAreaByName(" safepvp").contains(player.getLocation())) {
    if (!insafepvp) {
    updateWildernessState(true);
    ActionSender.sendPlayerOption(player, "Attack", 1, true);
    }
    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] PK Zone
    By Respected in forum Help
    Replies: 3
    Last Post: 11-08-2010, 02:07 AM
  2. Replies: 0
    Last Post: 04-21-2010, 06:17 PM
  3. [Tut] HOW TO CHANGE A WILDY ZONE TO SAFE ZONE! [Tut]
    By Ragez Fury in forum Tutorials
    Replies: 29
    Last Post: 07-29-2009, 02:14 PM
  4. Replies: 32
    Last Post: 07-27-2009, 03:12 AM
  5. Replies: 28
    Last Post: 03-12-2008, 12:31 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
  •