Register for your free account! | Forgot your password?

You last visited: Today at 20:11

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

Advertisement



Entity Create Thing.

Discussion on Entity Create Thing. within the CO2 Private Server forum part of the Conquer Online 2 category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2007
Posts: 240
Received Thanks: 22
Entity Create Thing.

Yesterday i was trying to disable creating ninja and monks in my server. I cant figure out how did they handle it in Classic Co . I am using impulse 5518+.

Heres the image of what i mean.



help would be apreciated.
thanks in advance
agathom is offline  
Old 05/17/2012, 20:17   #2
 
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
Just check for the ninja and monk job in the character creation handler. Then send the message packet with the character creation chat-type.
I don't have a username is offline  
Thanks
1 User
Old 05/17/2012, 22:07   #3

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
Well if it's a variation of impulse's source than it's not that hard.
Search for
Code:
public static bool CreateEntity(Network.GamePackets.EnitityCreate eC, Client.GameState client, ref string message)
And stick in:
if (eC.Class == 50)
{
//something
message = "Ninjas disabled";
}
Or something along those lines.
Kiyono is offline  
Thanks
1 User
Old 05/17/2012, 22:17   #4
 
elite*gold: 0
Join Date: Feb 2007
Posts: 240
Received Thanks: 22
Thanks for the replies apreciate that.
I fixed it already

@kiyono
Your were right , I am using yours now .

This is old my code looks ****** ,How would they make 51 -55 class if they are in the entity create portion ' Im not thinking at all.
Code:
            if (eC.Class >= 50 && eC.Class <= 55)
            {
                message = "Ninja has been removed.";
                return false;
            }
agathom is offline  
Old 05/17/2012, 22:34   #5
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
51-55 are promotions of ninja... 50 is what's sent during character creation.

Note: That is also poor program flow as you have it written....

Every method should have one entry point and one exit point. EG: avoid goto whenever possible. It requires slightly more planning when setting up the logic for the method but it makes it infinitely easier to read and debug.

<edit>

You should be handling ONLY valid data from client. Never just assume the information being received is correct. Saint taught me that back in my first source when he decided to test all my validity checks and was able to make a character with....

Invalid UID
Invalid Name
Invalid Job
Invalid Mesh

He decided to stop before having it drop my entire database by using sql syntax inside the name.

Moral of the story... validate ALL information coming from client and structure your logic correctly the first time so it's easily readable and maintainable.
pro4never is offline  
Thanks
2 Users
Old 05/17/2012, 22:42   #6
 
elite*gold: 0
Join Date: Feb 2007
Posts: 240
Received Thanks: 22
Thanks for the explanation, will look in to it.
agathom is offline  
Old 05/21/2012, 09:12   #7
 
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
Quote:
Originally Posted by pro4never View Post
He decided to stop before having it drop my entire database by using sql syntax inside the name.
This is why I love people with no mysql experience or knowledge about sql injection. This works on half of the co-servers
I don't have a username is offline  
Old 05/21/2012, 10:28   #8
 
elite*gold: 0
Join Date: Feb 2007
Posts: 240
Received Thanks: 22
This can be closed.

I dont want to hear more GodWords.

Thanks.
agathom is offline  
Old 05/21/2012, 10:53   #9
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
Quote:
Originally Posted by pro4never View Post
He decided to stop before having it drop my entire database by using sql syntax inside the name.
That's ******* brilliant.
Spirited is offline  
Closed Thread


Similar Threads Similar Threads
help whit entity.cs and equipment.cs
08/21/2011 - CO2 Private Server - 2 Replies
hi i have a problem i was updated my source to 5519 but cant see the name of the monsters and items this is my entity,cs whit spawn packet updated, and equipment.cs updated what i need to see it? thanks help please using System; using System.Collections.Generic; using System.IO; using System.Text; using Conquer_Online_Server.Network; using Conquer_Online_Server.Network.GamePackets;
[Buddy Thing] Bones thing
08/15/2011 - Archlord - 17 Replies
Uhm, ssry creating a thread only for that, but ma buddy is 80 and i really have to move ma balls and take the rewards. Uhmm i'm blocked at the thing where u have to ransack 100 **** in CF. please some1 tell me there is another way to get those :p
Was ist eine 16 bit entity ?
07/31/2011 - Minecraft - 1 Replies
Hallo Ich habe einen kleinen Bukkit Server. Nun wollte ich aber einnen Tiermod installieren ,dass es z.B Haie etc. gibt , da es kein Plugin gibt. Auf der Seite von dem Mod steht : Q.: Does this work for SMP? A.: Using itemcraft, you can play this mod for multiplayer Also muss ich ItemCraft Instalieren. Nun habe ich nur die Snapshot 0.0.1 , start.bat und den ItemCraft.jar in einen Ordner gezogen und die META-INF gelöscht. Mir wurde gesagt ,dass ich noch die 16 bit entyty hinzufügen...
Entity Movement
06/15/2011 - CO2 Programming - 6 Replies
These are the results from a quick sniffing session: ; west (x--, y++) 18 00 15 27 71 00 00 00 XX XX XX XX 01 00 00 00 DF 8D 47 04 00 00 00 00 ; north west (x--) 18 00 15 27 22 00 00 00 XX XX XX XX 01 00 00 00 D5 01 48 04 00 00 00 00 ; north (x--, y--) 18 00 15 27 03 00 00 00 XX XX XX XX 01 00 00 00 ED A6 48 04 00 00 00 00
Special Entity
09/01/2005 - World of Warcraft - 4 Replies
Well, I was doing a stockade gangbang to lvl my mage. I pulled all the mobs to the beginning, and waited in the wall. As I looked on the minimap and point in the "Mob Train" I saw this strange "Jcffb0b" Entity/Player/Mob/Npc/Shit. I was like goddammnitagmigottagetthefuckouttahere. When I did it again later, there were the same thing... Maybe someone knows what it is? Don't think it's something harmful anymore, just curious about it :P ...



All times are GMT +1. The time now is 20:12.


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