Yoko

All sides of Injection
It is currently 2025-11-07 01:34:47

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 2010-01-25 14:44:57 
Offline

Joined: 2010-01-25 14:40:48
Posts: 8
Драсте, нужен своеобразный скриптик:

чтобы когда у моего чара ломаеться оружие в руке к примеру даггер чтоб оно одевало новый из пака...

кто может помочь зараннее спасибо...


Top
   
PostPosted: 2010-01-25 16:15:24 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Code:
sub GetNewWeapon()
  var tItem = '' # Тип вещи которую одевать
  var msgBroken = '' # Сообщение, которое появляется в случае поломки вещи

  repeat
    uo.DeleteJournal()
    repeat
      wait(100)
    until uo.InJournal(msgBroken)
    uo.FindType(tItem,'-1','backpack')
    if uo.FindCount() then
      uo.UseObject('finditem')
      wait(1000)
    endif
  until uo.Dead()
end sub


Top
   
PostPosted: 2010-01-26 09:43:44 
Offline

Joined: 2010-01-25 14:40:48
Posts: 8
спасибо, но есть одна проблемка,

первый раз когда я не внес ID вещи и все что нужно оно взяло молоточек и открыло сумку в бэкпаке, а когда уже все настроил оно попросту перестало вобще что-либо делать...


Top
   
PostPosted: 2010-01-27 08:20:30 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Когда не вносишь, оно и не работает.
И вносить надо тип, а не ID


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 4 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