Benvenuto, Ospite
Nome utente: Password: Ricordami
  • Pagina:
  • 1

ARGOMENTO:

Mining Macro 20/10/2022 16:39 #1

  • chaskuoi
  • Avatar di chaskuoi Autore della discussione
  • Offline
  • UOIReborn STAFF
  • UOIReborn STAFF
  • Messaggi: 1794
  • Karma: 152
  • Ringraziamenti ricevuti 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
Ringraziano per il messaggio: Stregatta

Si prega Accedi a partecipare alla conversazione.

Ultima Modifica: da chaskuoi.

Mining Macro 15/07/2023 21:32 #2

  • PicoMarzio
  • Avatar di PicoMarzio
  • Offline
  • Junior
  • Junior
  • ElKiller Since 2008 UOI Purist Since 2002
  • Messaggi: 21
  • Ringraziamenti ricevuti 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.

Questa immagine è nascosta per gli ospiti.
Effettua il login o registrati per vederlo.

Si prega Accedi a partecipare alla conversazione.

  • Pagina:
  • 1
Moderatori: YgrituoiOwlUOIShadowUOI
Tempo creazione pagina: 0.146 secondi