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 01:06

  • 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 12/05/2009, 16:48   #16
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by airborne. View Post
Yes I agree, but it is my first code lol wasn't supposed to be the best.
Lol don't worry, I wasn't flaming your code.
It's only your first.
Doesn't need to be great.
I was just giving feedback on 12tails' code.
Arcо is offline  
Old 12/05/2009, 17:02   #17


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Quote:
Originally Posted by Tiku View Post
In my opinion you should rather use 12tails' code than airborne.
That's only because its short and takes up less room and is simpler.
I wouldnt, if someone decides that they are going to try and bring down your server, that code can be exploited by changing your job to something that isnt defined in the source, like 82, then everything which requires the server to determine the job of a character and make a decision based on it will almost certainly result in an exception, and crash the server.

And no one wants that do they?
Korvacs is offline  
Thanks
1 User
Old 12/05/2009, 17:05   #18
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by Korvacs View Post
I wouldnt, if someone decides that they are going to try and bring down your server, that code can be exploited by changing your job to something that isnt defined in the source, like 82, then everything which requires the server to determine the job of a character and make a decision based on it will almost certainly result in an exception, and crash the server.

And no one wants that do they?

And how would that be any different from using airborne's code?
Arcо is offline  
Old 12/05/2009, 17:07   #19
 
airborne.'s Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 256
Received Thanks: 63
Quote:
Originally Posted by Korvacs View Post
I wouldnt, if someone decides that they are going to try and bring down your server, that code can be exploited by changing your job to something that isnt defined in the source, like 82, then everything which requires the server to determine the job of a character and make a decision based on it will almost certainly result in an exception, and crash the server.

And no one wants that do they?
How is it possible? My NPC only gives you choices of correct Job ids.
airborne. is offline  
Old 12/05/2009, 17:57   #20


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Quote:
Originally Posted by Tiku View Post

And how would that be any different from using airborne's code?
Airborne's lets people choose which class they are, and the server handles which job id they get.

With the other one, i could send a packet to the server with a control id of anything between 15 & 145, and the server would assign my job ID to the control id, meaning that you could get a job of 99 and that would be invalid.

So its completely different, Airbornes is safer in that respect.
Korvacs is offline  
Thanks
1 User
Old 12/05/2009, 19:52   #21
 
arab4life's Avatar
 
elite*gold: 0
Join Date: Jan 2006
Posts: 430
Received Thanks: 286
Good Job.

Tiku: you could of said good job and let it be, but NO! you got to make it sound like its the end of the world.
arab4life is offline  
Thanks
1 User
Old 12/05/2009, 20:20   #22
 
elite*gold: 0
Join Date: Dec 2009
Posts: 4
Received Thanks: 10
Quote:
Originally Posted by arab4life View Post
Good Job.

Tiku: you could of said good job and let it be, but NO! you got to make it sound like its the end of the world.
I can't agree more.
Zoron is offline  
Old 12/05/2009, 20:41   #23
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by arab4life View Post
Good Job.

Tiku: you could of said good job and let it be, but NO! you got to make it sound like its the end of the world.

Lol I told him good job over msn when he first showed me the code.
Arcо is offline  
Old 12/05/2009, 21:21   #24
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 506
Quote:
Originally Posted by Korvacs View Post
Airborne's lets people choose which class they are, and the server handles which job id they get.

With the other one, i could send a packet to the server with a control id of anything between 15 & 145, and the server would assign my job ID to the control id, meaning that you could get a job of 99 and that would be invalid.

So its completely different, Airbornes is safer in that respect.
Someone who actually uses his brain.
Not only checking room and/or memory, but also safety and such.
Basser is offline  
Old 01/08/2010, 23:05   #25
 
elite*gold: 0
Join Date: Mar 2009
Posts: 8
Received Thanks: 0
Lol if u Copie some thing dont thell u made this ur self.. BECOS THIS A COPIE FROM 4 botters. , Pff
angeloraaf is offline  
Old 01/08/2010, 23:09   #26
 
elite*gold: 0
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
Quote:
Originally Posted by angeloraaf View Post
Lol if u Copie some thing dont thell u made this ur self.. BECOS THIS A COPIE FROM 4 botters. , Pff
no it's not i don't need to go into a stupid leacher's forum to steal something and call it mine. why would i lie, be quiet please, i made it myself with some examples.
copz1337 is offline  
Old 01/09/2010, 11:16   #27


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Quote:
Originally Posted by angeloraaf View Post
Lol if u Copie some thing dont thell u made this ur self.. BECOS THIS A COPIE FROM 4 botters. , Pff
Atually the same person released it on both forums.
Korvacs is offline  
Old 01/09/2010, 15:04   #28
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Nice job. Always nice to see people trying their hand at coding. Hopefully you will keep going with it. I'm sure before you know it you will be able to do alot more ^^
pro4never is offline  
Thanks
1 User
Old 01/09/2010, 17:53   #29
 
elite*gold: 0
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
Quote:
Originally Posted by Korvacs View Post
Atually the same person released it on both forums.
lol i don't remember could've been i don't remember if i did.
copz1337 is offline  
Old 02/25/2010, 22:16   #30
 
elite*gold: 0
Join Date: Apr 2007
Posts: 142
Received Thanks: 15
Ehh I added this just.. I think there's missing that What you need to add in NPCS.txt .. Cause I checked mine and I didnt detect anywhere where was something like this 300002?

and whats the meaning of npcs anyway? o.O I mean all the numbers there.. example: 205 1086 16 0 1036 237 189 <-- is that 1086 like that case number in NPCDialog.cs ?
Secrets-man is offline  
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 +1. The time now is 01:07.


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