Discussion about the technical aspects of scripting. Ask about all issues involving your freelance projects here.
Fiernocht
Legendary Scribe
Posts: 427 Joined: Thu Nov 11, 2010 2:13 pm
Post
by Fiernocht » Tue Jun 23, 2015 7:27 pm
hey all if anyone who is familiar with UO Steam, id like to request a bit of help. I have this macro that skins and loots the hides and gold from corpses, what I am needing some help with is how to add scales of all colors to the loot portion of this scrip. below it is posted
Code: Select all
//you need dagger and scissors in backpack
//auto loot may not work on your server !
//also loots feather's and gold
if not @findtype '0x2006' 'any' 'ground' '1' '2'
sysmsg ' ******No Corpse Found******' '28'
stop
else
@setalias! 'o' 'found'
endif
if not @findtype '0xf52' 'any' 'backpack'
sysmsg '*****No dagger*****' '25'
stop
else
@usetype! '0xf52' 'any' 'backpack'
waitfortarget '5000'
target! 'o'
pause 600
endif
if @findtype! '0x1079' 'any' 'o' 'any' '2'
@movetype '0x1079' 'o' 'backpack'
pause 2000
@usetype! '0xf9f' 'any' 'backpack'
waitfortarget '2000'
targettype '0x1079' 'any' 'backpack'
pause 600
endif
if @findtype! '0x1bd1' 'any' 'o' 'any' '2'
@movetype '0x1bd1' 'o' 'backpack'
pause 1000
endif
if @findtype! '0xeed' 'any' 'o' 'any' '2'
@movetype '0xeed' 'o' 'backpack'
pause 1000
endif
if @findtype! '0xf26' 'any' 'o' 'any' '2'
@movetype '0xf26' 'o' 'backpack'
pause 1000
endif
ignoreobject 'o'
sysmsg 'Corpse Now Ignored' '25'
pause '1500'
this macro works wonders. just set it to a hotkey, smash mobs, hit key, when done hit organizer set up to your BoH. feel free to take this and use it.
“No tree, it is said, can grow to heaven unless its roots reach down to hell.”
― C.G. Jung
Fiernocht
Legendary Scribe
Posts: 427 Joined: Thu Nov 11, 2010 2:13 pm
Post
by Fiernocht » Wed Jun 24, 2015 5:11 pm
bump for assistance!
“No tree, it is said, can grow to heaven unless its roots reach down to hell.”
― C.G. Jung
RaeZon
Expert Scribe
Posts: 38 Joined: Mon Feb 04, 2013 9:38 pm
Location: Los Angeles, California
Post
by RaeZon » Wed Jun 24, 2015 8:50 pm
Did this on the fly at the office, the few tests I did worked for me.
Code: Select all
//you need dagger and scissors in backpack
//auto loot may not work on your server !
//also loots feather's and gold
if not @findtype '0x2006' 'any' 'ground' '1' '2'
sysmsg ' ******No Corpse Found******' '28'
stop
else
@setalias! 'o' 'found'
endif
if not @findtype '0xf52' 'any' 'backpack'
sysmsg '*****No dagger*****' '25'
stop
else
@usetype! '0xf52' 'any' 'backpack'
waitfortarget '5000'
target! 'o'
pause 600
endif
if @findtype! '0x1079' 'any' 'o' 'any' '2'
@movetype '0x1079' 'o' 'backpack'
pause 2000
@usetype! '0xf9f' 'any' 'backpack'
waitfortarget '2000'
targettype '0x1079' 'any' 'backpack'
pause 600
endif
if @findtype! '0x1bd1' 'any' 'o' 'any' '2'
@movetype '0x1bd1' 'o' 'backpack'
pause 1000
endif
if @findtype! '0xeed' 'any' 'o' 'any' '2'
@movetype '0xeed' 'o' 'backpack'
pause 1000
endif
if @findtype! '0xf26' 'any' 'o' 'any' '2'
@movetype '0xf26' 'o' 'backpack'
pause 1000
endif
if @findtype! '0x26b4' 'any' 'o' 'any' '2'
@movetype '0x26b4' 'o' 'backpack'
pause 1000
endif
ignoreobject 'o'
sysmsg 'Corpse Now Ignored' '25'
pause '1500'
The Chosen One - Alt IGN: Thomas Marshal