Register for your free account! | Forgot your password?

You last visited: Today at 15:24

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

 

Question

Reply
 
Old   #1
 
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   #2
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 490
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   #3
 
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   #4
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,196
Received Thanks: 5,304
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   #5
 
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   #6
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 490
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   #7
 
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



« Previous Thread | Next Thread »

Similar Threads
[QUESTION]How do i bypass Xtrap for any private server?[QUESTION]
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...
3 Replies - Cabal Main - Discussions / Questions
[QUESTION]How do i bypass Xtrap for any private server?[QUESTION]
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...
2 Replies - Cabal PServer - Discussions / Questions



All times are GMT +2. The time now is 15:24.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy
Copyright ©2017 elitepvpers All Rights Reserved.