[Help Coding] NPC In Jail Make You Free When you ar white

09/13/2008 20:53 --thechoosenone--#16
Quote:
Originally Posted by Mouse>Pro View Post
try this m8
Code:
if (PTarget.GetHitDie((uint)Damage))
                                        {
                                            Attacking = false;
                                            if (!Other.CanPK(LocMap))
                                                if (!PTarget.BlueName)
                                                    if (LocMap == 6000)
                                                    {
                                                        if (PTarget.PKPoints == 0 || PTarget.PKPoints > 0)
                                                        {
                                                            GotBlueName = DateTime.Now;
                                                            BlueName = true;
                                                            PKPoints += 0;
                                                            MyClient.SendPacket(General.MyPackets.Vital(UID, 6, PKPoints));

                                                        }
                                                    }
                                                    else if (PTarget.PKPoints < 30)
                                                    {
                                                        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);
                                                        }
                                                    }
                                            if (LocMap != 6000)
                                            {
                                                if (PTarget.PKPoints > 100)
                                                {
                                                    PTarget.Teleport(6000, 028, 071);
                                                    World.SendMsgToAll(PTarget.Name + " was captured by  " + Name + " and sent automaticaly in jail.", "Police", 2008);
                                                }
                                            }
                                            World.PVP(this, PTarget, 14, 0);
                                            PTarget.PTarget = null;
                                            PTarget.MobTarget = null;
                                            PTarget = null;
                                        }
                                    }
                                    else
                                        PTarget = null;
                        }
it work:mofo: thank you
09/13/2008 21:01 glupkotrup#17
When you want to thank someone the best way to do it is to click the button "THANKS" at the right bottom of his post ;)
09/14/2008 03:42 Mouse>Pro#18
Quote:
Originally Posted by glupkotrup View Post
When you want to thank someone the best way to do it is to click the button "THANKS" at the right bottom of his post ;)
/agreed, but he thanked me many times in my official server thread ;)
09/14/2008 18:03 glupkotrup#19
Lol the button thanks is attached to every post so if any post is helpful for him/her he should press in on that post! -_- :rolleyes: