Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2
You last visited: Today at 20:34

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

Advertisement



Job Change NPC Help

Discussion on Job Change NPC Help within the Conquer Online 2 forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2011
Posts: 24
Received Thanks: 0
Job Change NPC Help

I know it is probably a stupid mistake somewhere but I really can not figure it out..

Code:
#region Birth Village Idiots
                            case 10010:
                                {

                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("Do you want to leave?"));
                                        GC.AddSend(Packets.NPCLink("Yeah.", 1));
                                        GC.AddSend(Packets.NPCLink("No.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    if (Control == 1)
                                    {
                                        if (GC.MyChar.Job == 50)
                                        {
                                            GC.AddSend(Packets.NPCSay("I'm sorry. You cannot be a ninja. You must change your class."));
                                            GC.AddSend(Packets.NPCLink("Trojan", 2));
                                            GC.AddSend(Packets.NPCLink("Taoist", 3));
                                            GC.AddSend(Packets.NPCLink("Warrior", 4));
                                            GC.AddSend(Packets.NPCLink("Archer", 5));
                                            GC.AddSend(Packets.NPCLink("No thank you", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }

                                        else
                                        {
                                            GC.MyChar.Teleport(1002, 430, 380);
                                        }

                                        if (Control == 2)
                                        {
                                            GC.MyChar.Job = 15;
                                            GC.AddSend(Packets.NPCSay("You have been transformed into a Trojan!"));
                                            GC.AddSend(Packets.NPCLink("Thank You", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }

                                        if (Control == 3)
                                        {
                                            GC.MyChar.Job = 52;
                                            GC.AddSend(Packets.NPCSay("You have been transformed into a Taoist!"));
                                            GC.AddSend(Packets.NPCLink("Thank You", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }

                                        if (Control == 4)
                                        {
                                            GC.MyChar.Job = 25;
                                            GC.AddSend(Packets.NPCSay("You have been transformed into a Warrior!"));
                                            GC.AddSend(Packets.NPCLink("Thank You", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }

                                        if (Control == 5)
                                        {
                                            GC.MyChar.Job = 45;
                                            GC.AddSend(Packets.NPCSay("You have been transformed into a Archer!"));
                                            GC.AddSend(Packets.NPCLink("Thank You", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }

                                    }
                                    break;
                                }
It only works if i use InternNinja and that is why if the job is 50 then u can't be a ninja.
I can get to the part where he asks what class they want to be. But it acts like it skips the actual job changing code
Sythen is offline  
Old 06/28/2011, 20:02   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,379
Move one of the closing brackets up some.

You're checking linkback == 1 and all the other linkbacks are part of that code block.


Add } after

Code:
else
                                        {
                                            GC.MyChar.Teleport(1002, 430, 380);
                                        }
Then you'll need to REMOVE a } from the end of the code.... say at }
break;
pro4never is offline  
Thanks
1 User
Old 06/28/2011, 22:04   #3
 
elite*gold: 0
Join Date: Jun 2011
Posts: 24
Received Thanks: 0
Ohhh. Thank you so much
Sythen is offline  
Reply

Tags
change, class, conquer online, job, npc


Similar Threads Similar Threads
Explanation of how can you change IP in file data.pak without change in its size
10/08/2009 - Dekaron Private Server - 3 Replies
Explanation of how can you change IP in file data.pak without change in its size press on Enter and number which will be missed we will make space in place of it YouTube - Explanation of how can you change IP in file data.pak without change in its size name fills you need to search on it arenalist.csv channellist.csv loginlist.csv monsteset.csv



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


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.