Register for your free account! | Forgot your password?

You last visited: Today at 07:37

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

Advertisement



[5165] Arrow reload

Discussion on [5165] Arrow reload within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2010
Posts: 291
Received Thanks: 61
[5165] Arrow reload

Ughh.. again the noob juiced xD
This time I need help with Arrow reload ... I was searching for it , Nothing found so it would be nice if you can help.
Thanks.
†he Knight is offline  
Thanks
1 User
Old 10/04/2010, 16:05   #2


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Help with what....or do you just want to leach a complete system?
Korvacs is offline  
Old 10/04/2010, 16:26   #3
 
elite*gold: 0
Join Date: Apr 2010
Posts: 291
Received Thanks: 61
Quote:
Originally Posted by Korvacs View Post
Help with what....or do you just want to leach a complete system?
What u mean??
†he Knight is offline  
Thanks
1 User
Old 10/04/2010, 16:26   #4
 
elite*gold: 0
Join Date: Oct 2010
Posts: 148
Received Thanks: 57
Find in Character.cs:
Code:
            Step:
inside it put:
Code:
                if (Equips.RightHand.ID >= 500003 && Equips.RightHand.ID < 500999 && arrowsloaded == false)
                {
                    if (InventoryContains(1050000, 1) && Equips.LeftHand.ID != 1050000 && Equips.LeftHand.ID != 1050001 && Equips.LeftHand.ID != 1050002)
                    {
                        arrowsloaded = true;
                        Item I = Equips.Get(5);
                        I.ID = 1050000;
                        I.UID = (uint)Rnd.Next(10000000);
                        I.MaxDur = I.DBInfo.Durability;
                        I.CurDur = I.MaxDur;

                        if (I.UID == 0)
                        {
                            I.UID = (uint)Rnd.Next(10000000);
                        }
                        MyClient.AddSend(Packets.AddItem(I, 5));
                        RemoveItem(this.NextItem(1050000));
                    }
                    if (InventoryContains(1050001, 1) && Equips.LeftHand.ID != 1050001 && Equips.LeftHand.ID != 1050000 && Equips.LeftHand.ID != 1050002)
                    {
                        arrowsloaded = true;
                        Item I = Equips.Get(5);
                        I.ID = 1050001;
                        I.UID = (uint)Rnd.Next(10000000);
                        I.MaxDur = I.DBInfo.Durability;
                        I.CurDur = I.MaxDur;

                        if (I.UID == 0)
                        {
                            I.UID = (uint)Rnd.Next(10000000);
                        }
                        MyClient.AddSend(Packets.AddItem(I, 5));
                        RemoveItem(this.NextItem(1050001));
                    }
                    if (InventoryContains(1050002, 1) && Equips.LeftHand.ID != 1050002 && Equips.LeftHand.ID != 1050001 && Equips.LeftHand.ID != 1050000)
                    {
                        arrowsloaded = true;
                        Item I = Equips.Get(5);
                        I.ID = 1050002;
                        I.UID = (uint)Rnd.Next(10000000);
                        I.MaxDur = I.DBInfo.Durability;
                        I.CurDur = I.MaxDur;

                        if (I.UID == 0)
                        {
                            I.UID = (uint)Rnd.Next(10000000);
                        }
                        MyClient.AddSend(Packets.AddItem(I, 5));
                        RemoveItem(this.NextItem(1050002));
                    }
                }
                /*
                Add more arrows down here, this is a really simple way, could be done much better
                */
define in character.cs
Code:
public bool arrowsloaded = false;
now find:
Code:
public uint PrepareAttack(byte AtkType, bool ArrowCost)
replace it with:
Code:
        public uint PrepareAttack(byte AtkType, bool ArrowCost)
        {
            AtkMem.LastAttack = DateTime.Now;
            AttackType A = (AttackType)AtkType;

            bool EnoughArrows = true;
            if (A == AttackType.Ranged && ArrowCost)
            {
                if (Loc.Map != 1039)
                {
                    if (Equips.LeftHand.ID != 0 && Item.IsArrow(Equips.LeftHand.ID))
                    {
                        Equips.LeftHand.CurDur -= 1;
                        if (Equips.LeftHand.CurDur == 0)
                        {
                            arrowsloaded = false;
                            MyClient.AddSend(Packets.ItemPacket(Equips.LeftHand.UID, 5, 6));
                            MyClient.AddSend(Packets.ItemPacket(Equips.LeftHand.UID, 0, 3));
                            Equips.LeftHand = new Item();
                        }
                        else
                            MyClient.AddSend(Packets.AddItem(Equips.LeftHand, 5));
                    }
                    else
                    {
                        AtkMem.Attacking = false;
                        EnoughArrows = false;
                    }
                }
            }
_Vodka is offline  
Thanks
1 User
Old 10/04/2010, 16:28   #5
 
elite*gold: 0
Join Date: Apr 2010
Posts: 291
Received Thanks: 61
Sorry but i should add this to the bottom or at the top of the step?
†he Knight is offline  
Thanks
1 User
Old 10/04/2010, 16:29   #6
 
elite*gold: 0
Join Date: Oct 2010
Posts: 148
Received Thanks: 57
I made it under:
Code:
                if (BlessingLasts > 0 && DateTime.Now > BlessingStarted.AddDays(BlessingLasts))
                {
                    BlessingLasts = 0;
                    StatEff.Remove(StatusEffectEn.Blessing);
                    MyClient.LocalMessage(2000, "Your heaven blessing has expired.");
                }
but dosnt really matter as long is inside step: and is inside public void Step()
_Vodka is offline  
Thanks
1 User
Old 10/04/2010, 16:34   #7


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Looks like you were looking to leach a full system, give it a try yourself first next time.
Korvacs is offline  
Old 10/04/2010, 16:36   #8
 
elite*gold: 0
Join Date: Apr 2010
Posts: 291
Received Thanks: 61
oO , Doesnt work kinda. Just Removes the arrow from inventory
†he Knight is offline  
Thanks
1 User
Old 10/04/2010, 16:46   #9
 
elite*gold: 0
Join Date: Oct 2010
Posts: 148
Received Thanks: 57
Try it now
_Vodka is offline  
Thanks
1 User
Old 10/04/2010, 18:58   #10
 
elite*gold: 0
Join Date: Apr 2010
Posts: 291
Received Thanks: 61
It reloads every arrow i buy .. all the time .. no matter of my job...
†he Knight is offline  
Thanks
1 User
Old 10/04/2010, 19:07   #11
 
elite*gold: 0
Join Date: Oct 2010
Posts: 148
Received Thanks: 57
Quote:
Originally Posted by JuiceDCodeR View Post
It reloads every arrow i buy .. all the time .. no matter of my job...
What about now?
_Vodka is offline  
Thanks
1 User
Old 10/04/2010, 19:20   #12
 
elite*gold: 0
Join Date: Apr 2010
Posts: 291
Received Thanks: 61
hahahaha Fully Fully working.
#request close
†he Knight is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Arrow Mod
06/11/2010 - Mabinogi - 9 Replies
Hey i seen this vid on tube. If anyone can please, you don't have to respond here, you can inbox me on how to get the ice trail when the sage fires his arrows. Awsomeness :O YouTube - Mari Server : Falcon Sage vs Champion
[Need Help] Arrow Depletion
10/21/2009 - CO2 Private Server - 17 Replies
Hey guys, i just wondering how to code or to start with arrow Depletion, any idea? I beg you to post here.. Conquer Online: Paze version 3 (Co: Paze v3) Mana Depletion = Done Nobility Icon (top-left) = Done Arrow Depletion = Not yet started
Arrow bug. Need help!!!
12/12/2008 - Silkroad Online - 9 Replies
hi guys i have a big problem, i see my arrow skills strange... any ideea plsss :( have anyone this problem? Can it be fixed? :((
Shoots arrow & reload macro.
02/13/2007 - CO2 Bots & Macros - 2 Replies
Simple macro made with AutoIt v3. You just enter your arrow pack size, how many arrows go per scatter, pause you want between clicks, and how many arrows you have left in the pack (if you need to adjust values). Turn it on/off with shift + alt + o. Reset the amount of arrows left to the pack size with shift + alt + r. Add the amount of arrows that get used per scatter to the amount left with alt + z. (Useful for lag.) If you want continuous firing (if you have an arrow reloader that...



All times are GMT +1. The time now is 07:38.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

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