Mining Macro
- chaskuoi
-
Topic Author
- Away
- 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.
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.
- PicoMarzio
-
- Offline
- 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ù.
//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


