Jump to content

Gries

Members
  • Posts

    817
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Community Answers

  1. Gries's post in Code Npe was marked as the answer   
    int npcId = getTemplate().getId(); switch (npcId) { case 150: final L2PcInstance player = killer.getActingPlayer(); if (player != null) { final L2Clan clan = player.getClan(); if (clan != null) { clan.addReputationScore(10, true); // Change 10 with the reputation points you want to add upon kill monster } final L2Summon summon = killer.getSummon(); if (summon != null) { return false; } player.sendMessage("Your Clan Reputation is increased by 10."); } Changed code like that, now it is working without any NPE, thank you all  ^-^
×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..