Jump to content

Procustration90

Members
  • Posts

    14
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Procustration90

  1. @Override

    public boolean doDie(L2Character killer)

    {

    if (!super.doDie(killer))

    return false;

    {

       if (this.getNpcId() == 13016)

    killer.teleportto(20808,145755,-3144);

       {

       player.sendMessage("You are the lucky one!");

       return;

       }

     

    this doesnt work, it gives me errors what do i need to change?

     

    i want to make when a mob(13016) gets killed the player who killed it to be teleported to the location above 

  2. if(player.getKarma() <0 && Config.PROTECTOR_PLAYER_PK||player.getKarma() >0 && Config.PROTECTOR_PLAYER_PK||player.getKarma() == 0 && Config.PROTECTOR_PLAYER_PK||player.getPvpFlag() != 0 && Config.PROTECTOR_PLAYER_PVP)

     

    how to change it so

     

    it will kill people with karma & flag 

    people with white name (no flag,pk) to not get killed

     

    i tried everything please help..

×
×
  • Create New...