Register for your free account! | Forgot your password?

Go Back   elitepvpers > Conquer Online 2 > CO2 PServer - Discussions / Questions
You last visited: Today at 10:43

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

 

[help]Allowing and disabling PKing

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2009
Posts: 113
Received Thanks: 15
[help]Allowing and disabling PKing

Hey everyone, i know i already posted this, but now i have gotten further and further into my PK Event so i figure this would be most useful now since no one helped last time lol... I use a LOTF Source

This is what i did to make it not able to pk in a map until i command or the timer allows it, but it didnt work:

Other.CS
Code:
public static bool NoPK(ushort Map)
        {
            bool Rt = false;

            foreach (ushort map in DataBase.NoPKMaps)
            {
                if (map == Map || map == World.PKCity && World.StartPK == false)
                {
                    Rt = true;
                    break;
                }
            }
            return Rt;
        }
        public static bool CanPK(ushort Map)
        {
            bool Rt = false;

            foreach (uint map in DataBase.PKMaps)
            {
                if (map == Map || map == World.PKCity && World.StartPK == true)
                {
                    Rt = true;
                    break;
                }
            }
            return Rt;
        }
As you see i added World.PKCity && World.StartPK == true to that coding, and i also changed in database.cs:
Code:
public static ushort[] NoPKMaps = new ushort[] { 1002, 1039, 1036, 1010, 500, 1004, 700, World.PKCity};
        public static ushort[] PKMaps = new ushort[] { 1038, 1005, 6000, 1080, 1090, 1018, World.PKCity};
If any1 could tell me what i missed or help me figure out a problem with what i did, id really appreciate it =) thanks!

REMEMBER: THIS IS A LOTF SOURCE!!!! LOTF CODING ONLY!


~Rapid



~RapidBlade~ is offline  
Old   #2
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 312
if (Splitter[0] == "/allowpk")
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character char = DE.Value as Character;
char.PKMode = 1;
}
}


_tao4229_ is offline  
Old   #3
 
elite*gold: 0
Join Date: Jul 2007
Posts: 73
Received Thanks: 1
is that working with CoEmu v2
0105653642 is offline  
Old   #4
 
elite*gold: 0
Join Date: May 2009
Posts: 113
Received Thanks: 15
Eh, got a bunch of errors trying that, ones that really made no sence... thanks for trying tho


~RapidBlade~ is offline  
Old   #5
 
elite*gold: 0
Join Date: May 2009
Posts: 113
Received Thanks: 15
Bump (sorry)


~RapidBlade~ is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
[Request] NAGC Thanatos Dungeon Allowing
I was playing around with Miguel's perfect star trainer and it allows you to unlock continents 1-4 through hack. Anyway I found a way to find the...
2 Replies - Grand Chase
[HELP]Disabling Pk.
Hey everyone i was wondering how can i disable pking in certain maps? For example i got Old market and i would like to disable pking in there...or...
14 Replies - EO PServer Hosting
Discussion: Disabling IVC with the use of CR+CB+CE
yes but what are we exactly looking for? ive seen on official cabal forums the exceptions of ivc, so do i use that information to disable ivc? ...
6 Replies - Cabal Main - Discussions / Questions
[help] disabling a hack
How do you disable that hack when you click it moves you to middle of the map (256:256) I can't kill monsters like this and it always moves me to...
6 Replies - Dekaron
Disabling Warden & Using BWH
This thread guides you through BWH and stuff like that - English Detection status ] Sry guys, I've been inactive for a while, so I wasn't able...
80 Replies - WoW Guides & Templates



All times are GMT +2. The time now is 10:43.


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

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