Register for your free account! | Forgot your password?

Go Back   elitepvpers › MMORPGs › Conquer Online 2 › CO2 Private Server › CO2 PServer Guides & Releases
You last visited: Today at 23:22

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

Advertisement



[Release]CPAdmin chaning CPs for DBs

Discussion on [Release]CPAdmin chaning CPs for DBs within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2008
Posts: 132
Received Thanks: 64
[Release]CPAdmin chaning CPs for DBs

ok
here is a CPAdmin who change Dragonballs or Dragonballscrolls to CPs
search for
Code:
case 35500
or go into you NPCTalk.cs

Code:
#region CPAdmin
                    case 2071://CPAdmin Guy Coded by Koio
                    {
                        if (LinkBack == 0)
                        {
                            Text("Would like to exchange for Cps with ur money? I will give you 255 CPs for a DragonBall and 2550 for a DragonBallScroll", CSocket);
                            Link("I want it for a DB.", 1, CSocket);
                            Link("I want it for a DBScroll.", 1, CSocket);
                            Link("Nah No thanks!!", 255, CSocket);
                            End(CSocket);
                        }
                       
                        else if (LinkBack == 1)
                        {
                            int DBUID = 0;
                            int DBcount = 0;

                            foreach (Struct.ItemInfo Item in CSocket.Client.Inventory.Values)
                            {
                                if (Item.ItemID == 1088000)
                                {
                                    DBUID = Item.UID;
                                    DBcount++;
                                }
                            }


                            if (DBcount >= 1)
                            {
                                CPs(+255, CSocket);
                                CSocket.Client.Inventory.Remove(DBUID);
                                CSocket.Send(ConquerPacket.ItemUsage(DBUID, 255, Struct.ItemUsage.RemoveItem));
                                Database.Database.DeleteItem(DBUID);
                                Text("OK. You have get 255 CPS for your DragonBall", CSocket);
                                Link("Bye", 255, CSocket);
                                End(CSocket);
                            }
                            else
                            {
                                Text("You don't have a DragonBall", CSocket);
                                Link("Bye", 255, CSocket);
                                End(CSocket);
                            }
                        }

                        else if (LinkBack == 2)
                        {
                            int DBSUID = 0;
                            int DBScount = 0;

                            foreach (Struct.ItemInfo Item in CSocket.Client.Inventory.Values)
                            {
                                if (Item.ItemID == 720028)
                                {
                                    DBSUID = Item.UID;
                                    DBScount++;
                                }
                            }


                            if (DBScount >= 1)
                            {
                                CPs(+255, CSocket);
                                CSocket.Client.Inventory.Remove(DBSUID);
                                CSocket.Send(ConquerPacket.ItemUsage(DBSUID, 255, Struct.ItemUsage.RemoveItem));
                                Database.Database.DeleteItem(DBSUID);
                                Text("OK. You have get 2550 CPS for your DragonBallScroll", CSocket);
                                Link("Bye", 255, CSocket);
                                End(CSocket);
                            }
                            else
                            {
                                Text("You don't have a DragonBallScroll", CSocket);
                                Link("Bye", 255, CSocket);
                                End(CSocket);
                            }
                        }

                        break;
                    }
#endregion
koio is offline  
Thanks
4 Users
Old   #2
 
elite*gold: 0
Join Date: Mar 2009
Posts: 56
Received Thanks: 31
There are a few bugs with this. It will give you cps for a dragonball. but it doesnt take away the db. it also doesnt take scrolls. reads only the single dbs.
~*Dutchess*~ is offline  
Thanks
1 User
Old   #3

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
Isn't the CPAdmin already released in here .
Code:
case 2071://Market CPAdmin - by scottdavey
                    {
                        if (LinkBack == 0)
                        {
                            Text("Do you have any unwanted dragonballs? \nI can give you 215 CPs per dragonball and 2150 per DB Scroll.", CSocket);
                            Link("Yes, i want 215 CPs for my dragonball.", 1, CSocket);
                            Link("Yes, i want 2150 CPs for my DBScroll.", 2, CSocket);
                            Link("Just passing by.", 255, CSocket);
                            Face(30, CSocket);
                            End(CSocket);
                        }
                        else if (LinkBack == 1)
                        {
                            if (InventoryContains(1088000, 1, CSocket))
                            {
                                CSocket.Client.CPs += 215;
                                int uid = ReturnUID(1088000, CSocket);
                                CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You now have " + CSocket.Client.CPs + " CPs.", Struct.ChatType.Top));
                                CSocket.Send(ConquerPacket.Status(CSocket, 2, CSocket.Client.CPs, Struct.StatusTypes.InvCPoints));
                                CSocket.Client.Inventory.Remove(uid);
                                CSocket.Send(ConquerPacket.ItemUsage(uid, 255, Struct.ItemUsage.RemoveItem));
                                Database.Database.DeleteItem(uid);
                            }
                            else
                            {
                                Text("You don't have a dragonball.", CSocket);
                                Link("Ok.", 255, CSocket);
                                Face(30, CSocket);
                                End(CSocket);
                            }
                        }
                        else if (LinkBack == 2)
                        {
                            if (InventoryContains(720028, 1, CSocket))
                            {
                                CSocket.Client.CPs += 2150;
                                int uid = ReturnUID(720028, CSocket);
                                CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You now have " + CSocket.Client.CPs + " CPs.", Struct.ChatType.Top));
                                CSocket.Send(ConquerPacket.Status(CSocket, 2, CSocket.Client.CPs, Struct.StatusTypes.InvCPoints));
                                CSocket.Client.Inventory.Remove(uid);
                                CSocket.Send(ConquerPacket.ItemUsage(uid, 255, Struct.ItemUsage.RemoveItem));
                                Database.Database.DeleteItem(uid);
                            }
                            else
                            {
                                Text("You don't have a dragonball scroll.", CSocket);
                                Link("Ok.", 255, CSocket);
                                Face(30, CSocket);
                                End(CSocket);
                            }
                        }
                        break;
                    }
Kiyono is offline  
Thanks
1 User
Old   #4
 
elite*gold: 0
Join Date: Sep 2008
Posts: 132
Received Thanks: 64
Quote:
Originally Posted by ~*Dutchess*~ View Post
There are a few bugs with this. It will give you cps for a dragonball. but it doesnt take away the db. it also doesnt take scrolls. reads only the single dbs.
for me it takes the db away
and i am sorry i did see the other release
koio is offline  
Old   #5
 
elite*gold: 0
Join Date: Jul 2007
Posts: 73
Received Thanks: 1
Thumbs up [Release]CPAdmin chaning CPs for DBs

Quote:
Originally Posted by koio View Post
ok
here is a CPAdmin who change Dragonballs or Dragonballscrolls to CPs
search for
Code:
case 35500
or go into you NPCTalk.cs

Code:
#region CPAdmin
                    case 2071://CPAdmin Guy Coded by Koio
                    {
                        if (LinkBack == 0)
                        {
                            Text("Would like to exchange for Cps with ur money? I will give you 255 CPs for a DragonBall and 2550 for a DragonBallScroll", CSocket);
                            Link("I want it for a DB.", 1, CSocket);
                            Link("I want it for a DBScroll.", 1, CSocket);
                            Link("Nah No thanks!!", 255, CSocket);
                            End(CSocket);
                        }
                       
                        else if (LinkBack == 1)
                        {
                            int DBUID = 0;
                            int DBcount = 0;

                            foreach (Struct.ItemInfo Item in CSocket.Client.Inventory.Values)
                            {
                                if (Item.ItemID == 1088000)
                                {
                                    DBUID = Item.UID;
                                    DBcount++;
                                }
                            }


                            if (DBcount >= 1)
                            {
                                CPs(+255, CSocket);
                                CSocket.Client.Inventory.Remove(DBUID);
                                CSocket.Send(ConquerPacket.ItemUsage(DBUID, 255, Struct.ItemUsage.RemoveItem));
                                Database.Database.DeleteItem(DBUID);
                                Text("OK. You have get 255 CPS for your DragonBall", CSocket);
                                Link("Bye", 255, CSocket);
                                End(CSocket);
                            }
                            else
                            {
                                Text("You don't have a DragonBall", CSocket);
                                Link("Bye", 255, CSocket);
                                End(CSocket);
                            }
                        }

                        else if (LinkBack == 2)
                        {
                            int DBSUID = 0;
                            int DBScount = 0;

                            foreach (Struct.ItemInfo Item in CSocket.Client.Inventory.Values)
                            {
                                if (Item.ItemID == 720028)
                                {
                                    DBSUID = Item.UID;
                                    DBScount++;
                                }
                            }


                            if (DBScount >= 1)
                            {
                                CPs(+255, CSocket);
                                CSocket.Client.Inventory.Remove(DBSUID);
                                CSocket.Send(ConquerPacket.ItemUsage(DBSUID, 255, Struct.ItemUsage.RemoveItem));
                                Database.Database.DeleteItem(DBSUID);
                                Text("OK. You have get 2550 CPS for your DragonBallScroll", CSocket);
                                Link("Bye", 255, CSocket);
                                End(CSocket);
                            }
                            else
                            {
                                Text("You don't have a DragonBallScroll", CSocket);
                                Link("Bye", 255, CSocket);
                                End(CSocket);
                            }
                        }

                        break;
                    }
#endregion
wow Nice work it works he take the db and give me 215 cps thanx alot
0105653642 is offline  
Old   #6
 
elite*gold: 0
Join Date: Jun 2008
Posts: 18
Received Thanks: 2
..Sorry for that idiot question !! But i dont know yet the NPC talk cs !! Can anyone tell me what is it or where i can find it > Sry for newbie question !
el mogrm is offline  
Old   #7
 
bazemad's Avatar
 
elite*gold: 19
Join Date: Nov 2007
Posts: 248
Received Thanks: 30
Quote:
Originally Posted by el mogrm View Post
..Sorry for that idiot question !! But i dont know yet the NPC talk cs !! Can anyone tell me what is it or where i can find it > Sry for newbie question !
\CoEmu v2 GameServer\Handlers\NpcTalk.cs
bazemad is offline  
Reply


Similar Threads Similar Threads
[Release]CpAdmin for 5165
04/06/2010 - CO2 PServer Guides & Releases - 4 Replies
Yo. Well I made this 100% myself. enjoy First off open NPCDialog and search for #region Conductresses case 45: Under that region paste this;
[Release] CPAdmin for CoEmuV2
03/06/2010 - CO2 PServer Guides & Releases - 0 Replies
Go to Handlers/NpcTalk.cs Add this somewhere at other NPC`s: #region CPAdmin case 2071: { if (LinkBack == 0) { Text("U can exchance here Dragonballs for cps", CSocket);
[Release] Simple CPAdmin NPC
07/05/2009 - CO2 PServer Guides & Releases - 14 Replies
Hi Guys those who are too lazy to edit CPAdmin NPC here u are a simple CPAdmin NPC using money to exchange for CPs go to Handler.cs then click on NPCTalk.cs case 2071://CPAdmin Guy { if (LinkBack == 0) { Text("Would like to exchange for Cps with ur money? It will only cost u 50k for 5k Cps.", CSocket); Link("Well yea I want it.", 1, CSocket);
HELP with Ip chaning for registerpage
10/02/2008 - EO PServer Hosting - 2 Replies
Where can I can the ip for the Registerpage C:\wamp And than ? :S
Chaning Weapon Enchants
02/21/2008 - World of Warcraft - 2 Replies
Is it possible to change the weapon enchant or any procc light effect ?? This would be awsome, if someone could teach me how to do it. I saw it in some Korean Rogue Video... Thanks ;) -Yrean



All times are GMT +1. The time now is 23:25.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.