Yoko

All sides of Injection
It is currently 2025-12-18 20:33:13

All times are UTC+02:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
PostPosted: 2008-02-21 06:09:06 
Offline

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


Top
   
 Post subject:
PostPosted: 2008-02-21 10:22:34 
Offline
Expert!
User avatar

Joined: 2004-04-04 21:40:09
Posts: 1007
Code:
  var daggertype = 0x1111 ;type of dagger
  if UO.GetGraphic(UO.ObjAtLayer('Rhand')) <> daggertype then
    UO.UseType(daggertype)
  endif


something like that


Top
   
 Post subject:
PostPosted: 2008-02-21 11:52:04 
Offline

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


Top
   
 Post subject:
PostPosted: 2008-02-21 13:47:01 
Offline
Expert!
User avatar

Joined: 2004-04-04 21:40:09
Posts: 1007
Code:
UO.EquipT('Rhand', daggertype)


Top
   
 Post subject:
PostPosted: 2008-02-21 19:39:06 
Offline

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


Top
   
 Post subject:
PostPosted: 2008-02-22 04:44:16 
Offline

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


Top
   
 Post subject:
PostPosted: 2008-02-22 11:23:31 
Offline
Expert!

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

_________________
Ни один скрипт не работает? Пора обновить Инжект...
Все работает, но хочется большего? Пора переходить на стелс...


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 7 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited