Register for your free account! | Forgot your password?

You last visited: Today at 15:21

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

Advertisement



Question

Discussion on Question within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
N¡ghtMare ?? WooT's Avatar
 
elite*gold: 1
Join Date: Dec 2009
Posts: 126
Received Thanks: 17
Question

Okay, is this right how i fix so they dont get pkpoints in some maps, jail, arena etc.??
The original is like this:
I change the blue area(First code) to the red area(Second code)
If anybody can tell me if is right.
I did it in world.cs and character.cs
Code:
                                        if (PTarget.PKPoints < 100)
                                            if (!PTarget.BlueName)
                                                if (!Other.CanPK(LocMap))
                                                    if (LocMap != 1005 && LocMap != 6000 && LocMap != 1038 && LocMap != 6001 && LocMap != 1511 && LocMap != 2021 && LocMap != 2022 && LocMap != 2023 && LocMap != 2024 && LocMap != 1700 && LocMap != 1013)
                                                    {
                                                        GotBlueName = DateTime.Now;
                                                        [COLOR="Blue"]BlueName = true;[/COLOR]
                                                        MyClient.SendPacket(General.MyPackets.Vital(UID, 26, GetStat()));
                                                        World.UpdateSpawn(this);
                                                    }

                                        World.PVP(this, PTarget, AtkType, (uint)Damage);

                                        if (PTarget.GetHitDie((uint)Damage))
                                        {
                                            Attacking = false;
                                            if (!Other.CanPK(LocMap))
                                                if (!PTarget.BlueName)
                                                    if (PTarget.PKPoints < 100)
                                                    {
                                                        GotBlueName = DateTime.Now;
                                                        BlueName = true;
                                                        PKPoints += 10;
                                                        MyClient.SendPacket(General.MyPackets.Vital(UID, 6, PKPoints));
                                                        if ((PKPoints > 29 && PKPoints - 10 < 30) || (PKPoints > 99 && PKPoints - 10 < 100))
                                                        {
                                                            MyClient.SendPacket(General.MyPackets.Vital(UID, 26, GetStat()));
                                                            World.UpdateSpawn(this);
                                                        }
                                                    }
Code:
                                        if (PTarget.PKPoints < 100)
                                            if (!PTarget.BlueName)
                                                if (!Other.CanPK(LocMap))
                                                    if (LocMap != 1005 && LocMap != 6000 && LocMap != 1038 && LocMap != 6001 && LocMap != 1511 && LocMap != 2021 && LocMap != 2022 && LocMap != 2023 && LocMap != 2024 && LocMap != 1700 && LocMap != 1013)
                                                    {
                                                        GotBlueName = DateTime.Now;
                                                        [COLOR="Red"]BlueName = false;[/COLOR]
                                                        MyClient.SendPacket(General.MyPackets.Vital(UID, 26, GetStat()));
                                                        World.UpdateSpawn(this);
                                                    }

                                        World.PVP(this, PTarget, AtkType, (uint)Damage);

                                        if (PTarget.GetHitDie((uint)Damage))
                                        {
                                            Attacking = false;
                                            if (!Other.CanPK(LocMap))
                                                if (!PTarget.BlueName)
                                                    if (PTarget.PKPoints < 100)
                                                    {
                                                        GotBlueName = DateTime.Now;
                                                        BlueName = true;
                                                        PKPoints += 10;
                                                        MyClient.SendPacket(General.MyPackets.Vital(UID, 6, PKPoints));
                                                        if ((PKPoints > 29 && PKPoints - 10 < 30) || (PKPoints > 99 && PKPoints - 10 < 100))
                                                        {
                                                            MyClient.SendPacket(General.MyPackets.Vital(UID, 26, GetStat()));
                                                            World.UpdateSpawn(this);
                                                        }
                                                    }
N¡ghtMare ?? WooT is offline  
Old 12/26/2009, 01:43   #2
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
Quote:
Originally Posted by N¡ghtMare ?? WooT View Post
Okay, is this right how i fix so they dont get pkpoints in some maps, jail, arena etc.??
The original is like this:
I change the blue area(First code) to the red area(Second code)
If anybody can tell me if is right.
I did it in world.cs and character.cs
Code:
                                        if (PTarget.PKPoints < 100)
                                            if (!PTarget.BlueName)
                                                if (!Other.CanPK(LocMap))
                                                    if (LocMap != 1005 && LocMap != 6000 && LocMap != 1038 && LocMap != 6001 && LocMap != 1511 && LocMap != 2021 && LocMap != 2022 && LocMap != 2023 && LocMap != 2024 && LocMap != 1700 && LocMap != 1013)
                                                    {
                                                        GotBlueName = DateTime.Now;
                                                        [COLOR="Blue"]BlueName = true;[/COLOR]
                                                        MyClient.SendPacket(General.MyPackets.Vital(UID, 26, GetStat()));
                                                        World.UpdateSpawn(this);
                                                    }

                                        World.PVP(this, PTarget, AtkType, (uint)Damage);

                                        if (PTarget.GetHitDie((uint)Damage))
                                        {
                                            Attacking = false;
                                            if (!Other.CanPK(LocMap))
                                                if (!PTarget.BlueName)
                                                    if (PTarget.PKPoints < 100)
                                                    {
                                                        GotBlueName = DateTime.Now;
                                                        BlueName = true;
                                                        PKPoints += 10;
                                                        MyClient.SendPacket(General.MyPackets.Vital(UID, 6, PKPoints));
                                                        if ((PKPoints > 29 && PKPoints - 10 < 30) || (PKPoints > 99 && PKPoints - 10 < 100))
                                                        {
                                                            MyClient.SendPacket(General.MyPackets.Vital(UID, 26, GetStat()));
                                                            World.UpdateSpawn(this);
                                                        }
                                                    }
Code:
                                        if (PTarget.PKPoints < 100)
                                            if (!PTarget.BlueName)
                                                if (!Other.CanPK(LocMap))
                                                    if (LocMap != 1005 && LocMap != 6000 && LocMap != 1038 && LocMap != 6001 && LocMap != 1511 && LocMap != 2021 && LocMap != 2022 && LocMap != 2023 && LocMap != 2024 && LocMap != 1700 && LocMap != 1013)
                                                    {
                                                        GotBlueName = DateTime.Now;
                                                        [COLOR="Red"]BlueName = false;[/COLOR]
                                                        MyClient.SendPacket(General.MyPackets.Vital(UID, 26, GetStat()));
                                                        World.UpdateSpawn(this);
                                                    }

                                        World.PVP(this, PTarget, AtkType, (uint)Damage);

                                        if (PTarget.GetHitDie((uint)Damage))
                                        {
                                            Attacking = false;
                                            if (!Other.CanPK(LocMap))
                                                if (!PTarget.BlueName)
                                                    if (PTarget.PKPoints < 100)
                                                    {
                                                        GotBlueName = DateTime.Now;
                                                        BlueName = true;
                                                        PKPoints += 10;
                                                        MyClient.SendPacket(General.MyPackets.Vital(UID, 6, PKPoints));
                                                        if ((PKPoints > 29 && PKPoints - 10 < 30) || (PKPoints > 99 && PKPoints - 10 < 100))
                                                        {
                                                            MyClient.SendPacket(General.MyPackets.Vital(UID, 26, GetStat()));
                                                            World.UpdateSpawn(this);
                                                        }
                                                    }

Lets break down the beginning..

Code:
    if (PTarget.PKPoints < 100)
                                            if (!PTarget.BlueName)     = If player target is NOT bluename.
                                                if (!Other.CanPK(LocMap)) If we are in a map that is not in our CANpk group.
                                                    if (LocMap != 1005 && LocMap != 6000 && LocMap != 1038 && LocMap != 6001 && LocMap != 1511 && LocMap != 2021 && LocMap != 2022 && LocMap != 2023 && LocMap != 2024 && LocMap != 1700 && LocMap != 1013) if the map is not any of these ( these are pk maps )
                                                    {
                                                        GotBlueName = DateTime.Now;
                                                        BlueName = true; // this is correct.
                                                        MyClient.SendPacket(General.MyPackets.Vital(UID, 26, GetStat()));
                                                        World.UpdateSpawn(this);
                                                    }
PeTe Ninja is offline  
Old 12/26/2009, 02:01   #3
 
N¡ghtMare ?? WooT's Avatar
 
elite*gold: 1
Join Date: Dec 2009
Posts: 126
Received Thanks: 17
Hmm it confused me but.
So im right about the bluename should be = false;
So they dont get bluename.
But
About the pkmap thing you confused me
And i tested this and i still gain pk points
So if you can help how?
N¡ghtMare ?? WooT is offline  
Old 12/26/2009, 17:41   #4
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
You will want to change the way pk points are added so that on certain maps pk points added are 0. I know in CoEmu it was very simple, there was a section for conditions where players would get 0 pk pts, conditions for 3 pk pts, 10, etc.


after looking for 2 sec

BlueName = true;
PKPoints += 10;


That's the section. If attacked char has LESS than 100 pk pts, you gain 10 pk pts for killing them. You need to find a section in that code that does not add pk points when player is killed on a specific map.
pro4never is offline  
Old 12/27/2009, 02:17   #5
 
N¡ghtMare ?? WooT's Avatar
 
elite*gold: 1
Join Date: Dec 2009
Posts: 126
Received Thanks: 17
Thats the problem, there is no maps in LOTF where is added.
XD
You think you can help me fix this?
N¡ghtMare ?? WooT is offline  
Old 12/27/2009, 02:22   #6
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
Quote:
Originally Posted by N¡ghtMare ?? WooT View Post
Thats the problem, there is no maps in LOTF where is added.
XD
You think you can help me fix this?
CanPK NoPK
PeTe Ninja is offline  
Old 12/27/2009, 02:41   #7
 
N¡ghtMare ?? WooT's Avatar
 
elite*gold: 1
Join Date: Dec 2009
Posts: 126
Received Thanks: 17
I know, but.
I still want to pk, but just dont obtain pkpoints in the map i wrote in this.
But there is no map set to this, so i need to self make.
But i failed at it.
Thats why i asked where to do it and how to do it
Sorry.
N¡ghtMare ?? WooT is offline  
Reply


Similar Threads Similar Threads
[QUESTION]How do i bypass Xtrap for any private server?[QUESTION]
10/12/2009 - Cabal Online - 3 Replies
Exactly what the title says. I keep on getting an xTrap error when i try and load ANY private server that uses XTrap and it's driving me absolutely insane. I cant figure out why it's showing me the error. If anyone has any bypasser for Helix / PaRaDoX or any other server u know that has xTrap can u either PM me the bypass or post it here pls......this is driving me nuts Bump.
[QUESTION]How do i bypass Xtrap for any private server?[QUESTION]
10/02/2009 - Cabal Private Server - 2 Replies
Exactly what the title says. I keep on getting an xTrap error when i try and load ANY private server that uses XTrap and it's driving me absolutely insane. I cant figure out why it's showing me the error. If anyone has any bypasser for Helix / PaRaDoX or any other server u know that has xTrap can u either PM me the bypass or post it here pls......this is driving me nuts



All times are GMT +1. The time now is 15:21.


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.