Yoko
http://forum.yoko.com.ua/

script that arms a dagger when there´s none in the
http://forum.yoko.com.ua/viewtopic.php?f=17&t=13278
Page 1 of 1

Author:  kidbom [ 2008-02-21 06:09:06 ]
Post subject:  script that arms a dagger when there´s none in the

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

Author:  AGRS [ 2008-02-21 10:22:34 ]
Post subject: 

Code:
  var daggertype = 0x1111 ;type of dagger
  if UO.GetGraphic(UO.ObjAtLayer('Rhand')) <> daggertype then
    UO.UseType(daggertype)
  endif


something like that

Author:  kidbom [ 2008-02-21 11:52:04 ]
Post subject: 

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

Author:  AGRS [ 2008-02-21 13:47:01 ]
Post subject: 

Code:
UO.EquipT('Rhand', daggertype)

Author:  kidbom [ 2008-02-21 19:39:06 ]
Post subject: 

thx for yout attention again
i will try it tonight, thanks

Author:  kidbom [ 2008-02-22 04:44:16 ]
Post subject: 

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

Author:  Edred [ 2008-02-22 11:23:31 ]
Post subject: 

Code:
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

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/