Author Topic: Heartwood Script help?:(  (Read 4766 times)

0 Members and 1 Guest are viewing this topic.

Offline Pop RockTopic starter

  • Jr. Member
  • **
  • Posts: 51
  • Activity:
    0%
  • Reputation Power: 1
  • Pop Rock has no influence.
  • Respect: +12
  • Referrals: 1
    • View Profile
Heartwood Script help?:(
« on: May 20, 2014, 04:51:41 PM »
0
Ok guys, so I wrote a script that would do heartwood, completely automated, until you ran out of resources, right? Like I used to run it for weeks and weeks and come up with 100's of barbed runic kits or val hammers (this was on a freeshard that was a copy of osi with some stuff added XD). Anyways, my problem is that the script was written before the new questing system, where you have to dclick and cylce through the quests... Anyways, can someone help me with all this new stuff and putting it in my script? 0.0 If I get it working, I plan on releasing it to the public!! :D

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: Heartwood Script help?:(
« Reply #1 on: May 20, 2014, 11:33:57 PM »
0
Too less Details to help you out.

Describe the Process with each little detail from getting a quest until geting the reward.

Sample :
- Double Click Vendor
- Scan Title
- Click Button to Accept if Right Quest
- Scan for Items
- Mark Items
- Double Click Vendor
- Click Accept
- Click Accept
- Open Rewardbag
- Sort out

Maybe also drop your Shard details in order to see what happens there with your Clientinfo ( Version, Encryption or Razor features negotiation)

Offline Pop RockTopic starter

  • Jr. Member
  • **
  • Posts: 51
  • Activity:
    0%
  • Reputation Power: 1
  • Pop Rock has no influence.
  • Respect: +12
  • Referrals: 1
    • View Profile
Re: Heartwood Script help?:(
« Reply #2 on: May 22, 2014, 12:55:38 PM »
0
Sorry for the small amount of info!!!

Ok, so what I need to do is to have it:

-Dclick the npc
-Scan the quest
-If it is the right quest
-Accept the quest
-If it is NOT the right quest
-Go to Dclick

Here is what it origionally was:


Code: [Select]
sub getquest
get:
finditem %quester G
if #finddist > 8
 event pathfind #findx #findy #findz
wait 10
gosub bookcheck
if %found = #true
 return
exevent popup %quester 1
set %jindex #jindex + 1
wait 30
if #contsize = 512_443
 return
if #contsize <> 512_603 && #contsize <> 512_643
 {
  wait 10s
  goto get
 }
if %vendor = Sleen
 {
  set %craft1x #contposx + 370
  set %craft1y #contposy + 607
 }
else
 {
  set %craft1x #contposx + 370
  set %craft1y #contposy + 560
 }
click %craft1x %craft1y
wait 30
gosub journal_scan You_have_accepted_the_quest.
if #result = #true
 {
  event sysmessage accepted quest!
  repeat
  {
   set %timeout #scnt + 5
   set %craft2x #contposx + 365
   set %craft2y #contposy + 400
   click %craft2x %craft2y
   wait 20
  }
  until #contsize <> 512_443 || #scnt > %timeout
  return
 }
if #result = #false && #contsize <> 512_443
 gosub findbook
if %found = #false
 {
  ;event sysmessage result is false
  wait 10s
  goto get
 }
return

As you can see, this script was designed for the older version of the game where you still had quest books,
so I'm having to update it!! XD

Then all i'll need to do is add a sub to mark the quest items as quest items, which should be easy! Then I should be done :D

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: Heartwood Script help?:(
« Reply #3 on: May 22, 2014, 06:53:11 PM »
0
Does the shard use the classic Quest System or ML-System?. If you have no clue check this
. If your Quest is equal it means its the Heartwood-Style. For that we have like 1000 of samples ( i have written myself 2 or 3 scripts and released here how to handle ml-Quest).

Quest with books on Runuo are socalled XML-Quests. They are easy to setup by the individuals but not hardcoded. Maybe your Shard changed from XML to Heartwood Mode ?

Offline Pop RockTopic starter

  • Jr. Member
  • **
  • Posts: 51
  • Activity:
    0%
  • Reputation Power: 1
  • Pop Rock has no influence.
  • Respect: +12
  • Referrals: 1
    • View Profile
Re: Heartwood Script help?:(
« Reply #4 on: May 22, 2014, 08:09:28 PM »
0
Ok so the shard I was on when I origionally wrote this script was a classic quest system. But the shard I'm on now is a ML System... That's what I'm having problems with... :/ really its just how to find the right quest and to accept it... :////

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: Heartwood Script help?:(
« Reply #5 on: May 22, 2014, 08:20:02 PM »
0
Ok so the shard I was on when I origionally wrote this script was a classic quest system. But the shard I'm on now is a ML System... That's what I'm having problems with... :/ really its just how to find the right quest and to accept it... :////

Look into :
- http://www.scriptuo.com/index.php?topic=374.0
- http://www.scriptuo.com/index.php?topic=11241.0
- http://www.scriptuo.com/index.php?topic=69.0
- http://www.scriptuo.com/index.php?topic=945.0

ML-System in our purpose is mostly known as Heartwood Quest on EA, so this should be enough samples;)

Offline Pop RockTopic starter

  • Jr. Member
  • **
  • Posts: 51
  • Activity:
    0%
  • Reputation Power: 1
  • Pop Rock has no influence.
  • Respect: +12
  • Referrals: 1
    • View Profile
Re: Heartwood Script help?:(
« Reply #6 on: May 24, 2014, 09:46:22 AM »
0
Ok, I looked through the scripts and I'm using said3's script (http://www.scriptuo.com/index.php?topic=11241.0) to base my accepting of the quest off of... One problem though... Where is Kalocr? I'm guessing its a script, but i can't seem to find it.... :/


I've got it to where it'll check the name of the gump so if it is the paperdoll, it'll exit it and move on... Here's what I have for that..

Code: [Select]
set %quester VM
set %quest_gump_size 507_496
set %paperdoll_gump_size 262_324

sub getquest
    get:
    finditem %quester
    set #lobjectid %quester
    event macro 17 0
    wait 15

    accept:
    if ( #contname = generic_gump && #contsize = %quest_gump_size )
       {
        set #contposx 50
        set #contposy 50

        ;I need to figure out how to find out if it is the right quest.. :/

        ;set %clickx 200
        ;set %clicky 488
        ;click %clickx %clicky
       }
    if ( #contname = paperdoll_gump && #contsize = %paperdoll_gump_size )
       {
        set #contposx 100
        set #contposy 100
        set %clickx 200
        set %clicky 200
        wait 15
        click %clickx %clicky r
        goto accept
       }
       
   

The part I need help on right now is how to tell if the quest that appeared, is the right quest so i can accept it... Can anyone help? 0.0
« Last Edit: May 24, 2014, 12:27:06 PM by Pop Rock »

Offline Pop RockTopic starter

  • Jr. Member
  • **
  • Posts: 51
  • Activity:
    0%
  • Reputation Power: 1
  • Pop Rock has no influence.
  • Respect: +12
  • Referrals: 1
    • View Profile
Re: Heartwood Script help?:(
« Reply #7 on: May 24, 2014, 12:27:53 PM »
0
I edited my last response to better explain what I'm having trouble with

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: Heartwood Script help?:(
« Reply #8 on: May 24, 2014, 12:52:36 PM »
0

Offline Pop RockTopic starter

  • Jr. Member
  • **
  • Posts: 51
  • Activity:
    0%
  • Reputation Power: 1
  • Pop Rock has no influence.
  • Respect: +12
  • Referrals: 1
    • View Profile
Re: Heartwood Script help?:(
« Reply #9 on: May 24, 2014, 01:08:43 PM »
0

Tags: