[Help] [MoopleDEV] Equipping through code

Results 1 to 3 of 3
  1. #1
    FutureLegend's Owner FightRay is offline
    MemberRank
    Feb 2011 Join Date
    Capsule Corp.Location
    548Posts

    [Help] [MoopleDEV] Equipping through code

    Well, i've been trying to get an item force-equipped,
    i've created a code to test the equipping by code (equip and equipped inventory is empty on the char i'm testing with)
    and it gives only the item, and doesn't equip it.
    The code is in maplemap addPlayer().


    Code:
    MapleInventoryManipulator.addById(c, 1002367, quantity);
                Equip nEquip = (Equip) c.getPlayer().getInventory(MapleInventoryType.EQUIP).findById(1002367);
                //}
                nEquip.setPosition((byte)-1);
                c.getPlayer().equipChanged();


  2. #2
    while(true) spam(); kevintjuh93 is offline
    ModeratorRank
    Jun 2008 Join Date
    The NetherlandsLocation
    4,119Posts

    Re: [Help] [MoopleDEV] Equipping through code

    MapleInventoryType.EQUIP != MapleInventoryType.EQUIPPED

    Try using the MapleInventoryManipulator.equip method.

  3. #3
    Alpha Member TiredGuy is offline
    MemberRank
    Mar 2012 Join Date
    Behind YouLocation
    1,527Posts

    Re: [Help] [MoopleDEV] Equipping through code

    Check createcharhandler and start from there



Advertisement