Using scrolls or items packet

11/09/2017 14:20 #HB#1
Hey,

I would ask something, what is the packet of using any scroll like Str&Int scrolls(Abs,Inc) ... thanks and I hope that someone would help me :handsdown: :handsdown: :handsdown: :handsdown:

Can you UP while passing If you can't help me? :D
11/09/2017 16:02 iGamerFD#2
0x704c,CLIENT_PLAYER_HANDLE.
11/09/2017 18:30 #HB#3
Thanks but sorry another question.. 0x704c so where's the scroll's skillid or itemid something like that! :D

Well, later I found this :

Quote:
uint num = _pck.ReadUInt8();
uint value = _pck.ReadUInt16();

/*
0D - InventorySlot
EC - PotionType (EC: Normal | ED: ItemMall)
09 - PotionID (08: HP | 09: ? | 10: MP)
Can you give me more of this PotionID , HP and MP only won't help me at all :D
11/18/2017 07:39 B1Q#4
Quote:
Originally Posted by #HB View Post
Thanks but sorry another question.. 0x704c so where's the scroll's skillid or itemid something like that! :D

Well, later I found this :


Can you give me more of this PotionID , HP and MP only won't help me at all :D
Code:
Packet potion = new Packet(0x704C, true);
potion.WriteByte(slot);
if (type <= byte.MaxValue)
    potion.WriteByte(type);
else
    potion.WriteUShort(type);
potion.WriteByte((byte)potionType);
true for encrypted
1- slot
1~2- type
1- PotionType (read enums)

Code:
public enum PotionType : byte
{
    HP = 8,
    MP = 16,
    Pills = 49,
    Vigor = 24
}
NOTE: this was used for SSN's autopotion (ecsro files) not sure if it's the same for vsro