Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Coding Corner
You last visited: Today at 20:15

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



how to access underbar ?

Discussion on how to access underbar ? within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 135
Join Date: May 2015
Posts: 649
Received Thanks: 753
how to access underbar ?

hello,

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


thank you !
$WeGs is offline  
Old 10/01/2015, 23:25   #2

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,661
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
sarkoplata is offline  
Thanks
1 User
Old 10/01/2015, 23:41   #3
 
elite*gold: 135
Join Date: May 2015
Posts: 649
Received Thanks: 753
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 !
$WeGs is offline  
Old 10/01/2015, 23:45   #4

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,661
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.
sarkoplata is offline  
Old 10/01/2015, 23:52   #5
 
elite*gold: 135
Join Date: May 2015
Posts: 649
Received Thanks: 753
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.
$WeGs is offline  
Old 10/02/2015, 08:18   #6

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,661
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%
sarkoplata is offline  
Old 10/02/2015, 14:12   #7
 
elite*gold: 135
Join Date: May 2015
Posts: 649
Received Thanks: 753
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

$WeGs is offline  
Old 10/06/2015, 18:02   #8
 
elite*gold: 0
Join Date: Oct 2014
Posts: 34
Received Thanks: 16
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);
        }
    }
mxii is offline  
Thanks
1 User
Old 10/08/2015, 18:40   #9
 
RussianDog2's Avatar
 
elite*gold: 0
Join Date: Mar 2011
Posts: 37
Received Thanks: 3
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 ?
RussianDog2 is offline  
Old 10/08/2015, 20:08   #10

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,661
C#
sarkoplata is offline  
Old 10/09/2015, 13:40   #11
 
elite*gold: 135
Join Date: May 2015
Posts: 649
Received Thanks: 753
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 ?
$WeGs is offline  
Reply


Similar Threads Similar Threads
UnderBar Download Links
12/08/2013 - SRO Private Server - 0 Replies
Hello i need some Awesome UnderBar,s for Silkroad Online ! pm me if u got !:mofo: also need help how to edit this new nuke colors and skills in media or data pk2 !
underbar alpha..
12/12/2011 - SRO Private Server - 0 Replies
how to made alpha in underbar at ps cs5? i think tryed all i want made full transparence underbar for me media xd post ss how to save.
Transparent underbar
09/02/2010 - Silkroad Online - 0 Replies
any one can tell me who can i edit Help windows from Media :( i change the Thread adress but not change in forum
[How to]das attacken auf underbar bleiben
01/27/2010 - SRO Private Server - 1 Replies
hi Leute, ich brauche hilfe in SJSRO (New) und nämlich das die attacken die ich auf underbar sind : http://img17.myimg.de/underbare16f0.jpg da bleiben auch wenn man Raus geht. ;) den wenn ich wieder rein gehe dan muss ich die wieder aufstellen :mad: wäre cool wenn einer das wissen würde und mir weiter helfen könnte.:handsdown:
underbar problem
08/20/2009 - SRO Private Server - 3 Replies
http://iv.pl/images/4f2gtzdj3lmgqw01ex9p.jpg how i can delete this white thing? thx



All times are GMT +1. The time now is 20:16.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.