ScriptUO

Official ScriptUO EasyUO Scripts => Script Library => Gold Farming => Topic started by: TrailMyx on June 20, 2009, 02:00:11 PM

Title: Trailmyx's Artifact Monitor
Post by: TrailMyx on June 20, 2009, 02:00:11 PM
Code: [Select]
;=================================================================
; Script Name: TrailMyx's Artifact Monitor
; Author: TrailMyx
; Version: 1.00
; Shard OSI / FS: OSI / FS OK
; Revision Date: 9/29/2007
; Purpose: Monitor the addition of special artifacts in your pack
; Globals:
; Special Thanks:
;   C2, Toptwo
;
;=================================================================

This script will alert you when a special artifact appears in your main backpack.  If you are looting normally, you should be looting to a sub-pack, otherwise when the script check what was dropped, it will add any new items found and these might not be artifacts.  Even gold, so be sure you start out with a stack of gold in your pack or anything else you might be looting that's stackable.
Title: Re: Trailmyx's Artifact Monitor
Post by: Khameleon on June 20, 2009, 03:10:31 PM
wow it looks real nice.. running it now.. I just got an arti.. So it might be a min before I get my next one
Title: Re: Trailmyx's Artifact Monitor
Post by: rana70 on June 20, 2009, 11:47:08 PM
Hi TM,

nice log script !!!

2 Ideas I have ;-)

1st
What do you think about just to filter out Gold from Displaying ?
Because everytime you use a BOS you have a new line of Gold in the Log
or use the information about a "new" stack of Gold to log the use of the BOS Time :-)

2nd
Add a row with the Finding Time to each item ... just to watch times

Thx and cu
Title: Re: Trailmyx's Artifact Monitor
Post by: TrailMyx on June 21, 2009, 12:43:17 AM
Ah, good idea filtering the gold out.  I'll add that.  Frankly, I threw this together in about 10 minutes with the UI.  Originally it just did a "display" when an arti popped in.  :)

So perhaps you want something like:

Artifact Name --> 20 min
Another Artifact --> 30 min

Just append the find time to the text displayed arti in the box?
Title: Re: Trailmyx's Artifact Monitor
Post by: Khameleon on June 21, 2009, 12:50:47 AM
that sounds like a winner :)
Title: Re: Trailmyx's Artifact Monitor
Post by: TrailMyx on June 21, 2009, 12:58:23 AM
Ok, look for the next version.  I added a variable so that if you find something else you want to exclude, you can add it as well.  Also I converted the time to M:SS format.
Title: Re: Trailmyx's Artifact Monitor
Post by: Khameleon on June 21, 2009, 01:44:47 AM
Thanks TM, that worked great...
I did make a little change.. I duno if everyone wants it.. I found your BOS sub, and added it in, so now every time I get a new artifact it sends it strait to the bank.
Title: Re: Trailmyx's Artifact Monitor
Post by: TrailMyx on June 21, 2009, 02:06:40 AM
What's your average time between drops?
Title: Re: Trailmyx's Artifact Monitor
Post by: rana70 on June 21, 2009, 02:09:18 AM
Thanks TM, that worked great...
I did make a little change.. I duno if everyone wants it.. I found your BOS sub, and added it in, so now every time I get a new artifact it sends it strait to the bank.


I like that idea a lot .. but not sure if it will interfer to much with other running scripts
if not .. just an option button in main display to turn it on/off would be great I guess


btw .. there is a minor glitch in time display
1st arti 7:57
2nd arti 13:38
3rd arti 0:01
4th arti 16:50

I guess it is related to the re-start of other scripts while yours is still running
cu
Title: Re: Trailmyx's Artifact Monitor
Post by: Khameleon on June 21, 2009, 02:11:49 AM
its actualy interfering with c2's farmer.. he's already got a bos in his script so I'm just going to use that but I need a list of the id's ;/ unless I can figure out a way to send it over through namespace
Title: Re: Trailmyx's Artifact Monitor
Post by: Khameleon on June 23, 2009, 03:55:06 PM
ugg, I can't figure out how to keep the BOS unignored and keep it from apearing in the list when an artifact is spawned
Title: Re: Trailmyx's Artifact Monitor
Post by: Cerveza on June 25, 2009, 05:01:28 PM
It says "Platemail Arms --> 3:59 but it's really Silver Pigment....
Title: Re: Trailmyx's Artifact Monitor
Post by: TrailMyx on June 25, 2009, 05:12:11 PM
Dunno, finditem is finditem.  *shrugs*  Timing I suppose?  This script doesn't even look at item types.  Just what happens to appear in your pack.
Title: Re: Trailmyx's Artifact Monitor
Post by: Cerveza on June 25, 2009, 05:39:15 PM
LOL, platemail arms did not appear in my pack. Maybe on the corpse I was looting. Definately pigments.

Oh and chest of heirlooms didn't show at all... of course I was killing 10 at a time, and all the karma, highest path, etc... messages were flying by.

Probably not the best way to notify at a champ spawn... too many journal messages.
Title: Re: Trailmyx's Artifact Monitor
Post by: TrailMyx on June 25, 2009, 05:45:36 PM
Well, journal isn't involved.  I've noticed that when there's multiple scripts that both use events, this causes strange results.  Same thing happens with the Totalizer.  Any other scripts running and it can impact the function.  Dunno, but I'm assuming you are running the CLAw as well.  You might must stop looting with the claw and do a quick script to just loot gold that doesn't use event property.
Title: Re: Trailmyx's Artifact Monitor
Post by: TrailMyx on June 25, 2009, 06:04:58 PM
You might actually put in the check to determine if the CLAw is active.  I didn't even think about it.
Title: Re: Trailmyx's Artifact Monitor
Post by: Cerveza on June 25, 2009, 08:04:20 PM
I was running CLAw at the same time, they probably got confused.
Title: Re: Trailmyx's Artifact Monitor
Post by: TrailMyx on June 25, 2009, 08:08:20 PM
If I get a second tonight, I'll stick in the global variable monitor for the CLAw and the Healer.  I didn't really think that someone would be running a looter at the same time since they kinda loot themselves.
Title: Re: Trailmyx's Artifact Monitor
Post by: Cerveza on June 25, 2009, 08:56:31 PM
Those Tsuki Wolves have decent loot, I was taking gold and a few items the same time as the arty checker. I'll bet that CLAw was evaluating when the arty detected, and it got swapped into the current item.

It's really no biggie. The arty checker did exactly what it was supposed to, and it's not important at all what items it is... unless CLAw is evaluating a Mempo :O
Title: Re: Trailmyx's Artifact Monitor
Post by: Cerveza on July 05, 2009, 04:26:06 PM
I changed one line....

from:
Code: [Select]
menu list add EUOListBox1 #RESULT , #SPC , --> , #SPC , %time
to:
Code: [Select]
menu list add EUOListBox1 #RESULT , #SPC , --> , #SPC , %time , #SPC , #time
So I can see when I last got one, and guesstimate when the next should drop.
Title: Re: Trailmyx's Artifact Monitor
Post by: YnojY on July 25, 2009, 08:08:29 AM
legal
Title: Re: Trailmyx's Artifact Monitor
Post by: Terathel on October 25, 2009, 07:44:00 PM
Hey TrailMyx, what's up?

I'm having some trouble using this script that I have modded a little.

I want to use it for alerting me about paragon artifacts and insure it after.

The only thing I changed besides the insure function is this:

Quote
 gosub TM_AdvJournalScan artiscan VALID_ADVANCE slaying_the_mighty

The problem is that it doesn't find the message about the artifact, which is weird cause Razor is getting the SysMessage normally.


Do you have any idea of what is happening?

Thanks !!!


Edit:
I tried this now also:

Quote
  gosub TM_AdvJournalScan artiscan NONE slaying_the_mighty

Still doesn't work =/

I play in a RunUO Shard and I'm using Razor, without Filtering reapeating system messages
Title: Re: Trailmyx's Artifact Monitor
Post by: TrailMyx on October 26, 2009, 05:30:31 AM
I think it might work if with your last change of:

Code: [Select]
gosub TM_AdvJournalScan artiscan NONE slaying_the_mighty

However, in the "if" statement, you need to advance the journal pointer.  You'll need to add a:

Code: [Select]
gosub TM_AdvJournalSync artiscan

Otherwise, the journal pointer will never advance.
Title: Re: Trailmyx's Artifact Monitor
Post by: TrailMyx on October 30, 2009, 09:18:08 AM
This script will probably work well for logging items that come from the halloween event. 
Title: Re: Trailmyx's Artifact Monitor
Post by: taibune on September 25, 2014, 08:53:01 AM
thx !! so nice :)
Title: Re: Trailmyx's Artifact Monitor
Post by: Ketchup on December 17, 2014, 05:32:15 AM
Okay I've tired a little to learn about script but this is far too advanced for me, I'm trying to get it to alert me for minax artifacts and insure them too, any idea anyone please?
Title: Re: Trailmyx's Artifact Monitor
Post by: Crisis on December 21, 2014, 07:03:48 AM
Have you had it running when you received a minax arty? I believe it uses a journal scan to look for when it is placed in your bag. I am thinking it should work for them though I could be wrong on that.
Title: Re: Trailmyx's Artifact Monitor
Post by: Ketchup on December 22, 2014, 12:05:36 PM
Yeah I did try it but it's not picking any of them up  :'(
Title: Re: Trailmyx's Artifact Monitor
Post by: TrailMyx on December 22, 2014, 12:15:14 PM
What other scripts do you have running at the same time?  This script doesn't use journal scanning for the looting process, but rather just takes inventory of your pack when you first run it.  After that, it just checks your pack to be sure something new hasn't been added to it.

Oops, I forgot how I wrote it.  Lol.  I do use journal scanning.  If the item has the string "a special artifact", then it will be counted.  So if the artifact you are looking for has a different string, you will have to change line 51 or the TM_AdvJournalScan line.

I had a different script in mind when I looked at this post.  lol, too many darn scripts.
Title: Re: Trailmyx's Artifact Monitor
Post by: Ketchup on December 26, 2014, 05:57:42 PM
that worked perfectly, thanks, how about making the script insure it? I appreciate your help!
Title: Re: Trailmyx's Artifact Monitor
Post by: TrailMyx on December 26, 2014, 06:08:49 PM
There are bits of code here and there for that.  Here is some test code I wrote a long time ago that you can use.  No guarantees and you are totally on your own with the usage and implementation.

One note is this uses your character's context menu, so you need to be sure to change the value of the line passed to the sub HandleConextMenu.  Right now it's set to 3, but this might be different depending on what line you find your "Insure Item".

Code: [Select]
set %item XXYYZ1
gosub InsureItem NULL %item
stop

; %1 InsureItem
; %2 #LTARGETID of item to insure
sub InsureItem
  set %insure_item %2
  gosub HandleContextMenu NULL 401 262 3 ; click self
  target 10s
  set #LTARGETID %insure_item
  event macro 22 0 ; last target
  target 10s
  key ESC
return

; %1 HandleContextMenu
; %2 click x location
; %3 click y location
; %4 line number
sub HandleContextMenu
  set %xx %2
  set %yy %3
  set %line_number %4
  click %xx %yy mc
  gosub GumpWait normal_gump NULL
  set %clickxposition #CONTPOSX + 23
  set %clickyposition #CONTPOSY + ( 20 * %line_number )
  click %clickxposition %clickyposition mc
return
Title: Re: Trailmyx's Artifact Monitor
Post by: Ketchup on December 26, 2014, 07:46:46 PM
Thank you! Very! Much! merry Christmas!
another question, what is this targeting to insure?
sorry, I should of just put more info and sorry for being "needy" My item insure toggle is on the 7th row after I click myself and how do I make it insure what it's alerted me for
Title: Re: Trailmyx's Artifact Monitor
Post by: valen on November 18, 2015, 05:43:47 PM
I can't get this one to work for some reason. it doesn't scan my journal it seems because i had it running and got a minax arty and it didnt do anything. am i missing an add on?
Title: Re: Trailmyx's Artifact Monitor
Post by: TrailMyx on November 18, 2015, 06:37:17 PM
it's looking for "a special artifact" somewhere in your journal.  Just be sure that's what's output.
Title: Re: Trailmyx's Artifact Monitor
Post by: valen on November 18, 2015, 07:16:01 PM
Ah ok i believe minax says a reward item instead. quite possibly why haha.
Title: Re: Trailmyx's Artifact Monitor
Post by: Dan123The123Man on February 03, 2016, 08:39:44 AM
Valen were you ever able to get it to insure the minax arties for you?
Title: Re: Trailmyx's Artifact Monitor
Post by: valen on March 04, 2016, 08:36:34 PM
No i wasn't sorry for late reply. been without internet for awhile.