Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 04:05

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

Advertisement



[Help] Spawn Creation Tool

Discussion on [Help] Spawn Creation Tool within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
Beta Limit's Avatar
 
elite*gold: 0
Join Date: Dec 2008
Posts: 493
Received Thanks: 72
[Help] Spawn Creation Tool

Ok well the basics of this is i want to create a tool that has a visual image of the map you choose. Then at the side an X and Y saying the max and min coordinates for each (would need to change for each map).

Choose mob etc.

Then on the map image you can draw out the spawn(probably going a bit far with this) with the cursor. The drawn area will then be converted into coordinates and then the whole thing will be dumped out to a MySQL query or .ini

If anyone can give me any idea about how to do any of this; please post here. I think i got the basic stuff covered, my main worry is the drawing on the map.

EDIT: Current Look of the program (Still unfinished)

Beta Limit is offline  
Old 03/04/2009, 02:23   #2
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
This would be easy, except for the whole drawing it out part.

The Min+Max coords are which "draw out" the spawn, so thats all that would be needed.
kinshi88 is offline  
Old 03/04/2009, 02:43   #3
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
question here, for what is this?

binaries?

lotf?

extremely bugless?
PeTe Ninja is offline  
Old 03/04/2009, 07:52   #4
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
System.Drawing has a few classes for this, if you want help talk to me on MSN and I'll look through it.

[Edit #1]

Supposing you'll be using plain and simple System.Drawing, you're gunna need a System.Drawing.Graphics to render your ****. This example is just for a windows form, but you can do it over a picturebox(what you're using I presume to register the minimap or whatever pic of the map) or whatever the **** you want(It works with any control I think). On the constructor just initialize a Graphics device using Graphics.FromHwnd(). Use CONTROLNAMEHERE.Handle for the parameter, and bam, you have a graphics device that will render on whatever control you want it to.
Example:

Code:
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            this.Graph = Graphics.FromHwnd(this.Handle);
        }
        Graphics Graph;
public void DrawRect(Rectangle Rect)
        {
            Graph.DrawRectangle(new Pen(Color.Black), Rect);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            DrawRect(new Rectangle(50, 50, 10, 10));
        }
}

}
I suggest using the plain mini maps from CO if you're going to. You'll also need to figure out a way to get a scaling from the mini map to the ingame coords. (DMaps maybe?[To find the Maximum values for X and Y so you can scale the .jpg minimap] Or just find the min and max on your own and scale the mini map).
tao4229 is offline  
Old 03/04/2009, 08:41   #5
 
Beta Limit's Avatar
 
elite*gold: 0
Join Date: Dec 2008
Posts: 493
Received Thanks: 72
@Pete

This will be mainly for LOTF and Hybrids; though it can be adapted depending upon what is needed.

@Tao

Yeah i'm gonna use the Mini map images for this; but most of them come in 4 parts so i'm going to create a new image for each map with the 4 parts together. For the X and Y i was gonna find it in LOTF and just /tele till i'm right in the corners (Trial and Error FTW!). Still one thing that is gunna make it harder is that the spawns arent normal squares or rectangles; they are a Diamond shape (Square/Rectangle turned 45 Degrees).

Cant talk on msn atm I've g2g college Inna bit but i will defiantly pick your brain later

Thanks for the Help so far; im gunna start work on this in my college programming lessons.
Beta Limit is offline  
Old 03/04/2009, 21:15   #6
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
cant you just use a /addspawn command made by emme, it works really good
PeTe Ninja is offline  
Old 03/04/2009, 22:59   #7
 
Beta Limit's Avatar
 
elite*gold: 0
Join Date: Dec 2008
Posts: 493
Received Thanks: 72
Quote:
Originally Posted by PeTe Ninja View Post
cant you just use a /addspawn command made by emme, it works really good
and Emmes command allows you to choose the exact coords to place the mobs? how many to spawn? Spawn to any map you choose etc.?
Beta Limit is offline  
Old 03/05/2009, 13:32   #8
 
Hyberkill's Avatar
 
elite*gold: 0
Join Date: Jun 2006
Posts: 52
Received Thanks: 0
its hard adding the coords manually... id prefer making a command inside the server that takes my char coords n places a monster at the current location for the spawn
Hyberkill is offline  
Old 03/05/2009, 14:27   #9
 
Beta Limit's Avatar
 
elite*gold: 0
Join Date: Dec 2008
Posts: 493
Received Thanks: 72
Quote:
Originally Posted by Hyberkill View Post
its hard adding the coords manually... id prefer making a command inside the server that takes my char coords n places a monster at the current location for the spawn
its not really manually, you do 2 or 4 dots (or 4 lines) on the picture and it gives you the coords and stuff, you click Dump option and paste into into SQL or into a new INI.
Beta Limit is offline  
Old 03/05/2009, 21:56   #10
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
Quote:
Originally Posted by Beta Limit View Post
and Emmes command allows you to choose the exact coords to place the mobs? how many to spawn? Spawn to any map you choose etc.?
Nah, heres the way it works..

/addspawn MobID Area Amount

So if you do:
/addspawn 31 250 400

It would be a perfect mobspawn for birdisland, and it could easily be configured.
_Emme_ is offline  
Old 03/06/2009, 02:36   #11
 
elite*gold: 0
Join Date: Mar 2009
Posts: 17
Received Thanks: 5
Here is an idea for part of it, its not any code but its also kind of a question.

- Why do you have a drop down arrow for the Map ID? I'm sure you could have like a small button on the side saying View Map IDs and it will pop up and possibly have a search bar for finding like Twin City, i could probably give you most of the map ids with what it is and possible coordinates for landing there. But i think you should make it like a type in

Example: [____]

You type in 1002

[1002]

It shows up as

[1002] - Twin City

instead of the drop down arrow,

This is just a suggestion , either way good job and i hope it works out
Hello Kitty is offline  
Reply


Similar Threads Similar Threads
[Tool] Silkroad Online Unique Spawn Viewer
12/11/2010 - SRO Hacks, Bots, Cheats & Exploits - 17 Replies
iUnique - Silkroad Online Unique Spawn Viewer This is a simple tool that shows you the spawns of each Unique. It is written by me so all credits go to me. here is a screenshot: http://i44.tinypic.com/fxrsd3.jpg DOWNLOAD: Here
[Help]NPC Creation
04/14/2008 - EO PServer Hosting - 7 Replies
can som1 please help me, i tried to make a custom NPC but i couldnt get it to work, any1 can teach me step by step on how to make 1



All times are GMT +1. The time now is 04:06.


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.