Register for your free account! | Forgot your password?

You last visited: Today at 11:24

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

Advertisement



[Release] Leveling NPC

Discussion on [Release] Leveling NPC within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2009
Posts: 19
Received Thanks: 8
[Release] Leveling NPC

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.
silwhat is offline  
Thanks
4 Users
Old 12/17/2009, 00:20   #2
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
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
-Shunsui- is offline  
Old 12/17/2009, 00:23   #3
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Make it read stats.dat.
That would do good.
Arcо is offline  
Old 12/17/2009, 00:24   #4
 
elite*gold: 0
Join Date: Feb 2009
Posts: 19
Received Thanks: 8
hmm - i'll try to add that for each class :-?
silwhat is offline  
Old 12/17/2009, 00:29   #5
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
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.
Arcо is offline  
Old 12/17/2009, 00:33   #6
 
elite*gold: 0
Join Date: Feb 2009
Posts: 19
Received Thanks: 8
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
silwhat is offline  
Old 12/17/2009, 00:35   #7
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
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?
Arcо is offline  
Old 12/17/2009, 00:54   #8
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
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,
-Shunsui- is offline  
Old 12/17/2009, 01:00   #9
 
elite*gold: 0
Join Date: Feb 2009
Posts: 19
Received Thanks: 8
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 ._.
silwhat is offline  
Old 07/13/2010, 19:16   #10
 
~WhitE~WolF~'s Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 27
Received Thanks: 1
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 =/
~WhitE~WolF~ is offline  
Reply


Similar Threads Similar Threads
Release, A 125 Leveling Area
12/08/2009 - CO2 PServer Guides & Releases - 9 Replies
This is For 5165 and is something i did For People that are level 125 To Go to the 125 Leveling Area, First Go Into Your OldCODB and Open MobInfos.txt And in there add 3320 SewerRatL125 1 0202 131 70460 0 0 0 1500 2228 1 85 2 True 2 70 700 1000 12 True Then Open up MobSpawns.txt and Add 3320 50 1785 60 94 94 60
[Release] Sorc (Leveling) Bot Beta!
09/20/2008 - Dekaron Exploits, Hacks, Bots, Tools & Macros - 76 Replies
Alright, I've been working on this bot for a while, no flaming please. First thing I want to say is..............This is a MAGE BOT. Since my only character is a mage, i decided to make this first :]. As for the other classes, if you can figure this shizim out, its actually possible for you to use. Just the table wont quite make sense to u. lol Basically, this is a click the enemy-and-spam-mage-skills bot. Right now, it will only attack enemies with red names (harder enemies than...



All times are GMT +2. The time now is 11:24.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.