Results 1 to 2 of 2
  1. #1
    epicpawn's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Posts
    27
    Reputation
    10
    Thanks
    55

    K-Relay Plugin Help

    Hello, so the ring switch plugin i made has some defects. Sometimes, while im playing, and the plugin tries to switch rings i get the "error" sound ingame and nothing happens, as if it failed to move the ring. Does anyone know what might be the cause of this? Thanks!

    Edit:
    seems to be movement based as when i am still or moving slowly it works better

    code that switches items goes like:

    InvSwapPacket swap = (InvSwapPacket)Packet.Create(PacketType.INVSWAP);
    swap.Time = client.Time;
    swap.Position = client.PlayerData.Pos;
    swap.SlotObject1 = new SlotObject();
    swap.SlotObject2 = new SlotObject();
    swap.SlotObject1.ObjectId = client.ObjectId;
    swap.SlotObject2.ObjectId = client.ObjectId;
    swap.SlotObject1.SlotId = 3; // 0 corresponds to the weapon. 0-3 are equips
    swap.SlotObject2.SlotId = 7; // 4 is the first inventory slot
    swap.SlotObject1.ObjectType = (short)client.PlayerData.Slot[3]; // ObjectType of whatever is currently in the matching slotId
    swap.SlotObject2.ObjectType = (short)client.PlayerData.Slot[7]; // ObjectType of whatever is currently in the matching slotId

    client.SendToServer(swap);
    Last edited by epicpawn; 05-30-2015 at 11:09 PM.

  2. #2
    mateo_gon's Avatar
    Join Date
    May 2014
    Gender
    male
    Posts
    86
    Reputation
    10
    Thanks
    7
    from my experecience, when i try to switch items while moving, like rushing an abyss, it usually doesn't work and send the same error, so i have to try again.
    i don't know how the packets work, but maybe you need to make the script switch when you're not moving?or pressing another key?

Similar Threads

  1. [Help Request] K-Relay Plugin Help
    By epicpawn in forum Realm of the Mad God Help & Requests
    Replies: 1
    Last Post: 05-29-2015, 01:10 AM
  2. [Help Request] How about a K-relay plugin that changes rings?
    By sinshoi in forum Realm of the Mad God Help & Requests
    Replies: 7
    Last Post: 05-22-2015, 02:59 AM
  3. [Help Request] K Relay API Help
    By pixelzerg in forum Realm of the Mad God Help & Requests
    Replies: 8
    Last Post: 05-18-2015, 01:50 PM
  4. [Help Request] Realm Relay scripting help (newbie)
    By codelion in forum Realm of the Mad God Help & Requests
    Replies: 9
    Last Post: 04-30-2014, 12:21 PM
  5. [Help Request] Plugin Help
    By Lemon >.< in forum Minecraft Help
    Replies: 5
    Last Post: 10-10-2013, 04:43 PM