Infinity weapons

    Share

    torsello

    Posts : 50
    Join date : 2015-08-18

    Infinity weapons

    Post  torsello on 30th August 2015, 06:53

    How i can do to equip infinity weapons without be a hero? , Is there any way to edit the items not to be only for heros?

    DnR
    Admin
    Admin

    Posts : 985
    Join date : 2012-12-03

    Re: Infinity weapons

    Post  DnR on 30th August 2015, 11:27

    torsello wrote:How i can do to equip infinity weapons without be a hero? , Is there any way to edit the items not to be only for heros?

    From Inventory.java remove this part 2 times.
    One from void restore() and one from void equipItem().
    Code:

                            if (getOwner() instanceof L2PcInstance)
                       {
                           L2PcInstance player = (L2PcInstance)getOwner();
                      
                           if (!player.isGM())
                                {

                               if (!player.isHero())
                               {
                                        int itemId = item.getItemId();
                                   if ((itemId >= 6611 && itemId <= 6621) || itemId == 6842)
                                       item.setLocation(ItemLocation.INVENTORY);
                               }
                                }
                       }

    Then, in client packet called UseItem remove the check that contains these item ids for olympiad.

    torsello

    Posts : 50
    Join date : 2015-08-18

    Re: Infinity weapons

    Post  torsello on 1st September 2015, 23:02

    Thanks a lot!!

    kascote

    Posts : 3
    Join date : 2017-03-30

    Re: Infinity weapons

    Post  kascote on 9th April 2017, 02:40

    Hi, ask these lines where you need to introduce them
    I have a version of c4 l2jlisvus

    Sponsored content

    Re: Infinity weapons

    Post  Sponsored content


      Current date/time is 24th July 2017, 09:33