Champions auros spalvos (frozen)

Kodas tinka Frozen platformai
    
  1. Atsijungęs

    maugllis

    Administratorius

    Pranešimai: 542

    Su šiuo kodu galėsite lengvai pasirinkti champion auros spalvą ant mobų, kodas tinka Frozen platformai. Galimi trys variantai:
    (0 - be auros; 1 - mėlyna; 2 - raudona)

    Index: config/fun/champion.properties
    ===================================================================
    --- config/fun/champion.properties    (revision 694)
    +++ config/fun/champion.properties    (working copy)
    @@ -41,4 +41,9 @@
     ChampionRewardItemQty = 1
     
     # Champion Mob Custom Title
    -ChampionTitle = Champion
    \ No newline at end of file
    +ChampionTitle = Champion
    +
    +# Enacenzura aura from champion mobs
    +# 0 - no aura / 1 - blue aura / 2 - red aura
    +# Default = 0
    +ChampionEnacenzuraAura = 0
    \ No newline at end of file
    Index: head-src/com/l2jfrozen/Config.java
    ===================================================================
    --- head-src/com/l2jfrozen/Config.java    (revision 694)
    +++ head-src/com/l2jfrozen/Config.java    (working copy)
    @@ -1454,6 +1454,7 @@
         public static int L2JMOD_CHAMPION_REWARD_ID;
         public static int L2JMOD_CHAMPION_REWARD_QTY;
         public static String L2JMOD_CHAMP_TITLE;
    +    public static int L2JMOD_CHAMPION_ENAcenzura_AURA;
     
         //============================================================
         public static void loadChampionConfig()
    @@ -1481,6 +1482,8 @@
                 L2JMOD_CHAMPION_REWARD_ID = Integer.parseInt(ChampionSettings.getProperty("ChampionRewardItemID", "6393"));
                 L2JMOD_CHAMPION_REWARD_QTY = Integer.parseInt(ChampionSettings.getProperty("ChampionRewardItemQty", "1"));
                 L2JMOD_CHAMP_TITLE = ChampionSettings.getProperty("ChampionTitle", "Champion");
    +            L2JMOD_CHAMPION_ENAcenzura_AURA = Integer.parseInt(ChampionSettings.getProperty("ChampionEnacenzuraAura", "0"));
    +            if (L2JMOD_CHAMPION_ENAcenzura_AURA != 0 && L2JMOD_CHAMPION_ENAcenzura_AURA != 1 && L2JMOD_CHAMPION_ENAcenzura_AURA != 2) L2JMOD_CHAMPION_ENAcenzura_AURA = 0;
     
             }
             catch(Exception e)
    Index: head-src/com/l2jfrozen/gameserver/network/serverpackets/NpcInfo.java
    ===================================================================
    --- head-src/com/l2jfrozen/gameserver/network/serverpackets/NpcInfo.java    (revision 694)
    +++ head-src/com/l2jfrozen/gameserver/network/serverpackets/NpcInfo.java    (working copy)
    @@ -193,7 +193,14 @@
             writeD(0000); // C2
             writeC(0000); // C2
     
    -        writeC(0x00); // C3  team circle 1-blue, 2-red
    +        if (Config.L2JMOD_CHAMPION_ENAcenzura)
    +        {
    +        writeC(_activeChar.isChampion() ? Config.L2JMOD_CHAMPION_ENAcenzura_AURA : 0);
    +        }
    +        else
    +        {
    +        writeC(0);
    +        }
             writeF(_collisionRadius);
             writeF(_collisionHeight);
             writeD(0x00); // C4
    7 Sausio 2013 - 07:50 / #1
  2. 
  3. Atsijungęs

    deivux100

    Pranešimai: 0

    paiimsiu :)
    7 Sausio 2013 - 17:36 / #2