Page 1 of 1

[EasyUO] Stag Trophy Eval

Posted: Wed Feb 05, 2014 12:22 am
by Xavian
Excel Stag Calculator = Good tool.

I took it one step lazier.. This script will:
Determine the score of a trophy in your main pack.
Open a corpse and search for a trophy.
Evaluate a trophy if found.
Display the score of the trophy on the corpse, if found.
Let you know to loot if it is higher.
Will tell you compare trophy if the score is the same.
-- The higher the last digit on the weight, the better trophy if scores are the same

I don't know if there is a way to use decimals for the weight or not, nor do I care enough to investigate as it works fine the way it is.

Code: Select all

set %CurrentHigh 0
finditem BLL C_ , #BackpackID
If #FindCNT > 0
    goto Eval

Top:
Finditem YFM G_2 ; Look for corpses on the ground
If #FindCNT > 0
{
set #LObjectID #FindID
set %CorpseID #FindID
event macro 17 0
ignoreitem #FindID
wait 10

finditem BLL C_
If #FindCNT > 0
{
  Eval:
  Event Property #findID
  set %MountID #FindID
  gosub extract #PROPERTY Weighing , #spc #spc Weight
  set %WeightPoints %Weight / 10
  gosub extract #PROPERTY With , #spc #spc Rack
  set %RackPoints %Rack
  if Poor in #Property
    set %QualityPoints 10
  if Fair in #Property
    set %QualityPoints 15
  if Average in #Property
    set %QualityPoints 20
  if Above in #Property
    set %QualityPoints 25
  if Superior in #Property
    set %QualityPoints 30
  if Peerless in #Property
    set %QualityPoints 35
    
  set %TotalPoints %WeightPoints + %RackPoints + %QualityPoints
  event ExMsg %CorpseID 0 0 Total Points: %TotalPoints
  if %TotalPoints = %CurrentHigh
    event ExMsg %CorpseID 0 0 Compare Mounts
  if %TotalPoints > %CurrentHigh
  {
    set %CurrentHigh %TotalPoints
    event ExMsg %CorpseID 0 0 Loot Mount
  }
  ignoreitem %MountID
}

}
wait 10
Goto Top

sub extract
{
    set %weaponString %1
    set %leftOf %2
    set %rightOf %3

     str Pos %weaponString %leftOf
      set %tempPos #STRRES

      str Len %leftOf
      set %tempPos %tempPos + #STRRES - 1

      str Del %weaponString 1 %tempPos
    set %weaponString #STRRES

      str Pos %weaponString %rightOf
      set %tempPos #STRRES - 1

      str Left %weaponString %tempPos
      set % . %4 #STRRES

      return
}

Re: Stag Trophy Eval

Posted: Wed Feb 05, 2014 1:45 pm
by JimTheDM
What Program is this for? EasyUO or OpenUO?

Re: Stag Trophy Eval

Posted: Wed Feb 05, 2014 2:47 pm
by Xavian
EasyUO

Re: [EasyUO] Stag Trophy Eval

Posted: Wed Feb 05, 2014 8:00 pm
by ahorton12
this doesnt seem to be working for me, is there any code that i manually need to enter to get this to check my pack? check corpses?

Re: [EasyUO] Stag Trophy Eval

Posted: Wed Feb 05, 2014 9:47 pm
by Xavian
There shouldn't be anything you would need to do. They are all standard values, nothing character or account specific. What does it do when you attempt to use it?

Re: [EasyUO] Stag Trophy Eval

Posted: Wed Feb 05, 2014 10:15 pm
by ahorton12
it does nothing, i have a stag trophy in my pack and i click play n nothing happens

Re: [EasyUO] Stag Trophy Eval

Posted: Wed Feb 05, 2014 10:19 pm
by Xavian
It doesn't do anything obvious when you hit play. Have you tried running it while killing stuff?

Re: [EasyUO] Stag Trophy Eval

Posted: Wed Feb 05, 2014 11:50 pm
by ahorton12
its working while killing stuff, just not counting my bag, ill have to look into setting it up to just click a hotkey and have it count whatever i click on. works good while killing stuff but i gotta turn my auto looter off to use it. otherwise autolooter trumps it in timing.

Re: [EasyUO] Stag Trophy Eval

Posted: Thu Feb 06, 2014 10:50 am
by Xavian
It counts your bag, just doesn't let you know that it is doing so. It stores the value of the mount in your pack to compare with any mount on the corpse. I thought about adding a hotkey function, but didn't care enough as this works just fine the way it is for me.