how to access underbar ?

10/01/2015 19:20 $WeGs#1
hello,

how i can access underbar with packets like use potions ,skills etc... via packets .


thank you !
10/01/2015 23:25 sarkoplata#2
You can't use items "from underbar", there is only one way of using items. Single style of packet. Which includes the item slot in inventory and item type if im remembering right. By pressing buttons on underbar your client just sends those packets.

Just analyze the packets and you'll find how... 0x7074 for skills
10/01/2015 23:41 $WeGs#3
Quote:
Originally Posted by sarkoplata View Post
You can't use items "from underbar", there is only one way of using items. Single style of packet. Which includes the item slot in inventory and item type if im remembering right. By pressing buttons on underbar your client just sends those packets.

Just analyze the packets and you'll find how... 0x7074 for skills
yea i already knows this way , and tested to parse packets from underbar and gives me item use packet .

thank you !
10/01/2015 23:45 sarkoplata#4
You're welcome. Actually you can use items from "underbar" too, via memory. Someone did that before (was probably lolkop)
That worked really good. But packet-based is always the best solution imo.
10/01/2015 23:52 $WeGs#5
Quote:
Originally Posted by sarkoplata View Post
You're welcome. Actually you can use items from "underbar" too, via memory. Someone did that before (was probably lolkop)
That worked really good. But packet-based is always the best solution imo.
yeah , i was looking to create auto potion packet based built in old school clients that doesn't have auto potion.
10/02/2015 08:18 sarkoplata#6
That could be a cool idea. You can have an autopot via a proxy between client and server. All you have to do is to implement the 'T' window from vsro client, or aside that can be set like this:
/sethp 70%
/setmp 50%
10/02/2015 14:12 $WeGs#7
Quote:
Originally Posted by sarkoplata View Post
That could be a cool idea. You can have an autopot via a proxy between client and server. All you have to do is to implement the 'T' window from vsro client, or aside that can be set like this:
/sethp 70%
/setmp 50%
thats what i was thinking about

10/06/2015 18:02 mxii#8
Using Pots:

Code:
    public class Protection
    {
        public static void UseHP(SROBot.Bot bot)
        {
            if (bot != null && bot.Char.IsAlive)
            {
                var invitem = bot.Inventory.GetItem("HP Recovery Potion");
                if (invitem == null/* || (!invitem.Iteminfo.Type.StartsWith("ITEM_ETC_HP_POTION") && !invitem.Iteminfo.Type.StartsWith("ITEM_ETC_HP_SPOTION"))*/) return;

                var packet = new Packet(0x704C, true);
                packet.WriteUInt8(invitem.Slot);
                packet.WriteUInt16(0x08EC);

                bot.SendToSilkroadServer(packet);
            }
        }

        public static void UseMP(SROBot.Bot bot)
        {
            if (bot != null && bot.Char.IsAlive)
            {
                var invitem = bot.Inventory.GetItem("MP Recovery Potion");
                if (invitem == null/* || (!invitem.Iteminfo.Type.StartsWith("ITEM_ETC_MP_POTION") && !invitem.Iteminfo.Type.StartsWith("ITEM_ETC_MP_SPOTION"))*/) return;

                var packet = new Packet(0x704C, true);
                packet.WriteUInt8(invitem.Slot);
                packet.WriteUInt16(0x10EC);

                bot.SendToSilkroadServer(packet);
            }
        }

        public static void UseUniversalPill(SROBot.Bot bot)
        {
            if (bot != null && bot.Char.IsAlive)
            {
                var invitem = bot.Inventory.GetItem("Universal Pill");
                if (invitem == null/* || !invitem.Iteminfo.Type.StartsWith("ITEM_ETC_CURE_ALL")*/) return;

                var packet = new Packet(0x704C, true);
                packet.WriteUInt8(invitem.Slot);
                packet.WriteUInt16(0x316C);

                bot.SendToSilkroadServer(packet);
            }
        }

        public static void UsePetHP(SROBot.Bot bot, uint petId)
        {
            if (bot == null) return;

            var invitem = bot.Inventory.GetItemByType("ITEM_ETC_COS_HP_POTION");
            if (invitem == null) return;

            var packet = new Packet(0x704C, true);
            packet.WriteUInt8(invitem.Slot);
            packet.WriteUInt16(0x20EC);
            packet.WriteUInt32(petId);

            bot.SendToSilkroadServer(packet);
        }
    }
10/08/2015 18:40 RussianDog2#9
Quote:
Originally Posted by mxii View Post
Using Pots:

Code:
    public class Protection
    {
        public static void UseHP(SROBot.Bot bot)
        {
            if (bot != null && bot.Char.IsAlive)
            {
                var invitem = bot.Inventory.GetItem("HP Recovery Potion");
                if (invitem == null/* || (!invitem.Iteminfo.Type.StartsWith("ITEM_ETC_HP_POTION") && !invitem.Iteminfo.Type.StartsWith("ITEM_ETC_HP_SPOTION"))*/) return;

                var packet = new Packet(0x704C, true);
                packet.WriteUInt8(invitem.Slot);
                packet.WriteUInt16(0x08EC);

                bot.SendToSilkroadServer(packet);
            }
        }

        public static void UseMP(SROBot.Bot bot)
        {
            if (bot != null && bot.Char.IsAlive)
            {
                var invitem = bot.Inventory.GetItem("MP Recovery Potion");
                if (invitem == null/* || (!invitem.Iteminfo.Type.StartsWith("ITEM_ETC_MP_POTION") && !invitem.Iteminfo.Type.StartsWith("ITEM_ETC_MP_SPOTION"))*/) return;

                var packet = new Packet(0x704C, true);
                packet.WriteUInt8(invitem.Slot);
                packet.WriteUInt16(0x10EC);

                bot.SendToSilkroadServer(packet);
            }
        }

        public static void UseUniversalPill(SROBot.Bot bot)
        {
            if (bot != null && bot.Char.IsAlive)
            {
                var invitem = bot.Inventory.GetItem("Universal Pill");
                if (invitem == null/* || !invitem.Iteminfo.Type.StartsWith("ITEM_ETC_CURE_ALL")*/) return;

                var packet = new Packet(0x704C, true);
                packet.WriteUInt8(invitem.Slot);
                packet.WriteUInt16(0x316C);

                bot.SendToSilkroadServer(packet);
            }
        }

        public static void UsePetHP(SROBot.Bot bot, uint petId)
        {
            if (bot == null) return;

            var invitem = bot.Inventory.GetItemByType("ITEM_ETC_COS_HP_POTION");
            if (invitem == null) return;

            var packet = new Packet(0x704C, true);
            packet.WriteUInt8(invitem.Slot);
            packet.WriteUInt16(0x20EC);
            packet.WriteUInt32(petId);

            bot.SendToSilkroadServer(packet);
        }
    }
Kewl is that C ?
10/08/2015 20:08 sarkoplata#10
C#
10/09/2015 13:40 $WeGs#11
Quote:
Originally Posted by mxii View Post
Using Pots:

Code:
    public class Protection
    {
        public static void UseHP(SROBot.Bot bot)
        {
            if (bot != null && bot.Char.IsAlive)
            {
                var invitem = bot.Inventory.GetItem("HP Recovery Potion");
                if (invitem == null/* || (!invitem.Iteminfo.Type.StartsWith("ITEM_ETC_HP_POTION") && !invitem.Iteminfo.Type.StartsWith("ITEM_ETC_HP_SPOTION"))*/) return;

                var packet = new Packet(0x704C, true);
                packet.WriteUInt8(invitem.Slot);
                packet.WriteUInt16(0x08EC);

                bot.SendToSilkroadServer(packet);
            }
        }

        public static void UseMP(SROBot.Bot bot)
        {
            if (bot != null && bot.Char.IsAlive)
            {
                var invitem = bot.Inventory.GetItem("MP Recovery Potion");
                if (invitem == null/* || (!invitem.Iteminfo.Type.StartsWith("ITEM_ETC_MP_POTION") && !invitem.Iteminfo.Type.StartsWith("ITEM_ETC_MP_SPOTION"))*/) return;

                var packet = new Packet(0x704C, true);
                packet.WriteUInt8(invitem.Slot);
                packet.WriteUInt16(0x10EC);

                bot.SendToSilkroadServer(packet);
            }
        }

        public static void UseUniversalPill(SROBot.Bot bot)
        {
            if (bot != null && bot.Char.IsAlive)
            {
                var invitem = bot.Inventory.GetItem("Universal Pill");
                if (invitem == null/* || !invitem.Iteminfo.Type.StartsWith("ITEM_ETC_CURE_ALL")*/) return;

                var packet = new Packet(0x704C, true);
                packet.WriteUInt8(invitem.Slot);
                packet.WriteUInt16(0x316C);

                bot.SendToSilkroadServer(packet);
            }
        }

        public static void UsePetHP(SROBot.Bot bot, uint petId)
        {
            if (bot == null) return;

            var invitem = bot.Inventory.GetItemByType("ITEM_ETC_COS_HP_POTION");
            if (invitem == null) return;

            var packet = new Packet(0x704C, true);
            packet.WriteUInt8(invitem.Slot);
            packet.WriteUInt16(0x20EC);
            packet.WriteUInt32(petId);

            bot.SendToSilkroadServer(packet);
        }
    }

thanks,
from what source you got this file ? cuz i wanna to get (bot.Inventory) file etc.. can you share the full source please ?