ScriptUO
Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: The Ghost on July 14, 2013, 02:50:56 PM
-
Good day Folks
TM ( like always thx) have try to help me but I don't want to fill up is page about this problem, so I have started a new page in this section and I'm seeking ur help.
I'm trying to insert TM_AdvJournalScan to improve my script. It seen that the more I try to fix it, the worst it get. any suggestion will be more them welcome.
The event SysMessage and Pause are only their to help troubleshooting.
The major problem result with
1) Someone_else_is_already_taming_this <----- that don't seen to get pick up by the journal.
.
; ver 1.3d _Someone_else_is_already_taming_this. don't work in journal
;==================================
gosub Setup
;---------------------------------- Main Loop --------
repeat
gosub targethole
gosub HuntEgg
until #charghost = yes
; *********************************
sub Setup
; set %nest PBN
set %flute RGP_PGP ; Charmer Flute
set %snakes QE_JD_FB
gosub TM_AdvJournalSync snake 100
return
;==================================
; Sub Taget Hole
;===================================
sub targethole
; event SysMessage Target the hole
display Hover mouse over Nest
wait 3s
set %lootx #cursorx
set %looty #cursory
return
;======================================================
; Sub Find Charmer Flute and Snake
;======================================================
sub HuntEgg
UseFlute:
gosub TM_AdvJournalScan snake VALID _Someone_else_is_already_taming_this. ; where_it_was_instructed_to
if #RESULT = #TRUE
{
event SysMessage SERPENT new one
pause
gosub TM_AdvJournalSync snake
ignoreitem %snake
; pause
wait 6s
goto UseFlute
}
gosub TM_AdvJournalScan snake VALID the_nest_collapses Target_cannot_be_seen
if #RESULT = #TRUE
{
event SysMessage perdu trou
gosub TM_AdvJournalSync snake
; pause
gosub ignore
Return ; go back to beginning to target a new hole
}
;======================================================
; Goto Target Snake
;======================================================
FindSnake:
finditem %snakes G_8
set #ltargetid #findid
set #ltargetkind 1
set %snake #findid
target
event macro 22 ; Last Target
wait 5
click %lootx %looty d
wait 1s
gosub TM_AdvJournalScan snake VALID to_persuade_that_to_move moment_for_it_to_recharge
if #RESULT = #TRUE
{
event SysMessage refuse de bouger
gosub TM_AdvJournalSync snake
; pause
wait 6s
goto UseFlute
}
event SysMessage back to Flute
goto UseFlute
;======================================================
; Sub Ignore snake
;======================================================
sub ignore
ignoreitem reset ;Reset all snake
return
;=================================================================
; Script Name: TrailMyx's Advanced Journal Scanner
; Author: TrailMyx
; Version: 1.2
-
Try 2 things:
Change this:
gosub TM_AdvJournalScan snake VALID _Someone_else_is_already_taming_this. ; where_it_was_instructed_to
to this:
gosub TM_AdvJournalScan snake VALID already_taming ; where_it_was_instructed_to
And if that DOESN'T works, change this:
gosub TM_AdvJournalScan snake VALID already_taming ; where_it_was_instructed_to
to this:
gosub TM_AdvJournalScan snake NONE already_taming ; where_it_was_instructed_to
-
Try both ways and it didn't work. Wonder if I need to add a wait time before uy journal scan , I might have a small lag that crew up my journal.
-
Shouldn't have to. It would just loop around again and catch it on the next few loops. You can certainly try though. What happens if you remove the other check and just look for the taming one? Best to layer them in one at a time. If the other one triggers, then there's no reason why that one shouldn't. Also, is the spelling correct of your trigger words?
-
Here's the line out of my unicorn tamer that also looks for this text:
gosub TM_AdvJournalScan TAMING NONE that_creature_cannot you_can't_tame_that someone_else_is_already you_cannot_tame
These are all messages that happen when taming is prevented. There is a wait I use, so perhaps you might want to try that.
-
So look like I scan to much. I need to learn how and where to insert the scan journal. Did a few run and it work, seen a bit slow but it work.
;======================================================
; Sub Find Charmer Flute and Snake
;======================================================
sub HuntEgg
UseFlute:
gosub TM_AdvJournalScan snake VALID nest_collapses
if #RESULT = #TRUE
{
gosub TM_AdvJournalSync snake
gosub ignore
Return
}
; ignoreitem %snake
finditem %flute C_ , #BACKPACKID ; Charmer Flute fcing west, north
event property #findid
if Charmer in #property
set %flute #findid ; find only charmer flute
else
{
ignoreitem #findid
goto UseFlute
}
set #lobjectid %flute
event macro 17 0
;======================================================
; S Goto Target Snake
;======================================================
FindSnake:
finditem %snakes G_8
set #ltargetid #findid
set #ltargetkind 1
set %snake #findid
target
event macro 22
wait 5
click %lootx %looty d
wait 1s
gosub TM_AdvJournalScan snake NONE already_taming
if #RESULT = #TRUE
{
gosub TM_AdvJournalSync snake
ignoreitem %snake
wait 5s
goto UseFlute
}
goto UseFlute
;======================================================
; Sub Ignor snake
;======================================================
sub ignore
ignoreitem reset ;Reset all snake
return
;==========================
-
Well it could be slow if you have a bunch of journal entries the script has to sort through. Plus, EUO only has 200 entries in the journal before you start losing them. If you have a tight scan loop, then it's not an issue.