Official ScriptUO EasyUO Scripts > Submit your Script

Crisis Carpentry Trainer Beta 1.0 *Needs Testers Please*

<< < (2/13) > >>

The Ghost:
Ver 1.1 is up and running. 

 Not that is your fault,   I'm having this issue from time to time
 at line 542

--- Code: ---gosub moveit #backpackid %ResourceSecure %boards 200
 event macro 8 7 ; open pack  to remove ghosting
 gosub hardwait %postregmovewait

--- End code ---


OK  I really need to fix that tinkering gump.    I stop there every time  the wait is wrong for me.    I even at line 429
set %gumpwait 1 0

Crisis:
1.2 is up and I left 1.1 up for now as well.

Crisis:

--- Quote from: The Ghost on January 04, 2014, 01:17:36 PM ---Ver 1.1 is up and running. 

 Not that is your fault,   I'm having this issue from time to time
 at line 542

--- Code: ---gosub moveit #backpackid %ResourceSecure %boards 200
 event macro 8 7 ; open pack  to remove ghosting
 gosub hardwait %postregmovewait

--- End code ---


OK  I really need to fix that tinkering gump.    I stop there every time  the wait is wrong for me.    I even at line 429
set %gumpwait 1 0



--- End quote ---

I have a really fast internet connection so it is harder for me to work with timing plus I am still learning. If you look in the constants section you will see some timing tweaks that you can make.


--- Code: ---; Timing tweaks.  20 = 1 second
  set %gumpwait 1          ; Time to wait before scanning for open gump/container
  set %gumptimeout 60      ; Maximum amount of time to wait for gump to open

  set %precontposwait 10   ; Time to wait after opening gump and moving it using contpos
  set %postcontposwait 30  ; Time to wait after performing contpos

  set %postdropwait 22     ; Time to wait after each exevent drop before attempting any other action
  set %postcraftwait 1     ; Time to wait after an item is crafted before performing any other action

  set %preregmovewait 10   ; Minimum time to wait before moving all regs
  set %postregmovewait 22  ; Extra time to wait after moving all regs, (in addition to %postdropwait, above)

  set %interactiontime 10   ; Minimum measured interval between all { exevent drop, event macro } operations


  set %_lit %interactiontime * 20
  set %_lastactiont #systime - %_lit
--- End code ---

Hopefully this will help you with the waits. You can also adjust the gumpwait, tinktwait, and carptoolwait


--- Code: ---sub GumpWait
  set %_tm #systime + ( %gumptimeout * 30 )
  gosub hardwait %gumpwait
  while #contsize <> %cwin
  {
    sleep 10
    if #systime > %_tm
    {
      display Problem waiting on craft gump, open manually then press play easyuo menu
      pause
    }
  }
return #true

;===================================================================

sub carptoolwait
  set %_t #systime
  set %_tm #systime + ( %gumptimeout * 30 )
  gosub hardwait %gumpwait
  while #contsize <> %cwin
  {
    sleep 10
    if #jindex >= %ji
    {
      for %_a %ji #jindex
      {
        scanjournal %_a
        if worn_out in #journal
        {
          return getcarptool
        }
        set %ji %ji + 1
      }
    }
    if #systime > %_tm
    {
      return false
    }
  }
  set %_t #systime - %_t
return true

;===================================================================

sub tinkwait
  set %_tm #systime + ( %gumptimeout * 30 )
  gosub hardwait %gumpwait
  while #contsize <> %tinkwin
  {
    sleep 10
    if #systime > %_tm
    {
      display Problem waiting on tinkering gump, open manually then press play on easyuo menu
      pause
    }
  }
return  #true
--- End code ---

I really appreciate your input and hope this helps!

12TimesOver:
Yeah the moving stuff around is definitely a personal preference but if you are submitting a script for other people to use you just need to think about stuff like that since everybody has a different setup than you.

I have no idea on the planes, I didn't have a chance to look into things further just because I had to make dinner (made sushi tonight, SUH-WEET!).

Anyway, I'll play around more later.

X

The Ghost:

I have fast connection too,  going to blame my switch.  My Mule laptop  go through a switch. 

I beleive I fix the tinkering issue.

--- Code: ---sub tinkwait
  set %_tm #systime + ( %gumptimeout * 40 )  30 to quick I need 40
  gosub hardwait %gumpwait
  while #contsize <> %tinkwin
  {
    sleep 10
    if #systime > %_tm
    {
      display Problem waiting on tinkering gump, open manually then press play on easyuo menu
      pause
    }
  }
return  #true

--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version