Register for your free account! | Forgot your password?

You last visited: Today at 18:17

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

Advertisement



[Release]Jail NPC

Discussion on [Release]Jail NPC within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
coreymills's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 555
Received Thanks: 99
[Release]Jail NPC

with this code u can only leave jail if u have 99 pkp or less
u'll have to find the id of ur leaving jail npc and put it where it says JailNPCID:
Code:
case JailNPCID:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("Would u like to leave the jail if u have more then 100pk points u'll have to wait tell u get them down to 99 "));
                                        GC.AddSend(Packets.NPCSay("or u can mine 5 copper ores of rate 5 and i'll let u out then"));
                                        GC.AddSend(Packets.NPCLink("I have 99pkp or less let me out", 1));
                                        GC.AddSend(Packets.NPCLink("I have the Rate5 Copper Ores", 2));
                                        GC.AddSend(Packets.NPCLink("Lend me a hoe", 3));
                                        GC.AddSend(Packets.NPCLink("no", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    
                                    }
                                    if (Control == 1)
                                    {
                                        if (GC.MyChar.PKPoints <= 99)
                                        {
                                            GC.MyChar.Teleport(1002, 513, 356);                                        
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("Sorry, you have to many pkp"));
                                            GC.AddSend(Packets.NPCLink("I see", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    if (Control == 2)
                                    {
                                        if (GC.MyChar.InventoryContains(1072024, 5))
                                        {
                                            GC.MyChar.RemoveItem(GC.MyChar.NextItem(1072024));
                                            GC.MyChar.RemoveItem(GC.MyChar.NextItem(1072024));
                                            GC.MyChar.RemoveItem(GC.MyChar.NextItem(1072024));
                                            GC.MyChar.RemoveItem(GC.MyChar.NextItem(1072024));
                                            GC.MyChar.RemoveItem(GC.MyChar.NextItem(1072024));
                                            GC.MyChar.Teleport(1002, 513, 356);
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("Sorry, you do not have the copper ores"));
                                            GC.AddSend(Packets.NPCLink("I see", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    if (Control == 3)
                                    {
                                        GC.MyChar.AddItem(562001);
                                    }
                                    break;
                                }
coreymills is offline  
Thanks
2 Users
Old 02/04/2010, 23:16   #2
 
walmartboi's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 378
Received Thanks: 163
Heh, I coded my own, but nice release. :P
walmartboi is offline  
Old 02/04/2010, 23:37   #3
 
elite*gold: 0
Join Date: Nov 2009
Posts: 342
Received Thanks: 17
thx my code is very nice but nice ur resala
|xabi| is offline  
Old 02/05/2010, 00:59   #4
 
elite*gold: 0
Join Date: Jan 2010
Posts: 74
Received Thanks: 18
good job corey!
Metapod is offline  
Reply


Similar Threads Similar Threads
[Release] Jail NPC (CoEmu)
06/07/2009 - CO2 PServer Guides & Releases - 8 Replies
Ok .. here is the npc jail in TwinCity (Enter the jail and go out the jail) in Handlers / NpcTalk.cs Search for default: { Text("NPC " + ID + "'s dialog is not coded.", CSocket); and above it add : case 43:// enter the Jail
[Release] Fixed RevPoints for Jail & PK Arena
12/30/2008 - CO2 PServer Guides & Releases - 4 Replies
First search for: public static void LoadRevPoints() in Database.cs And replace the whole thing with this: public static void LoadRevPoints() { RevPoints = new ushort; RevPoints = new ushort { 1002, 1002, 430, 380 }; RevPoints = new ushort { 1005, 1005, 50, 50 }; RevPoints = new ushort { 1006, 1002, 430, 380 }; RevPoints = new ushort { 1008, 1002, 430, 380 }; RevPoints = new ushort { 1009, 1002, 430, 380 };
Jail...
05/10/2006 - Conquer Online 2 - 3 Replies
Hi, if i rename arena.dmap to prison.DMAP and i go throug portal i get d/c. After that, i close conquer and i put the original prison.DMAP in the folder. If i start up conquer again and i log in, im just back in jail :/ Help me out of this plz, i'm new to these things...
In jail
03/19/2006 - Conquer Online 2 - 5 Replies
I need help getting out of bot jail... well or getting into it. This means a place to find a bot that will get me caught not just words telling me to use a certain bot. send files to [email protected]
Jail BJX
08/27/2005 - Conquer Online 2 - 1 Replies
Well, i was arrestes, and i need 100k to exit, hoe can i exit without paying 100k?



All times are GMT +1. The time now is 18:20.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.