Author Topic: TrailMyx's Spring Cleaning Routines  (Read 47085 times)

0 Members and 2 Guests are viewing this topic.

Offline TrailMyxTopic starter

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13310
  • Activity:
    0%
  • 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: +3089
  • Referrals: 34
    • View Profile
    • ScriptUO
TrailMyx's Spring Cleaning Routines
« on: June 15, 2008, 11:43:47 AM »
+1
I quickly whipped up these routines to turnin my crap.  They're fast and reliable with little/no setup.

For Item turning for tickets:
Code: easyuo
  1. finditem IS G_2
  2. if #FINDCNT > 0
  3. {
  4.   for #FINDINDEX 1 #FINDCNT
  5.   {
  6.     event property #FINDID
  7.     if the , #SPC , collector in #PROPERTY && #FINDREP = 7
  8.       goto found_collector
  9.   }
  10. }
  11.  
  12. display ok I cannot locate the collection NPC
  13. stop
  14.  
  15. found_collector:
  16.   set %turnin #FINDID
  17.  
  18. set #LOBJECTID #BACKPACKID
  19. event macro 17 0
  20. wait 20
  21. display ok Target the container of items to turn in
  22. set #TARGCURS 1
  23. repeat
  24. until #TARGCURS = 0
  25. set %container #LTARGETID
  26.  
  27. finditem %container C_ , #BACKPACKID
  28. if #FINDKIND <> -1
  29. {
  30.   set #LOBJECTID #FINDID
  31.   event macro 17 0
  32.   gosub GumpWait container_gump
  33.   wait 20
  34.   set %container #FINDID
  35.   repeat
  36.     finditem * C_ , %container
  37.     if #FINDKIND <> -1
  38.     {
  39.       event property #FINDID
  40.       exevent drag #FINDID 1
  41.       wait 10
  42.       exevent dropc %turnin
  43.       wait 20
  44.       ignoreitem #FINDID
  45.     }
  46.   until #FINDKIND = -1
  47. }
  48.  
  49. stop
  50. ;-------------------------------------------------------------------------------
  51. sub GumpWait
  52.   wait 10
  53.   set %timedelay #SCNT
  54.   loopwait1:
  55.     if #CONTNAME = %1 || #CONTNAME = %2
  56.       return
  57.     if #SCNT > %timedelay + 7
  58.       return
  59.     goto loopwait1
  60. return
  61.  

And for Tickets to Points:

Code: easyuo
  1. finditem IIF G_2
  2. if #FINDCNT > 0
  3. {
  4.   for #FINDINDEX 1 #FINDCNT
  5.   {
  6.     event property #FINDID
  7.     if spring , #SPC , cleaning in #PROPERTY && current , #SPC , points in #PROPERTY && #FINDCOL = 1102
  8.       goto found_box
  9.   }
  10. }
  11.  
  12. display ok I cannot locate the collection box
  13. stop
  14.  
  15. found_box:
  16.   set %box #FINDID
  17.  
  18. set %total 0
  19.  
  20. repeat
  21.         finditem TVH C
  22.         if #FINDKIND <> -1
  23.         {
  24.           if #FINDCOL <> 1164
  25.           {
  26.             ignoreitem #FINDID
  27.             continue
  28.           }
  29.           set %ticket #FINDID
  30.           gosub TicketValue %ticket
  31.           set %total %total + #RESULT
  32.         }
  33.         if #CONTSIZE <> 345_359
  34.         {
  35.                 finditem %box G_2
  36.                 if #FINDKIND <> -1
  37.                 {
  38.                         set #LOBJECTID #FINDID
  39.                         event macro 17 0 ; last object
  40.                         gosub GumpWait generic_gump
  41.     }
  42.   }
  43.   set %clickx #CONTPOSX + 39
  44.   set %clicky #CONTPOSY + 168
  45.         click %clickx %clicky f
  46.         target 5s
  47.         set #LTARGETID %ticket
  48.         set #LTARGETKIND 1
  49.         event macro 22 0
  50.         gosub GumpWait generic_gump
  51. until #FINDKIND = -1
  52. display ok %total
  53. stop
  54.  
  55. sub TicketValue
  56.   namespace push
  57.   namespace local TV
  58.   event property %1
  59.   str pos #PROPERTY $ 2
  60.   str del #PROPERTY 1 #STRRES
  61.   set !tempstr #STRRES
  62.   str pos !tempstr p
  63.   set #STRRES #STRRES - 1
  64.   str left !tempstr #STRRES
  65.   set !tempstr #STRRES
  66.   repeat
  67.     str pos !tempstr ,
  68.     if #STRRES > 0
  69.     {
  70.       str del !tempstr #STRRES 1
  71.       set !tempstr #STRRES
  72.     }
  73.   until #STRRES = 0
  74.   set #RESULT !tempstr
  75.   namespace pop
  76. return #RESULT
  77.  
  78. ;-------------------------------------------------------------------------------
  79. sub GumpWait
  80.   wait 10
  81.   set %timedelay #SCNT
  82.   loopwait1:
  83.     if #CONTNAME = %1 || #CONTNAME = %2
  84.       return
  85.     if #SCNT > %timedelay + 7
  86.       return
  87.     goto loopwait1
  88. return
  89.  
« Last Edit: May 05, 2017, 05:05:02 PM by TrailMyx »
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline TrailMyxTopic starter

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13310
  • Activity:
    0%
  • 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: +3089
  • Referrals: 34
    • View Profile
    • ScriptUO
Re: TrailMyx's Spring Cleaning Routines
« Reply #1 on: July 16, 2008, 07:56:58 PM »
+1
I modified these routines to be pretty generic for whatever you need to turn in.  Just stand within 2 spaces of the collector to receive the tickets (have items in a separate container)  That's pretty much it.

For turning in tickets for points, just make sure you have all the containers open that contain tickets, the script will do the rest for you.
« Last Edit: July 16, 2008, 07:58:57 PM by TrailMyx »
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline TrailMyxTopic starter

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13310
  • Activity:
    0%
  • 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: +3089
  • Referrals: 34
    • View Profile
    • ScriptUO
Re: TrailMyx's Spring Cleaning Routines
« Reply #2 on: July 25, 2008, 01:02:07 PM »
+1
If you haven't tried these yet, you should.  They are flawless in my findings. 
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline gateCrasher

  • Jr. Member
  • **
  • Posts: 60
  • Activity:
    0%
  • Reputation Power: 0
  • gateCrasher has no influence.
  • Respect: +21
  • Referrals: 0
    • View Profile
Re: TrailMyx's Spring Cleaning Routines
« Reply #3 on: July 25, 2008, 05:11:20 PM »
+1
I was getting carpal tunnel syndrome damnit from all the drag and drop crap(*&$(*)&(&*$ Thanks for this!

/gC

Offline TrailMyxTopic starter

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13310
  • Activity:
    0%
  • 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: +3089
  • Referrals: 34
    • View Profile
    • ScriptUO
Re: TrailMyx's Spring Cleaning Routines
« Reply #4 on: July 25, 2008, 06:12:41 PM »
+1
Yeh, nothing fancy but they just work.  ;)
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline gateCrasher

  • Jr. Member
  • **
  • Posts: 60
  • Activity:
    0%
  • Reputation Power: 0
  • gateCrasher has no influence.
  • Respect: +21
  • Referrals: 0
    • View Profile
Re: TrailMyx's Spring Cleaning Routines
« Reply #5 on: July 27, 2008, 07:39:46 AM »
+1
Yeh, nothing fancy but they just work.  ;)

Wanted to say thanks again. Not only do they just work, they are FAST. I got a chance to use them last night.

Offline TrailMyxTopic starter

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13310
  • Activity:
    0%
  • 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: +3089
  • Referrals: 34
    • View Profile
    • ScriptUO
Re: TrailMyx's Spring Cleaning Routines
« Reply #6 on: September 04, 2008, 09:55:51 AM »
+1
Probably a little late in the game (I forgot to post this), but I added a ticket point counter that will summarize the tickets turned in.  Again, these are really simple scripts, but completely stable.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline Ultima

  • Insane Scripter
  • *
  • Posts: 1580
  • Activity:
    0%
  • Reputation Power: 26
  • Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.
  • Gender: Male
  • Respect: +316
  • Referrals: 4
    • View Profile
Re: TrailMyx's Spring Cleaning Routines
« Reply #7 on: September 04, 2008, 01:47:15 PM »
+1
Arggh! I just find this now! LOL!

Thing thing works great. Totally flawless is right.

I've been using craftmatic in quest for Overseer Sundered Blades and I've been holding on to the recipe scrolls and talismans for turn ins.

I spend over and hour or so yesterday turning in points and at the end of the day I had a huge headache and had to load up on NSAID.

This is making the spring clean up so much more pleasureable.

Thanks TM. Two thumbs up (even though I'm a little late)!

Offline TrailMyxTopic starter

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13310
  • Activity:
    0%
  • 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: +3089
  • Referrals: 34
    • View Profile
    • ScriptUO
Re: TrailMyx's Spring Cleaning Routines
« Reply #8 on: September 04, 2008, 02:02:15 PM »
+1
Yes, I did my first set by hand and said, "in the time it takes me to turn in another set, I can write a quick script."  I was right.  heh.

Anyhow, these ones don't suffer the same problems as others I've seen; they just work.

Just be sure to have the items you want to turnin in their own container.  For the ticket turnin, it'll look at all open containers you have on your screen including your backpack. 
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline Ultima

  • Insane Scripter
  • *
  • Posts: 1580
  • Activity:
    0%
  • Reputation Power: 26
  • Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.
  • Gender: Male
  • Respect: +316
  • Referrals: 4
    • View Profile
Re: TrailMyx's Spring Cleaning Routines
« Reply #9 on: September 04, 2008, 03:06:20 PM »
+1
Works like a charm painless and lightning fast. :)

Offline Bullmoose

  • Jr. Member
  • **
  • Posts: 51
  • Activity:
    0%
  • Reputation Power: 0
  • Bullmoose has no influence.
  • Respect: +13
  • Referrals: 0
    • View Profile
Re: TrailMyx's Spring Cleaning Routines
« Reply #10 on: September 06, 2008, 08:42:27 AM »
+1
For some reason the script is telling me it can not locate the collection Npc or the collection box any ideas ????????

Offline TrailMyxTopic starter

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13310
  • Activity:
    0%
  • 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: +3089
  • Referrals: 34
    • View Profile
    • ScriptUO
Re: TrailMyx's Spring Cleaning Routines
« Reply #11 on: September 06, 2008, 10:48:55 AM »
+1
For some reason the script is telling me it can not locate the collection Npc or the collection box any ideas ????????

you have to be standing withing 2 tiles.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline Bullmoose

  • Jr. Member
  • **
  • Posts: 51
  • Activity:
    0%
  • Reputation Power: 0
  • Bullmoose has no influence.
  • Respect: +13
  • Referrals: 0
    • View Profile
Re: TrailMyx's Spring Cleaning Routines
« Reply #12 on: September 06, 2008, 06:26:47 PM »
+1
got it going now.  thanks TM

Offline TrailMyxTopic starter

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13310
  • Activity:
    0%
  • 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: +3089
  • Referrals: 34
    • View Profile
    • ScriptUO
Re: TrailMyx's Spring Cleaning Routines
« Reply #13 on: September 06, 2008, 07:12:10 PM »
+1
You betcha!
Please read the ScriptUO site RULES
Come play RIFT with me!