How can i create a macro, to click in a gump button?

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
paulinho4life
Posts: 45
Joined: 2004-07-20 00:14:10

How can i create a macro, to click in a gump button?

Post by paulinho4life »

How can i create a macro, to click in a gump button?

___infogump_______
serial 0x4000f741
gumpid 0x0000041e
X 0
Y 0
1444 packet size
0 reply packet size
Buttons: ________
Checks&Radios: __
Entryes: ________
All commands: ____
1] esizepic 58 5 9350 550 40
2] umppic 66 14 552
3] ext 65 10 841
4] ext 470 15 1023
5] ext 491 31 1023
6] ext 479 48 1023
7] ext 180 157 2
8] ext 470 82 0
9] utton 452 87 2103 2104 1 0
10] ext 253 55 2
11] ext 470 102 0
12] utton 452 107 2103 2104 1 0
13] ext 282 87 2
14] ext 470 122 0
15] ext 107 102 2 1
16] ext 470 142 0 1
17] ext 117 209 2 1
18] ext 470 162 0 1
19] ext 161 348 2 1
20] ext 470 182 0 1
21] ext 212 267 2 1
22] ext 470 202 0 1
23] ext 272 209 37 1
24] ext 470 222 0 1
25] ext 333 254 2 2
26] ext 470 242 0 2
27] ext 230 122 37 2
28] ext 470 262 0 2
29] utton 452 267 2103 2104 1 0 1
30] ext 285 327 37 2
31] ext 470 282 0 2
32] utton 452 287 2103 2104 1 0 1
33] ext 338 122 2 2
34] ext 470 302 0 2
35] ext 338 209 2 2
36] ext 470 322 0 2
37] ext 400 118 2 3
38] ext 470 342 0 3
39] ext 368 53 846 3
40] ext 470 362 0 3
41] ext 470 382 50 3
42] utton 452 387 2103 2104 1 0 1
Text: ____________
0]
1]
2]
3]
4] 1
5] 1-Britain
6] 2
7] 2-Minoc
8] 3
9] 3-Vesper
10] 4
11] 4-Yew
12] 5
13] 5-Skara Brae
14] 6
15] 6-Jhelom
16] 7
17] 7-Trinsic
18] 8
19] 8-Buccaneer's Den
20] 9
21] 9-Occlo
22] 10
23] 10-Cove
24] 11
25] 11-Serpent's Hold
26] 12
27] 12-Nujel'm
28] 13
29] 13-Magincia
30] 14
31] 14-Moonglow
32] 15
33] 15-Ice Isle
34] 16-Commerce Room


How can i make a script, to click on the last button 42, the last one?
i tryed ,ongump 0x4000f741 0x0000041e (42
but i didnt work.


sincerely
Paul.
paulinho4life
Posts: 45
Joined: 2004-07-20 00:14:10

Post by paulinho4life »

someone please
Kynep
Expert!
Posts: 1348
Joined: 2006-02-07 08:51:40
Location: г. Старый Оскол
Contact:

Post by Kynep »

paulinho4life wrote:someone please


In game click on you button in gump, then type in client: ,infogump, then post ALL text in forum. Im try help
paulinho4life
Posts: 45
Joined: 2004-07-20 00:14:10

Post by paulinho4life »

_infogump_______
serial 0x4000f741
gumpid 0x0000044b
X 0
Y 0
1444 packet size
23 reply packet size
Buttons: ________
Checks&Radios: __
Entryes: ________
All commands: ____
1] esizepic 58 5 9350 550 40
2] umppic 66 14 552
3] ext 65 10 841
4] ext 470 15 1023
5] ext 491 31 1023
6] ext 479 48 1023
7] ext 180 157 2
8] ext 470 82 0
9] utton 452 87 2103 2104 1 0
10] ext 253 55 2
11] ext 470 102 0
12] utton 452 107 2103 2104 1 0
13] ext 282 87 2
14] ext 470 122 0
15] ext 107 102 2 1
16] ext 470 142 0 1
17] ext 117 209 2 1
18] ext 470 162 0 1
19] ext 161 348 2 1
20] ext 470 182 0 1
21] ext 212 267 2 1
22] ext 470 202 0 1
23] ext 272 209 37 1
24] ext 470 222 0 1
25] ext 333 254 2 2
26] ext 470 242 0 2
27] ext 230 122 37 2
28] ext 470 262 0 2
29] utton 452 267 2103 2104 1 0 1
30] ext 285 327 37 2
31] ext 470 282 0 2
32] utton 452 287 2103 2104 1 0 1
33] ext 338 122 2 2
34] ext 470 302 0 2
35] ext 338 209 2 2
36] ext 470 322 0 2
37] ext 400 118 2 3
38] ext 470 342 0 3
39] ext 368 53 846 3
40] ext 470 362 0 3
41] ext 470 382 50 3
42] utton 452 387 2103 2104 1 0 1
Text: ____________
0] By Apocalipse
1] Escolha a cidade
2] para onde
3] deseja viajar:
4] 1
5] 1-Britain
6] 2
7] 2-Minoc
8] 3
9] 3-Vesper
10] 4
11] 4-Yew
12] 5
13] 5-Skara Brae
14] 6
15] 6-Jhelom
16] 7
17] 7-Trinsic
18] 8
19] 8-Buccaneer's Den
20] 9
21] 9-Occlo
22] 10
23] 10-Cove
24] 11
25] 11-Serpent's Hold
26] 12
27] 12-Nujel'm
28] 13
29] 13-Magincia
30] 14
31] 14-Moonglow
32] 15
33] 15-Ice Isle
34] 16-Commerce Room
Reply: ___________
[0010] primary reply
Checks&Radios (0)
Entryes (0)
paulinho4life
Posts: 45
Joined: 2004-07-20 00:14:10

Post by paulinho4life »

Thats it
omi4
Posts: 457
Joined: 2005-07-10 21:53:05

Post by omi4 »

[0010] (HEX) = 16 (DEC)

Code: Select all

sub click_button()
   UO.Recall(MyObject, 16)
endsub


or

Code: Select all

,recall MyObject 16
paulinho4life
Posts: 45
Joined: 2004-07-20 00:14:10

Post by paulinho4life »

it didnt work.. thats no a recall book, its a travel STONE. a Gump.
invalid objetic.
omi4
Posts: 457
Joined: 2005-07-10 21:53:05

Post by omi4 »

[0010] (HEX) = 16 (DEC)

Code: Select all

sub click_button()
   UO.Recall(serial_Travel_STONE, 16)
endsub


or

Code: Select all

,recall serial_Travel_STONE 16
paulinho4life
Posts: 45
Joined: 2004-07-20 00:14:10

Post by paulinho4life »

omi4 i tryed ,recall 0x4000f741 16 and it works only when i click at the stone.

But what im trying to do is to click at the stone, and leave the gump ate my screen and then hit the macro to any button of the gump only when i need it.

could you help me in that ?
Kynep
Expert!
Posts: 1348
Joined: 2006-02-07 08:51:40
Location: г. Старый Оскол
Contact:

Post by Kynep »

paulinho4life wrote:omi4 i tryed ,recall 0x4000f741 16 and it works only when i click at the stone.

But what im trying to do is to click at the stone, and leave the gump ate my screen and then hit the macro to any button of the gump only when i need it.

could you help me in that ?


Try this:

Code: Select all

sub run()
VAR stone=' ' #TYPE of the stone, NOT ID

UO.Set('finddistance','3')

UO.FindType(stone, '-1', 'ground')
If UO.FindCount() > 0 then
UO.Exec('recall finditem 16')
wait(1000)
else
UO.Print('No Stone Found')
endif
end sub
paulinho4life
Posts: 45
Joined: 2004-07-20 00:14:10

Post by paulinho4life »

Cooper... my english is bad but i will try to explain to you.



I can click at the stone, and leave the gump opened at my screen... and then i can go to another place far from the stone and leave the gump at the top of my screen...

i want to create a macro, to press the gump button whenever i need it. Like when im at the dungeon killing monsters os pvping...

sincerely Paul,
.
Kynep
Expert!
Posts: 1348
Joined: 2006-02-07 08:51:40
Location: г. Старый Оскол
Contact:

Post by Kynep »

paulinho4life wrote:Cooper... my english is bad but i will try to explain to you.



I can click at the stone, and leave the gump opened at my screen... and then i can go to another place far from the stone and leave the gump at the top of my screen...

i want to create a macro, to press the gump button whenever i need it. Like when im at the dungeon killing monsters os pvping...

sincerely Paul,
.


Then only coords click, like:

Code: Select all

UO.LClick(' ',' ') #Coords on screen to click
Edred
Expert!
Posts: 2544
Joined: 2004-04-03 17:36:29
Location: Saint-Petersburg

Post by Edred »

paulinho4life wrote:I can click at the stone, and leave the gump opened at my screen... and then i can go to another place far from the stone and leave the gump at the top of my screen...

i want to create a macro, to press the gump button whenever i need it. Like when im at the dungeon killing monsters os pvping...


Do you want open gump in another place (not near travelstone)? This is impossible. Injection cannot open gump, injection send packet about gump to server, server control your distance to tralvelstone and send to client packet about gump.
Ни один скрипт не работает? Пора обновить Инжект...
Все работает, но хочется большего? Пора переходить на стелс...
paulinho4life
Posts: 45
Joined: 2004-07-20 00:14:10

Post by paulinho4life »

how can i see the cords?

thanks everybody..
Edred
Expert!
Posts: 2544
Joined: 2004-04-03 17:36:29
Location: Saint-Petersburg

Post by Edred »

Injection --> Scripts --> Edit current script --> Pick coord
Ни один скрипт не работает? Пора обновить Инжект...
Все работает, но хочется большего? Пора переходить на стелс...
Post Reply