[Release] Leveling NPC

12/16/2009 23:59 silwhat#1
Here's how it goes guys. I made a NPC for leveling 'till L200 (for 2,5kk CPs) and 'till L255 (for 25kk CPs). Here's what you are going to write in NPCDialog.cs:
Code:
#region UnknownMan
                            case 2739:
                                {
                                if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("Ima gonna level you, bloody bitch!- At least thank Fucky~[PM]"));
                                        GC.AddSend(Packets.NPCLink("Erm, OK.", 1));
                                        GC.AddSend(Packets.NPCLink("Screw You!", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    if (Control == 1)
                                    {
                                        GC.AddSend(Packets.NPCSay("What level do you wanna be, you newb?"));
                                        GC.AddSend(Packets.NPCLink("Level 200 - 2,5kk CPs.", 2));
                                        GC.AddSend(Packets.NPCLink("Level 255 - 25kk CPs.", 3));
                                        GC.AddSend(Packets.NPCLink("I'd better die, than let you level me!", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    
                                    if (Control == 2)
                                    {
                                        if (GC.MyChar.CPs >= 2500000)
                                        {
                                            GC.MyChar.CPs -= 2500000;
                                            GC.MyChar.Level = 200;
                                            GC.MyChar.StatPoints = 817;
                                            GC.MyChar.Str = 1;                                            
                                            GC.MyChar.Vit = 1;
                                            GC.MyChar.Agi = 1;
                                            GC.MyChar.Spi = 1;
                                            GC.AddSend(Packets.NPCSay("Gratz Newby >_>"));
                                            GC.AddSend(Packets.NPCLink("Woot", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("You don't have enough CPs, FUCKIN' SCAMMER!"));
                                            GC.AddSend(Packets.NPCLink("I see.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());                                            
                                        }
                                    }
                                    
                                    if (Control == 3)
                                    {
                                        if (GC.MyChar.CPs >= 25000000)
                                        {
                                            GC.MyChar.CPs -= 25000000;
                                            GC.MyChar.Level = 255;
                                            GC.MyChar.StatPoints = 982;
                                            GC.MyChar.Str = 1;
                                            GC.MyChar.Vit = 1;
                                            GC.MyChar.Agi = 1;
                                            GC.MyChar.Spi = 1;
                                            GC.AddSend(Packets.NPCSay("Gratz Newby >_>"));
                                            GC.AddSend(Packets.NPCLink("Woot", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("You don't have enough CPs, FUCKIN' SCAMMER!"));
                                            GC.AddSend(Packets.NPCLink("I see.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }

                                    break;
                                }
                            #endregion
Now go to C:\OldCODB, click NPCs.txt and add the following
Code:
 2739 5500 2 68 1036 201 196
You're done!
Press "Thanks!" if I helped
NOTE: I also added some APs - when u get L200 you get 817 APs and when u get L255 you get 982 APs.
NOTE: You can change the CPs values and the APs which you recieve as you wish.
12/17/2009 00:20 -Shunsui-#2
You should of Done it differnet Because wat if the PLayer is a Water tao he aint gona have not Vit? do Ex.. If (GC.MyChar.Job = 15; Or w,e Job.. and make it add the rite Atributes
12/17/2009 00:23 Arcо#3
Make it read stats.dat.
That would do good.
12/17/2009 00:24 silwhat#4
hmm - i'll try to add that for each class :-?
12/17/2009 00:29 Arcо#5
Quote:
Originally Posted by silwhat View Post
hmm - i'll try to add that for each class :-?

But it would be much easier to to a reader off the dat file.
12/17/2009 00:33 silwhat#6
ima edit the whole APs thing - ima do it for each class, even tho it'll take longer -_- i want to give it already done for all the players xD
12/17/2009 00:35 Arcо#7
Quote:
Originally Posted by silwhat View Post
ima edit the whole APs thing - ima do it for each class, even tho it'll take longer -_- i want to give it already done for all the players xD

But why don't you just do a reader?
12/17/2009 00:54 -Shunsui-#8
if ur gona make it Read of Stat.dat youll need to Add wat Atributes u want for a lvel 200 Char if you want Additional Atributes,
12/17/2009 01:00 silwhat#9
i had a 2nd thought - i think that i won't actually give an exactly amount of str, vit, agi and spi - i'll give an exactly number of APs calculated with the help of stats.txt

EDIT: done - i edited and now it gives u 817 APs (982 APs) and u can use them how u want them ._.
07/13/2010 19:16 ~WhitE~WolF~#10
hey thanks for this post umm i didnt use it all i added it into my own code so thx ^^ umm how would i make the code only work once for each rb sorry new coder =/