Ultima Online Italia RebornAssistUORunUO

file Mining Macro

Mining Macro 20 Oct 2022 16:39 #74320
  • chaskuoi
  • chaskuoi's Avatar Topic Author
  • Away
  • UOIReborn STAFF
  • UOIReborn STAFF
  • Posts: 1809
  • Thank you received: 620
Questa macro vi farà selezionare un piccone ed un packhorse che sarà li con voi, poi provvederà a usare il piccone sulla vostra locazione, se durante il mine verrà tirato fuori un minerale, questo verrà messo dentro il packhorse...
A fine giro, se siete ancora vivi, provvederà a muovervi random di un tile.
Code:
//those are the directions available if not listexists 'directions'   createlist 'directions'   pushlist 'directions' 'north'   pushlist 'directions' 'northeast'   pushlist 'directions' 'east'   pushlist 'directions' 'southeast'   pushlist 'directions' 'south'   pushlist 'directions' 'southwest'   pushlist 'directions' 'west'   pushlist 'directions' 'northwest' endif //select the packhorse to place ores into if not @findalias 'PackHorse'   promptalias 'PackHorse' endif //select the pickaxe to use for mining if not @findalias 'Piccone'   promptalias 'Piccone' endif //if we are not dead we will do this while not dead  //get a number from 0 to 7 and save it in alias 'rnd' random 8 //use the pickaxe and target on your exact location useobject 'Piccone' waitfortarget 2000 targettileoffset 0 0 0 //4 sec pause pause 4000 if counttype 0x19b9 'any' 'backpack' > 0   movetype 0x19b9 'backpack' 'PackHorse' endif //pause half of a second pause 500 //RND is the result of random 8 as an alias, so we get a random direction and move toweard it walk directions[rnd] endwhile sysmsg 'Sei morto!' stop
Last edit: 03 Nov 2023 22:25 by chaskuoi.
The following user(s) said Thank You: Stregatta

Please Log in to join the conversation.

Mining Macro 15 Jul 2023 21:32 #74443
  • PicoMarzio
  • PicoMarzio's Avatar
  • Offline
  • Junior
  • Junior
  • ElKiller Since 2008 UOI Purist Since 2002
  • Posts: 21
  • Thank you received: 0
La macro mi fa andare in crash Uo, l'ho dovuta modificare così:
//those are the directions availableif not listexists 'directions'
  createlist 'directions'
  pushlist 'directions' 'north'
  pushlist 'directions' 'northeast'
  pushlist 'directions' 'east'
  pushlist 'directions' 'southeast'
  pushlist 'directions' 'south'
  pushlist 'directions' 'southwest'
  pushlist 'directions' 'west'
  pushlist 'directions' 'northwest'
//select the pickaxe to use for mining
if not @findalias 'Piccone'
  promptalias 'Piccone'
endif
//if we are not dead we will do this
while not dead 
//get a number from 0 to 7 and save it in alias 'rnd'
random 8
//use the pickaxe and target on your exact location
useobject 'Piccone'
waitfortarget 2000
targettileoffset 0 0 0
//4 sec pause
pause 4000
if counttype 0x19b9 'any' 'backpack' > 0
endif
//pause of a second
pause 1000
//RND is the result of random 8 as an alias, so we get a random direction and move toweard it
walk directions[rnd]
endwhile
sysmsg 'Sei morto!'
stop

Senza cavallo funziona perfettamente e con mezzo secondo di delay in più.

Sciocco è chi non teme nulla e dichiara di conoscere tutto.

This image is hidden for guests.
Please log in or register to see it.

Please Log in to join the conversation.

Moderators: OwlUOI
Time to create page: 0.093 seconds
Powered by Kunena Forum
Screenshot ingrandito
Immagine 1 di 12

Privacy preferences

We use essential cookies. With your permission, we use Google Analytics for statistics and YouTube for videos. Closing with the X keeps only essential cookies.

Loading preferences. If the controls do not respond, reload the page. Optional services remain disabled.