Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Mining Macro 20 Oct 2022 16:39 #1

  • chaskuoi
  • chaskuoi's Avatar Topic Author
  • Offline
  • UOIReborn STAFF
  • UOIReborn STAFF
  • Posts: 1795
  • Karma: 152
  • Thank you received: 637
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.
//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
The following user(s) said Thank You: Stregatta

Please Log in to join the conversation.

Last edit: by chaskuoi.

Mining Macro 15 Jul 2023 21:32 #2

  • 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.

  • Page:
  • 1
Moderators: YgrituoiOwlUOIShadowUOI
Time to create page: 0.150 seconds