script that arms a dagger when there´s none in the

Ask for scripts here

Moderators: Murderator+, Murderator

Post Reply
kidbom
Posts: 4
Joined: 2008-02-21 06:00:28

script that arms a dagger when there´s none in the

Post 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
AGRS
Expert!
Posts: 1007
Joined: 2004-04-04 21:40:09
Contact:

Post 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
kidbom
Posts: 4
Joined: 2008-02-21 06:00:28

Post 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
AGRS
Expert!
Posts: 1007
Joined: 2004-04-04 21:40:09
Contact:

Post by AGRS »

Code: Select all

UO.EquipT('Rhand', daggertype)
kidbom
Posts: 4
Joined: 2008-02-21 06:00:28

Post by kidbom »

thx for yout attention again
i will try it tonight, thanks
kidbom
Posts: 4
Joined: 2008-02-21 06:00:28

Post 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
Edred
Expert!
Posts: 2544
Joined: 2004-04-03 17:36:29
Location: Saint-Petersburg

Post 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
Ни один скрипт не работает? Пора обновить Инжект...
Все работает, но хочется большего? Пора переходить на стелс...
Post Reply