[uosteam] help with skinning into resource bag script

Don't know how something works? Here you will find some useful links. And if you have a question, feel free to ask.
Post Reply
User avatar
nocturne7saint
Elder Scribe
Posts: 180
Joined: Thu May 30, 2019 9:32 pm

[uosteam] help with skinning into resource bag script

Post by nocturne7saint »

So I don't know how to build scripts with uosteam, Don't know where to start.

I need a script that will use a dagger to skin a corpse and place the hide in my resource bag.

I have found existing scripts that skin, but they also use scizzors to cut the hides, and i don't think the resource bag will hold cut leather.
blackstone from the ILV guild
User avatar
Eremite
Grandmaster Scribe
Posts: 96
Joined: Sat Jan 28, 2023 7:20 pm

Re: [uosteam] help with skinning into resource bag script

Post by Eremite »

I have one here, but it cuts the hides - I prefer to put them into the resource keys since they weigh 1 stone instead of 100. :D

https://github.com/Erumite/UOEX-Macros/ ... ody.groovy

I think that one will work but, you'd need to change the bits that use scissors. Example:

Code: Select all

// Cut up hides in pack to reduce weight.
while @findtype 0x1079 'any' 'backpack' 'any' 1
  @setalias 'hides' 'found'
  useobject 'scissors'
  waitfortarget 1000
  target! 'hides'
endwhile
This could be changed to:

Code: Select all

setalias 'resourcebag' 0x9999999 // The serial of your resource bag.
while @findtype 0x1079 'any' 'backpack' 'any' 1
  moveitem 'found' 'resourcebag'
endwhile
User avatar
nocturne7saint
Elder Scribe
Posts: 180
Joined: Thu May 30, 2019 9:32 pm

Re: [uosteam] help with skinning into resource bag script

Post by nocturne7saint »

I don't think I'm going to get anywhere trying to find scripts other people make to do what i need and want.

instead, could you give me some resources so i can learn how to script with uosteam? the only way I can get what i want and need would be to do it myself. the claimall part will just clutter up my backpack, so if i could learn to script myself, i could make scripts for just what i want and need.
blackstone from the ILV guild
Geriatric
Legendary Scribe
Posts: 234
Joined: Thu Dec 08, 2022 4:51 am

Re: [uosteam] help with skinning into resource bag script

Post by Geriatric »

i have a script that skins, loots the leather + scales, cuts the hides, and puts it onto keys
all inside of the resource bag
ive used a regular backpack and a HBOH, the macro works fine
User avatar
nocturne7saint
Elder Scribe
Posts: 180
Joined: Thu May 30, 2019 9:32 pm

Re: [uosteam] help with skinning into resource bag script

Post by nocturne7saint »

Geriatric wrote:
Thu May 11, 2023 2:43 am
i have a script that skins, loots the leather + scales, cuts the hides, and puts it onto keys
all inside of the resource bag
ive used a regular backpack and a HBOH, the macro works fine
that sounds exactly like what i need. Could you please post the script?
blackstone from the ILV guild
Geriatric
Legendary Scribe
Posts: 234
Joined: Thu Dec 08, 2022 4:51 am

Re: [uosteam] help with skinning into resource bag script

Post by Geriatric »

the first time you use the macro
it asks you to select which knife you use for skinning, which scissors for cutting and which keys to put the leather onto
i dont know how to do that little "code" box that other people have done

i just haave this macro bound to a key and after i kill a heap of skinnable mobs, one key press is one mob skinned
Last edited by Geriatric on Thu May 11, 2023 11:14 am, edited 1 time in total.
Geriatric
Legendary Scribe
Posts: 234
Joined: Thu Dec 08, 2022 4:51 am

Re: [uosteam] help with skinning into resource bag script

Post by Geriatric »

if not @findobject 'LootBag1'
headmsg 'Select a bag to store your hides and leather'
promptalias 'LootBag1'
endif
if not @findobject 'TailorKeys'
headmsg 'Select your tailor keys'
promptalias 'TailorKeys'
endif
if not @findalias 'knife1'
headmsg 'Which knife1 will you use?'
promptalias 'knife1'
endif
if not @findalias 'scissors'
headmsg 'Which scissors do you wish to use?'
promptalias 'scissors'
endif
if not listexists 'cutloot'
createlist 'cutloot'
pushlist 'cutloot' '0x1079' //leather
pushlist 'cutloot' '0xdf8' //wool
pushlist 'cutloot' '0x1bd1' //feather
endif
// cutting up and claiming corpses
if @findtype 0x2006 'any' 'ground' 'any' 2
setalias 'corpse' 'found'
useobject 'knife1'
waitfortarget 5000
@target 'corpse'
pause 800
useobject 'corpse'
pause 1200
// Looting hides
if @findtype 0x1079 'any' 'corpse' 'any' 2
while @findtype 0x1079 'any' 'corpse' 'any' 2
@movetype 0x1079 'corpse' 'LootBag1'
pause 800
endwhile
while @findtype 0x26b4 'any' 'corpse' 'any' 2
@movetype 0x26b4 'corpse' 'LootBag1'
pause 800
endwhile
msg '[claim'
waitingfortarget 5000
@target 'corpse'
waitingfortarget 5000
canceltarget
while @findtype 0x1079 'any' 'LootBag1' 'any' 2
useobject 'scissors'
waitfortarget 5000
@target 'found'
pause 800
endwhile
else
msg '[claim'
waitfortarget 5000
@target 'corpse'
waitfortarget 5000
canceltarget
endif
// putting leather in keys
while @findtype 0x1081 'any' 'LootBag1' 'any' 2
useobject 'TailorKeys'
waitforgump 1106836505 5000
replygump 0x41f8fc19 60029
waitforgump 1106836505 5000
waitfortarget 15000
@target 'found'
waitforgump 1106836505 5000
replygump 0x41f8fc19 0
waitfortarget 5000
canceltarget
endwhile
while @findtype 0x26b4 'any' 'LootBag1' 'any' 2
useobject 'TailorKeys'
waitforgump 1106836505 5000
replygump 0x41f8fc19 60029
waitforgump 1106836505 5000
waitfortarget 15000
@target 'found'
waitforgump 1106836505 5000
replygump 0x41f8fc19 0
waitfortarget 5000
canceltarget
endwhile
endif
GreenBar
Grandmaster Scribe
Posts: 92
Joined: Sat Sep 28, 2013 4:05 pm

Re: [uosteam] help with skinning into resource bag script

Post by GreenBar »

nocturne7saint wrote:
Thu May 11, 2023 2:18 am
I don't think I'm going to get anywhere trying to find scripts other people make to do what i need and want.

instead, could you give me some resources so i can learn how to script with uosteam? the only way I can get what i want and need would be to do it myself. the claimall part will just clutter up my backpack, so if i could learn to script myself, i could make scripts for just what i want and need.
Do you have the UOSteam macro document? It's in PDF form

https://github.com/her/uosteam/blob/mas ... tation.pdf
User avatar
Eremite
Grandmaster Scribe
Posts: 96
Joined: Sat Jan 28, 2023 7:20 pm

Re: [uosteam] help with skinning into resource bag script

Post by Eremite »

nocturne7saint wrote:
Thu May 11, 2023 2:18 am
I don't think I'm going to get anywhere trying to find scripts other people make to do what i need and want.

instead, could you give me some resources so i can learn how to script with uosteam? the only way I can get what i want and need would be to do it myself. the claimall part will just clutter up my backpack, so if i could learn to script myself, i could make scripts for just what i want and need.
I have that PDF downloaded and refer to it pretty frequently. If you enjoy coding, it's a pretty powerful language, but has some pretty distinct limitations in certain areas.

I'm actually considering switching over to either [Razor Enhanced](https://razorenhanced.net/) or Orion soon since you have much more powerful scripting options there.

Some quick stuff off the top of my head that will help with some confusion in UOS macros:

Starting a command with @ will suppress messages in the system log - saves some spamming. (works on functions that are red-colored in the editor)
Adding a ! to the end of a target command (target, targettype, etc) will target the item directly and will skip the targeting queue - you nearly always want this in my experience.

If you have an editor that supports syntax highlighting, I've found that `groovy` is pretty good for highlighting.

Try makin' something basic and then expand from there. :D
Post Reply