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
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.
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
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
..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 !
..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 !
[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);
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