Discussion in   Coding Corner   started     7 years ago   September 14, 2016, 09:57:39 PM   by   Mandar

Help with UOSteam Script Loot sorting

Mandar
Offline
44 Posts
Topic :   Help with UOSteam Script Loot sorting
7 years ago  September 14, 2016, 09:57:39 PM

I never really messed with macro's that much but saw one that thought would be helpful in sorting/cleaning out treasure chests or corpses.  If there is someone who is willing to take a look at what I have, that would be great.  I'm using sorting script thats on this forum as a base and have tweaked it with no success. Please send me a message if scripting is something you enjoy and are willing to help...I can send what I have.  TY

Smilingdeath
Offline
275 Posts
#1 Re :   Help with UOSteam Script Loot sorting
7 years ago  September 15, 2016, 07:09:32 PM

If you use UOSteam, I built an Oganiser mor the things I want from the TMap/SOS Chests.  Bound it to a hot key that turns it on and off as I need it.  Also works for any type of chest in the open world or puzzle chests or dungeon chest.

Zoe
Offline
7 Posts
#2 Re :   Help with UOSteam Script Loot sorting
7 years ago  September 16, 2016, 09:38:13 AM


Here is a sorting macro from our uosteam script library, this might give you a reference to work out the code for your macros

http://uoevolution.com/forum/index.php?topic=7706.msg21974#msg21974

Mandar
Offline
44 Posts
#3 Re :   Help with UOSteam Script Loot sorting
7 years ago  September 16, 2016, 12:20:02 PM

Thank you Zoe.  I am using this as my core since a lot of the script is there.  I just added auto lockpick and now trying to figure out how/where to add telekenisis or magic untrap..to untrap the chest.... I may have to take a class at the community college.

Mandar
Offline
44 Posts
#4 Re :   Help with UOSteam Script Loot sorting
7 years ago  September 16, 2016, 12:31:04 PM

Here is part of my macro to unlock it first.  But now I want to untrap it or telekinesis it before going on to the sorting part.  Shouldn't be as easy as adding 'useobject' or cast 'telekinesis'??


//Target object to unlock
promptalias 'lockeditem'
@clearjournal
//Keep trying to unlock until successful
while not @injournal 'This does not appear lock quickly yeilds'
  if @findtype 0x14fc 'any' 'backpack'
    useobject 'found'
    waitfortarget 1500
    target! 'lockeditem'
    pause 600
     endwhile

Smilingdeath
Offline
275 Posts
#5 Re :   Help with UOSteam Script Loot sorting
7 years ago  October 10, 2016, 09:53:37 PM

Why not use the remove trap skill instead of casting a spell? Or simply open it and use a bandage to heal up, the traps are not that damaging.


I know it would take longer if you were not successful, with the remove trap skill. And the spell or just opening would be a lot faster.


Still waiting for when Kane starts coding higher end traps that are immune to spells or use lethal traps. Would make having a remove trap suit useful at least.


Let me see what I can figure out though and I will post it here.

Mandar
Offline
44 Posts
#6 Re :   Help with UOSteam Script Loot sorting
7 years ago  October 11, 2016, 07:38:19 AM

Yeah, your right. I tend to over complicate things then try to figure them out. It's just part of the game I enjoy.  Higher level traps would be very cool! 


Sent from my iPhone using Tapatalk

Smilingdeath
Offline
275 Posts
#7 Re :   Help with UOSteam Script Loot sorting
7 years ago  October 11, 2016, 11:49:51 AM

Have you tried casting the spell before it is unlocked?


Then you could use the same target as the lockpicking portion of the macro.


I will hop in game shortly and see if it works.