Help-lols im a big noob xD

05/05/2010 20:48 angelwings#1
Hello so im Trying to get pms and gms to be able to pk in 5165 source but Im not quite sure what to do I also copy and paste peoples post in but they dont work (probably cuz copy and paste xD ) nyway Im Trying to learn how to code and add peoples codes into the source im using
Also im trying to figure out how to make a pre-existing [PM] or [GM] into a normal account withought the account Deleting and the person having to start over, Im having no trouble making a none-pm/gm pre-existing account into a GM/PM but changing them back is the problem

If anyone would like to teach me how to code properly please PM :handsdown:

Thanks in advance from,Tri-Edge[PM] aka angelwings
05/05/2010 21:29 NeoN[PM]#2
Quote:
Originally Posted by angelwings View Post
Hello so im Trying to get pms and gms to be able to pk in 5165 source but Im not quite sure what to do I also copy and paste peoples post in but they dont work (probably cuz copy and paste xD ) nyway Im Trying to learn how to code and add peoples codes into the source im using
Also im trying to figure out how to make a pre-existing [PM] or [GM] into a normal account withought the account Deleting and the person having to start over, Im having no trouble making a none-pm/gm pre-existing account into a GM/PM but changing them back is the problem

If anyone would like to teach me how to code properly please PM :handsdown:

Thanks in advance from,Tri-Edge[PM] aka angelwings

PM/GM can pk..

Search for this in character.cs

Code:
if(!MyClient.GM)
                            foreach (Character C in World.H_Chars.Values)
                            {
                                if (C.Alive && C != this)
                                {
                                    if (MyMath.PointDistance(Loc.X, Loc.Y, C.Loc.X, C.Loc.Y) <= Dist)
                                        if (C.PKAble(PKMode, this) && !SU.PlayerTargets.Contains(C) && !World.NoPKMaps.Contains(Loc.Map))
                                            SU.PlayerTargets.Add(C, SU.GetDamage(C));
                                }
                            }
also delete the code.

now go into attack.cs and search for

Code:
if (PossChar != null)
                        if (GC.GM)
                            return;
and delete that too.

Hope it helped :)
05/05/2010 23:01 KinG^PlutO#3
Quote:
Originally Posted by NeoN[PM] View Post
PM/GM can pk..

Search for this in character.cs

Code:
if(!MyClient.GM)
                            foreach (Character C in World.H_Chars.Values)
                            {
                                if (C.Alive && C != this)
                                {
                                    if (MyMath.PointDistance(Loc.X, Loc.Y, C.Loc.X, C.Loc.Y) <= Dist)
                                        if (C.PKAble(PKMode, this) && !SU.PlayerTargets.Contains(C) && !World.NoPKMaps.Contains(Loc.Map))
                                            SU.PlayerTargets.Add(C, SU.GetDamage(C));
                                }
                            }
also delete the code.

now go into attack.cs and search for

Code:
if (PossChar != null)
                        if (GC.GM)
                            return;
and delete that too.

Hope it helped :)
They still can't use skills even if they are using the fix you just gave them.
05/05/2010 23:13 angelwings#4
Quote:
Originally Posted by KinG^PlutO View Post
They still can't use skills even if they are using the fix you just gave them.
Then put ur fix plz and ty :D
feedback on the solution u gave me i used it but when i tried attacking a normal player i still couldnt hit them oh btw the only way even before the fix that i could hit people was with nado/hit right after it so i have to nadohit them if u know what i mean even then only malee works not Magic thanks for trying thoe and if yall need the source that im using to help me please just ask or suggest to me a better source :D