ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Sardorn on September 09, 2012, 09:16:28 AM

Title: Honor/scan journal help
Post by: Sardorn on September 09, 2012, 09:16:28 AM
And for my next simple question...
I'm trying to make a simple honor script which will scan the journal for the critter to spawn and honor it, mainly for my sampire in miasma.  I have an honor script which I've used in the past but it will honor anything that targets my toon and not necessarily the one I'm after, and occasionally this breaks the honor with the critter I'm fighting.
I've read the Journal scanning tutorial at http://wiki.easyuo.com/index.php?title=Tutorial:Journal_Scanning but it is not simplifying it enough for me. Is anyone aware of a very simple step by step explanation tutorial for something like this?

Thanks again
Title: Re: Honor/scan journal help
Post by: Endless Night on September 10, 2012, 06:05:43 AM
I wouldnt use scanning the journal as a trigger.  I would use finditem.  Here is a very sinple outline..


Code: [Select]
finditem <MonsterType>  G_10
if #Findcnt > 0
   {
   ; the code to honor the id of the monster #findid
   }
Title: Re: Honor/scan journal help
Post by: Tidus on September 19, 2012, 06:48:31 PM
Just a thought on that too, every monster has their own ID.. so after you find type you want it to be stuck in a while loop.  So once the find type is found, it selects a target with the honor and it doesn't try to honor anything else until it can no longer find that specific monster. This way if you ever do a mob that is more than 1 at a time it will not honor everything it sees :)