Author Topic: AssistUO - Lethal Darts Quest  (Read 24087 times)

0 Members and 1 Guest are viewing this topic.

Offline KrazTopic starter

  • Jr. Member
  • **
  • Posts: 40
  • Activity:
    0%
  • Reputation Power: 1
  • Kraz has no influence.
  • Respect: 0
  • Referrals: 2
    • View Profile
AssistUO - Lethal Darts Quest
« on: February 03, 2013, 08:54:42 PM »
0
I decided to create a sample of a script using AUO, that will help people getting used with syntax and functions.

Code: [Select]
Instructions:
1. Reward Box should not be a regular backpack, choose a wooden box or another container;
2. You may need to edit a few values such as waitforcontext entry on Restock beetle, gump data, etc depending on your shard.

Code: [Select]
// Author: Kraz
// Description: Lethal Darts Quest Maker
if not listexists 'Recipes'
 @createlist 'Recipes'
 @pushlist 'Recipes' 'Night Reaper'
 @pushlist 'Recipes' 'Mischief Maker'
endif
if not listexists 'Talismans'
 @createlist 'Talismans'
 @pushlist 'Talismans' 0x2f58
 @pushlist 'Talismans' 0x2f59
 @pushlist 'Talismans' 0x2f5a
 @pushlist 'Talismans' 0x2f5b
endif
if not listexists 'Skills'
 @createlist 'Skills'
 @pushlist 'Skills' 'Alchemy Bonus'
 @pushlist 'Skills' 'Blacksmithing Bonus'
 @pushlist 'Skills' 'Carpentry Bonus'
 @pushlist 'Skills' 'Inscription Bonus'
 @pushlist 'Skills' 'Tailoring Bonus'
 @pushlist 'Skills' 'Tinkering Bonus'
endif
if not @findobject 'Quest Giver'
 promptalias 'Quest Giver'
endif
if not @findobject 'Restock'
 promptalias 'Restock'
 // Always open restock backpack once
 waitforcontext 'Restock' 9 5000
else
 if serial 'Restock' != serial 'self'
  if not timerexists 'feedPet'
   createtimer 'feedPet'
  endif
  // Hourly feed pet
  if timer 'feedPet' >= 3600000
   feed 'Restock' 'Meat'
   pause 1000
   settimer 'feedPet' 0
  endif
 endif
endif
if not @findobject 'Reward Box'
 promptalias 'Reward Box'
endif
if not @findobject 'Trash Barrel'
 promptalias 'Trash Barrel'
endif
if @findtype 0x1bfb 'any' 'backpack' 10
 if @useobject 'Quest Giver'
  waitforgump 0x88bc0b07 5000
  if @ingump 0x88bc0b07 'Lethal Darts'
   replygump 0x88bc0b07 4
   if color 'found' == 0
    waitforcontext 'self' 5 5000
    waitfortarget 5000
    @target! 'found'
    waitfortarget 5000
    @canceltarget
   endif
   @useobject 'Quest Giver'
   waitforgump 0x88bc0b07 5000
   replygump 0x88bc0b07 8
   waitforgump 0x88bc0b07 5000
   replygump 0x88bc0b07 5
   pause 1000
   // Handle reward bags
   while @findtype 0xe75 'any' 'backpack'
    @setalias 'trash' 'found'
    @useobject! 'trash'
    pause 1000
    // Runics
    while @findtype 0x1022 'any' 'trash'
     @moveitem! 'found' 'Reward Box'
     pause 1000
    endwhile
    // Recipes
    while @findtype 0x2831 0 'trash'
     for 0 to 'Recipes'
      if @property Recipes[] 'found'
       @moveitem! 'found' 'Reward Box' 80
       pause 1000
       break
      endif
     endfor
     @ignoreobject 'found'
    endwhile
    // Talismans
    for 0 to 'Talismans'
     while @findtype Talismans[] 0 'trash'
      if @property 'Exceptional Bonus' 'found' >= 25
       for 0 to 'Skills'
        if @property Skills[] 'found' >= 25
         @moveitem! 'found' 'Reward Box' 160
         pause 1000
         break
        endif
       endfor
      endif
      @ignoreobject 'found'
     endwhile
    endfor
    @moveitem! 'trash' 'Trash Barrel'
    pause 1000
   endwhile
  else
   replygump 0x88bc0b07 2
  endif
 endif
 pause 500
elseif @movetype 0x1bfb 'Restock' 'backpack' 0 0 0 0 200
 pause 1000
else
 sysmsg 'Out of bolts!' 25
 stop
endif
@clearignorelist
« Last Edit: March 31, 2013, 02:06:45 PM by Kraz »

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13301
  • 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: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: AssistUO - Lethal Darts Quest
« Reply #1 on: February 04, 2013, 09:55:58 AM »
0
Looks very interesting!  Thanks for sharing with this community, Kraz!
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline KrazTopic starter

  • Jr. Member
  • **
  • Posts: 40
  • Activity:
    0%
  • Reputation Power: 1
  • Kraz has no influence.
  • Respect: 0
  • Referrals: 2
    • View Profile
Re: AssistUO - Lethal Darts Quest
« Reply #2 on: February 04, 2013, 10:34:16 AM »
0
Looks very interesting!  Thanks for sharing with this community, Kraz!

No problems, as a side note, it uses a Beetle as restock, you can easily cut it off in case you need.
Another thing is, AUO isnt based on screen pixels so you can minimize your UO while making quests.

Updated with an automatically feedPet timer sample :)
« Last Edit: February 04, 2013, 11:31:33 AM by Kraz »

Offline Crome969

  • Elite
  • *
  • *
  • Posts: 2098
  • Activity:
    0%
  • Reputation Power: 25
  • Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.
  • Gender: Male
  • UO Enthusiast
  • Respect: +211
  • Referrals: 10
    • View Profile
    • ScriptSDK
Re: AssistUO - Lethal Darts Quest
« Reply #3 on: February 05, 2013, 01:16:44 AM »
0
Looks very interesting!  Thanks for sharing with this community, Kraz!

No problems, as a side note, it uses a Beetle as restock, you can easily cut it off in case you need.
Another thing is, AUO isnt based on screen pixels so you can minimize your UO while making quests.

Updated with an automatically feedPet timer sample :)
Thanks for your Contribution.
What makes me wonder , are you the same Kraz who published this Script for Stealth at their forum?

Offline KrazTopic starter

  • Jr. Member
  • **
  • Posts: 40
  • Activity:
    0%
  • Reputation Power: 1
  • Kraz has no influence.
  • Respect: 0
  • Referrals: 2
    • View Profile
Re: AssistUO - Lethal Darts Quest
« Reply #4 on: February 05, 2013, 07:54:22 AM »
0
Looks very interesting!  Thanks for sharing with this community, Kraz!

No problems, as a side note, it uses a Beetle as restock, you can easily cut it off in case you need.
Another thing is, AUO isnt based on screen pixels so you can minimize your UO while making quests.

Updated with an automatically feedPet timer sample :)
Thanks for your Contribution.
What makes me wonder , are you the same Kraz who published this Script for Stealth at their forum?

Yes, like over 1 year ago I played with that bot program and released a script in Python to make any type of craft/delivery quest.
Unfortunately their *python* module *was* not stable enough, not sure how it works now.

AssistUO cut the work by half, if you take a look you'll see that there are a few lines of pure "setup" and the macro itself is simple, our command based language is pretty effective and easy to use :).
« Last Edit: February 05, 2013, 08:09:32 AM by Kraz »

Offline scrlked

  • Restricted
  • *
  • Posts: 1
  • Activity:
    0%
  • Reputation Power: 1
  • scrlked has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: AssistUO - Lethal Darts Quest
« Reply #5 on: March 14, 2013, 07:48:57 AM »
0
Hi,

Thanks for an awesome script.  I am having a little problem with it. The problems comes in when you try to get the quest, it says that "Reply gump: gump id not found". I am trying this on a freeshard. We run on the latest version of the client.

Regards,

Scrlked


Offline KrazTopic starter

  • Jr. Member
  • **
  • Posts: 40
  • Activity:
    0%
  • Reputation Power: 1
  • Kraz has no influence.
  • Respect: 0
  • Referrals: 2
    • View Profile
Re: AssistUO - Lethal Darts Quest
« Reply #6 on: March 31, 2013, 02:01:10 PM »
0
Hi,

Thanks for an awesome script.  I am having a little problem with it. The problems comes in when you try to get the quest, it says that "Reply gump: gump id not found". I am trying this on a freeshard. We run on the latest version of the client.

Regards,

Scrlked
Hello, that is because you have to edit the gumps id's on that macro and probably replygump id's too, depending on your server.

PS: since RC7 it is possible to add objects to an ignore list, I've edited the macro so it uses ignore list now, it will optimize a little bit considering it will no longer move items to the trash barrel during the reward scan.
« Last Edit: March 31, 2013, 02:07:46 PM by Kraz »

Offline beaunos

  • Newbie
  • *
  • Posts: 5
  • Activity:
    0%
  • Reputation Power: 1
  • beaunos has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: AssistUO - Lethal Darts Quest
« Reply #7 on: February 27, 2014, 04:11:22 PM »
0
How can I find gump ids for quest gumps

Offline hrs024

  • Jr. Member
  • **
  • Posts: 32
  • Activity:
    0%
  • Reputation Power: 1
  • hrs024 has no influence.
  • Respect: +5
  • Referrals: 0
    • View Profile
Re: AssistUO - Lethal Darts Quest
« Reply #8 on: May 11, 2014, 03:23:06 PM »
0
my gumpid dosent show up for demise i keep getting



waitforgump 0x19bc4061 15000
replygump 0x19bc4061 1


but it still shows as id not found... any advice? ty

Offline bnash232006

  • Restricted
  • *
  • Posts: 4
  • Activity:
    0%
  • Reputation Power: 1
  • bnash232006 has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: AssistUO - Lethal Darts Quest
« Reply #9 on: October 30, 2014, 04:08:48 AM »
0
Has anyone found the ID gump fix script for this? It would be nice for a link or a post or something for those who aren't too keen on forums. Not everyone uses forums so please put that into consideration for those who need help finding this script in its updated ID gump fixed version. Thanks in advance.

Offline Yulack

  • Newbie
  • *
  • Posts: 8
  • Activity:
    0%
  • Reputation Power: 1
  • Yulack has no influence.
  • Respect: +3
  • Referrals: 0
    • View Profile
Re: AssistUO - Lethal Darts Quest
« Reply #10 on: July 14, 2015, 05:16:15 AM »
0
to get gump id's
make a new macro Called test
to make a new macro
 Go to Macros tab
 Click on New
 In the popup put in test
Use new macro test
 Click on test in the left hand side
 Then on the right  hand side click on Record
 Use <-------- quest giver
 This is what I get for all the quests
on the free shard I play on
useobject 0x953c7
waitforgump 0x4c4c6db0 15000
useobject 0x953c7
waitforgump 0x4c4c6db0 15000
useobject 0x953c7
waitforgump 0x4c4c6db0 15000
useobject 0x953c7
waitforgump 0x4c4c6db0 15000
useobject 0x953c7
waitforgump 0x4c4c6db0 15000
useobject 0x953c7
waitforgump 0x4c4c6db0 15000
replygump 0x4c4c6db0 4 <--- that is the lethal Darts for the free shard I
play on hope this helps


Offline hrs024

  • Jr. Member
  • **
  • Posts: 32
  • Activity:
    0%
  • Reputation Power: 1
  • hrs024 has no influence.
  • Respect: +5
  • Referrals: 0
    • View Profile
Re: AssistUO - Lethal Darts Quest
« Reply #11 on: January 13, 2016, 05:55:51 PM »
0
thanks alot il test

Tags: Lethal Darts  Quest