Official ScriptUO EasyUO Scripts > Script Debug

Advanced Journal Scan

(1/1)

Guadah:
Hey TM.

I have your Advanced Journal Scan placed in the Spring Cleaner script, and now since there are so many items, I want to be able to ignore a 'wrong' item that is in the bag.  If you drop an item on the NPC that he does not want he says "I'm not looking for one of those at the moment, sorry."

So here's a snippet I'm trying to put in using the Advanced Journal Scan Subs:

--- Code: ---gosub TM_AdvJournalSync turnin 100
repeat
finditem * C_ , %bag
exevent drag #findid
 wait 10
exevent dropc %NPC
 wait 10
gosub TM_AdvJournalScan turnin VALID I'm_not_looking_for_one_of
if #RESULT = #TRUE
{
   ignoreitem #findid
   }
until #findcnt = 0
--- End code ---

However, it is not ignoring the item, it just keeps attempting to drag the same item over and over.  Did I code this wrong?

Yes I have the Subs in the script.

TrailMyx:
If you would use #FINDINDEX instead, you don't need the journal scanner and the code will run faster because you don't have to wait for server to spam you the text...


--- Code: ---finditem * C_ , %bag
if #FINDCNT > 0
{
  for #FINDINDEX 1 #FINDCNT
  {
    exevent drag #FINDID #FINDSTACK
    wait 10
    exevent dropc %NPC
    wait 10 
  }
}

--- End code ---

I think you are waaaay over-complicating the problem...

Your problem is not with the journal scanner as much as it's with the possibility that you won't get the journal entry in time to ignore the item.  Plus you aren't doing a journal sync even if you do get the journal statement in time.  For this application, I think it's waaay wrong to use the journal scan.

Navigation

[0] Message Index

Go to full version