忍者ブログ

ShuU's UltimaOnline Blog

「ウルティマオンライン,UlimaOnline,UO」に関する個人的な記録、情報、無駄話のブログ

ガーデニング収穫マクロ

突然変異色を狙って緑のトゲを量産する日々。
しかし収穫が大変面倒な作業でマクロ化を調査した。
(オンライン検索で……)

未だ途中ではあるが、ターゲットと収穫までは分かった。

1つ目は対象の植物をターゲットするマクロ。
これで以降の操作をターゲットに対して行えるようになる。

2つ目が資源収穫→種収穫→観葉植物化の自動マクロ。
非常に長いので、分かる人には分かるテキストをペタリ。
<UserAction type="UserCommand" id="5450" iconId="870150" targetType="Cursor" text="script HandleSingleLeftClkTarget( Interface.DefaultObject1 )" />
<UserAction type="Delay" id="0" iconId="623" targetType="Cursor" delay="0.50" />
<UserAction type="UseTargetedObject" id="0" iconId="646" targetType="Cursor" />
<UserAction type="Delay" id="0" iconId="623" targetType="Cursor" delay="0.50" />
<UserAction type="UserCommand" id="0" iconId="790" targetType="Cursor" text="script GumpsParsing.PressButton(29842,1)" />
<UserAction type="Delay" id="0" iconId="623" targetType="Cursor" delay="0.50" />
<UserAction type="UserCommand" id="0" iconId="790" targetType="Cursor" text="script GumpsParsing.PressButton(22222,6)" />
<UserAction type="Delay" id="0" iconId="623" targetType="Cursor" delay="0.50" />
<UserAction type="UserCommand" id="0" iconId="790" targetType="Cursor" text="script GumpsParsing.PressButton(22222,6)" />
<UserAction type="Delay" id="0" iconId="623" targetType="Cursor" delay="0.50" />
<UserAction type="UserCommand" id="0" iconId="790" targetType="Cursor" text="script GumpsParsing.PressButton(22222,6)" />
<UserAction type="Delay" id="0" iconId="623" targetType="Cursor" delay="0.50" />
<UserAction type="UserCommand" id="0" iconId="790" targetType="Cursor" text="script GumpsParsing.PressButton(22222,6)" />
<UserAction type="Delay" id="0" iconId="623" targetType="Cursor" delay="0.50" />
<UserAction type="UserCommand" id="0" iconId="790" targetType="Cursor" text="script GumpsParsing.PressButton(22222,6)" />
<UserAction type="Delay" id="0" iconId="623" targetType="Cursor" delay="0.50" />
<UserAction type="UserCommand" id="0" iconId="790" targetType="Cursor" text="script GumpsParsing.PressButton(22222,6)" />
<UserAction type="Delay" id="0" iconId="623" targetType="Cursor" delay="0.50" />
<UserAction type="UserCommand" id="0" iconId="790" targetType="Cursor" text="script GumpsParsing.PressButton(22222,6)" />
<UserAction type="Delay" id="0" iconId="623" targetType="Cursor" delay="0.50" />
<UserAction type="UserCommand" id="0" iconId="790" targetType="Cursor" text="script GumpsParsing.PressButton(22222,6)" />
<UserAction type="Delay" id="0" iconId="623" targetType="Cursor" delay="0.50" />
<UserAction type="UserCommand" id="0" iconId="790" targetType="Cursor" text="script GumpsParsing.PressButton(22222,7)" />
<UserAction type="Delay" id="0" iconId="623" targetType="Cursor" delay="0.50" />
<UserAction type="UserCommand" id="0" iconId="790" targetType="Cursor" text="script GumpsParsing.PressButton(22222,7)" />
<UserAction type="Delay" id="0" iconId="623" targetType="Cursor" delay="0.50" />
<UserAction type="UserCommand" id="0" iconId="790" targetType="Cursor" text="script GumpsParsing.PressButton(22222,7)" />
<UserAction type="Delay" id="0" iconId="623" targetType="Cursor" delay="0.50" />
<UserAction type="UserCommand" id="0" iconId="790" targetType="Cursor" text="script GumpsParsing.PressButton(22222,7)" />
<UserAction type="Delay" id="0" iconId="623" targetType="Cursor" delay="0.50" />
<UserAction type="UserCommand" id="0" iconId="790" targetType="Cursor" text="script GumpsParsing.PressButton(22222,7)" />
<UserAction type="Delay" id="0" iconId="623" targetType="Cursor" delay="0.50" />
<UserAction type="UserCommand" id="0" iconId="790" targetType="Cursor" text="script GumpsParsing.PressButton(22222,7)" />
<UserAction type="Delay" id="0" iconId="623" targetType="Cursor" delay="0.50" />
<UserAction type="UserCommand" id="0" iconId="790" targetType="Cursor" text="script GumpsParsing.PressButton(22222,7)" />
<UserAction type="Delay" id="0" iconId="623" targetType="Cursor" delay="0.50" />
<UserAction type="UserCommand" id="0" iconId="790" targetType="Cursor" text="script GumpsParsing.PressButton(22222,7)" />
<UserAction type="Delay" id="0" iconId="623" targetType="Cursor" delay="0.50" />
<UserAction type="UserCommand" id="0" iconId="790" targetType="Cursor" text="script GumpsParsing.PressButton(22222,8)" />
<UserAction type="Delay" id="0" iconId="623" targetType="Cursor" delay="0.50" />
<UserAction type="UserCommand" id="0" iconId="790" targetType="Cursor" text="script GumpsParsing.PressButton(42422,1)" />
<UserAction type="Delay" id="0" iconId="623" targetType="Cursor" delay="0.50" />
<UserAction type="Bow" id="0" iconId="622" targetType="Cursor" />

最初の4行が植物を世話するパネルの表示まで。
待機時間を入れないと誤動作するので、0.5秒を設定。
サーバーとの同期失敗を嫌って長めに時間を設定した。
うまく動く環境ならば、もっと短くて良いはず。

「PressButton(29842,1)」で受粉や収穫のパネルを表示。
あとは「PressButton(22222,6)」で資源を収穫。
「PressButton(22222,7)」で種を収穫という流れ。

「PressButton(22222,8)」で観葉植物化のパネルを表示。
「PressButton(42422,1)」で観葉植物化が完了する。

使うときには必ずターゲット用マクロで対象をポチる!

あとは収穫用マクロで10秒も待てば観葉植物化まで終わる。

少しのことにも、先達はあらまほしき事なりとは言うが、
ウィンドウIDとボタンIDって、どうやって調べるんだろう?

拍手[1回]

PR

コメント

2008.03.14

ブログ開設(移設)

QRコード

カレンダー

04 2024/05 06
S M T W T F S
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31

2D クライアント

 

(解説マンガ付き)

ゲームタイム180日分

 

ゲームタイム 30日分

 

Copyright

©Electronic Arts Inc. Ultima, the UO logo, Britannia, EA GAMES and the EA GAMES are trademarks or registered trademarks of Electronic Arts Inc. in the U.S. and/or other countries. All rights reserved.

---