Register for your free account! | Forgot your password?

You last visited: Today at 22:51

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

Advertisement



[Release]Mount Trainer NPC 5165

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

Reply
 
Old   #1
 
|BasicCoder|'s Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 84
Received Thanks: 41
[Release]Mount Trainer NPC 5165

Ok guys i coded Mount Trainer and it works perfectly =D soon ill get the NPC that Composes horses

Ok first the NPC

Go to PacketHandling/NPCDIalogs.cs

And add this NPC

Code:
#region Mount Trainer
                            case 983:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("Im the best Mount Trainer in the Empire. You can learn the Mount Skills from me.It cost 50,000 silver for the Riding Skill, 100,000 silver for the Spook Skill , and 1,000,000 silver for War Cry Skill, Is there something needed."));
                                        GC.AddSend(Packets.NPCLink("Learn Riding (50000 silver)", 4));
                                        GC.AddSend(Packets.NPCLink("Learn Spook (100000 silver)", 5));
                                        GC.AddSend(Packets.NPCLink("Learn War Cry (1000000)", 6));
                                        GC.AddSend(Packets.NPCLink("Just passing by.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (GC.MyChar.Inventory.Count < 40)
                                    {
                                        
                                        if (Control == 4)
                                        {
                                            if (GC.MyChar.Silvers >= 10000)
                                            {
                                                GC.MyChar.Silvers -= 10000;
                                                GC.MyChar.RWSkill(new Game.Skill() { ID = 7001, Lvl = 0, Exp = 0 });
                                                GC.AddSend(Packets.NPCSay("You have learned Riding Skill"));
                                                GC.AddSend(Packets.NPCLink("Thanks.", 255));
                                                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                GC.AddSend(Packets.NPCFinish());
                                            }
                                            else
                                            {
                                                GC.AddSend(Packets.NPCSay("You don't have enough Cps."));
                                                GC.AddSend(Packets.NPCLink("I see.", 255));
                                                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                GC.AddSend(Packets.NPCFinish());
                                            }
                                        }
                                        else if (Control == 5)
                                        {
                                            if (GC.MyChar.Silvers >= 100000)
                                            {
                                                GC.MyChar.Silvers -= 100000;
                                                GC.MyChar.RWSkill(new Game.Skill() { ID = 7002, Lvl = 0, Exp = 0 });
                                                GC.AddSend(Packets.NPCSay("You have learned Spook Skill"));
                                                GC.AddSend(Packets.NPCLink("Thanks.", 255));
                                                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                GC.AddSend(Packets.NPCFinish());
                                            }
                                            else
                                            {
                                                GC.AddSend(Packets.NPCSay("You don't have enough Cps."));
                                                GC.AddSend(Packets.NPCLink("I see.", 255));
                                                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                GC.AddSend(Packets.NPCFinish());
                                            }
                                        }
                                        else if (Control == 6)
                                        {
                                            if (GC.MyChar.Silvers >= 1000000)
                                            {
                                                GC.MyChar.Silvers -= 1000000;
                                                GC.MyChar.RWSkill(new Game.Skill() { ID = 7003, Lvl = 0, Exp = 0 });
                                                GC.AddSend(Packets.NPCSay("You have learned Warcry Skill"));
                                                GC.AddSend(Packets.NPCLink("Thanks.", 255));
                                                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                GC.AddSend(Packets.NPCFinish());
                                            }
                                            else
                                            {
                                                GC.AddSend(Packets.NPCSay("You don't have enough Cps."));
                                                GC.AddSend(Packets.NPCLink("I see.", 255));
                                                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                GC.AddSend(Packets.NPCFinish());
                                            }
                                        }
                                    }

                                    else
                                    {
                                        GC.AddSend(Packets.NPCSay("Im sorry you have learned these skills"));
                                        GC.AddSend(Packets.NPCLink("I see.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    break;
                                }
                            #endregion
Now Build it hit F6

Then debug it hit F5

And that part is done now go to C:\OldCODB\NPCs.txt

And add this code

Code:
983 6320 2 4 1002 387 386
Anyways hit Thanks you find this usefull

And to prove it works ;P

Screen Shot:


NOTE: IF YOU HAVE ERRORS THIS WILL NOT WORK AT ALL
|BasicCoder| is offline  
Thanks
9 Users
Old 11/27/2009, 03:30   #2
 
airborne.'s Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 256
Received Thanks: 63
thanks
airborne. is offline  
Old 11/27/2009, 05:10   #3
 
sawickas's Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 617
Received Thanks: 38
I sęarch were put line for fix horse yuo not faund?
sawickas is offline  
Old 11/27/2009, 10:33   #4

 
elite*gold: 146
Join Date: Apr 2008
Posts: 14,686
Received Thanks: 9,968
#moved
Die Schnittstelle is offline  
Old 11/27/2009, 16:35   #5
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
Code looks all right, nothing hard, but you didn't claim that, so nice release.
Too bad I don't use that source =P

~Bas
Basser is offline  
Old 11/27/2009, 19:39   #6
 
|BasicCoder|'s Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 84
Received Thanks: 41
Quote:
Originally Posted by Smythe94 View Post
Code looks all right, nothing hard, but you didn't claim that, so nice release.
Too bad I don't use that source =P

~Bas
Yeah i know :P but im a basiccoder XD
|BasicCoder| is offline  
Old 11/28/2009, 06:02   #7
 
hunterman01's Avatar
 
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
Eh isnt there a npc who does this already lol
hunterman01 is offline  
Old 11/28/2009, 22:25   #8
 
elite*gold: 0
Join Date: Aug 2008
Posts: 7
Received Thanks: 1
Big Thanks
ayna5 is offline  
Old 11/29/2009, 13:49   #9
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
Quote:
Originally Posted by |BasicCoder| View Post
Yeah i know :P but im a basiccoder XD
At least you code. =)
Basser is offline  
Old 11/29/2009, 21:12   #10
 
|BasicCoder|'s Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 84
Received Thanks: 41
Quote:
Originally Posted by Smythe94 View Post
At least you code. =)
Thanks smythe
|BasicCoder| is offline  
Old 02/20/2011, 07:28   #11
 
elite*gold: 0
Join Date: Jun 2010
Posts: 65
Received Thanks: 1
im not sure why but whenever I add that number "983 6320 2 4 1002 387 386" into NPCs.txt and try to run server it crashes any idea why?

I got it, i figured it out so thanks for everything
TraceLegacy is offline  
Reply


Similar Threads Similar Threads
UdoBot Release ! New Trainer ! [ Unlimited Leecher Trainer ]
06/25/2010 - S4 League Hacks, Bots, Cheats & Exploits - 64 Replies
Hier Release ich meinen Ersten Trainer. Er Enthält : Cutspeed Reloadspeed Sp Reg Leg Dmg < Found Wallhack Chams < Credits to h4c0r-BG Itemhack < New
[Release]The Steed System Mount Lineage 5165
02/28/2010 - CO2 PServer Guides & Releases - 3 Replies
- Hi all - i changed my name from alfaone to conquer-sx and will back make thread again in 4botters and dvd4arab and elitepvpers no more now let start with the first thread 1- Go to Packets.cs in Main and search about : public static COPacket Packet1025() {



All times are GMT +2. The time now is 22:51.


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.