Yoko

All sides of Injection
It is currently 2024-03-28 21:13:40

All times are UTC+02:00




Post new topic  Reply to topic  [ 24 posts ]  Go to page Previous 1 2
Author Message
PostPosted: 2013-06-22 16:20:51 
Offline

Joined: 2010-08-24 14:41:57
Posts: 25
Incorrect User wrote:
Инжект на абис .7z Крашит какой скрипт? Лут? Мой или старый?

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

Лут вроде уже не крашит. но ситуация не улучшилась..

качаю сейчас попробую. если будет крашить . есть идея перезапуска клиента после краша



вот текущий скрипт

Code:
sub Loot()
  var notake = "0x203B 0x203C 0x203D 0x203E 0x203F 0x204A 0x204B 0x204C 0x204D 0x2040 0x2041 0x2042 0x2043 0x2044 0x2045 0x2046 0x2047 0x2048 0x2049"
  UO.UseObject('lastcorpse')
  if UO.GetQuantity('lastcorpse') then
    UO.SetArm('temp')
    UO.WaitTargetObject('lastcorpse')
    UO.UseType('0x13F6')
    wait(150)
    UO.Arm('temp')
    wait(150)
  endif
  repeat
    uo.findtype("-1", "-1", "lastcorpse")
    if uo.findcount() and not In_string(uo.getgraphic("finditem"), notake) then
      uo.moveitem("finditem", "0", "0x418ADB2D")
      wait(500)
      if uo.getgraphic("finditem") == "0x1078" then
        uo.waittargetobject("finditem")
        uo.usetype("0x0F9E")
        wait(150)
      end if
    end if
    if uo.findcount() and In_string(uo.getgraphic("finditem"), notake) then
      uo.ignore("finditem")
      wait(150)
    end if
  until not uo.findcount()
  uo.exec('exec heal')
end sub

sub In_string(substr, string)
  var str, i
  for i = 0 to len(string) - 1
    str = mid(string, i, len(substr))
    if str == substr then
      return 1
    end if
  next
  return 0
end sub

sub heal()
   if uo.life < 90 then
      repeat
         uo.bandageself()
         wait(500)
         UO.UseType('0x1406')
         UO.UseType('0x1B76')
         UO.DeleteJournal()
         wait(500)
         repeat
            wait(500)
         until UO.InJournal("barely help") or UO.InJournal("put the bloody")
         wait(500)
      until uo.life >= 98
      wait(500)
   end if
   wait(500)
 
   uo.exec('exec main')
end sub

sub main()
   VAR MaxVes=600
   VAR n=1, z=0, f=0
   var animal=0x0015
   uo.ignorereset()
   Repeat
      uo.Set('finddistance', n)
      uo.FindType(animal, -1, 'ground')
      f=f+1
      if f==12 then
         walker(6100,3060,1)
      end if
      if f>=10 then
         uo.useskill('Animal Lore','self')
         wait(1000)
      end if
      if uo.FindCount() then
         f=0
         uo.resend()
         n=1
         uo.attack('finditem')
         z=1
         repeat
            if uo.GetDistance('finditem') > 1 then
               walker(uo.GetX('finditem'),uo.GetY('finditem'),1)
            else
               wait(500)                         
               if uo.life < 80 then
                  if uo.life < 40 then
                     uo.exec('exec walk')
                  end if
                  repeat
                     uo.bandageself()
                     wait(500)
                     UO.UseType('0x1406')
                     UO.UseType('0x1B76')
                     wait(500)
                     UO.DeleteJournal("barely help")
                     UO.DeleteJournal("put the bloody")
                     repeat
                        wait(500)
                     until UO.InJournal("barely help") or UO.InJournal("put the bloody")
                  until uo.life >= 90
                  uo.attack('finditem')
               end if
               if uo.armor<=81 then
                  uo.cast('Protection','self')
                  wait(3000)
                  uo.attack('finditem')
               endif             
            end if
         until uo.dead() or uo.GetX('finditem')==0
         wait(500)
         uo.exec('exec Loot')
         uo.exec('terminate main')
      else
         n=n+1
         if n>9 then
            n=1
         endif
      end if
      if z==1 then
         z=0
         Loot()
      endif
   Until uo.Dead() || UO.Weight > MaxVes
end sub

Sub walk()
   walker(6100,3060,1)
endsub


Last edited by KOLBASOID on 2013-06-22 19:07:16, edited 1 time in total.

Top
   
PostPosted: 2013-06-22 17:19:17 
Offline

Joined: 2011-05-23 00:33:30
Posts: 949
Какой- странный скрипт. Ищет только на 1 тайл от себя, потом ходит... Нельзя что ли искать в определенном радиусе, если нашел идти к нему и бить лутать и тд... Та же хил, что он берет в руки боле исползования бинтов, почему только до 96 хп хил а не до максимума? Просто опиши что и как должен делать чар, я попробую сделать попроще скрипт.

_________________
CodeSweeper


Top
   
PostPosted: 2013-06-22 17:24:46 
Offline

Joined: 2010-08-24 14:41:57
Posts: 25
Incorrect User wrote:
Какой- странный скрипт. Ищет только на 1 тайл от себя, потом ходит... Нельзя что ли искать в определенном радиусе, если нашел идти к нему и бить лутать и тд... Та же хил, что он берет в руки боле исползования бинтов, почему только до 96 хп хил а не до максимума? Просто опиши что и как должен делать чар, я попробую сделать попроще скрипт.



нет не на 1 тайл он ишет на 9 тайлов (нам ниже елсе н=н+1 для того чтобы он напал на ближайшего) удобно на местности где много однотипных мобов. чтобы не бежал через всех. вначале на 1 тайл потом на дальности 2 и так до 9.

хил одевает хеатер шит и булаву. 96 хп потому что если он на 95 заюзает хил то отхилится до 105(маска одета +5стр).
дело в том что на этом шарде есть остров для нубов. и туда перестает пуска при 100% хилинге. и чтобы лишний раз не юзать хилинг (например юз хила при 104хп чтобы стало 105) и сделал так. да и бинты экономятся.

чар ищет вокруг себя 1 моба. подходит убивает(хилится если ранен).лутает. хилится. отходит на опр место встает и качает какой нибудь скил пока моб не реснится. так же юзает протекшен если брони меньше 90

Спс измененный скрипт вставил


Last edited by KOLBASOID on 2013-06-22 17:43:39, edited 1 time in total.

Top
   
PostPosted: 2013-06-22 17:40:45 
Offline

Joined: 2011-05-23 00:33:30
Posts: 949
Кусок main по мелочи поправил, так же не хватало задержки после файндтайп если не нашел животное.
Code:
sub main()
   var MaxVes=600, n=1, z=0, f=0, animal = "0x0015"
   uo.ignorereset()
   Repeat
      uo.Set("finddistance", n)
      uo.FindType(animal, -1, "ground")
      f=f+1
      if f==12 then
         walker(6100,3060,1)
      end if
      if f>=10 then
         uo.useskill("Animal Lore","self")
         wait(1000)
      end if
      if uo.FindCount() then
         f=0
         uo.resend()
         n=1
         uo.attack("finditem")
         z=1
         repeat
            if uo.GetDistance("finditem") > 1 then
               walker(uo.GetX("finditem"),uo.GetY("finditem"),1)
            else
               wait(500)                         
               if uo.life < 80 then
                  if uo.life < 40 then
                     uo.exec("exec walk")
                  end if
                  repeat
                     uo.bandageself()
                     wait(500)
                     UO.UseType("0x1406")
                wait(150)
                     UO.UseType("0x1B76")
                     wait(150)
                     UO.DeleteJournal("barely help")
                     UO.DeleteJournal("put the bloody")
                     repeat
                        wait(10)
                     until UO.InJournal("barely help|put the bloody")
                  until uo.life >= 90
                  uo.attack("finditem")
               end if
               if uo.armor<=81 then
                  uo.cast("Protection","self")
                  wait(3000)
                  uo.attack("finditem")
               end if             
            end if
         until uo.dead() or uo.GetX("finditem")==0
         wait(500)
         uo.exec("exec Loot")
         uo.exec("terminate main")
      else
         n=n+1
         if n>9 then
            n=1
         end if
       wait(150)
      end if
      if z==1 then
         z=0
         Loot()
      end if
   Until uo.Dead() or UO.Weight > MaxVes
end sub

_________________
CodeSweeper


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 24 posts ]  Go to page Previous 1 2

All times are UTC+02:00


Who is online

Users browsing this forum: Google [Bot] and 13 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:  
cron
Powered by phpBB® Forum Software © phpBB Limited