A Project for Chronicle 4 based on L2JServer.


    Clanmember withdraw rights from cwh

    Share
    avatar
    Karakan

    Posts : 421
    Join date : 2013-10-04

    Clanmember withdraw rights from cwh

    Post  Karakan on 24th November 2013, 13:36

    With this every clan member who has "view" privilegs , can also withdraw items from cwh.


    Code:
    Index: D:/workspace/Lisvus_GameServer/java/net/sf/l2j/gameserver/clientpackets/SendWareHouseWithDrawList.java
    ===================================================================
    --- D:/workspace/Lisvus_GameServer/java/net/sf/l2j/gameserver/clientpackets/SendWareHouseWithDrawList.java   (revision 460)
    +++ D:/workspace/Lisvus_GameServer/java/net/sf/l2j/gameserver/clientpackets/SendWareHouseWithDrawList.java   (working copy)
    @@ -25,6 +25,7 @@
     import net.sf.l2j.gameserver.ClientThread;
     import net.sf.l2j.gameserver.model.ClanWarehouse;
     import net.sf.l2j.gameserver.model.ItemContainer;
    +import net.sf.l2j.gameserver.model.L2Clan;
     import net.sf.l2j.gameserver.model.L2ItemInstance;
     import net.sf.l2j.gameserver.model.actor.instance.L2FolkInstance;
     import net.sf.l2j.gameserver.model.actor.instance.L2NpcInstance;
    @@ -93,14 +94,9 @@
     
            // Alt game - Karma punishment
            if (!Config.ALT_GAME_KARMA_PLAYER_CAN_USE_WAREHOUSE && player.getKarma() > 0) return;
    +
    +    if (warehouse instanceof ClanWarehouse && !((player.getClanPrivileges() & L2Clan.CP_CL_VIEW_WAREHOUSE) == L2Clan.CP_CL_VIEW_WAREHOUSE)) return;
    +         
            int weight = 0;
            int slots = 0;
     

      Current date/time is 24th September 2017, 09:47