Page 1 of 1
script that arms a dagger when there´s none in the
Posted: 2008-02-21 06:09:06
by kidbom
Hello , i need a script that verify if i got a Dagger in my hands, and if it got destroyed(in training for example) , it will arm another that is in my bag .
i tried with useobject and other things, but i cant make it to my arms
thx for the help
Posted: 2008-02-21 10:22:34
by AGRS
Code: Select all
var daggertype = 0x1111 ;type of dagger
if UO.GetGraphic(UO.ObjAtLayer('Rhand')) <> daggertype then
UO.UseType(daggertype)
endif
something like that
Posted: 2008-02-21 11:52:04
by kidbom
thx for the post
but the usetype don´t work, that´s my problem
when you use, it only ask if you want to cut some body, it don´t arm the weapon
Posted: 2008-02-21 13:47:01
by AGRS
Posted: 2008-02-21 19:39:06
by kidbom
thx for yout attention again
i will try it tonight, thanks
Posted: 2008-02-22 04:44:16
by kidbom
it almost worked, but it keep saying "invalid layer name"
it almost worked because it keeps changing the weapon
how can i fix it ?
it seens that it´s not looking for the item that is already in the right hand
Posted: 2008-02-22 11:23:31
by Edred
Code: Select all
var daggertype = 0x1111 ;type of dagger
if UO.GetGraphic(UO.ObjAtLayer('RHand')) <> daggertype then
if UO.GetGraphic(UO.ObjAtLayer('RHand')) <> '0x0000' then
UO.UnEquip('RHand')
wait(500)
endif
UO.EquipT('RHand', daggertype)
endif
try it