Yoko

All sides of Injection
It is currently 2025-10-22 10:00:04

All times are UTC+02:00




Post new topic  Reply to topic  [ 11 posts ] 
Author Message
PostPosted: 2008-01-11 19:59:29 
Offline

Joined: 2007-12-09 06:16:54
Posts: 10
крч нада чтобы при нажатие кнопки одевал 1 армор а при повторном нажатии одевал другой. помогите пожалуста :)

вот есть скрипт но он 1 раз оденет первый сэт а потом не одевает пишет No Item Find или просто не одевает( но я знаю что все тайпы там правильно
Code:
sub gor4()
UO.FindType('0x1412',-1,'backpack')
If UO.FindCount('finditem')>0 Then
 UO.usetype ('0x1415','0x04A0')
 UO.usetype ('0x1411','0x04A0')
 UO.usetype ('0x1410','0x04A0')
 UO.usetype ('0x1414','0x04A0')
 UO.usetype ('0x1412','0x04A0')
  UO.usetype ('0x1413','0x04A0')

Else

   UO.usetype ('0x1088')
   UO.usetype('0x1411', '0x0488')
   UO.usetype('0x1415', '0x04A0')
    UO.type('0x40032757')
   UO.usetype('0x1410', '0x04A0')
   UO.usetype('0x1414', '0x04A0')
      UO.usetype ('0x1088')
End If
end sub


помогите плз )


Top
   
 Post subject:
PostPosted: 2008-01-12 01:31:29 
Offline

Joined: 2007-07-20 18:57:45
Posts: 36
sub gor4()
UO.usetype ('0x1415','0x04A0')
UO.usetype ('0x1411','0x04A0')
UO.usetype ('0x1410','0x04A0')
UO.usetype ('0x1414','0x04A0')
UO.usetype ('0x1412','0x04A0')
UO.usetype ('0x1413','0x04A0')

Else

UO.usetype ('0x1088')
UO.usetype('0x1411', '0x0488')
UO.usetype('0x1415', '0x04A0')
UO.type('0x40032757')
UO.usetype('0x1410', '0x04A0')
UO.usetype('0x1414', '0x04A0')
UO.usetype ('0x1088')
End If
end sub

держи


Top
   
 Post subject:
PostPosted: 2008-01-12 09:11:11 
Offline
Expert!
User avatar

Joined: 2006-02-07 08:51:40
Posts: 1348
Location: г. Старый Оскол
Zodroteg UO wrote:
sub gor4()
UO.usetype ('0x1415','0x04A0')
UO.usetype ('0x1411','0x04A0')
UO.usetype ('0x1410','0x04A0')
UO.usetype ('0x1414','0x04A0')
UO.usetype ('0x1412','0x04A0')
UO.usetype ('0x1413','0x04A0')

Else

UO.usetype ('0x1088')
UO.usetype('0x1411', '0x0488')
UO.usetype('0x1415', '0x04A0')
UO.type('0x40032757')
UO.usetype('0x1410', '0x04A0')
UO.usetype('0x1414', '0x04A0')
UO.usetype ('0x1088')
End If
end sub

держи


ыыы умно ) :twisted:


Top
   
 Post subject:
PostPosted: 2008-01-12 20:31:18 
Offline

Joined: 2007-07-20 18:57:45
Posts: 36
А шо,лентяи ленятся а я делаю ептить)


Top
   
 Post subject:
PostPosted: 2008-01-12 21:17:55 
Offline
Expert!
User avatar

Joined: 2006-02-07 08:51:40
Posts: 1348
Location: г. Старый Оскол
Zodroteg UO wrote:
А шо,лентяи ленятся а я делаю ептить)


Не позорься ради бога, ошибки исправь. делец млин :D


Top
   
 Post subject:
PostPosted: 2008-01-12 22:59:26 
Offline

Joined: 2007-07-20 18:57:45
Posts: 36
Извиняюсь :oops: Держи
sub gor4()
UO.usetype ('0x1415','0x04A0')
UO.usetype ('0x1411','0x04A0')
UO.usetype ('0x1410','0x04A0')
UO.usetype ('0x1414','0x04A0')
UO.usetype ('0x1412','0x04A0')
UO.usetype ('0x1413','0x04A0')

sub gor5()
UO.usetype ('0x1088')
UO.usetype('0x1411', '0x0488')
UO.usetype('0x1415', '0x04A0')
UO.type('0x40032757')
UO.usetype('0x1410', '0x04A0')
UO.usetype('0x1414', '0x04A0')
UO.usetype ('0x1088')
end sub

держи тока забиндь еще 1 скрипт на еще 1 кнопку


Top
   
 Post subject:
PostPosted: 2008-01-13 08:53:43 
Offline
Expert!
User avatar

Joined: 2006-02-07 08:51:40
Posts: 1348
Location: г. Старый Оскол
Zodroteg UO wrote:
Извиняюсь :oops: Держи


держи тока забиндь еще 1 скрипт на еще 1 кнопку

Уххх век живи век учись
Code:
sub gor4() 
UO.usetype ('0x1415','0x04A0')
UO.usetype ('0x1411','0x04A0')
UO.usetype ('0x1410','0x04A0')
UO.usetype ('0x1414','0x04A0')
UO.usetype ('0x1412','0x04A0')
UO.usetype ('0x1413','0x04A0')
end sub

sub gor5()
UO.usetype ('0x1088')
UO.usetype('0x1411', '0x0488')
UO.usetype('0x1415', '0x04A0')
UO.type('0x40032757')              #Интерестно а что ЭТО?!?!?
UO.usetype('0x1410', '0x04A0')
UO.usetype('0x1414', '0x04A0')
UO.usetype ('0x1088')
end sub


Top
   
 Post subject:
PostPosted: 2008-01-13 09:20:14 
Offline

Joined: 2007-12-09 06:16:54
Posts: 10
так 2 разных скрипта я тож могу зделать а нада чтобы всё в 1 было


Top
   
 Post subject:
PostPosted: 2008-01-13 09:22:38 
Offline
Expert!
User avatar

Joined: 2006-02-07 08:51:40
Posts: 1348
Location: г. Старый Оскол
drummer wrote:
так 2 разных скрипта я тож могу зделать а нада чтобы всё в 1 было


Читай про UO.SetGlobal()


Top
   
 Post subject:
PostPosted: 2008-01-15 08:35:28 
Offline

Joined: 2007-12-09 06:16:54
Posts: 10
оффигеный вы скриптеры))))))))))))))) :lol: :lol: :lol: :lol: :lol: :lol: :lol:

токо флудить умеете )))) а скрипт написать некак


Top
   
 Post subject:
PostPosted: 2008-02-09 13:36:02 
Offline

Joined: 2007-04-26 23:35:15
Posts: 220
Мде.
Code:
sub gor()
UO.FindType('0x1412',-1,'backpack') ;это я так понимаю проверка на то что на чаре одето
If UO.FindCount('finditem')>0 Then
 UO.usetype ('0x1415','0x04A0') 
 UO.usetype ('0x1411','0x04A0')
 UO.usetype ('0x1410','0x04A0')
 UO.usetype ('0x1414','0x04A0')
 UO.usetype ('0x1412','0x04A0')
 UO.usetype ('0x1413','0x04A0')
; внимательно обращаем внимание на цвет 0x04A0
Else

   UO.usetype ('0x1088') ; это оденется
   UO.usetype('0x1411', '0x0488') ; это возможно оденется
   UO.usetype('0x1415', '0x04A0')  ; item not found, смотрим цвет
    UO.type('0x40032757') ; а это что такОЕ??
   UO.usetype('0x1410', '0x04A0') ; item not found, смотрим цвет
   UO.usetype('0x1414', '0x04A0') ; item not found, смотрим цвет
      UO.usetype ('0x1088') ; item not found, один раз одели уже
End If
end sub


кароче думай.


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


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