Register for your free account! | Forgot your password?

You last visited: Today at 08:25

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

Advertisement



[Release]GW Starting NPC 5165

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

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2008
Posts: 59
Received Thanks: 45
[Release]GW Starting NPC 5165

Okay well this the first NPC I've made, I literally just started making NPCs like 15 hours ago so don't make fun of my nooby shiz :P Give me feedback on what you think about it It might suck cause this is my first one and I'm teaching my self w/o guides but yeah.... Here it is.




Updates:
Code:
Moved NPC from middle of TC to next to the TC boxer, His name is now ApprenticeLuo instead of BlessingLantern(Different NPC)
Added an option to End GW for 1kk cps (Note: There is no message that says GW has ended when you use this, It has been tested and yes it does end GW.)


Open NPCs in your database and put this in there.
Code:
300003 5500 2 68 1002 350 332


Open NPCDialog.cs in your Source files, And search for

Code:
default:


Put this above default:

Code:
                                                        #region GwStartingNPC
                            case 300003:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("I'll start the Guild War for you, You just have to give me 750k CPs! Or I can End the Guild War for 1kk CPs!"));
                                        GC.AddSend(Packets.NPCLink("Start GW!", 1));
                                        GC.AddSend(Packets.NPCLink("End GW!", 2));
                                        GC.AddSend(Packets.NPCLink("I'm too poor =(", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    if (Control == 1)
                                    {
                                        if (GC.MyChar.CPs >= 750000)
                                        {
                                            GC.MyChar.CPs -= 750000;
                                            Features.GuildWars.StartWar();
                                            GC.AddSend(Packets.NPCSay("GW has started!"));
                                            GC.AddSend(Packets.NPCLink("Ok then.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        } 
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("You need 750k cps! Stupid scammer.."));
                                            GC.AddSend(Packets.NPCLink("Alright alright.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    if (Control == 2)
                                    {
                                        if (GC.MyChar.CPs >= 1000000)
                                        {
                                            GC.MyChar.CPs -= 1000000;
                                            Features.GuildWars.EndWar();
                                            GC.AddSend(Packets.NPCSay("GW has ended!"));
                                            GC.AddSend(Packets.NPCLink("Ok Thanks.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("You need 1kk CPs! Stupid scammer.."));
                                            GC.AddSend(Packets.NPCLink("Alright alright.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());                                      
                                      
                                        }
                                    }
                                    break;
                                }
                            #endregion








I'm a noob at making stuff and I'm doing this all by guess work. Tell me what you think and what I could do to improve my stuff. I tested it and it does work on my server. Feedback all ways helps a newbie
Chaumaster is offline  
Thanks
6 Users
Old 12/25/2009, 02:44   #2
 
elite*gold: 0
Join Date: Oct 2009
Posts: 1
Received Thanks: 0
i just test this and it works good job
bigman234 is offline  
Old 12/25/2009, 02:50   #3
 
elite*gold: 188
Join Date: Dec 2009
Posts: 79
Received Thanks: 36
Good release!
Fleaman is offline  
Old 12/25/2009, 03:08   #4
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by .Rex View Post
Good release!

Lol and tell him how you took it and posted it on 4botters.

@OP Good work, now that you know how to code NPC's hopefully you'll become better. You seem like you have potential.
Arcо is offline  
Thanks
1 User
Old 12/25/2009, 03:51   #5
 
elite*gold: 0
Join Date: Apr 2008
Posts: 59
Received Thanks: 45
Quote:
Originally Posted by Hepatitis C View Post

Lol and tell him how you took it and posted it on 4botters.

@OP Good work, now that you know how to code NPC's hopefully you'll become better. You seem like you have potential.
Thanks for the feedback, It doesn't really take much work if you just look at how other NPCs are coded.
Chaumaster is offline  
Old 12/25/2009, 04:00   #6
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by Chaumaster View Post
Thanks for the feedback, It doesn't really take much work if you just look at how other NPCs are coded.

Lol yeah that's probably the first thing I learned to code.
Arcо is offline  
Thanks
1 User
Old 12/25/2009, 04:18   #7
 
elite*gold: 0
Join Date: Apr 2008
Posts: 59
Received Thanks: 45
Quote:
Originally Posted by Hepatitis C View Post

Lol yeah that's probably the first thing I learned to code.

Funny how someone leeched me all ready, I didn't even expect to get leeched on my first post
Chaumaster is offline  
Old 12/25/2009, 05:26   #8
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by Chaumaster View Post
Funny how someone leeched me all ready, I didn't even expect to get leeched on my first post
Lol don't worry about it.
Decker leeches all the time and posts stuff on 4botters.
Just complain to Mr_PoP on 4Botters and give him the link then post it there.
Then Mr_Pop will close Decker's thread about it.
Arcо is offline  
Thanks
1 User
Old 12/25/2009, 21:39   #9
 
Olodady's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 73
Received Thanks: 27
Tx dude realy helpfull nice job
Olodady is offline  
Old 12/25/2009, 21:56   #10
 
elite*gold: 0
Join Date: Apr 2008
Posts: 59
Received Thanks: 45
Quote:
Originally Posted by Olodady View Post
Tx dude realy helpfull nice job

NP I'll add in an option to end GW in a while.
Chaumaster is offline  
Old 12/27/2009, 20:32   #11
 
elite*gold: 0
Join Date: Aug 2009
Posts: 930
Received Thanks: 448
i saw your question hasn't been answered about changing NPC names.. it's not in the source, its in client.. npc.ini (i THINK) someone correct me if im wrong, never attempted before
.Guru is offline  
Thanks
1 User
Old 12/27/2009, 21:16   #12
 
elite*gold: 0
Join Date: Apr 2008
Posts: 59
Received Thanks: 45
Quote:
Originally Posted by Hepatitis B View Post
i saw your question hasn't been answered about changing NPC names.. it's not in the source, its in client.. npc.ini (i THINK) someone correct me if im wrong, never attempted before

Yeah, Hepatitis C answered me in a Private Message. You were right though.. Thanks
Chaumaster is offline  
Old 12/27/2009, 21:54   #13
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by Hepatitis B View Post
i saw your question hasn't been answered about changing NPC names.. it's not in the source, its in client.. npc.ini (i THINK) someone correct me if im wrong, never attempted before

You are right.
It's in client and not source.
But somebody told me with CoEmu its done within the source.
That doesn't sound correct to me.
But I've never used CoEmu so I wouldn't know.
Arcо is offline  
Thanks
1 User
Old 12/28/2009, 04:34   #14
 
elite*gold: 0
Join Date: Apr 2008
Posts: 59
Received Thanks: 45
Quote:
Originally Posted by Hepatitis C View Post

You are right.
It's in client and not source.
But somebody told me with CoEmu its done within the source.
That doesn't sound correct to me.
But I've never used CoEmu so I wouldn't know.
Thanks for the link btw :P
Answer my PM though I need some testers when we release it
Chaumaster is offline  
Old 12/29/2009, 14:26   #15
 
D0OM's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 37
Received Thanks: 2
why that just type /GW start , and its will work
D0OM is offline  
Reply

Tags
gw starting npc 5165


Similar Threads Similar Threads
[RELEASE]TDM 5165
01/31/2012 - CO2 PServer Guides & Releases - 54 Replies
Hello, i will show you how to create a team deathmatch tournament for your 5165server (tanels). What do you need? -The source -How to copy + paste :P Features: -First blood (Give +5points):P -4Teams (Red, Blue, Black, White) -Random choose team
Starting a private server. 5065 vs 5165?
08/25/2010 - CO2 Private Server - 6 Replies
I have a binary 5065 that has no bugs and needs like no translation but im not sure if i should start that up or go with a 5165. I Just want to here your guy's point of view on pservers now days. Which would you recommend.
[FIRST Release]PK Quest 5165
01/16/2010 - CO2 PServer Guides & Releases - 12 Replies
I thought this small quest i made was a decent idea. What you have to do is if you get 200PKPoints, you get rewarded 21500 CPs After you have claimed the reward your PKPoints are reduced down to 0 and can only be claimed once a day (Im unsure about adding the variable in Character.cs? Do i have to add it anywhere else? or is that right? im still learning C# >.>) In Character.cs under
[Help] 5165 Starting problem
01/08/2010 - CO2 Private Server - 6 Replies
When i start to run NewestCoServer.exe I get this kinda error http://img63.imageshack.us/img63/5950/errorc.jpg and heres my config GameServerIP=85.131.114.54 ConquerPath=C:\OldCODB\ WebServerPort=8080



All times are GMT +2. The time now is 08:25.


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.