[Release] Windbell Quest

11/29/2009 21:58 ~*NewDuuDe*~#1
Well got a little bored and made this. It's a rather small contribution, but well, probably someone that would appreciate out there.

I will not re-write this to any other sources, that is up to you. I did in the simplest way, which will make it easy for you others to re-write.

Code:
#region Shirley //both NPC's are needed. 
                case 20000: //this is a random number, same with the other NPC, change it to what ever you have.
                    {
                        if (LinkBack == 0)
                        {
                            Text("If I cannot hear from my brother, I would rather die than live loney", Client);
                            Link("Can I help you?", 1, Client);
                            Link("I have news!", 4, Client);
                            Link("Oh, another poor girl.", 255, Client);
                        
                        }
                        else if (LinkBack == 1)
                        {
                            Text("My parents died when I was a child. My brother brought me up. I have not heard from him since he joined the army last year.", Client);
                            Link("How can I help you?", 2, Client);
                            Link("I am helpless.", 255, Client);
                           
                        }
                        else if (LinkBack == 2)
                        {
                            Text("My brothers name is Ryan. He gave me this Jade for my 10th birthday. Would you take it to him, please?", Client);
                            Link("Sure, I must find him.", 3, Client);
                            Link("Sorry, I am to busy.", 255, Client);
                       

                        }
                        else if (LinkBack == 3)
                        {
                            AddItem(721210, 0, 0, 0, 0, 0, Client);
                            Text("Please help me find my brother!", Client);
                            
                        }
                        else if (LinkBack == 4)
                        {
                            if (InventoryContains(721211, Client))
                            {
                                Text("When I was young, I liked the Windbell very much. My brother often told me that I should take care of myself whatever happened.", Client);
                                Link("Wish you happiness", 5, Client);
                              
                            }
                            else
                            {
                                Text("You do not have what I seek!", Client);
                                Link("Sorry, I shall come back later.", 255, Client);
                            
                            }

                        }
                        else if (LinkBack == 5)
                        {
                            Text("I must live happily as my brother wished. Thanks for your help, I give you may favourite earring. Do you like it?", Client);
                            Link("Awesume! Thank you!", 6, Client);
                           
                        }
                        else if (LinkBack == 6)
                        {
                            RemoveItem(721210, Client);
                            AddItem(117345, 0, 0, 0, 0, 0, Client); //this should be a super L47 earring, you may change it to what ever you want.
                         
                        }
                    }
                   break;

                #endregion                #region SoldierLeader
                case 13543:
                    {
                        if (LinkBack == 0)
                        {
                            if (InventoryContains(721210, Client))
                            {
                                Text("You are looking for Ryan? Sorry, he sacrificed his life on his first duty. This is his item. Please give it to his relatives", Client);
                                Link("Okay.", 1, Client);
                                Link("Sorry, I don't know him.", 255, Client);
                                
                            }



                            else
                            {
                                Text("Hello! I am the leader of the soldiers in Ape Mountain.", Client);
                                Link("Cool.", 255, Client);
                              
                            }
                        }

                        else if (LinkBack == 1)
                        {
                            RemoveItem(721210, Client);
                            AddItem(721211, 0, 0, 0, 0, 0, Client);
                            Text("Nobody wants to be a soldier, but we must defend our homeland from invasion. Many soldiers have sacrificed their lives.", Client);
                            Link("What a troubled world!", 255, Client);
                         
                        }
                    }

                    break;
                #endregion
PS: If you wish to have a limit on how many times people can do this just do a simple loop.
11/29/2009 22:31 |BasicCoder|#2
Im guessing for CoEmu
Or lotf
11/29/2009 22:34 ~*NewDuuDe*~#3
The reason I wrote like I did is because this way it easy to rewrite it to any source.
11/29/2009 22:34 Kiyono#4
It's CoEmu.
11/29/2009 22:35 ~*NewDuuDe*~#5
I've never actually bothered to look at CoEmu, but look at my previous post and you will see the answer.
11/29/2009 22:35 |BasicCoder|#6
Quote:
Originally Posted by Kiyono View Post
It's CoEmu.
Ahh was wondering
11/29/2009 22:37 Kiyono#7
Quote:
Originally Posted by BERGHUIS1 View Post
I've never actually bothered to look at CoEmu, but look at my pervious post and you will see the answer.
Your post wasn't posted yet when I wrote mine and you could replace the word client with csocket and it'd work for coemu.

//edit Well with a little edit here and there.
11/29/2009 22:43 ~*NewDuuDe*~#8
Could be that I mixed up an item or two, as I began on it early in the morning and then left it till now. But I'm pretty sure it should work.
11/29/2009 22:46 |BasicCoder|#9
Quote:
Originally Posted by BERGHUIS1 View Post
Could be that I mixed up an item or two, as I began on it early in the morning and then left it till now. But I'm pretty sure it should work.
So would this quest work with the 5165 source?
I use that one i like playing withthe horses XD
11/29/2009 22:50 ~*NewDuuDe*~#10
You would have to re-write it. As I stated in the first post, I am not going to do it. That is why I did not write this like any ordinary source, through this it is not hard figuring out what to replace the lines with.
11/29/2009 22:51 |BasicCoder|#11
Quote:
Originally Posted by BERGHUIS1 View Post
You would have to re-write it. As I stated in the first post, I am not going to do it. That is why I did not write this like any ordinary source, through this it is not hard figuring out what to replace the lines with.
XD Ok ill re-wright it to work with the 5165 ;P
11/30/2009 11:24 ~*NewDuuDe*~#12
Good, saves me from some work :P
Tell me if you have any trouble.
11/30/2009 11:26 Sp!!ke#13
BERGHUIS1 rewrite it for 5165 source..;) now nobody using co emu
11/30/2009 11:35 ~*NewDuuDe*~#14
This is not CoEmu ._.
Also, give me a thanks if your using it xD
11/30/2009 15:24 |BasicCoder|#15
Quote:
Originally Posted by BERGHUIS1 View Post
Good, saves me from some work :P
Tell me if you have any trouble.
Haha yeah saves you the trouble give me it now ;P