Thread: 718 pack yak / winter storage

Results 1 to 2 of 2
  1. #1 718 pack yak / winter storage 
    Registered Member
    Join Date
    Sep 2014
    Posts
    64
    Thanks given
    3
    Thanks received
    0
    Rep Power
    15
    Hi, i have been adding up a few codes for Winter storage and it dosent work, i have no idea why. Check out the codes and tell me if there is anything wrong with it.

    packyak.java
    Code:
    @Override
    	public boolean submitSpecial(Object object) {
    		int slotId = (Integer) object;
    		if (getOwner().getBank().hasBankSpace()) {
    			getOwner().getBank().depositItem(slotId, 1, false);
    			getOwner().getPackets().sendGameMessage(
    					"Your Pack Yak has sent an item to your bank.");
    			getOwner().setNextGraphics(new Graphics(1316));
    			getOwner().setNextAnimation(new Animation(7660));
    		}
    		return true;
    	}
    Worldpacketsdecoder.java

    Code:
    } else if (packetId == ITEM_ON_ITEM_PACKET) {
    			InventoryOptionsHandler.handleItemOnItem(player, stream);
    //if (!player.hasStarted() || !player.clientHasLoadedMapRegion()
    //|| player.isDead())
    //return;
    if (player.getLockDelay() > Utils.currentTimeMillis())
    return;
    @SuppressWarnings("unused")
    int itemUsedWithId = stream.readShort();
    int toSlot = stream.readShortLE128();
    int interfaceId = stream.readInt() >> 16;
    @SuppressWarnings("unused")
    int interfaceId2 = stream.readInt() >> 16;
    @SuppressWarnings("unused")
    int fromSlot = stream.readShort();
    @SuppressWarnings("unused")
    int itemUsedId = stream.readShortLE128();
    switch (interfaceId) {
    case 747:
    case 662:
    if (player.getFamiliar() == null
    || player.getFamiliar().getSpecialAttack() != SpecialAttack.ITEM)
    return;
    player.getFamiliar().submitSpecial(toSlot);
    return;
    }
    - - - Updated - - -

    Bump

    - - - Updated - - -

    still need help
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Apr 2009
    Posts
    99
    Thanks given
    3
    Thanks received
    3
    Rep Power
    11
    I would start by adding some
    Code:
    player.getPackets().sendGameMessage(
    					"Made it here.1");
    ... add one of these with a different # at the end, in critical points.. It could be something as simple as it thinking the player doesn't have enough bank space.. Let me know where it makes code wise, and we can trouble shoot that specific line
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [718] Winter Storage (Pack Yak).
    By alkharidrsps in forum Help
    Replies: 5
    Last Post: 12-21-2014, 12:32 AM
  2. 100% Pack yak [WINTER STORAGE]
    By Hassan in forum Help
    Replies: 1
    Last Post: 08-26-2013, 03:30 PM
  3. (Matrix 718) Pack Yak.
    By Savions in forum Requests
    Replies: 1
    Last Post: 06-02-2013, 12:37 PM
  4. [718+]Pack Yak scroll not working
    By Cya Forever in forum Help
    Replies: 0
    Last Post: 04-26-2013, 10:13 PM
  5. Pack Yak Winter Storage [639]
    By Ryan. in forum Help
    Replies: 2
    Last Post: 04-23-2012, 05:25 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •