Page 1 of 1

Ennemie Weapon

Posted: 2009-12-19 04:38:56
by wanceslass
Hello, I want to find how i can print the name of the weapon of my target
I know how u see my weapon("Rhand" layer) but I don't know how do this to my ennemy and to see his name.
I was trying to use this:

Code: Select all

Z = UO.GetName(UO.ObjAtLayer("Rhand"))


UO.Getname isn't working here and i dont understand why

Posted: 2009-12-19 12:28:25
by Nmy

Code: Select all

sub main()
   uo.click(uo.getserial(UO.ObjAtLayer("Lhand")))
   wait(500)
   var Z = UO.GetName(uo.getserial(UO.ObjAtLayer("Lhand")))
   uo.print(Z)
end sub