dismount drink, total refresh, mount again

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
Nettertje
Posts: 5
Joined: 2006-04-30 19:24:28

dismount drink, total refresh, mount again

Post 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 !
Destruction
Junior Expert
Posts: 3221
Joined: 2004-06-24 22:08:56

Post 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.
Nettertje
Posts: 5
Joined: 2006-04-30 19:24:28

Post by Nettertje »

Waw ! :shock:
that was fast :lol:
thanks alot !
i'll test it asap
Nettertje
Posts: 5
Joined: 2006-04-30 19:24:28

Post 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
Post Reply