ScriptUO
Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Pop Rock on May 20, 2014, 04:51:41 PM
-
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
-
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)
-
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:
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
-
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 ?
-
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... :////
-
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;)
-
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..
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
-
I edited my last response to better explain what I'm having trouble with
-
-