Register for your free account! | Forgot your password?

You last visited: Today at 03:17

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

Advertisement



PK Point Npc [5165]

Discussion on PK Point Npc [5165] within the CO2 Private Server forum part of the Conquer Online 2 category.

Closed Thread
 
Old   #1
 
ryski1's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 177
Received Thanks: 44
PK Point Npc [5165]

Hi, I Was wondering if you could help me with this, I want to make an NPC for it to take away pks for 20cps, i got this so far:
Code:
#region PKPointsNPC
case 10065:
{
    if (Control == 0)
    {

        GC.AddSend(Packets.NPCSay("You have pkpoints let me take 30pks from you for the price of 20cps."));
        GC.AddSend(Packets.NPCLink("Yes please", 1));
        GC.AddSend(Packets.NPCLink("No Thanks", 255));
        GC.AddSend(Packets.NPCSetFace(N.Avatar));
        GC.AddSend(Packets.NPCFinish());
    }

    if (Control == 1)
    {
        if (GC.MyChar.CPs >= 20)
            GC.MyChar.CPs -= 20;
        GC.MyChar.PKPoints -= 30;
    }

    break;
}
#endregion
But if u have less than 30pkps it gives you 60k something pk points, i have searched for the working code and then my last option is to ask here, or even if you can help me make the Penitence amulet work it would be much appreciated

~Ryski
ryski1 is offline  
Old 07/16/2012, 06:45   #2
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
Change
Code:
        if (GC.MyChar.CPs >= 20)
            GC.MyChar.CPs -= 20;
        GC.MyChar.PKPoints -= 30;
to
Code:
    if (GC.MyChar.PKPoints >= 30 && GC.MyChar.CPs >= 20)
    {
        GC.MyChar.CPs -= 20;
        GC.MyChar.PKPoints -= 30;
    }
Zeroxelli is offline  
Thanks
1 User
Old 07/16/2012, 08:36   #3
 
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
And use a switch for your options as well.
I don't have a username is offline  
Old 07/16/2012, 14:53   #4
 
ryski1's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 177
Received Thanks: 44
Quote:
Originally Posted by Zeroxelli View Post
Change
Code:
        if (GC.MyChar.CPs >= 20)
            GC.MyChar.CPs -= 20;
        GC.MyChar.PKPoints -= 30;
to
Code:
    if (GC.MyChar.PKPoints >= 30 && GC.MyChar.CPs >= 20)
    {
        GC.MyChar.CPs -= 20;
        GC.MyChar.PKPoints -= 30;
    }
Thanks mate this works
ryski1 is offline  
Closed Thread


Similar Threads Similar Threads
[FS] FREESTYLE street Basketball 3 Point, Rebound, and 2 point Hack
06/11/2012 - General Gaming Discussion - 133 Replies
My cousin was just hired as product manager for levelup philippines, he says the team for freestyle philippines knows all the available hacks and cheats, including the: 1. 3 point hack 2. rebound hack 3. and he even told me theres a 2 point hack they need to know these hacks for them to solve it. i will share these hacks and cheats in a little while.



All times are GMT +1. The time now is 03:18.


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