ScriptUO

Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: cutter on June 07, 2011, 11:34:02 AM

Title: Amateur Help
Post by: cutter on June 07, 2011, 11:34:02 AM
Title: Re: Amateur Help
Post by: luv2luvlong on June 07, 2011, 12:32:20 PM
what has happened is the button position has changed in the donation gump, due to the addition of "backpack donating" and comoditity deed's being added.
you will need to find the new position relative to the gumps 0.0 position
Title: Re: Amateur Help
Post by: cutter on June 08, 2011, 12:46:10 AM
so I do have to change

#CONTPOSX
#CONTPOSY

based on the gumps 0.0 Position!

So I am a complete amateur.

I used Easyuo and figured out the actual

#CONTPOSX
#CONTPOSY

and manually entered them and it didn't work.

So that means that the gumps 0.0 position is
different from the games 0.0 position.

So the question is where do I find the gumps 0.0
position to adjust the

#CONTPOSX
#CONTPOSY

or How do I find

#CONTPOSX
#CONTPOSY

in relation to the gump, since apparently, I can't
Pull it from Easy uo.

How do I find the X,Y

Or am I completely messed up?
Title: Re: Amateur Help
Post by: Masscre on June 08, 2011, 04:52:57 AM
In areas where it shows something similar to this.

set %x #CONTPOSX + 306
set %y #CONTPOSY + 343

You would need to change the numbers after the plus symbol to what ever they have changed to now.
Title: Re: Amateur Help
Post by: Cerveza on June 08, 2011, 05:02:43 AM
I thought there was a gump offset clicker in the snippits, and an explanation in the tutorials?
Title: Re: Amateur Help
Post by: Masscre on June 08, 2011, 05:22:39 AM
I know there is a tutorial on the gump offset and there maybe a snippet but do not remember on the snippet part.
Title: Re: Amateur Help
Post by: Cerveza on June 08, 2011, 05:34:27 AM
Actually, both together found HERE (http://www.scriptuo.com/index.php?topic=505.0)
Title: Re: Amateur Help
Post by: luv2luvlong on June 08, 2011, 07:31:05 AM
At the bottom of easyuo are a bunch of numbers, as you move the cursor around one set of those numbers will change. these are your cursor positions, and that is what you are trying to change.
set %x #CONTPOSX + 306
means you want the cursor to move to the gumps x position plus another 306
x being the up and down movement
y being the left and right movement

the easiest way for a beginer is to move the gump to the top left corner of the game window, until the
#CONTPOSX #CONTPOSXYand in the right hand pane have values of 0. Then move your cursor to the area on the gump that needs to be clicked. the numbers at the bottom in the cursor box will be what you need to change the numbers. You still need to write the line as

set %x #CONTPOSX + 306

since you will not always have the gump at the 0.0 position
another way to move the gump to the 0.0 position is to open the gump, make sure it is on top, and run the following code


Code: [Select]
set #CONTPOSX 0
set #CONTPOSY 0
halt
Title: Re: Amateur Help
Post by: cutter on June 08, 2011, 09:48:53 AM
Title: Re: Amateur Help
Post by: luv2luvlong on June 08, 2011, 10:46:01 AM
tm's scriptuo will really help in understanding scripts. I love being able to bounce from one sub to another, but anyways playon. And its not really a gump within a gump its another page to that gump.
peace
Title: Re: Amateur Help
Post by: Masscre on June 08, 2011, 12:22:48 PM
If it where I. I would pull a small script that recalls and try to figure out each piece of the recall and then once you have the recall sub working you can place it in your script.  Same goes for the bank move routine and the crafting routine.
Title: Re: Amateur Help
Post by: cutter on June 08, 2011, 10:19:06 PM
That is what I was think as well Massacre.  I'll start plugging away at it and see what I can start messing up so I can learn more lol.