Register for your free account! | Forgot your password?

You last visited: Today at 10:30

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

Advertisement



hmm

Discussion on hmm within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
hmm

Anyone knows what can POSIBLY be wrong with this the First function works fine i get a BlackSteedPack but the last 2 dont do nothing dosent remove item nor gives me a steed @_@

Code:
#region MountOfficer
                            case 95381:
                                {
                                    if (Control == 0)
                                    {

                                        GC.AddSend(Packets.NPCSay("What? A group of Cattle Thieves stole the Saddles of the cavalry! Without the Saddles, they wont be able to hold any drills. If you can help get the Saddles from the Cattle Thieves, I just might give you a steed as a reward! :)"));
                                        GC.AddSend(Packets.NPCLink("Black Steed", 1));
                                        GC.AddSend(Packets.NPCLink("White Steed", 2));
                                        GC.AddSend(Packets.NPCLink("Maroon Steed", 2));
                                        GC.AddSend(Packets.NPCLink("Nope, you're mistaken.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());

                                    }
                                    if (Control == 1)
                                    {
                                        if (GC.MyChar.InventoryContains(723903, 1))
                                        {
                                            GC.MyChar.RemoveItem(GC.MyChar.NextItem(723903));
                                            {
                                                GC.MyChar.AddItem(723902);
                                            }
                                        }
                                        else if (Control == 2)
                                        {
                                            if (GC.MyChar.InventoryContains(723903, 1))
                                            {
                                                GC.MyChar.RemoveItem(GC.MyChar.NextItem(723903));
                                                {
                                                    GC.MyChar.AddItem(723901);
                                                }
                                            }
                                            else if (Control == 3)
                                            {
                                                if (GC.MyChar.InventoryContains(723903, 1))
                                                {
                                                    GC.MyChar.RemoveItem(GC.MyChar.NextItem(723903));
                                                    {
                                                        GC.MyChar.AddItem(723900);
                                                    }
                                                }
                                            }
                                        }
                                    }
                                    break;
                                            
                                }
                           #endregion
-Shunsui- is offline  
Old 11/28/2009, 06:02   #2
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by flako27 View Post
Anyone knows what can POSIBLY be wrong with this the First function works fine i get a BlackSteedPack but the last 2 dont do nothing dosent remove item nor gives me a steed @_@

Code:
#region MountOfficer
                            case 95381:
                                {
                                    if (Control == 0)
                                    {

                                        GC.AddSend(Packets.NPCSay("What? A group of Cattle Thieves stole the Saddles of the cavalry! Without the Saddles, they wont be able to hold any drills. If you can help get the Saddles from the Cattle Thieves, I just might give you a steed as a reward! :)"));
                                        GC.AddSend(Packets.NPCLink("Black Steed", 1));
                                        GC.AddSend(Packets.NPCLink("White Steed", 2));
                                        GC.AddSend(Packets.NPCLink("Maroon Steed", 2));
                                        GC.AddSend(Packets.NPCLink("Nope, you're mistaken.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());

                                    }
                                    if (Control == 1)
                                    {
                                        if (GC.MyChar.InventoryContains(723903, 1))
                                        {
                                            GC.MyChar.RemoveItem(GC.MyChar.NextItem(723903));
                                            {
                                                GC.MyChar.AddItem(723902);
                                            }
                                        }
                                        else if (Control == 2)
                                        {
                                            if (GC.MyChar.InventoryContains(723903, 1))
                                            {
                                                GC.MyChar.RemoveItem(GC.MyChar.NextItem(723903));
                                                {
                                                    GC.MyChar.AddItem(723901);
                                                }
                                            }
                                            else if (Control == 3)
                                            {
                                                if (GC.MyChar.InventoryContains(723903, 1))
                                                {
                                                    GC.MyChar.RemoveItem(GC.MyChar.NextItem(723903));
                                                    {
                                                        GC.MyChar.AddItem(723900);
                                                    }
                                                }
                                            }
                                        }
                                    }
                                    break;
                                            
                                }
                           #endregion

Isn'tit supposed to be:
Code:
GC.MyChar.AddItem(723900-0-0-0-0-0-0);
Cause when working with gears you need to do all the gears's attributes.
Arcо is offline  
Old 11/28/2009, 06:25   #3
 
airborne.'s Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 256
Received Thanks: 63
does it work?
airborne. is offline  
Old 11/28/2009, 06:29   #4
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by airborne. View Post
does it work?
If you're asking me idk.
Like I said I haven't tested it yet.
Arcо is offline  
Old 11/28/2009, 13:06   #5


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Code:
                        #region MountOfficer
                            case 95381:
                                {
                                    if (Control == 0)
                                    {

                                        GC.AddSend(Packets.NPCSay("What? A group of Cattle Thieves stole the Saddles of the cavalry! Without the Saddles, they wont be able to hold any drills. If you can help get the Saddles from the Cattle Thieves, I just might give you a steed as a reward! :)"));
                                        GC.AddSend(Packets.NPCLink("Black Steed", 1));
                                        GC.AddSend(Packets.NPCLink("White Steed", 2));
                                        GC.AddSend(Packets.NPCLink("Maroon Steed", 2));
                                        GC.AddSend(Packets.NPCLink("Nope, you're mistaken.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());

                                    }
                                    else if (Control == 1)
                                    {
                                        if (GC.MyChar.InventoryContains(723903, 1))
                                        {
                                            GC.MyChar.RemoveItem(GC.MyChar.NextItem(723903));
                                            {
                                                GC.MyChar.AddItem(723902);
                                            }
                                        }
                                    }
                                    else if (Control == 2)
                                    {
                                        if (GC.MyChar.InventoryContains(723903, 1))
                                        {
                                            GC.MyChar.RemoveItem(GC.MyChar.NextItem(723903));
                                            {
                                                GC.MyChar.AddItem(723901);
                                            }
                                        }
                                    }
                                    else if (Control == 3)
                                    {
                                        if (GC.MyChar.InventoryContains(723903, 1))
                                        {
                                            GC.MyChar.RemoveItem(GC.MyChar.NextItem(723903));
                                            {
                                                GC.MyChar.AddItem(723900);
                                            }
                                        }
                                    }
                                    break; 
                                }                                    
                      #endregion
Should be fine now, you had your brackets completely messed up.

It was setup so that Control had to be 1, then 2 (to get the second steed), and then 3 (inorder to get to the third steed).

However thats impossible unless you write in that control changes (which you dont want).

So yeah now it will work as you intended.

@Tiku: If you leave fields blank they will be assigned 0 by default if its gear.
Korvacs is offline  
Thanks
2 Users
Old 11/28/2009, 13:30   #6
 
hunterman01's Avatar
 
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
Quote:
If you leave fields blank they will be assigned 0 by default if its gear
I did not no that thanks.
hunterman01 is offline  
Old 11/28/2009, 13:32   #7
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by Korvacs View Post
Code:
                        #region MountOfficer
                            case 95381:
                                {
                                    if (Control == 0)
                                    {

                                        GC.AddSend(Packets.NPCSay("What? A group of Cattle Thieves stole the Saddles of the cavalry! Without the Saddles, they wont be able to hold any drills. If you can help get the Saddles from the Cattle Thieves, I just might give you a steed as a reward! :)"));
                                        GC.AddSend(Packets.NPCLink("Black Steed", 1));
                                        GC.AddSend(Packets.NPCLink("White Steed", 2));
                                        GC.AddSend(Packets.NPCLink("Maroon Steed", 2));
                                        GC.AddSend(Packets.NPCLink("Nope, you're mistaken.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());

                                    }
                                    else if (Control == 1)
                                    {
                                        if (GC.MyChar.InventoryContains(723903, 1))
                                        {
                                            GC.MyChar.RemoveItem(GC.MyChar.NextItem(723903));
                                            {
                                                GC.MyChar.AddItem(723902);
                                            }
                                        }
                                    }
                                    else if (Control == 2)
                                    {
                                        if (GC.MyChar.InventoryContains(723903, 1))
                                        {
                                            GC.MyChar.RemoveItem(GC.MyChar.NextItem(723903));
                                            {
                                                GC.MyChar.AddItem(723901);
                                            }
                                        }
                                    }
                                    else if (Control == 3)
                                    {
                                        if (GC.MyChar.InventoryContains(723903, 1))
                                        {
                                            GC.MyChar.RemoveItem(GC.MyChar.NextItem(723903));
                                            {
                                                GC.MyChar.AddItem(723900);
                                            }
                                        }
                                    }
                                    break; 
                                }                                    
                      #endregion
Should be fine now, you had your brackets completely messed up.

It was setup so that Control had to be 1, then 2 (to get the second steed), and then 3 (inorder to get to the third steed).

However thats impossible unless you write in that control changes (which you dont want).

So yeah now it will work as you intended.

@Tiku: If you leave fields blank they will be assigned 0 by default if its gear.

I did not know that as well.
Thanks for the info.
Arcо is offline  
Old 11/28/2009, 14:54   #8
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
@Korvacs thanks and tiku for trying but i fixed it alrdy
-Shunsui- is offline  
Old 11/28/2009, 20:02   #9
 
elite*gold: 0
Join Date: Nov 2009
Posts: 9
Received Thanks: 4
#request close - threadstarter got what he wanted
0xide is offline  
Thanks
1 User
Old 11/28/2009, 20:55   #10
 
Huseby's Avatar
 
elite*gold: 106
Join Date: Oct 2006
Posts: 6,047
Received Thanks: 1,165
#Closed
Huseby is offline  
Reply




All times are GMT +1. The time now is 10:31.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.