Register for your free account! | Forgot your password?

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

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

Advertisement



[FIX]CoMy CPTrader (TaoistMoon)

Discussion on [FIX]CoMy CPTrader (TaoistMoon) within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2007
Posts: 208
Received Thanks: 43
[FIX]CoMy CPTrader (TaoistMoon)

Alright, this guide is to show you how to fix the CPTrader, not the CPAdmin, the CPTrader!
The CPTrader is the one that trades CPs for your money. This is my first guide, so please don't flame. I know it's easy, but maybe some people don't know how to do it!
You see, before you do this guide, when you try to trade him money for CPs, it acts like it does nothing, but actually it does. He does make the trade successfully, but you must log out and back in before it would show up. Now with this, it updates without you having to log out and log in. You're welcome. :}

First open up CoServerProject.sln in the CPServerProject folder.
Now when that opens, double click client.cs and hold ctrl+f and then search for
Code:
                         if (CurrentNPC == 104813)
                        {
                            if (Control == 1)
                            {
                                if (MyChar.Silvers >= 200000)
                                {
                                    MyChar.Silvers -= 200000;
                                    MyChar.CPs += 20;
                                }
                            }
                        }
right below this:

Code:
MyChar.CPs += 20;
add this:

Code:
                                    SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
                                    SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
That's it, you're done. :}

So at the end, it should look like this:
Code:
                        if (CurrentNPC == 104813)
                        {
                            if (Control == 1)
                            {
                                if (MyChar.Silvers >= 200000)
                                {
                                    MyChar.Silvers -= 200000;
                                    MyChar.CPs += 20;
                                    SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
                                    SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
                                }
                            }
                        }
DePredaTe is offline  
Old 07/24/2009, 19:48   #2
 
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
lol all people need to do is save by sending packets
good jb though might help the newbies
Arcotemple:) is offline  
Old 07/24/2009, 19:53   #3
 
elite*gold: 0
Join Date: Apr 2007
Posts: 208
Received Thanks: 43
Well, I decided since i've been working on other people's stuff, I should release fixes for their sources.
It's not much, but. I'm still learning, i'm not as good as alot of people here. XD
But, at least i'm doing something.
DePredaTe is offline  
Old 07/24/2009, 19:55   #4
 
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
yeah its better than being like other people here that just leach and dont contribute
Arcotemple:) is offline  
Old 07/24/2009, 19:59   #5
 
elite*gold: 0
Join Date: Apr 2007
Posts: 208
Received Thanks: 43
at least i'm a step up from them. haha.
thanks.
DePredaTe is offline  
Old 07/24/2009, 19:59   #6
 
Skuade's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 26
Received Thanks: 0
nice i like it, =P congrats
Skuade is offline  
Old 07/24/2009, 20:11   #7
 
elite*gold: 0
Join Date: Apr 2007
Posts: 208
Received Thanks: 43
you're welcome. :}
did it work right?
DePredaTe is offline  
Old 07/24/2009, 20:12   #8
 
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
wait this is for lotf right?
thats what it looks lke
Arcotemple:) is offline  
Old 07/24/2009, 20:14   #9
 
elite*gold: 0
Join Date: Apr 2007
Posts: 208
Received Thanks: 43
Yeah, CoMy. But, CoMy is loft. So, yeah.
DePredaTe is offline  
Old 07/24/2009, 20:15   #10
 
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
lol yeah lotf base
Arcotemple:) is offline  
Old 07/25/2009, 01:01   #11
 
elite*gold: 20
Join Date: Aug 2005
Posts: 1,734
Received Thanks: 1,001
May I suggest creating some sort of enum for those UpdateIDs? I mean alot people might get confused what those '4' and '30' are on those send packets. For example something like this?


PHP Code:
public enum UpdateIDs uint
{
    
Money 4,
    
ConquerPoints 30

Ofcourse you'd have to modify the source a little bit but after all the code would be more self explaining when you'd could just send packets like:
PHP Code:
SendPacket(General.MyPackets.Vital(MyChar.UIDUpdateIDs.MoneyMyChar.Silvers)); 
It would be pretty self explaining, yes?
tanelipe is offline  
Thanks
1 User
Old 07/25/2009, 01:15   #12
 
elite*gold: 0
Join Date: Apr 2007
Posts: 208
Received Thanks: 43
Yeah, but like you said. You would have to modify the source.
When the code I added, you just add it and go.
Most people who already knew what I put on this thread, probably know your way too. If they knew your way, then they would most likely know my way.

This tutorial is my first, sorry. but, I thought for people that doesn't know ANYTHING about C# would like this.
I'm still on 'learning mode' of C#. So, if I know this, than the people that know more than me should know both ways.
DePredaTe is offline  
Old 07/25/2009, 02:11   #13
 
Yooha's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 47
Received Thanks: 5
lol it is any powersource
Yooha is offline  
Old 07/25/2009, 02:31   #14
 
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
its made for lotf
Arcotemple:) is offline  
Old 07/25/2009, 03:47   #15
 
elite*gold: 0
Join Date: Apr 2007
Posts: 208
Received Thanks: 43
Yooha, was that a question?
or statement?
If it was a question: It's CoMy, which is based off the source of LOTF.
If it was a statement: what are you talking about?
DePredaTe is offline  
Reply


Similar Threads Similar Threads
[Release]For CoMy
11/16/2009 - CO2 PServer Guides & Releases - 11 Replies
A couple of people have asked me for this so I guess I'll just post it here. I don't know if its really much of a release but here it is. You know how on CoMy Source you can't pick Ninja? It's only for GM's and PM's. Well I mad a small little NPC to put in Birth Village so He will make you an InternNinja. if (CurrentNPC == 4520) { SendPacket(General.MyPackets.NPCSay("Do you want to become a...
[HELP] How to add nobility to comy?
09/14/2009 - CO2 Private Server - 9 Replies
It is already added but the npc is broken or there is no npc, im not sure, how to add or fix???
[HELP]CoMy Damage Bug
09/10/2009 - CO2 Private Server - 16 Replies
Okay, well..... The CoMy Bug with damage, how do i fix it. If you don't know what im talking about, then it is the bug where you can wear no gear and level dont matter and the other only hit 1. Ex. Level 40 withouth gear and level 135 with full +12 then the level 135 still hits 1 and guards hit 1 and mobs hit 1
Fix Damage [CoMy]
09/03/2009 - CO2 Private Server - 0 Replies
im not sure if this work, is not tested, but have a try. Im not good coder :) Go to Client and search for: Under That code paste this Now open Packets and search for:
help with comy 5017
07/23/2009 - CO2 Private Server - 6 Replies
I want to be a limited number of exball so that each player on the day 10 exball not be open if u want help post your reply That's all, thank



All times are GMT +1. The time now is 01:02.


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