Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 13:12

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

Advertisement



[RELEASE]THE FIRST NPC I'VE EVER CODED!

Discussion on [RELEASE]THE FIRST NPC I'VE EVER CODED! within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old 02/25/2010, 22:29   #31
 
CompacticCo's Avatar
 
elite*gold: 0
Join Date: Aug 2009
Posts: 424
Received Thanks: 108
Congrats on your first code, good luck!
CompacticCo is offline  
Old 02/26/2010, 05:34   #32
 
5supertao's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 89
Received Thanks: 19
Good job lil buddy.. xD Now twist it around so you understand it more.. xD
5supertao is offline  
Old 02/26/2010, 10:20   #33
 
.Ocularis's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 309
Received Thanks: 208
Quote:
Originally Posted by 12tails View Post
good...
but have a way to make it more simple.... for example:
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", 15));
                                        GC.AddSend(Packets.NPCLink("Warrior", 25));
                                        GC.AddSend(Packets.NPCLink("Archer", 45));
                                        GC.AddSend(Packets.NPCLink("WaterTaoist", 135));
                                        GC.AddSend(Packets.NPCLink("FireTaoist", 145));
                                        GC.AddSend(Packets.NPCLink("Ninja", 55));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());

                                    }

                                    else if (Control >= 15 && Control <= 145)
                                    {
                                        GC.MyChar.Job = Control;
                                    }
                                        break;
                                }
                            #endregion
it's just an example... : D
Why does this code make me think people from a certain country which seem to be the root of all evil would find a way to click on every npc in their view while they're clicking the job they want... by then their control would be 09372092374097 and would do something quite undesirable :s


This was a problem with many WoW servers... 'control' could be packet edited to crash the server because the control codes were used to change values... Bad idea :s


Which would open a new topic... for server security.
If WPE can do that. WPE can do that with ANY npc that gives out things such as cps.. or items
Perhaps that would be a good thing to figure a new way to patch that hack issue up...
.Ocularis is offline  
Old 02/26/2010, 14:49   #34


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
I address this earlier in the thread
Korvacs is offline  
Old 02/27/2010, 03:48   #35
 
elite*gold: 0
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
***** you people still giving feedback after like 2 months.
copz1337 is offline  
Thanks
1 User
Old 02/28/2010, 17:09   #36
 
arab4life's Avatar
 
elite*gold: 0
Join Date: Jan 2006
Posts: 430
Received Thanks: 286
I got to say this.
Nice Job.
arab4life is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[WTS] Silkroad Website Templates - Coded/Not-Coded. With .PSD!
11/30/2009 - Silkroad Online Trading - 4 Replies
Examples : There Is NO Examples at the moment. Prices : Price for a full coded website, with a CMS - users can register, write comments. Admin panel included , easy write to news. - 60$. Included : PSD , all files, FREE WEB HOSTING - 3 months.
Coded with...?
06/30/2009 - General Coding - 1 Replies
Hello, With which was this coded?: Elitepvpers Browser Thanks in advance, High Fire



All times are GMT +2. The time now is 13:12.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.