RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

I have a tool request for someone looking for a project:

Necr0Potenc3

Sorceror
hm.. in case you guys want it, you have it

I have it done in my old hdd for about an year already and left it there getting some dust

gonna finish my pc this week so.... whatever
 

Revan

Sorceror
Could someone tell me how to get the location from the client, please?
With that info i could probably start making a simple uo-map app.. I wouldn't expect any hosting though :p
 

Phantom

Knight
Revan said:
Could someone tell me how to get the location from the client, please?
With that info i could probably start making a simple uo-map app.. I wouldn't expect any hosting though :p

Use the SDK to do this.

But if you need to know how to something this simple, going to be tough to do this project.
 

punt59

Wanderer
Not in SDK , at least orginally

Hmm, unless the SDK got updated, it didn't have libraries to patch into the packet's to get the current location. On would use RunSpy or something for that.
 

Bradley

Sorceror
There isnt anything to capture the packets directly, but the SDK does give access to the client's memory space, so you can use it to lookup the values, if you know where to look.
 

Revan

Sorceror
Phantom said:
Use the SDK to do this.

But if you need to know how to something this simple, going to be tough to do this project.

Yeah, i know it's simple.. But i'm trying to learn stuff

What could i possibly have done wrong here?:
Code:
Ultima.Map.Felucca.GetImage(0, 0, 320, 240, canvas, true);
And here is the error:
Code:
System.ArgumentException: Invalid parameter used.

I can draw animations and statics with no problems btw
 

Revan

Sorceror
But i'm not :(
Brad told me that this should work (because it does for him in VB):
Code:
private void Form3_Load(object sender, System.EventArgs e)
{
			Bitmap canvas = Map.Felucca.GetImage(0, 0, 320, 240, canvas, true);
			pictureBox1.Image = canvas;
}
 

Revan

Sorceror
Oh, how embarrassing.. That's what i should've tried in the first place
Thanks though :)

could someone be kind enough to help me getting the location from the client using the Ultima SDK? Please?
 

Arya

Wanderer
First use Ultima.Client.Calibrate() then use the Ultima.Client.FindLocation() function to retrieve position and map.
 

Revan

Sorceror
but with Client.FindLocation wants reference integers..
I've tried so hard how to figure out how to do them..
 

Bradley

Sorceror
Revan said:
but with Client.FindLocation wants reference integers..
I've tried so hard how to figure out how to do them..
Just use regular integer variables. once the function complets it will place the correct values into those variables for you.
 

Revan

Sorceror
Code:
Client.FindLocation(xcoord, ycoord, zcoord, facet);
//and the vars are declared like this:
int xcoord;
int ycoord;
int zcoord;
int facet;

and this is the error (!!!!)
Code:
Argument '1': cannot convert from 'int' to 'ref int'
 

Revan

Sorceror
Bradley said:
All hail VB :)
Nooo... argh!
Btw, i found out how to do it:
Code:
Ultima.Client.FindLocation(ref xcoord, ref ycoord, ref zcoord, ref facet);
Now isn't that easy silly buns? Just add ref before inserting the variables :eek:
Now i'll be making UO-MaPZoR 4 h4xX0r!!1
 
Top