hmm

11/28/2009 01:29 -Shunsui-#1
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
11/28/2009 06:02 Arcо#2
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.
11/28/2009 06:25 airborne.#3
does it work?
11/28/2009 06:29 Arcо#4
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.
11/28/2009 13:06 Korvacs#5
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.
11/28/2009 13:30 hunterman01#6
Quote:
If you leave fields blank they will be assigned 0 by default if its gear
I did not no that thanks.
11/28/2009 13:32 Arcо#7
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.
11/28/2009 14:54 -Shunsui-#8
@Korvacs thanks and tiku for trying but i fixed it alrdy :)
11/28/2009 20:02 0xide#9
#request close - threadstarter got what he wanted
11/28/2009 20:55 Huseby#10
#Closed