Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 11:14

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

Advertisement



[5165] how 2 make free items +15 -7 sdg sdg

Discussion on [5165] how 2 make free items +15 -7 sdg sdg within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old 01/30/2010, 19:08   #16
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by Korvacs View Post
Correct, when i said you were mistaken i was referring to the "um...no?" comment of yours

However using the enum correctly is prefered, it reduces the chance of human error.
Ah I see.
@spare
Guess I was wrong mate.
Arcо is offline  
Old 01/30/2010, 22:17   #17
 
spare2's Avatar
 
elite*gold: 20
Join Date: Oct 2009
Posts: 1,009
Received Thanks: 621
Quote:
Originally Posted by ASSN9NE View Post
that didnt work





neither did this


You inserted the void in the wrong section.
Goto your line,
Code:
GC.MyChar.AddItem(431139, 15);
Then right click on AddItem and click Go to definition. Then you will see
Code:
        public void AddItem(uint ID, byte Plus)
        {
            Item I = new Item();
            I.Plus = Plus;
            I.ID = ID;
            I.UID = (uint)Rnd.Next(10000000);
            I.MaxDur = I.DBInfo.Durability;
            I.CurDur = I.MaxDur;
            
            if (I.UID == 0)
            {
                I.UID = (uint)Rnd.Next(10000000);
            }
        
            Inventory.Add(I);
            MyClient.AddSend(Packets.AddItem(I, 0));
        }
After the last bracket, paste
Code:
        public void AddItem(uint ID, byte Plus, byte ench, byte bless, Item.Gem soc1, Item.Gem soc2)
        {
            Item I = new Item();
            I.Plus = Plus;
            I.ID = ID;
            I.UID = (uint)Rnd.Next(10000000);
            I.MaxDur = I.DBInfo.Durability;
            I.CurDur = I.MaxDur;
            I.Enchant = ench;
            I.Bless = bless;
            I.Soc1 = soc1;
            I.Soc2 = soc2;

            if (I.UID == 0)
            {
                I.UID = (uint)Rnd.Next(10000000);
            }

            Inventory.Add(I);
            MyClient.AddSend(Packets.AddItem(I, 0));
        }
@Arco
Quote:
Originally Posted by .Arco View Post
Code:
GC.MyChar.AddItem(121129-15-7-255-255-255); //Bag
I reckon.
How does that work?
I only see
Code:
public void AddItem(Item I)
public void AddItem(uint ID)
public void AddItem(uint ID, byte Plus)
So if you did
Code:
GC.MyChar.AddItem(121129-15-7-255-255-255);
It will become
Code:
GC.MyChar.AddItem(120597);
spare2 is offline  
Thanks
1 User
Old 01/31/2010, 03:34   #18
 
ASSN9NE's Avatar
 
elite*gold: 0
Join Date: Oct 2006
Posts: 52
Received Thanks: 8
ty spare2 it works perfectly now. my problem was placing the void items part -.- in Character.cs i found it b4 lookin on here 2 see your fix i placed it under
Code:
        public byte Reborns
seem 2 work fine or should i move it not sure "if it works y mess with it?"
i can remove the /item command from normal accounts now cause thats not a good idea having that whole command open for the taking theres 2 much stuff that comes with that /item command.
ASSN9NE is offline  
Old 01/31/2010, 04:10   #19
 
spare2's Avatar
 
elite*gold: 20
Join Date: Oct 2009
Posts: 1,009
Received Thanks: 621
Quote:
Originally Posted by ASSN9NE View Post
ty spare2 it works perfectly now. my problem was placing the void items part -.- in Character.cs i found it b4 lookin on here 2 see your fix i placed it under
Code:
        public byte Reborns
seem 2 work fine or should i move it not sure "if it works y mess with it?"
i can remove the /item command from normal accounts now cause thats not a good idea having that whole command open for the taking theres 2 much stuff that comes with that /item command.
If it works, just leave it.
spare2 is offline  
Reply


Similar Threads Similar Threads
[Help] new items in 5165
12/21/2009 - CO2 Private Server - 0 Replies
why when making items in 5165 and adding items in client its appear in my items but when wear it cant see it but i can see it in stuff what is the reason
[Question] Make items Free in Binary
08/27/2009 - CO2 Private Server - 4 Replies
I want make a NPC who give items free to new player but I dont know how do. Who can help me to do this, will get a reward!!



All times are GMT +2. The time now is 11:14.


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