Ennemie Weapon

Ask for scripts here

Moderators: Murderator+, Murderator

Post Reply
wanceslass
Posts: 1
Joined: 2009-12-19 04:29:02

Ennemie Weapon

Post 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
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

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