Yoko

All sides of Injection
It is currently 2025-11-23 06:15:40

All times are UTC+02:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: 2004-10-11 22:22:12 
Offline

Joined: 2004-04-23 19:58:03
Posts: 60
Элементаля или seaserpent находит, но вот запуска killsea() или killwatelem() не происходит, почему - понять не могу.
Причём если ручками запустить каждую их этих функциий - то работает, убивает тварь.
И второй вопрос: запуск убийства (вручную) начинается, но не заканчивается почему-то, даже если монстра уже труп...
Ниже приводится скрипт (killwatelem() аналогичен killsea() - отличается только словом waterelem и sea)
Code:
sub proverka() 
   while not uo.dead()
        wait(200)
        uo.ignorereset()
        wait(200)
       UO.FindType('0x0096',-1,'ground')
       wait(200)
        while uo.findcount()
           wait(200)
           uo.ignore("finditem")
           wait(200)
          if uo.GetNotOriety("finditem") > 0 then
          wait(200)
          
           uo.exec('terminate fishing2')
         wait(200)
         uo.exec('terminate veschi')
         wait(200)
         uo.say("stop")
         
         killsea()
         
          endif
          wait(200)
          UO.FindType('0x0096',-1,'ground')   
          wait(200)
        wend
        wait(1500)
        
        wait(200)
        uo.ignorereset()
        wait(200)
       UO.FindType('0x0010','0x0805','ground')
       wait(200)
        while uo.findcount()
           wait(200)
           uo.ignore("finditem")
           wait(200)
          if uo.GetNotOriety("finditem") > 0  then
          wait(200)
          
           uo.exec('terminate fishing2')
         wait(200)
         uo.exec('terminate veschi')
         wait(200)
         uo.say("stop")
         killwatelem()
         
          endif
          wait(200)
          UO.FindType('0x0010','0x0805','ground')   
          wait(200)
        wend
        wait(1500)
   wend
end sub

sub killsea()
   VAR Sea
 
   UO.DeleteJournal()
   
   UO.Exec('warmode 1')
   UO.FindType('0x0096',-1,'ground')
   Sea=UO.GetSerial('finditem')

   repeat
      UO.Attack(Sea)
      wait(1000)
   until UO.IsNPC(Sea)==0
   
   If UO.Life<80 Then
      repeat
         UO.Exec("bandageself")
         uo.usetype("0x1400","0x0494")
         wait(3000)
      until UO.Life>=110
   Endif
   
   UO.Exec('warmode 0')
   wait(1000)
   UO.Print("Sdoh, skotina!")
   fishing2()
   veschi()

end sub


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

All times are UTC+02:00


Who is online

Users browsing this forum: Bing [Bot] 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