CoEmu clearinv NPC

07/16/2009 00:26 alexbigfoot#16
well...use Database.DeleteItem(int()) function? like
Code:
                        else if (LinkBack == 1)
                        {
                            foreach(Struct.ItemInfo Itm in CSocket.Client.Inventory.Values)
                                {CSocket.Send(ConquerPacket.ItemUsage(Itm.UID, 0, Struct.ItemUsage.RemoveItem));
Database.Database.DeleteItem(Itm.UID);
}
                            CSocket.Client.Inventory.Clear();
                        }
hard enough heh?
07/16/2009 02:24 JustChillin#17
Look at the Meteor bank release, its a great release because it includes many features.
07/16/2009 06:53 arab4life#18
Quote:
Originally Posted by alexbigfoot View Post
well...use Database.DeleteItem(int()) function? like
Code:
                        else if (LinkBack == 1)
                        {
                            foreach(Struct.ItemInfo Itm in CSocket.Client.Inventory.Values)
                                {CSocket.Send(ConquerPacket.ItemUsage(Itm.UID, 0, Struct.ItemUsage.RemoveItem));
Database.Database.DeleteItem(Itm.UID);
}
                            CSocket.Client.Inventory.Clear();
                        }
hard enough heh?
for some people yes...stop acting like your the "best" worthless coder...
kids...
Quote:
Originally Posted by JustChillin View Post
Look at the Meteor bank release, its a great release because it includes many features.
you could of said that in ur 1st post in this thread, instead of writing worthless shit to act like your god also...


Note: not everyone is "smart" as you both.
07/16/2009 08:27 CIRASH#19
Quote:
Originally Posted by arab4life View Post
for some people yes...stop acting like your the "best" worthless coder...
Stop defending noobs?
07/16/2009 08:31 alexbigfoot#20
Quote:
Originally Posted by arab4life View Post
for some people yes...stop acting like your the "best" worthless coder...
I dont act like "i'm the best coder", just, in C# you need sense, why would someone add something from lotf and expect to work? or even if you do Inventory.Clear() the items won't dissapear from invenoty but why? If your just like other noobs, try to do some hard math, you'll get sense easier than trying to code shit. And no, i'm not God, also not worthless coder. I dont care what you say, but, just to light you up, before you go in C#, you need to have some knowledge about it and some sense about what you do. Dont act like being Noob's protector.
07/16/2009 20:29 imported_spitt_fire911#21
But the NPC does work its not from loft... i made it.. and it does work.. But in CoEmu.. It does not SAVE the dataase with no items
that means im just missing a line of somethig... just like CPs i cant get to save
07/16/2009 23:01 alexbigfoot#22
Ok, so, without any of my posts, your npc was "working" just it wasnt saving?


















































. If true, then you must be very GOOD.
07/17/2009 03:50 imported_spitt_fire911#23
Yes
07/17/2009 08:57 alexbigfoot#24
Ok, i'll wait you on MSN, today and if you are right, i'll give you my source.