Author Topic: Finding an item by an atribute and not its ID  (Read 5306 times)

0 Members and 1 Guest are viewing this topic.

Offline NuscheltierTopic starter

  • Jr. Member
  • **
  • Posts: 38
  • Activity:
    0%
  • Reputation Power: 1
  • Nuscheltier has no influence.
  • Respect: +4
  • Referrals: 0
    • View Profile
Finding an item by an atribute and not its ID
« on: October 26, 2014, 12:56:07 PM »
0
Hi there,

I know this must be a trivial thing for you, but I couldnt find the command for it

I would like to just take out major and legendary artifacts of the corpses (as it is possible to do with trailmixs autolooter) with a simple gold looter script. However this script only allows to define the items by their three letter code...

what command do I need here ?

thx alot!

Offline NObama

  • Everything I need to know, I learned from Miffy's Item Finder.
  • Elite
  • *
  • *
  • Posts: 3454
  • Activity:
    0%
  • Reputation Power: 43
  • NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.
  • Respect: +161
  • Referrals: 2
    • View Profile
Re: Finding an item by an atribute and not its ID
« Reply #1 on: October 26, 2014, 12:56:39 PM »
0
#property and parse the string.

Offline NuscheltierTopic starter

  • Jr. Member
  • **
  • Posts: 38
  • Activity:
    0%
  • Reputation Power: 1
  • Nuscheltier has no influence.
  • Respect: +4
  • Referrals: 0
    • View Profile
Re: Finding an item by an atribute and not its ID
« Reply #2 on: October 26, 2014, 01:41:51 PM »
0
ok thank you :) but what do you mena by parse the string ? isnt it possible to just set the property in the "set %LootTypes POF"instead of the findID ?


Offline Crome969

  • Elite
  • *
  • *
  • Posts: 2098
  • Activity:
    0%
  • Reputation Power: 25
  • Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.
  • Gender: Male
  • UO Enthusiast
  • Respect: +211
  • Referrals: 10
    • View Profile
    • ScriptSDK
Re: Finding an item by an atribute and not its ID
« Reply #3 on: October 27, 2014, 05:50:35 AM »
0
ok thank you :) but what do you mena by parse the string ? isnt it possible to just set the property in the "set %LootTypes POF"instead of the findID ?

Event Property saves the Tooltip Data of an Item to #Property. For Linebreaks it uses $.
So an Item wich would be like :

MyItem
SUPERARTIFACT
Weight : 0

would be "MyItem $ SUPERARTIFACT $ Weight : 0".
In the World of development, this is called a String ( a Chain of Characters) and parsing describes to transform informations into suitable informations. In your case you need a suiteable method to check if "SUPERARTIFACT" is in the #Property after you used the Event Property onto it. You could look onto : http://www.easyuo.com/forum/viewtopic.php?f=2&t=4564&start=0

This is now almost only theory, iam out of euo scripting since 4 years
« Last Edit: October 27, 2014, 05:52:08 AM by Crome969 »

Offline NuscheltierTopic starter

  • Jr. Member
  • **
  • Posts: 38
  • Activity:
    0%
  • Reputation Power: 1
  • Nuscheltier has no influence.
  • Respect: +4
  • Referrals: 0
    • View Profile
Re: Finding an item by an atribute and not its ID
« Reply #4 on: October 27, 2014, 06:00:08 AM »
0
hi,

cheers for your answer, however until I would be able to write this sub and implement it into my goldlooter script, the haloween event would be over :) thanks anyway



Offline Crome969

  • Elite
  • *
  • *
  • Posts: 2098
  • Activity:
    0%
  • Reputation Power: 25
  • Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.
  • Gender: Male
  • UO Enthusiast
  • Respect: +211
  • Referrals: 10
    • View Profile
    • ScriptSDK
Re: Finding an item by an atribute and not its ID
« Reply #5 on: October 27, 2014, 06:28:29 AM »
0
hi,

cheers for your answer, however until I would be able to write this sub and implement it into my goldlooter script, the haloween event would be over :) thanks anyway




Code: [Select]
Sub IsHalloweenArtifact
event property %1
if artifact in #property 1
return #true
return #false

Snippet
Code: [Select]

IsHalloweenArtifact TESTID
if #Result = true
{
  ;run lootcode
}
else
{
 ;ignore
}


Untested but that could be your direction



Offline NuscheltierTopic starter

  • Jr. Member
  • **
  • Posts: 38
  • Activity:
    0%
  • Reputation Power: 1
  • Nuscheltier has no influence.
  • Respect: +4
  • Referrals: 0
    • View Profile
Re: Finding an item by an atribute and not its ID
« Reply #6 on: October 27, 2014, 06:39:39 AM »
0
I actually understand your code :o (at least that :) )

However I cant implement it in the script I use, because it seems as the sub for looting the gold and open the corpse are one and the same, so if I do another loop for looting the script will have allready closed the corpse

thx anyways

Offline The Ghost

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +245
  • Referrals: 0
    • View Profile
Re: Finding an item by an atribute and not its ID
« Reply #7 on: October 27, 2014, 11:09:38 AM »
0
The Doom artifact drop on your mainpack.   If you are trying to loot every Major artifact, will will loot lot of them.   I'm sure TM lotter can set  string to loot like
MR 3 && LCR 10  Not cursed. 

If you want to loot all the corpse  U can try OpenUO.  Kal Ex have one that empty the corpse in sec ok 5 sec and put it in bag.   

Offline NuscheltierTopic starter

  • Jr. Member
  • **
  • Posts: 38
  • Activity:
    0%
  • Reputation Power: 1
  • Nuscheltier has no influence.
  • Respect: +4
  • Referrals: 0
    • View Profile
Re: Finding an item by an atribute and not its ID
« Reply #8 on: October 27, 2014, 12:05:44 PM »
0
Hi there

well its not about the artis that drop into your backpack, its more about the lesser, greater, major and legendary artis. I tried trailMyx auto looter for that, but that leads to crashes about every 5 minutes becasue it seems not to be able to handle the tons of corpses in the guardian room...

cheers, Nuscheltier

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13301
  • Activity:
    0%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Finding an item by an atribute and not its ID
« Reply #9 on: October 27, 2014, 12:27:38 PM »
0
Most looters need you to stand still a bit until the looter is finished doing its thing.  Once you get into a rhythm, then the crashing will drop to nearly 0.  Just don't fight it.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline The Ghost

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +245
  • Referrals: 0
    • View Profile
Re: Finding an item by an atribute and not its ID
« Reply #10 on: October 27, 2014, 12:46:21 PM »
0
I wil have to assume that you ar running two script.
1) that Tm looter
2) auto attack

It that correct, your autoattack make the autolooter crash because you are trying to perform an action and interfer with the loorter.   I had the same problem until a someone point that fact to me.  Now I don't crash anymore. 

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13301
  • Activity:
    0%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Finding an item by an atribute and not its ID
« Reply #11 on: October 27, 2014, 12:53:58 PM »
0
I wil have to assume that you ar running two script.
1) that Tm looter
2) auto attack

It that correct, your autoattack make the autolooter crash because you are trying to perform an action and interfer with the loorter.   I had the same problem until a someone point that fact to me.  Now I don't crash anymore. 

There is a busy status indicator built into the looter that can be used to make any script play nicely with it.  Look through the CLAw thread to see information about TM_loot_in_progress.  Here's the code you can put into your code to basically wait until the looter is free:

Code: [Select]
  repeat
    namespace copy TM_loot_in_progress from global TM_loot
  until !TM_loot_in_progress <> #TRUE
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline NuscheltierTopic starter

  • Jr. Member
  • **
  • Posts: 38
  • Activity:
    0%
  • Reputation Power: 1
  • Nuscheltier has no influence.
  • Respect: +4
  • Referrals: 0
    • View Profile
Re: Finding an item by an atribute and not its ID
« Reply #12 on: October 27, 2014, 01:08:32 PM »
0
Yes indeed, Im running an autotargeter...

so should I put this code line at the end of my autotargeter ?

thank you !!

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13301
  • Activity:
    0%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Finding an item by an atribute and not its ID
« Reply #13 on: October 27, 2014, 01:22:16 PM »
0
Put the code in the autotarget script so that it prevents it from running if the CLAw is busy.  Probably in the main loop somewhere right before you target something.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13301
  • Activity:
    0%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Finding an item by an atribute and not its ID
« Reply #14 on: October 27, 2014, 03:01:39 PM »
0
If you want to have even finer control over the CLAw, you can turn it on and off:

To turn it off:
Code: [Select]
 set !TM_loot_enable #FALSE
  namespace copy TM_loot_enable to global TM_loot

To turn it on:
Code: [Select]
 set !TM_loot_enable #TRUE
  namespace copy TM_loot_enable to global TM_loot

Don't forget to turn it back on.. ;)
Please read the ScriptUO site RULES
Come play RIFT with me!

Tags: