Yoko

All sides of Injection
It is currently 2026-01-27 04:13:06

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Вопрос!
PostPosted: 2008-09-07 08:36:57 
Offline
User avatar

Joined: 2006-10-08 08:37:57
Posts: 87
Помогите у меня накопилось вопросов пока форум был отключен =)
Вообщем как сделать чтобы была проверка на вар режим? тоесть если вар режим включен он его выключал?
Code:
if uo.warmode(1) then 
UO.WarMode(0)
end if

не помогает :( подскажите плз


Ещё 1 вопрос, с добором регов, он у меня берёт 2 вида из 3х, незнаю почему но добирает бп, мр а бм не берёт :(
Code:
DIM Reg[3]
reg[1] = '0x0F7A' #Black Pearl#
reg[2] = '0x0F7B' #Bood Moss#
reg[3] = '0x0F86' #Mandrake Root
VAR amount = 100
VAR r, q
VAR RegBag = '0x400205BA'
For r = 1 to 3
  if uo.count( reg[r] )<>amount then
    q = amount - uo.count( reg[r] )
    if q <> 0 then
      if q > 0 then
        uo.useobject( RegBag )
        CheckLag() 
        uo.findtype( reg[r] , -1 , RegBag )
        If uo.findcount() == 0 then
          uo.msg('You dont have any!')
          return
        endif
        uo.moveitem('finditem', STR(q) ,'backpack')
        wait(400)
        CheckLag()
      else   
        q = q*-1     
        uo.findtype( reg[r] , -1 ,'my')
        uo.moveitem('finditem', STR(q) , RegBag )
        wait(400)
        CheckLag()
      endif
    endif
  endif
next
uo.print('!! -= Done =- !!')
wait(500)



И ещё вопрос :D Я вот писал скрипт на мининг, и когда выкапываю халка, он должен отбегать и делать рекол, он отбегает но иногда халк его догоняет а он делает рекол и получаеться физл рекола при атаке, подскажите как сделать чтобы если физл он отбегал ещё раз и юзал хайд :)
Code:
sub Teleportation()
VAR a, b, c
VAR d = uo.getx('self')
repeat
 a=0
while uo.mana < 20
   uo.warmode('0')
   uo.useskill('Meditation')
   wait(500)
wend
a = 0
uo.deletejournal()
wait(50)
uo.canceltarget()
if val(uo.getglobal('recal')) == 1 then
   uo.waittargetobject('0x400217E8')
   uo.cast('Recall')
else
   wait(50)
endif
if val(uo.getglobal('recal')) == 2 then
   uo.waittargetobject('0x400217EF')
   uo.cast('Recall')
else
   wait(50)
endif
if val(uo.getglobal('recal')) == 3 then
   uo.waittargetobject('0x400217F3')
   uo.cast('Recall')
else
   wait(50)
endif
if val(uo.getglobal('recal')) == 4 then
   uo.waittargetobject('0x400217F9')
   uo.cast('Recall')
else
   wait(50)
endif
if val(uo.getglobal('recal')) == 5 then
   uo.waittargetobject('0x400214AB')
   uo.cast('Recall')
else
   wait(50)
endif
if val(uo.getglobal('recal')) == 6 then
   uo.waittargetobject('0x400217FF')
   uo.cast('Recall')
else
   wait(50)
endif
if val(uo.getglobal('recal')) == 7 then
   uo.waittargetobject('0x40021804')
   uo.cast('Recall')
else
   wait(50)
endif
repeat
   wait(5000)
   a = a + 1
  until a > 35 or d <> uo.getx('self') or uo.injournal('The spell fizzles.')
until not uo.injournal('The spell fizzles.')
b = val(uo.getglobal('recal')) + 1
uo.setglobal('recal', str(b))
if val(uo.getglobal('recal')) > 10 then
  uo.setglobal('recal', '1')
endif

uo.set('finddistance', '7')
uo.findtype('0x000E', '-1', '1') #Тип халка#
if uo.findcount() > 0 then
  uo.exec('exec KillElemental')
  return
endif
uo.exec('exec CheckingPlayers')
while uo.mana < 100
  uo.warmode('0')
  uo.useskill('Meditation')
  wait(1000)
wend
if val(uo.getglobal('back')) == 0 then
  uo.setglobal('place', '1')
  uo.setglobal('circle', '1')
endif
uo.exec('exec Obkopka')
uo.setglobal('back', '0')
end sub


Вот тут надо т.к. проверка и тд всё есть, он врубает телепорт и реколиться и его физлит и он просто дальше реколиться.. а надо чтобы если физл отбегал в сторонку :)

На этом всё пока что : :lol:


Top
   
 Post subject:
PostPosted: 2008-09-11 17:38:49 
Offline
User avatar

Joined: 2006-10-08 08:37:57
Posts: 87
UP! :D


Top
   
 Post subject:
PostPosted: 2008-09-11 20:57:58 
Offline
User avatar

Joined: 2006-11-06 21:45:23
Posts: 137
1.
Code:
if UO.WarMode() then
   UO.WarMode(0)
endif

2. Протестил добор регов. Странно, но у меня все добирает как задумано в твоем скрипте.
3. Сорри, тут помоч ничем не могу. Могу предложить использовать инвизки и немного уменьшить код скрипта:
Code:
   VAR i, numLastRune = 7
   DIM idRune[7]
      idRune[1] = '0x400217E8'
      idRune[2] = '0x400217EF'
      idRune[3] = '0x400217F3'
      idRune[4] = '0x400217F9'
      idRune[5] = '0x400214AB'
      idRune[6] = '0x400217FF'
      idRune[7] = '0x40021804'
   repeat
      while uo.mana < 20
         uo.warmode('0')
         uo.useskill('Meditation')
         wait(500)
      wend
      uo.deletejournal()
      wait(50)
      uo.canceltarget()
      for i = 1 to numLastRune
         if val(uo.getglobal('recal')) == i then
            uo.waittargetobject(idRune[i])
            uo.cast('Recall')
         endif
      next
      a = 0
      repeat
         wait(5000)   #<<< уменьшить паузу
         a = a + 1
      until a > 35 or d <> uo.getx('self') or uo.injournal('The spell fizzles.')
   until not uo.injournal('The spell fizzles.')

и уменьшить паузу, так как мне кажется она слишком большая.


Top
   
 Post subject:
PostPosted: 2008-09-14 11:35:57 
Offline
User avatar

Joined: 2006-10-08 08:37:57
Posts: 87
UP! Пункт №3 :)


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 0 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