# 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
plz don't flam , i just send for some newbies that don't know(I'm also noob lol)
and I'm don't take from any one i just make it
and Hint for all beginners don't aim to publish source on line quickly ,but try to learn C# and practice for make any thing yourself
it works for me at shadow server
lets go
First : How to remove GM protection on guards :
Go to "entities.cs" go to line 334
u should find some thing like that :
(i just know Status ==8 >> GM / 7 >>>PM )
sorry i'm just starter ,so if u have some thing best tell here for all
Second : How to Make Black Name Send to jail on (Now Working on die so u can't revive him with skill or command):
1-go to "character.cs" go to Line 827 or Search for
or search for
[quote]if (Tele)
{
foreach (ushort[] revp in DataBase.RevPoints)
{[QUOTE]
after " { "
and before
go to ur [Only registered and activated users can see links. Click Here To Register...]
then go to conquer database >> Table >> Npc
Click Insert and fill fields as follow :
Go to NPC Section>>
and Search for
Now To Prevent using city Scrolls to use in Jail (ty For @tao4229 for remind me) :
go to Character.cs and search for (Near Line 2808)
go To Client.Cs and Search for
i hope it work for all ,and i will give more soon as i make new
press thanks if u see it is good
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
plz don't flam , i just send for some newbies that don't know(I'm also noob lol)
and I'm don't take from any one i just make it
and Hint for all beginners don't aim to publish source on line quickly ,but try to learn C# and practice for make any thing yourself
it works for me at shadow server
lets go
First : How to remove GM protection on guards :
Go to "entities.cs" go to line 334
u should find some thing like that :
u may delete it or put protection on type u wantQuote:
if (MType == 1)
if (Target != null)
if (Target.MyClient.Status == 15)
Target = null;
(i just know Status ==8 >> GM / 7 >>>PM )
sorry i'm just starter ,so if u have some thing best tell here for all
Second : How to Make Black Name Send to jail on (Now Working on die so u can't revive him with skill or command):
1-go to "character.cs" go to Line 827 or Search for
addQuote:
public void Die()
{
try
{
DeathSent = true;
World.UpdateSpawn(this);
int EModel;
if (Model == 1003 || Model == 1004)
EModel = 15099;
else
EModel = 15199;
XpList = false;
SMOn = false;
CycloneOn = false;
XpCircle = 0;
MyClient.SendPacket(General.MyPackets.Vital(UID, 26, GetStat()));
MyClient.SendPacket(General.MyPackets.Status1(UID, EModel));
MyClient.SendPacket(General.MyPackets.Death(this)) ;
}
}
2-go to "Character.cs" go to Line 795 (Press Ctrl+G):Quote:
if (PKPoints >29)
{
World.SendMsgToAll("Player "+Name+" has Killed Too Much And has been but into Jail at Last ", " Kfa2a[GM]", 2011);
Teleport(6000 ,60 ,60);
}
or search for
[quote]if (Tele)
{
foreach (ushort[] revp in DataBase.RevPoints)
{[QUOTE]
after " { "
and before
addQuote:
if (revp[0] == LocMap)
{
Teleport(revp[1], revp[2], revp[3]);
break;
}
**Adding Jail NPCQuote:
if(PKPoints>29)
{
Teleport(6000,60,60);
}
go to ur [Only registered and activated users can see links. Click Here To Register...]
then go to conquer database >> Table >> Npc
Click Insert and fill fields as follow :
then go to Your Source >>> Client.CsQuote:
UID 1250
Type 1160
Name JailWarden (or name u want but must not have space just one word)
Flags 2
Direction 2
X 60
Y 60
Map 1002
Sobtype 0
Go to NPC Section>>
and Search for
after it add this :Quote:
if (CurrentNPC == 211)
{
SendPacket(General.MyPackets.NPCSay("Do you want to leave the market? I can teleport you for free."));
SendPacket(General.MyPackets.NPCLink("Yeah. Thanks.", 1));
SendPacket(General.MyPackets.NPCLink("No, I shall stay here.", 2));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
then search forQuote:
if (CurrentNPC == 1250)
{
SendPacket(General.MyPackets.NPCSay("Hello,I'm Jail Telporter"));
SendPacket(General.MyPackets.NPCSay("i can telport u ,what u want"));
SendPacket(General.MyPackets.NPCLink("Iwant to go out.", 1));
SendPacket(General.MyPackets.NPCLink("Just passing by.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
After it addQuote:
if (CurrentNPC == 211 || CurrentNPC == 180)
{
if (Control == 1)
{
ushort XTo = 429;
ushort YTo = 378;
if (MyChar.PrevMap == 1015)
{
XTo = 717;
YTo = 571;
}
if (MyChar.PrevMap == 1000)
{
XTo = 500;
YTo = 650;
}
if (MyChar.PrevMap == 1011)
{
XTo = 188;
YTo = 264;
}
if (MyChar.PrevMap == 1020)
{
XTo = 565;
YTo = 562;
}
MyChar.Teleport(MyChar.PrevMap, XTo, YTo);
}
}
Wait for update to make money go to killerQuote:
if (CurrentNPC == 1250)
{
if(Control == 1)
{
SendPacket(General.MyPackets.NPCSay("if You Want to Go out,you must be not red name or Black name."));
SendPacket(General.MyPackets.NPCSay("if You Want to Gou out,you must have PK point Less than 30."));
SendPacket(General.MyPackets.NPCLink("Let me out.", 11));
SendPacket(General.MyPackets.NPCLink("What about me??.", 22));
SendPacket(General.MyPackets.NPCLink("just Passing by.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 11)
{
if (MyChar.PKPoints<30)
{
MyChar.Teleport(1002,350,320);
}
else
{
SendPacket(General.MyPackets.NPCSay("Sorry,Your Pk points is more 29 u can't out yet."));
SendPacket(General.MyPackets.NPCLink("How I can get out.", 22));
SendPacket(General.MyPackets.NPCLink("Damn.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
if (Control == 22)
{
if (MyChar.PKPoints < 30)
{
SendPacket(General.MyPackets.NPCSay("You are free now ,i will telport you."));
SendPacket(General.MyPackets.NPCLink("Thank you.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
MyChar.Teleport(1002, 429, 378);
}
else if (MyChar.PKPoints > 29 && MyChar.PKPoints < 99)
{
SendPacket(General.MyPackets.NPCSay("Sorry,You are Red name, you can't out until Your pk points Less than 29."));
SendPacket(General.MyPackets.NPCSay("or You Can Pay 4,000,000 Cash,it will award to your Killer."));
SendPacket(General.MyPackets.NPCLink("Ok, i will pay.", 40));
SendPacket(General.MyPackets.NPCLink("Damn.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
else if (MyChar.PKPoints > 100)
{
SendPacket(General.MyPackets.NPCSay("Sorry,You are Black name, you can't out until Your pk points Less than 29."));
SendPacket(General.MyPackets.NPCSay("or You Can Pay 54 Cps Cash,it will award to your Killer."));
SendPacket(General.MyPackets.NPCLink("Ok, i will pay.", 54));
SendPacket(General.MyPackets.NPCLink("Damn.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
if (Control == 40)
{
MyChar.Teleport(1002, 427, 378);
MyChar.Silvers -= 4000000;
SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
if (MyChar.Silvers > 3999999)
{
MyChar.Silvers -= 4000000;
MyChar.Teleport(1002, 427, 378);
SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
MyChar.Teleport(1002, 350, 320);
World.SendMsgToAll("The Killer " + MyChar.Name + "has pay for his crimes and donate 4,000,000", " Kfa2a[GM]", 2011);
SendPacket(General.MyPackets.NPCSay("i will take 4,000,000 and teleport you."));
SendPacket(General.MyPackets.NPCSay("the money will go to Your Killer."));
SendPacket(General.MyPackets.NPCLink("Thank you.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
else
{
SendPacket(General.MyPackets.NPCSay("Sorry You don't have Enought Silvers"));
SendPacket(General.MyPackets.NPCLink("damn.",255)) ;
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
if (Control == 54)
{
if (MyChar.CPs>53)
{
MyChar.Teleport(1002, 427, 378);
MyChar.CPs -= 54;
SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
World.SendMsgToAll("The Killer \"" + MyChar.Name + "has payfor his crimes and donate 54 Cps", " Kfa2a[GM]", 2011);
SendPacket(General.MyPackets.NPCSay("i will take 54 cps and teleport you."));
SendPacket(General.MyPackets.NPCSay("the money will go to Your Killer."));
SendPacket(General.MyPackets.NPCLink("Thank you.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
else
{
SendPacket(General.MyPackets.NPCSay("Sorry You don't have Enought Cps"));
SendPacket(General.MyPackets.NPCLink("damn.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
}
Now To Prevent using city Scrolls to use in Jail (ty For @tao4229 for remind me) :
go to Character.cs and search for (Near Line 2808)
and exchange with this Code (Make Backup for character.Cs be4 changing it) :Quote:
else if (ItemParts[0] == "1060020")
{
Teleport(1002, 429, 378);
RemoveItem(ItemUID);
}
else if (ItemParts[0] == "1060021")
{
Teleport(1000, 500, 650);
RemoveItem(ItemUID);
}
else if (ItemParts[0] == "1060022")
{
Teleport(1020, 565, 562);
RemoveItem(ItemUID);
}
else if (ItemParts[0] == "1060023")
{
Teleport(1011, 188, 264);
RemoveItem(ItemUID);
}
else if (ItemParts[0] == "1060024")
{
Teleport(1015, 717, 571);
RemoveItem(ItemUID);
}
and now if u want also prevent using "/Scroll " command into jailQuote:
else if (ItemParts[0] == "1060020")
{
if(LocMap == 6000 && PKPoints > 29)
return;
Teleport(1002, 429, 378);
RemoveItem(ItemUID);
}
else if (ItemParts[0] == "1060021")
{
if(LocMap == 6000 && PKPoints > 29)
return;
Teleport(1000, 500, 650);
RemoveItem(ItemUID);
}
else if (ItemParts[0] == "1060022")
{
if(LocMap == 6000 && PKPoints > 29)
return;
Teleport(1020, 565, 562);
RemoveItem(ItemUID);
}
else if (ItemParts[0] == "1060023")
{
if(LocMap == 6000 && PKPoints > 29)
return;
Teleport(1011, 188, 264);
RemoveItem(ItemUID);
}
else if (ItemParts[0] == "1060024")
{
if(LocMap == 6000 && PKPoints > 29)
return;
Teleport(1015, 717, 571);
RemoveItem(ItemUID);
}
go To Client.Cs and Search for
and exchange with :Quote:
if (Splitter[0] == "/scroll")
{
if (Splitter[1] == "pc")
MyChar.Teleport(1011, 188, 264);
if (Splitter[1] == "dc")
MyChar.Teleport(1000, 500, 650);
if (Splitter[1] == "bi")
MyChar.Teleport(1015, 723, 573);
if (Splitter[1] == "ac")
MyChar.Teleport(1020, 565, 562);
if (Splitter[1] == "mk")
MyChar.Teleport(1036, 198, 194);
if (Splitter[1] == "tc")
MyChar.Teleport(1002, 429, 378);
if (Splitter[1] == "jail")
MyChar.Teleport(6000, 50, 50);
if (Splitter[1] == "boss")
MyChar.Teleport(1076, 360, 020);
}
sorry I'm just starter ,so if u have some thing best tell here for allQuote:
if (Splitter[0] == "/scroll")
{
if (Splitter[1] == "tc")
{
if(MyChar.LocMap == 6000 &&MyChar.PKPoints < 29 || MyChar.LocMap != 6000)
{
MyChar.Teleport(1002, 429, 378);
}
if(MyChar.LocMap == 6000&&MyChar.PKPoints > 29)
{
MyChar.MyClient.SendPacket(General.MyPackets.SendM sg(MyChar.MyClient.MessageId, "SYSTEM", MyChar.MyClient.MyChar.Name , "You can't use /scroll Command here untill your Pk points less than 99 " , 2005));
}
}
if (Splitter[1] == "mk")
{
if(MyChar.LocMap == 6000 &&MyChar.PKPoints < 29 || MyChar.LocMap != 6000)
{
MyChar.Teleport(1036, 198, 194);
}
if(MyChar.LocMap == 6000&&MyChar.PKPoints > 29)
{
MyChar.MyClient.SendPacket(General.MyPackets.SendM sg(MyChar.MyClient.MessageId, "SYSTEM", MyChar.MyClient.MyChar.Name , "You can't use /scroll Command here untill your Pk points less than 29 " , 2005));
}
}
if (Splitter[1] == "dc")
{
if(MyChar.LocMap == 6000 && MyChar.PKPoints < 29 || MyChar.LocMap != 6000)
{
MyChar.Teleport(1000, 500, 650);
}
if(MyChar.LocMap == 6000&&MyChar.PKPoints > 29)
{
MyChar.MyClient.SendPacket(General.MyPackets.SendM sg(MyChar.MyClient.MessageId, "SYSTEM", MyChar.MyClient.MyChar.Name , "You can't use /scrolls Command here untill your Pk points less than 29 " , 2005));
}
}
if (Splitter[1] == "ac")
{
if(MyChar.LocMap == 6000 && MyChar.PKPoints < 29 || MyChar.LocMap != 6000)
{
MyChar.Teleport(1020, 565, 562);
}
if(MyChar.LocMap == 6000&&MyChar.PKPoints > 29)
{
MyChar.MyClient.SendPacket(General.MyPackets.SendM sg(MyChar.MyClient.MessageId, "SYSTEM", MyChar.MyClient.MyChar.Name , "You can't use /scrolls Command here untill your Pk points less than 29 " , 2005));
}
}
if (Splitter[1] == "pc")
{
if(MyChar.LocMap == 6000 && MyChar.PKPoints < 29 || MyChar.LocMap != 6000)
{
MyChar.Teleport(1011, 188, 264);
}
if(MyChar.LocMap == 6000&&MyChar.PKPoints > 29)
{
MyChar.MyClient.SendPacket(General.MyPackets.SendM sg(MyChar.MyClient.MessageId, "SYSTEM", MyChar.MyClient.MyChar.Name , "You can't use /scrolls Command here untill your Pk points less than 29 " , 2005));
}
}
if (Splitter[1] == "bi")
{
if(MyChar.LocMap == 6000 && MyChar.PKPoints < 29 || MyChar.LocMap != 6000)
{
MyChar.Teleport(1015, 717, 571);
}
if(MyChar.LocMap == 6000&&MyChar.PKPoints > 29)
{
MyChar.MyClient.SendPacket(General.MyPackets.SendM sg(MyChar.MyClient.MessageId, "SYSTEM", MyChar.MyClient.MyChar.Name , "You can't use /scrolls Command here untill your Pk points less than 29 " , 2005));
}
}
}
i hope it work for all ,and i will give more soon as i make new
press thanks if u see it is good