Register for your free account! | Forgot your password?

You last visited: Today at 02:44

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

Advertisement



[Release] Jail NPC (CoEmu)

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

Reply
 
Old   #1
 
danielachraf's Avatar
 
elite*gold: 20
Join Date: Mar 2008
Posts: 958
Received Thanks: 494
[Release] Jail NPC (CoEmu)

Ok .. here is the npc jail in TwinCity (Enter the jail and go out the jail)

in Handlers / NpcTalk.cs Search for
Code:
default:
                    {
                        Text("NPC " + ID + "'s dialog is not coded.", CSocket);
and above it add :

Code:
                case 43:// enter the Jail
                    {
                        if (LinkBack == 0)
                        {
                            Text("Do you want to visit the jail ?", CSocket);
                            Link("Yes,please", 1, CSocket);
                            Link("No thanks", 225, CSocket);
                            End(CSocket);
                        }
                        else if (LinkBack == 1)
                        {
                            {
                                Teleport(6000, 28, 71, 0, CSocket);

                            }
                        }
                        break;
                    }
                case 42://go out the Jail
                    {
                        if (LinkBack == 0)
                        {
                            Text("Do you want to leave the jail ?", CSocket);
                            Link("Yes,please", 1, CSocket);
                            Link("No thanks", 225, CSocket);
                            End(CSocket);
                        }
                        else if (LinkBack == 1)
                        {
                            {
                                Teleport(1002, 439, 390, 0, CSocket);

                            }
                        }
                        break;
                    }

- Debug and restart the server
- Feel free and ask your questions
- Press thanks if you liked it ..

EDIT

- Fixed a bug
- Tested
danielachraf is offline  
Thanks
15 Users
Old 05/30/2009, 02:19   #2
 
almoshax.'s Avatar
 
elite*gold: 0
Join Date: Oct 2008
Posts: 76
Received Thanks: 47
good release but when you talk to the npc to enter the jail it teleport you
to twin city so the code have to be like this

but thanks

edited : he fix it
almoshax. is offline  
Old 05/30/2009, 02:21   #3
 
damianpesta's Avatar
 
elite*gold: 0
Join Date: Jan 2007
Posts: 1,034
Received Thanks: 58
Quote:
Originally Posted by danielachraf View Post
Ok .. here is the npc jail in TwinCity (Enter the jail and go out the jail)

in Handlers / NpcTalk.cs Search for
Code:
default:
                    {
                        Text("NPC " + ID + "'s dialog is not coded.", CSocket);
and above it add :

Code:
                case 43:// enter the Jail
                    {
                        if (LinkBack == 0)
                        {
                            Text("Do you want to visit the jail ?", CSocket);
                            Link("Yes,please", 1, CSocket);
                            Link("No thanks", 225, CSocket);
                            End(CSocket);
                        }
                        else if (LinkBack == 1)
                        {
                            {
                                Teleport(6000, 28, 71, 0, CSocket);

                            }
                        }
                        break;
                    }
                case 42://go out the Jail
                    {
                        if (LinkBack == 0)
                        {
                            Text("Do you want to leave the jail ?", CSocket);
                            Link("Yes,please", 1, CSocket);
                            Link("No thanks", 225, CSocket);
                            End(CSocket);
                        }
                        else if (LinkBack == 1)
                        {
                            {
                                Teleport(1002, 439, 390, 0, CSocket);

                            }
                        }
                        break;
                    }

- Debug and restart the server
- Feel free and ask your questions
- Press thanks if you liked it ..

EDIT

- Fixed a bug
- Tested

All wrong , it suppose to be checking if you got < 1000 gold then -1000gold then teleporting.
damianpesta is offline  
Old 05/30/2009, 02:26   #4
 
danielachraf's Avatar
 
elite*gold: 20
Join Date: Mar 2008
Posts: 958
Received Thanks: 494
Quote:
Originally Posted by damianpesta View Post
All wrong , it suppose to be checking if you got < 1000 gold then -1000gold then teleporting.
No.. if you want to add it it is not so hard ..
i just made this npcs so that they can enter in jail ..
danielachraf is offline  
Thanks
1 User
Old 05/30/2009, 03:26   #5
 
scottdavey's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 684
Received Thanks: 238
scottdavey is offline  
Old 05/30/2009, 03:33   #6
 
danielachraf's Avatar
 
elite*gold: 20
Join Date: Mar 2008
Posts: 958
Received Thanks: 494
@ scott nice one ..
i just released mine to let people able to enter the jail ... Just for play in it , and then they can edit to anything they want
danielachraf is offline  
Thanks
1 User
Old 06/07/2009, 12:54   #7
 
elite*gold: 0
Join Date: Oct 2006
Posts: 45
Received Thanks: 14
its not working i put alot of codes made from other people in the npc talk file but it keeps on saying the npc id and says its not coded
EatMyChidori is offline  
Old 06/07/2009, 22:24   #8
 
danielachraf's Avatar
 
elite*gold: 20
Join Date: Mar 2008
Posts: 958
Received Thanks: 494
Quote:
Originally Posted by EatMyChidori View Post
its not working i put alot of codes made from other people in the npc talk file but it keeps on saying the npc id and says its not coded
because you saved it without debug .. Press F5
danielachraf is offline  
Thanks
2 Users
Old 06/07/2009, 23:06   #9
 
elite*gold: 0
Join Date: Oct 2006
Posts: 45
Received Thanks: 14
Quote:
Originally Posted by danielachraf View Post
because you saved it without debug .. Press F5
so i should get a fresh one and start over?
EatMyChidori is offline  
Reply


Similar Threads Similar Threads
[HELP] PLEASE Coemu release 180
09/08/2010 - CO2 Private Server - 2 Replies
Hello everyone good morning everyone! Well folks I'm trying to use the Coemu but the recent release that came out good I downloaded the source code and compiled it, if I did not know but was sure: D lol but one detail appeared very npcs are with the dialogues as if I was not wrong. Can someone give me a Help please or copille me if I did something wrong! ss follows below! http://img822.imageshack.us/img822/9706/1942037.t h.jpg Uploaded with ImageShack.us
[Release]Jail NPC
02/05/2010 - CO2 PServer Guides & Releases - 3 Replies
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: 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 ")); ...
[Release] cq_actions for COEMU v2
11/13/2009 - CO2 PServer Guides & Releases - 31 Replies
im coding a system to read the cq_nps, check the cq_task and load cq_actions there is just some types working yet: Npc Text, Npc Link, Npc Face, Npc End, Npc Char stats Check (not all coded), Npc Teleport,
[Release] >>>> CoEmu.V3
11/09/2009 - CO2 PServer Guides & Releases - 20 Replies
i got a new CoEmu from a china site but i don't know how to setup it this is the link of the source 4shared.com - online file sharing and storage - download NewCoemu.rar pass: AhmedZero
[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 };



All times are GMT +1. The time now is 02:45.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.