CoEmu v2 Quest Npcs

11/18/2009 11:08 t_dubble_uu#1
Ok im gonna release some of the quests i finish for coemu source.

CoachLi Twin City Part 1

add this to Handlers/NpcTalk.cs
Code:
#region CoachLi Level 16 Quest
                    case 30080:
                    {
                        if (CSocket.Client.Level < 16)
                        {
                            if (LinkBack == 0)
                            {
                                Text("Welcome to the world of Conquer. Allow me to introduce myself, Li. Do you need some advice?", CSocket);
                                Link("Sure.", 1, CSocket);
                                Link("No Thanks.", 255, CSocket);
                                Face(30, CSocket);
                                End(CSocket);
                            }
                            else if (LinkBack == 1)
                            {
                                Text("I am an elemtary coach in Twin City. I suggest you practice outside Twin\n", CSocket);
                                Text("City, or you will be in danger!", CSocket);
                                Link("I shall try my best.", 2, CSocket);
                                Link("I fear nothing.", 255, CSocket);
                                Face(30, CSocket);
                                End(CSocket);
                            }
                            else if (LinkBack == 2)
                            {
                                Text("I give you a reference letter. When you reach level 16, you may get something\n", CSocket);
                                Text("useful from Coach Lin in Phoenix Castle.", CSocket);
                                Link("Thanks Alot.", 3, CSocket);
                                Link("I fear nothing.", 255, CSocket);
                                Face(30, CSocket);
                                End(CSocket);
                            }
                            else if (LinkBack == 3)
                            {
                                AddItem(721115, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                            }
                        }
                        else
                        {
                            if (LinkBack == 0)
                            {
                                Text("Im Sorry but you are to powerful for my help.", CSocket);
                                Link("Ok Thanks.", 255, CSocket);
                                Face(30, CSocket);
                                End(CSocket);
                            }
                        }
                        break;
                    }
                    #endregion
CoachLin Phoenix Castle

add this to Handlers/NpcTalk.cs
Code:
#region CoachLin Level 16 Quest
                    case 30081:
                    {
                        if (CSocket.Client.Level >= 16)
                        {
                            if (HasItem(721115, 1, CSocket))
                            {
                                if (LinkBack == 0)
                                {
                                    Text("Since you have come. I shall ask you a few questions. If you answer correctly,\n", CSocket);
                                    Text("i will give you a reward.", CSocket);
                                    Link("Fire Away.", 1, CSocket);
                                    Link("Never Mind.", 255, CSocket);
                                    Face(30, CSocket);
                                    End(CSocket);
                                }
                                else if (LinkBack == 1)
                                {
                                    Text("When can a Trojan equipt 2 weapons?", CSocket);
                                    Link("Level 15.", 2, CSocket);
                                    Link("Level 30.", 2, CSocket);
                                    Link("Level 40.", 2, CSocket);
                                    Link("Level 70.", 3, CSocket);
                                    Face(30, CSocket);
                                    End(CSocket);
                                }
                                else if (LinkBack == 2)
                                {
                                    Text("Sorry, your answer is wrong. Please come again when you learn more about\n", CSocket);
                                    Text("Conquer.", CSocket);
                                    Link("Ok Thanks.", 255, CSocket);
                                    Face(30, CSocket);
                                    End(CSocket);
                                }
                                else if (LinkBack == 3)
                                {
                                    Text("Good. You ansered correctly here is an item for you.", CSocket);
                                    Link("Sword.", 4, CSocket);
                                    Link("Blade.", 5, CSocket);
                                    Link("Bow.", 6, CSocket);
                                    Link("BackSword.", 7, CSocket);
                                    Link("Club.", 8, CSocket);
                                    Link("Wand.", 10, CSocket);
                                    Face(30, CSocket);
                                    End(CSocket);
                                }
                                else if (LinkBack == 4)//sword
                                {
                                    DeleteItem(721115, 1, CSocket);
                                    AddItem(420036, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                                }
                                else if (LinkBack == 5)//blade
                                {
                                    DeleteItem(721115, 1, CSocket);
                                    AddItem(410036, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                                }
                                else if (LinkBack == 6)//bow
                                {
                                    DeleteItem(721115, 1, CSocket);
                                    AddItem(500026, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                                }
                                else if (LinkBack == 7)//backsword
                                {
                                    DeleteItem(721115, 1, CSocket);
                                    AddItem(421046, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                                }
                                else if (LinkBack == 8)//club
                                {
                                    DeleteItem(721115, 1, CSocket);
                                    AddItem(480036, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                                }
                                else if (LinkBack == 9)//wand
                                {
                                    DeleteItem(721115, 1, CSocket);
                                    AddItem(561036, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                                }
                            }
                            else
                            {
                                Text("It seem each new generation excels the last one.", CSocket);
                                Link("Of course.", 255, CSocket);
                                Face(30, CSocket);
                                End(CSocket);
                            }
                        }
                        else
                        {
                            if (LinkBack == 0)
                            {
                                Text("Since Coach Li introduced you, I must try my best to help you. Please come\n.", CSocket);
                                Text("to me when you reach level 16.", CSocket);
                                Link("Ok Thanks.", 255, CSocket);
                                Face(30, CSocket);
                                End(CSocket);
                            }
                        }
                        break;
                    }
                    #endregion
11/18/2009 14:18 .Guru#2
good work. someone who actually contributes. +k
11/18/2009 16:10 t_dubble_uu#3
I try my best.

Im workin on a few more of the lower level quest atm which ill post in the topic but how do u do the lil button hide/show thing?
11/18/2009 18:51 MexicanoCoder#4
Goodjob bro keep it up :P
11/18/2009 19:05 pro4never#5
Nice that you are trying to release some basic stuff but at least try to get some basic things right though.

Eg:

Code:
 Text("When can a Trojan equipt 2 weapons?", CSocket);
                                    Link("Level 15.", 2, CSocket);
                                    Link("Level 30.", 2, CSocket);
                                    Link("Level 40.", 2, CSocket);
                                    Link("Level 70.", 3, CSocket);
answer is 40, not 70

I haven't read through the rest of the script yet but just saying. If you are releasing stuff, it should be in good working order (eg: no typos/bugs)

<edit>

nvm I was prob being too hard on you. That's the only real error I see.

Also note that each Text("", CSocket); line creates it's own new line of text. \n is not required unless you want a new line in the SAME line of code.
11/18/2009 22:05 ׍ĥę×Ôŋë×#6
Nice release i may not use it cause im not a good coder

Im learning but i most likely will start with LOTF and move up to CoEmu =)

But thanks
11/18/2009 22:06 Makarov#7
Quote:
Originally Posted by ׍ĥę×Ôŋë× View Post
Nice release i may not use it cause im not a good coder

Im learning but i most likely will start with LOTF and move up to CoEmu =)

But thanks
You are defect.
11/18/2009 22:08 ׍ĥę×Ôŋë×#8
Quote:
Originally Posted by Makarov View Post
You are defect.

Im who? Who is defect Makarov if you wana get to know me add my email =)

Email: [Only registered and activated users can see links. Click Here To Register...]
11/19/2009 00:59 .Guru#9
its lookbehindyou

and makarov i know who you are too
11/19/2009 01:03 ׍ĥę×Ôŋë×#10
Quote:
Originally Posted by Prot0type View Post
its lookbehindyou

and makarov i know who you are too
Soo cause i joined today im some one who im not who is lookbehindyou i dont know why you guys are hating on me o.o im here to learn to code in C# and code a co server =( pleas stop saying something you do not know ok
11/19/2009 01:20 Santa#11
Quote:
Originally Posted by ׍ĥę×Ôŋë× View Post
Nice release i may not use it cause im not a good coder

Im learning but i most likely will start with LOTF and move up to CoEmu =)

But thanks
Bad Decision. I would not start with lotf. I would at least go with Hybrids source.

Edit:
If you have just joined, take my advice and leave. You probably won't learn anything here even if you wanted to. Maybe if you meet someone that is really nice, and your really devoted you might, but this forum is full of Assholes.
11/19/2009 01:23 ׍ĥę×Ôŋë×#12
Quote:
Originally Posted by StarBucks View Post
Bad Decision. I would not start with lotf. I would at least go with Hybrids source.

Edit:
If you have just joined, take my advice and leave. You probably won't learn anything here even if you wanted to. Maybe if you meet someone that is really nice, and your really devoted you might, but this forum is full of Assholes.
Hybrids source? Can you gimme a link to it

And just cause i joined and wanna learn to code in C# doesent mean you guys have to judge me for no reason

I wanna be a great C# coder =(
11/19/2009 01:27 Santa#13
Quote:
Originally Posted by ׍ĥę×Ôŋë× View Post
Hybrids source? Can you gimme a link to it

And just cause i joined and wanna learn to code in C# doesent mean you guys have to judge me for no reason

I wanna be a great C# coder =(
I wasn't judging you. I was just informing you that this forum is not that great. You will be flamed unless you do something that it Text box to the real Co. But anyway, Hybrids source is a sticky.

Edit:
I'm sorry its not a sticky. I will look for it, hang on.
11/19/2009 01:29 ׍ĥę×Ôŋë×#14
Quote:
Originally Posted by StarBucks View Post
I wasn't judging you. I was just informing you that this forum is not that great. You will be flamed unless you do something that it Text box to the real Co. But anyway, Hybrids source is a sticky.
There isnt a source in the sticky area
11/19/2009 01:39 Santa#15
Alright, so the link to Hybrids source is [Only registered and activated users can see links. Click Here To Register...]
The Database it also right here: [Only registered and activated users can see links. Click Here To Register...]