A Project for Chronicle 4 based on L2JServer.


    Strider speed (water)

    Share
    avatar
    Karakan

    Posts : 472
    Join date : 2013-10-04

    Strider speed (water)

    Post  Karakan on 13th February 2018, 21:33

    Code:

    Index: PcStat.java
    ===================================================================
    --- PcStat.java   (revision 598)
    +++ PcStat.java   (working copy)
    @@ -415,6 +415,11 @@
           L2PcInstance player = getActiveChar();
           if (player.isMounted())
           {
    +            if (player.isInsideZone(L2Character.ZONE_WATER))
    +            {
    +                val /= 2;           
    +            }
    +         
              int baseRunSpd = L2PetDataTable.getInstance().getPetData(player.getMountNpcId(), player.getMountLevel()).getPetSpeed();
              val = (int) Math.round(calcStat(Stats.RUN_SPEED, baseRunSpd, null, null));
           }




      Current date/time is 13th December 2018, 20:48