Register for your free account! | Forgot your password?

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

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

Advertisement



[Help] How can i change this code... dbs to cps instead of money to cps

Discussion on [Help] How can i change this code... dbs to cps instead of money to cps within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2007
Posts: 69
Received Thanks: 2
[Help] How can i change this code... dbs to cps instead of money to cps

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);
Link("Nah No thanks!!", 255, CSocket);
End(CSocket);
}
else if (LinkBack == 1)
{
if (CSocket.Client.Money >= 50000)
{
Money(-50000, CSocket);
CPs(+5, CSocket);
}
else
{
Text("How dare you try to rip me off! Get lost, Or get my money!", CSocket);
Link("I'm sorry, I didn't realize.", 255, CSocket);
End(CSocket);
}
}
break;
}
editor05 is offline  
Old 06/10/2009, 18:40   #2
 
elite*gold: 0
Join Date: Nov 2006
Posts: 65
Received Thanks: 2
try this


case 2071: // CP ADMIN
{
if (LinkBack == 0)
{
Text("HELLO! Do you need cps? Trade me a Dragonball for 215 cps.", CSocket);
Link("DragonBall", 1, CSocket);
Link("Just passing by", 255, CSocket);
Face(6, CSocket);
End(CSocket);
}

else if (LinkBack == 1)
{
int uid = 0;
bool cont = false;
foreach (Struct.ItemInfo Item in CSocket.Client.Inventory.Values)
{
if (Item.ItemID == 1088000)
{
uid = Item.UID;
cont = true;
break;
}
}

if (cont)
{
if (CSocket.Client.CPs + 215 > 999999999)
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You can not hold more then 999,999,999 CPs", Struct.ChatType.Top));

else
{
CSocket.Client.Inventory.Remove(uid);
CSocket.Send(ConquerPacket.ItemUsage(uid, 255, Struct.ItemUsage.RemoveItem));
Database.Database.DeleteItem(uid);
while (!CSocket.Send(ConquerPacket.ItemUsage(uid, 255, Struct.ItemUsage.RemoveItem)))
{
CSocket.Client.Inventory.Remove(uid);
CSocket.Send(ConquerPacket.ItemUsage(uid, 255, Struct.ItemUsage.RemoveItem));
Database.Database.DeleteItem(uid);
}
CSocket.Client.CPs += 215;
CSocket.Send(ConquerPacket.Status(CSocket, 2, CSocket.Client.CPs, Struct.StatusTypes.InvCPoints));
}
}
else
{
Text("You don't have a DragonBall.", CSocket);
Link("I see.", 255, CSocket);
Face(6, CSocket);
End(CSocket);
}
}
break
}



ok. give thanks to BlooD-BoY. I copy and delete some.
killerbee is offline  
Old 06/13/2009, 11:33   #3
 
elite*gold: 0
Join Date: Jun 2007
Posts: 69
Received Thanks: 2
got this error

Error 1 The type or namespace name 'Face' does not exist in the namespace 'CoEmu_v2_GameServer' (are you missing an assembly reference?) E:\CoEmu v2\CoEmu v2\CoEmu v2 GameServer\Handlers\NpcTalk.cs 17 27 CoEmu v2 GameServer

and this...

Error 2 The name 'Face' does not exist in the current context E:\CoEmu v2\CoEmu v2\CoEmu v2 GameServer\Handlers\NpcTalk.cs 1260 1 CoEmu v2 GameServer
editor05 is offline  
Old 06/13/2009, 11:39   #4
 
arab4life's Avatar
 
elite*gold: 0
Join Date: Jan 2006
Posts: 430
Received Thanks: 286
Quote:
Originally Posted by editor05 View Post
got this error

Error 1 The type or namespace name 'Face' does not exist in the namespace 'CoEmu_v2_GameServer' (are you missing an assembly reference?) E:\CoEmu v2\CoEmu v2\CoEmu v2 GameServer\Handlers\NpcTalk.cs 17 27 CoEmu v2 GameServer

and this...

Error 2 The name 'Face' does not exist in the current context E:\CoEmu v2\CoEmu v2\CoEmu v2 GameServer\Handlers\NpcTalk.cs 1260 1 CoEmu v2 GameServer
right click on it and add
arab4life is offline  
Old 06/13/2009, 12:41   #5
 
elite*gold: 0
Join Date: Jun 2007
Posts: 69
Received Thanks: 2
wish i could... honestly.. can you help me out... it can be my reference for other coding.. just tryin to learn one at a time
editor05 is offline  
Old 06/13/2009, 17:29   #6
 
danielachraf's Avatar
 
elite*gold: 20
Join Date: Mar 2008
Posts: 958
Received Thanks: 494
search two times for
Quote:
Face(6, CSocket);
and delete the lines
danielachraf is offline  
Reply


Similar Threads Similar Threads
[Help] how to change money to cp
05/09/2009 - CO2 Private Server - 7 Replies
hey all i really need that cuz i search on all pages but i can`t get it i want that girl is change money to cps and i want know something else how i can make that girl is give me item +12 in tc ty
Change money between 2 races
07/13/2008 - RF Online - 0 Replies
Hello all iam new and i have a question about money change between 2 races anyone know how i can change my money from bellato to cora please need help !? THANKS FOR ALL ANSWER :D
Program to change money faster then money art
10/17/2006 - CO2 Exploits, Hacks & Tools - 24 Replies
basicly just download, then open it up, select what client u want it for , hit like 300000000 for money then hit change, look on ur guy bam that fast, quicker then using money art



All times are GMT +2. The time now is 02:50.


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.