24
« on: April 11, 2011, 10:51:37 AM »
Ok I cut and pasted in the pause button scripting. The pause button menu pops up no problem but, it doesn't pause the script when pushed. Here is the full script I am trying but, have never edited a script in this way so I am clueless. lol
Any help here would be great!
Added code markers
; You have Casca to thank for this script.
; I made this for Trailmyx's website. If I see it on another site I'll pee on you IRL.
; It's not a full unattended script
; I wrote it for training from 70 up and for
; just fishing for fish to stock up
; You'll need to use something else to get to 70
set %hull_type JDUB_LKTB_IEGD_XQSB_PPCC_VPCC_QPCC ; add your hull type if you use something other than orc boat
set %fish UYZ_GQD_DQD_WYZ_NMZ_FQD_OMZ_EQD_RMZ_SMZ_zyz_tyz_
set %pole XHF
set %shoes PVI_TVI_AWI_NVI_OVI_ZVI_CWI_QVI
set %special YDF_
set %garbage_cont IKF
set %boot_count 50 ; Set this to a low number if you want to clear your pack
set %knife_type GMH ;butcher knife
set %goods wws_UDHB_xvh_HTD
; setup variables
finditem %knife_type c_ , #backpackid
if #findkind = -1
{
display Click on the knife/sword you are going to cut fish with
set #targcurs 1
while #targcurs = 1
{
wait 1
}
set %knife #ltargetid
goto polesetup
}
set %knife #findid
polesetup:
finditem %pole c_ , #backpackid
if #findkind = -1
{
finditem %pole c_ , #charid
if #findkind = -1
{
display you need a pole tardo!
halt
}
set %poleID #findid
goto jump
}
set %poleID #findid
jump:
finditem ZBN c_ , #backpackid
if #findkind = -1
{
display you need a rune book with default set to ship
halt
}
set %runebook #findid
finditem %hull_type G_2
if #findkind = -1
{
display you need to be 2 tiles from the hull
halt
}
set %hull #findid
tillermen5:
finditem HS G_2
if #findrep < 7
{
ignoreitem #findid
goto tillermen5
}
set %tillermen #findid
rune_trash:
finditem QWL c_ , #backpackid
if #findkind = -1
{
display You don't have a trash rune in your pack
}
event property #findid
if trash notin #property
{
ignoreitem #findid
goto rune_trash
}
if insured notin #property
{
display your trash rune isn't insured
}
set %trash_rune #findid
gosub check_pack
gosub showEUOMenu1
start:
if #MENUBUTTON = pause
gosub pause_script
event macro 8 7
wait 1s
gosub set_hook
if #MENUBUTTON = pause
gosub pause_script
gosub fish
if #MENUBUTTON = pause
gosub pause_script
gosub move
goto start
sub move
if %forward = n/a
set %forward 1
if %forward = 1
set %forward forward
if %forward = 0
set %forward back
msg %forward $
set %num #random % 9
wait %num , s
msg stop $
return
wait #random
sub fish
fish:
set #lobjectID %poleID
event macro 17 0
;target
;event macro 22 0
click 470 388
wait 8s
set %end #jindex
gosub journal
if #result = #true
return
gosub check_pack
goto fish
sub journal
for %i %start %end
{
scanjournal %i
if biting in #journal
return #true
}
return #false
sub check_pack
goods:
finditem %goods c_ , #backpackid
if #findkind = -1
goto reg_fish
exevent drag #findid #findstack
exevent dropc %hull
wait 1s
goto goods
reg_fish:
finditem %fish c_ , #backpackid
if #findkind = -1
goto how_many
set %fishID #findid
event property %fishID
if fish notin #property || cat in #property || sun in #property || blue in #property || gill in #property || trout in #property || bone in #property || big in #property
{
exevent drag #findid #findstack
exevent dropc %hull
wait 1s
ignoreitem %fishID
goto reg_fish
}
set #lobjectID %knife
event macro 17 0
target
set #ltargetID %fishID
set #ltargetkind 1
event macro 22 0
wait 2s
goto reg_fish
how_many:
finditem %special c_ , #backpackid
if #findkind <> -1
{
set #LobjectID #findid
event macro 17 0
wait 2s
}
finditem %shoes c_ , #backpackid
if #findcnt > %boot_count
gosub dump_stuff
finditem IND c_ , #backpackid
if #findcnt > %boot_count
gosub dump_stuff
return
sub dump_stuff
; recall to bank
event macro 15 31
target
set #ltargetid %trash_rune
set #ltargetkind 1
event macro 22 0
wait 8s
; dump stuff
trash_bin:
wait 20
finditem %garbage_cont G_5
if #findkind = -1
{
display you are either not near a bank trash bin or it's the wrong type, add the type up top
halt
}
event property #findid
if trash notin #property
{
ignoreitem #findid
goto trash_bin
}
set %trashID #findid
dump_fish:
finditem IND c_ , #backpackid
if #findkind = -1
goto dump_shoes
exevent drag #findid
exevent dropc %trashID
wait 2s
goto dump_fish
dump_shoes:
finditem %shoes c_ , #backpackid
if #findkind = -1
goto back_ship
exevent drag #findid
exevent dropc %trashID
wait 2s
goto dump_shoes
back_ship:
event macro 15 31
target
set #ltargetid %runebook
set #ltargetkind 1
event macro 22 0
wait 6s
lala:
finditem %tillermen G
if #finddist < 2
goto lala2
event pathfind #findx #findy #findz
wait 2s
goto lala
lala2:
set #lobjectid %hull
event macro 17 0
wait 1s
gosub set_hook
return
sub set_hook
set #lobjectid %hull
event macro 17 0
wait 1s
set #lobjectID %poleID
event macro 17 0
target
set #ltargetkind 3
click 337 445
wait 8s
return
sub pause_script
wait 40
set %script paused
set #MENUBUTTON N/A
menu delete pause
menu Font BGColor Red
menu Button pause 0 0 115 45 UnPause
while %script = paused
{
if #MENUBUTTON = pause
{
set %script unpaused
menu delete pause
menu Font BGColor Lime
menu Button pause 0 0 115 45 Pause
set #MENUBUTTON N/A
}
}
return
;--------- EasyUO Menu Designer Code Begin ---------
sub showEUOMenu1
menu Clear
menu Window Title CP
menu Window Color BtnFace
menu Window Size 113 44
menu Font Transparent #true
menu Font Align Right
menu Font Name MS Sans Serif
menu Font Size 16
menu Font Style
menu Font Color WindowText
menu Font BGColor Lime
menu Button pause 0 0 115 45 Pause
menu Show 421 270
return
;--------- EasyUO Menu Designer Code End ---------