Results 1 to 3 of 3
  1. #1
    marinepower's Avatar
    Join Date
    May 2012
    Gender
    male
    Posts
    109
    Reputation
    10
    Thanks
    573
    My Mood
    Inspired

    UseItemPacket help

    Just wondering if anyone out there might be able to help out. I keep getting kicked, and think it might have something to do with the useitem packet.

    Its format is as follows:
    Code:
    time = in.readInt();
    objectId = in.readInt();
    slotId = in.readUnsignedByte();
    itemType = in.readShort();
    loc = new Location(in);
    useType = in.readByte();
    The issue is with the last useType byte field. The only value that seems to work is to set it to 1, but I believe there might be more possible values, since a byte can have 256 different values.

  2. #2
    nilly's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    2,652
    Reputation
    155
    Thanks
    13,983
    My Mood
    Angelic
    I briefly looked into this. useType uses 0 for cases like using stat pot/using egg and 1 for hp/mp pots and ability items. Hope that helps.

    You don't have a way to read packets to see what useItem packet contains on various usages?
    Be careful, stray too far from the pack and you'll get lost.

  3. The Following User Says Thank You to nilly For This Useful Post:

    marinepower (06-26-2013)

  4. #3
    marinepower's Avatar
    Join Date
    May 2012
    Gender
    male
    Posts
    109
    Reputation
    10
    Thanks
    573
    My Mood
    Inspired
    Thanks for taking a look nilly. Yeah, it's a bit of a silly question to ask when you have a proxy, but I never noticed the value get set to anything else when I was using the client. (Which, when looking back, probably means that setting the value to 1 is correct because that's obviously what the client is sending). Anyway, the error actually ended up being that I was trying to spell-bomb monsters that were too far away because the proxy incorrectly interpolated the player's position. It works great now.

Similar Threads

  1. [Help Request] Combat arms Vid help
    By djw111 in forum Combat Arms Help
    Replies: 4
    Last Post: 12-24-2011, 05:06 PM
  2. [Help Request] AFK Bot [help]
    By fet in forum Combat Arms Help
    Replies: 7
    Last Post: 04-28-2011, 03:17 AM
  3. [Help Request] Injector Admin help
    By asdfgas in forum Combat Arms Help
    Replies: 4
    Last Post: 04-27-2011, 06:12 PM
  4. [Help Request] Ajuda / Help
    By - Battery' in forum Combat Arms BR Coding Help
    Replies: 3
    Last Post: 04-22-2011, 07:15 PM
  5. [Help Request] Help my!
    By Windowns7 in forum Combat Arms BR Coding Help
    Replies: 2
    Last Post: 04-18-2011, 01:41 PM