my anti-lag solution

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
selila
Posts: 10
Joined: 2004-10-16 16:32:27

my anti-lag solution

Post by selila »

i define many resource type in uo.
like log ore blankscroll


and here have a sample way to anti-lag .i think it is a good solution

Sript Begin
---------------------------------------

Code: Select all

var log=uo.count("log")

sub bowmake()
       start:
       uo.waitmenu("make","Bow")
       uo.waittargettype("log")
       uo.usetype("dagger")
       waitraw("log",log)
       goto start

end sub

sub waitraw(raw,rawnum)
       var sum=0
       while Uo.Count(raw)==rawnum and sum< 60
              wait(2000)
              sum=sum+1
       wend
       log=uo.count("log")
end sub


-------------------------------------------
Script end

var log is a globe variable in the script
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

yes, i using such solution too sometimes, but the back side of it is each resource that changing need to be defined it's way, so it is cumbersome for some scripts with many types of resources in use.
selila
Posts: 10
Joined: 2004-10-16 16:32:27

Post by selila »

yes i define many resource in my script.
:)
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

keep notice, that for some scripts it is enough to check does weight changed
Post Reply