|
You last visited: Today at 04:30
Advertisement
clear inv
Discussion on clear inv within the CO2 Private Server forum part of the Conquer Online 2 category.
08/01/2010, 09:57
|
#1
|
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
|
clear inv
Would this work to clear inventory?
Is for the 5018 source.
Code:
case "/clearinv"://Not tested yet
{
foreach (IConquerItem I in MyChar.Inventory)
{
MyChar.RemoveInventory(I.ID);
}
break;
}
|
|
|
08/01/2010, 10:43
|
#2
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
|
How about
case "#clearinv":
Client.Inventory.Clear();
break;
|
|
|
08/01/2010, 10:52
|
#3
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
|
Quote:
Originally Posted by Eliminationn
LOL!!! Acro just pwned you.
|
Uhm, no. Either one works, just mine is the correct way to do it. No one pwned anybody. But thanks for the spam mate. And the misspelling of my name.
|
|
|
08/01/2010, 21:38
|
#4
|
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
|
Quote:
Originally Posted by .Arco
How about
case "#clearinv":
Client.Inventory.Clear();
break;
|
Because that doesn't send the remove item packet.
|
|
|
08/01/2010, 22:56
|
#5
|
elite*gold: 0
Join Date: Jan 2008
Posts: 1,443
Received Thanks: 1,175
|
The two methods are wrong... The first will throw an exception. You will remove a key while you are enumerating the dictionary/hashtable... The second will remove all items for sure, but not on the client. You can just use the two methods combined  You send the packet for each items and after, you clear the dictionary/hashtable.
|
|
|
08/02/2010, 00:07
|
#6
|
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
|
Quote:
Originally Posted by CptSky
The two methods are wrong... The first will throw an exception. You will remove a key while you are enumerating the dictionary/hashtable... The second will remove all items for sure, but not on the client. You can just use the two methods combined  You send the packet for each items and after, you clear the dictionary/hashtable.
|
It depends on what kind of collection you're looping through, how you're looping through it, and also how you're removing the data.
Even if you're looping through like he is you can still remove it using RemoveAt(idx) without throwing an exception.
|
|
|
 |
Similar Threads
|
Clear Stats Without Soul Clear?
03/15/2010 - 12Sky2 - 0 Replies
Just as the topic says, is there a way to reset your stats without a Soul Clear? I imagine it's possible, but does anybody know how?
|
[Help] Npc To clear inv
06/06/2009 - CO2 Private Server - 9 Replies
have any for me a npc that can clear your inv for coemuv2
|
Make it clear!
02/17/2009 - Cabal Online - 4 Replies
Is there atm a working cabal hack and a working cabal bypass (eu)?
tnx
|
Just to clear something
01/22/2009 - SRO Private Server - 7 Replies
I think people not understand here so i want to clear here something about the ECSRO GM , First of all when you starting to be GM it's very nice and you excited so much and happy But after some month's its really boring Main admin dont accept you make Event,items for your self and nothing , only search botters and help a bit ,GM allowed only to search bot not anything elso. as you all think "gm can do everything" if you think that so you dreaming
Anyway I did what i did because i quit from...
|
Just to clear something
12/20/2006 - Conquer Online 2 - 2 Replies
erm.. I saw a thread abt ' delete the aimbot hacks from Epvp ' earlier
Well flame me all u want, im just gona post my opinion kay, feel free to post urs.
Epvpers its a site with all types of hack( either ur againts it or u agree with it )... doesnt rly make sense complaining abt 1 hack, infact, the only people who would complain abt an aimbot hack, would be the ones who got great ping and dun need 1 and get pissed when ppl with low ping can get them easly, ok mebe 25% of it its also skill...
|
All times are GMT +1. The time now is 04:30.
|
|