Page 1 of 1

dismount drink, total refresh, mount again

Posted: 2006-05-22 14:37:38
by Nettertje
can anyone give me this little script
i want to make a hotkey that does this script.

steps
1) dismount
2) drink total refresh
3) mount again

thnx a lot !

Posted: 2006-05-22 16:27:48
by Destruction

Code: Select all

sub TotalRefresh()
var horse = uo.objatlayer("horse");
if not horse == "0x0000000" then
   uo.useobject("self")
endif
uo.usetype(TYPE, COLOR) ; Total Refresh
if not horse == "0x0000000" then
   uo.useobject(horse)
endif
endsub


You can insert pause or checklag() in this script.

Posted: 2006-05-22 16:42:23
by Nettertje
Waw ! :shock:
that was fast :lol:
thanks alot !
i'll test it asap

Posted: 2006-05-22 16:57:59
by Nettertje
Thnx,
with injection i get this for graphic id: 0x0f0b
is this right ?

Code: Select all

sub TotalRefresh() 
var horse = uo.objatlayer("horse");
if not horse == "0x0000000" then
   uo.useobject("self")
   wait(500)
endif
   UO.Exec("usetype 0x0f0b") ; Total Refresh
    wait(500)
if not horse == "0x0000000" then
   uo.useobject(horse)
endif
endsub