Author Topic: Advanced Journal Scan  (Read 2907 times)

0 Members and 1 Guest are viewing this topic.

Offline GuadahTopic starter

  • Full Member
  • ***
  • Posts: 119
  • Activity:
    0%
  • Reputation Power: 3
  • Guadah has no influence.
  • Gender: Male
  • Who farted?!
  • Respect: +29
  • Referrals: 3
    • View Profile
    • L%N Website
Advanced Journal Scan
« on: July 11, 2008, 01:23:38 PM »
0
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: [Select]
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

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.

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13302
  • Activity:
    0.2%
  • 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: Advanced Journal Scan
« Reply #1 on: July 11, 2008, 02:20:02 PM »
0
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: [Select]
finditem * C_ , %bag
if #FINDCNT > 0
{
  for #FINDINDEX 1 #FINDCNT
  {
    exevent drag #FINDID #FINDSTACK
    wait 10
    exevent dropc %NPC
    wait 10 
  }
}

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.
« Last Edit: July 11, 2008, 02:32:01 PM by TrailMyx »
Please read the ScriptUO site RULES
Come play RIFT with me!

Tags: