ScriptUO

Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: camotbik on August 11, 2011, 09:54:19 AM

Title: checklag
Post by: camotbik on August 11, 2011, 09:54:19 AM
Well i used to use this sub a lot, when I was using yoko injection. Now I have remembered it and was thinking of importing it to euo. Well this is the closest what i have come up with -- take a look below. And if you have any ideas, don't hesitate and share them.

Code: [Select]
; injection code
sub checklag()
uo.deletejournal()
uo.click('backpack')
repeat
wait(500)
until uo.injournal('backpack')
end sub

Code: [Select]
;euo code
sub check_lag
set %jrnl #jindex
event macro 1 1 .
while #true
   {
   if #jindex > %jrnl
      {
      set %jrnl %jrnl + 1
      scanjournal %jrnl
      if . in #journal
      {
       event SysMessage check lag finished.
       break
       }
      }
   }
}
return