[REQUEST]Job Changer NPC

12/05/2009 03:48 airborne.#1
title says it. and yea i made a thread like this before but i accidently said Sex changer instead of job changer -.-

FOR SOURCE 5165
12/05/2009 04:06 Zkiller110#2
i dont think u should be makeing a server if u are asking how to make an easy npc like that and u dont even say what source your useing to add npcs it is different for every source
12/05/2009 04:39 airborne.#3
Quote:
Originally Posted by Zkiller110 View Post
i dont think u should be makeing a server if u are asking how to make an easy npc like that and u dont even say what source your useing to add npcs it is different for every source
My bad, 5165.
12/05/2009 04:41 -Shunsui-#4
i can litterly code this with my eyes close and 1 hand if u SERIUSLY CANT EVEN DO THIS you are in no way learning how to code, i dont even think anyone might even help u. and u know you ddint MISTAKE PUT SEX CHANGE u need that to and this also so dont act stupid
12/05/2009 05:18 airborne.#5
alright i tried guys and i succeeded partially, i can only make it right now to change to 1 class, how do i make it choices? below only makes u fire tao for example..


Code:
                            case 300002:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("Would you like to be a Fire Taoist?"));
                                        GC.AddSend(Packets.NPCLink("Sure!", 1));
                                        GC.AddSend(Packets.NPCLink("No thanks.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }

                                    else if (Control == 1)
                                    {
                                        GC.MyChar.Job = 145;
                                 
                                    }
                                    break;
                                }
12/05/2009 05:32 airborne.#6
alright i'm trying to make the npc myself but give me a hand, so look at the code below, how do i make the choices functional? cuz when u click the npc and any class it doesn't do anything, so how do i make each functional so if i click ninja it changes my job to ninja?

Code:
                                        
                                        GC.AddSend(Packets.NPCSay("Alright choose the job."));
                                        GC.AddSend(Packets.NPCLink("Trojan", 3));
                                        GC.AddSend(Packets.NPCLink("Warrior", 4));
                                        GC.AddSend(Packets.NPCLink("Archer", 5));
                                        GC.AddSend(Packets.NPCLink("WaterTaoist", 6));
                                        GC.AddSend(Packets.NPCLink("FireTaoist", 7));
                                        GC.AddSend(Packets.NPCLink("Ninja", 8));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
12/05/2009 06:23 airborne.#7
What's wrong with this code?

Code:
                            #region
                            case 300002:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("Would you like to change your job?"));
                                        GC.AddSend(Packets.NPCLink("Sure!", 1));
                                        GC.AddSend(Packets.NPCLink("No thanks.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }

                                    else if (Control == 1)
                                    {

                                        GC.AddSend(Packets.NPCSay("Alright choose the job."));
                                        GC.AddSend(Packets.NPCLink("Trojan", 3));
                                        GC.AddSend(Packets.NPCLink("Warrior", 4));
                                        GC.AddSend(Packets.NPCLink("Archer", 5));
                                        GC.AddSend(Packets.NPCLink("WaterTaoist", 6));
                                        GC.AddSend(Packets.NPCLink("FireTaoist", 7));
                                        GC.AddSend(Packets.NPCLink("Ninja", 8));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());

                                    }

                                    else if (Control == 3)
                                    {
                                        GC.MyChar.Job = 15;
                                    }
                                    else if (Control == 4)
                                    {
                                        GC.MyChar.Job  = 25;
                                    }
                                    else if (Control == 5)
                                    {
                                        GC.MyChar.Job = 45;
                                    }
                                    else if (Control == 6)
                                    {
                                        GC.MyChar.Job = 135;
                                    }
                                    else if (Control == 7)
                                    {
                                        GC.MyChar.Job = 145;
                                    }
                                    else if (Control == 8)
                                    {
                                        GC.MyChar.Job = 55;
                                    }
                                        }
                                        break;
                                }
                            #endregion
12/05/2009 06:31 Arcо#8
#Request close
I fixed his problem.
12/05/2009 08:45 Huseby#9
#Closed