ArtisandWind.cs

Newbie Spellweaver
Joined
Aug 16, 2007
Messages
21
Reaction score
0

Error 17 'CO_Full_Server.Instances.NPCdialog' does not contain a definition for 'DeleteItem' D:\New Source v0.2\New Source\Instances\ArtisandWind.cs 287 47 CO Full Server
Error 18 'CO_Full_Server.Instances.NPCdialog' does not contain a definition for 'DeleteItemUID' D:\New Source v0.2\New Source\Instances\ArtisandWind.cs 310 47 CO Full Server
Error 19 'CO_Full_Server.Instances.NPCdialog' does not contain a definition for 'DeleteItem' D:\New Source v0.2\New Source\Instances\ArtisandWind.cs 322 39 CO Full Server

Can anyone explain me what i have to do?
 
Add to NPCDialog.cs

PHP:
        public void DeleteItem(int id, int quantity)
        {
            int tesst = 0;
            int oop2 = 0;
            foreach (int[] test3 in _client.Char.Inv_items)
            {
                if (test3[0] == Convert.ToInt32(id)) { oop2++; }
                if (oop2 >= quantity)
                {
                    if (test3[0] == id)
                    {
                        if (tesst < quantity)
                        {
                            test3[0] = 0;
                            _client.SendData(PacketBuilder.RemoveItem(Convert.ToString(test3[9])));
                            tesst++;

                        }
                    }
                }

            }
        }
 
Add to NPCDialog.cs

PHP:
        public void DeleteItem(int id, int quantity)
        {
            int tesst = 0;
            int oop2 = 0;
            foreach (int[] test3 in _client.Char.Inv_items)
            {
                if (test3[0] == Convert.ToInt32(id)) { oop2++; }
                if (oop2 >= quantity)
                {
                    if (test3[0] == id)
                    {
                        if (tesst < quantity)
                        {
                            test3[0] = 0;
                            _client.SendData(PacketBuilder.RemoveItem(Convert.ToString(test3[9])));
                            tesst++;

                        }
                    }
                }

            }
        }

The process of that is it deletes while it checks meaning if you have say 2 dbs, and it wants to remove 3 dbs, it will remove the 2 and be "successful" yet you didn't have 3. There's no check on how many were deleted or any result to verify if the right amount was deleted.
 
Error 17 No overload for method 'DeleteItem' takes '3' arguments D:\New Source v0.2\New Source\Instances\ArtisandWind.cs 287 37 CO Full Server
Error 18 'CO_Full_Server.Instances.NPCdialog' does not contain a definition for 'DeleteItemUID' D:\New Source v0.2\New Source\Instances\ArtisandWind.cs 310 47 CO Full Server
Error 19 No overload for method 'DeleteItem' takes '3' arguments D:\New Source v0.2\New Source\Instances\ArtisandWind.cs 322 29 CO Full Server


i added that to npcdialog now i get this error =/
 
Fix :

PHP:
        public void DeleteItem()
        {
            int tesst = 0;
            int oop2 = 0;
            foreach (int[] test3 in _client.Char.Inv_items)
            {
                if (test3[0] == Convert.ToInt32(id)) { oop2++; }
                {
                    if (test3[0] == id)
                    {
                        {
                            test3[0] = 0;
                            _client.SendData(PacketBuilder.RemoveItem(Convert.ToString(test3[9])));
                            tesst++;

                        }
                    }
                }

            }
        }
 
Error 17 No overload for method 'DeleteItem' takes '3' arguments D:\New Source v0.2\New Source\Instances\ArtisandWind.cs 287 37 CO Full Server
Error 18 'CO_Full_Server.Instances.NPCdialog' does not contain a definition for 'DeleteItemUID' D:\New Source v0.2\New Source\Instances\ArtisandWind.cs 310 47 CO Full Server
Error 19 No overload for method 'DeleteItem' takes '3' arguments D:\New Source v0.2\New Source\Instances\ArtisandWind.cs 322 29 CO Full Server

same
 
Back