|
You last visited: Today at 00:24
Advertisement
[Help]Send To Jail On Death
Discussion on [Help]Send To Jail On Death within the CO2 Private Server forum part of the Conquer Online 2 category.
09/05/2008, 19:31
|
#1
|
elite*gold: 0
Join Date: Jun 2007
Posts: 286
Received Thanks: 409
|
[Help]Send To Jail On Death
The code i have sends a black name player to jail but it only send the player
to jail if he/she gets direct hit
If you use a skill such as herc, fb, nado, etc. the char dies and does not get
sent to jail. wut am i missing to correct that?
/////////////////////////////////////////////////////////////////////////////////////
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);
}
}
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;
}
else if (TGTarget != null)
//////////////////////////////////////////////////////////////////////////////////////
|
|
|
09/05/2008, 20:25
|
#2
|
elite*gold: 0
Join Date: Feb 2008
Posts: 668
Received Thanks: 160
|
Quote:
Originally Posted by DragonStar
The code i have sends a black name player to jail but it only send the player
to jail if he/she gets direct hit
If you use a skill such as herc, fb, nado, etc. the char dies and does not get
sent to jail. wut am i missing to correct that?
/////////////////////////////////////////////////////////////////////////////////////
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);
}
}
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;
}
else if (TGTarget != null)
//////////////////////////////////////////////////////////////////////////////////////
|
Well, Thats very hard to code I think, I just got the easy way, When you die, You will be sended to Jail...
And :
Quote:
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);
}
}
|
That means it will be used in the Map ID 6000. So, Only In jail... ( Useless to Capture someone in jail  )
|
|
|
09/05/2008, 21:05
|
#3
|
elite*gold: 0
Join Date: Jun 2007
Posts: 286
Received Thanks: 409
|
Quote:
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);
}
}
|
It means if your killed in any map excluding map id 6000 aka jail then then
pk > 100 statement will take effect
|
|
|
09/05/2008, 22:54
|
#4
|
elite*gold: 0
Join Date: Aug 2006
Posts: 227
Received Thanks: 57
|
Try
if (PTarget.PKPoints >= 30)
Is better coz with > you only go to jail if u have above 30 PKP
but with main you go with 30 and above
|
|
|
09/06/2008, 00:34
|
#5
|
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
|
Quote:
Originally Posted by keving
Try
if (PTarget.PKPoints >= 30)
Is better coz with > you only go to jail if u have above 30 PKP
but with main you go with 30 and above 
|
WOW YOU'RE A GENIUS.
Don't do it on GetHitDie(), do it on the reviving.. That way they will go to jail no matter what...
Well... That could be abused if someone logs off... Maybe doing it on just Die()? I don't know if that get's called or not... Just look into Attack() and wherever the skills are.
Sorry to sound like no help, I is really tired.
|
|
|
09/07/2008, 15:21
|
#6
|
elite*gold: 0
Join Date: Oct 2007
Posts: 120
Received Thanks: 24
|
is it work if i put at Rev points like this :
Quote:
public static void LoadRevPoints()
{
if (Character.PKPoints>99)
{
RevPoints = new ushort[22][];
RevPoints[0] = new ushort[4] { 1002, 6000, 50, 50 };
RevPoints[1] = new ushort[4] { 1005, 6000, 50, 50 };
RevPoints[2] = new ushort[4] { 1006, 6000, 50, 50 };
RevPoints[3] = new ushort[4] { 1008, 6000, 50, 50 };
RevPoints[4] = new ushort[4] { 1009, 6000, 50, 50 };
RevPoints[5] = new ushort[4] { 1010, 6000, 50, 50 };
RevPoints[6] = new ushort[4] { 1007, 6000, 50, 50 };
RevPoints[7] = new ushort[4] { 1004, 6000, 50, 50 };
RevPoints[8] = new ushort[4] { 1028, 6000, 50, 50 };
RevPoints[9] = new ushort[4] { 1037, 6000, 50, 50 };
RevPoints[10] = new ushort[4] { 1038, 6000, 50, 50 };
RevPoints[11] = new ushort[4] { 1015, 6000, 50, 50 };
RevPoints[12] = new ushort[4] { 1001, 6000, 50, 50 };
RevPoints[13] = new ushort[4] { 1000, 6000, 50, 50 };
RevPoints[14] = new ushort[4] { 1013, 6000, 50, 50 };
RevPoints[15] = new ushort[4] { 1011, 6000, 50, 50 };
RevPoints[16] = new ushort[4] { 1076, 6000, 50, 50 };
RevPoints[17] = new ushort[4] { 1014, 6000, 50, 50 };
RevPoints[18] = new ushort[4] { 1020, 6000, 50, 50 };
RevPoints[19] = new ushort[4] { 1075, 6000, 50, 50 };
RevPoints[20] = new ushort[4] { 1012, 6000, 50, 50 };
RevPoints[21] = new ushort[4] { 6000, 6000, 50, 50 };
}
|
|
|
|
09/07/2008, 15:22
|
#7
|
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
|
Quote:
Originally Posted by elragal_30
is it work if i put at Rev points like this :
|
Hello no...
Lol... That will totally screw up your rev points.
|
|
|
09/07/2008, 22:11
|
#8
|
elite*gold: 0
Join Date: Oct 2007
Posts: 120
Received Thanks: 24
|
Quote:
Originally Posted by tao4229
Hello no...
Lol... That will totally screw up your rev points.
|
yea u r right
and now i get already coded code to make Black name Go to jail and they can't use either (/Scroll Comand) - city scrolls (Twin City Scroll ,....etc)
see it at here

i think it may not very stable now , but i'm working on it
|
|
|
 |
Similar Threads
|
Storm hack with .send | .send lesson Part 1
08/21/2010 - Kal Online - 30 Replies
This is lesson 1 of what useful things .send can do =P
later i'll post some more nice things
I know that kocp dont allow kalhackit... but u can have some fun with it on servers without kocp
or if you smart enough you can do it on servers without kalhackit or even on int if you even smarter :P
First of all you need KalHackIt that works on private server with sniffing
(Download attached... thx to syntex for the snif.ini add)
|
how to ban/send to bot jail with gm commands
07/13/2010 - CO2 Private Server - 4 Replies
guys, i have a co pserver5165
can some one tell me how to ban or send to bot jail with gm commands?
|
Can someone send me this plz?
12/15/2009 - Conquer Online 2 - 4 Replies
Hi can someone send me the bot and source at this link http://www.elitepvpers.com/forum/co2-programming/28 4743-c-mingw-v5156-simple-melee-bot-w-jumping-targ ets-all-mobs-except-players.html
i tryed it on codexplosion but it doesnt work.If anyone has this package could they please send it to [email protected] or upload it somewere i would greatly apreciate it thank you.
|
[osds] problem send item & send weapon
11/12/2009 - Dekaron Private Server - 3 Replies
Hello i have 2 problems with osds control panel
when i try to send weapon i have no more weapon available i cant choice i have nothing but i can send armor succesfully and my second problem is send item when i try to send item the browser say Login Error, Please login again.anyone can be fix that please?
i post screenshots http://panzer.power-heberg.com/itembug.JPG
http://panzer.power-heberg.com/noweapon.JPG
|
[Guide]Remove GM protction-send blackname to jail
11/08/2008 - CO2 PServer Guides & Releases - 30 Replies
# Update 1
Fix dieing into jail again - add message has killed by xx
#Update 2
1-Add NPC To jail to let u out for 4kk or 54 Cps
2- Change points from 99 to 29(you must change code again)
hi
it is first help i make here
|
All times are GMT +1. The time now is 00:25.
|
|