[help] problem CpAdmin

10/13/2008 13:38 shinichi79#1
How does that change can CpAdmin 1 Dbs to 256 cps or 10 dbs to 2,560 cps ????????????
Thank you
10/13/2008 16:55 BlooD-BoY#2
Quote:
Originally Posted by shinichi79 View Post
How does that change can CpAdmin 1 Dbs to 256 cps or 10 dbs to 2,560 cps ????????????
Thank you
huh?? go to Character.cs, then find the NPC and there you will see something like that "MyChar.CPs += 215;" change it to w/e price you want, do the same thing to "MyChar.CPs += 2150;".....umm enjoy? O.O
10/13/2008 19:32 _Emme_#3
Then, search for 7500 again,where you find the code for the exchance,and replace it with this:

First,search for 7500 ( NPC ID ) until you find the npc chat. Replace it with this :


Quote:
if (CurrentNPC == 7500)
{
SendPacket(General.MyPackets.NPCSay("Got many dragon balls you want to get rid of? Well i can give you 215 cps for each dragon ball you give me."));
SendPacket(General.MyPackets.NPCLink("Yes, i want CPs for my dragon ball!", 1));
SendPacket(General.MyPackets.NPCLink("Yes, I want 2560 CPs for my DBScroll", 2));
SendPacket(General.MyPackets.NPCLink("I don't have a dragon ball.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}

Quote:
if (CurrentNPC == 7500)
{
if (Control == 1)
{
if (MyChar.InventoryContains(1088000, 1))
{

MyChar.RemoveItem(MyChar.ItemNext(1088000));
MyChar.CPs += 256;
SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
}
}
if (Control == 2)
{
if (MyChar.InventoryContains(720028, 1))
{
MyChar.RemoveItem(MyChar.ItemNext(720028));
MyChar.CPs += 2560;
SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
}

}
}

Not tested,goodluck.
10/14/2008 02:30 shinichi79#4
thank you very much
10/15/2008 02:19 Rechocto#5
If he couldn't even figure out how to hit ctrl+f then type CP and search, then DON'T GIVE HIM THE SCRIPT. You are breeding script-kiddie non-coding newbs! STOP! go ahead and HINT to him how to find it, but stop feeding the trolls like that.
10/15/2008 02:43 InfamousNoone#6
Quote:
Originally Posted by Rechocto View Post
If he couldn't even figure out how to hit ctrl+f then type CP and search, then DON'T GIVE HIM THE SCRIPT. You are breeding script-kiddie non-coding SCRIPTS AND CODING ARE DIFFERENT, THEY ARE NOT A HIERARCHY, GET IT THROUGH YOUR HEAD. newbs! STOP! go ahead and HINT to him how to find it, but stop feeding the trolls like that.
I'm saying this one more fucking time before I start calling you a dumbass everyone I quote you.
10/17/2008 09:05 lolex#7
lol