Page 1 of 1

поправьте плз

Posted: 2007-03-20 15:16:51
by Saint
поправьте плз скрипт...чар не берет реги из сундука....и надо еще что бы чар из сундука брал манки и пил их если маны меньше 10,или же через определенное время...
sub rezist()
VAR NS='0x0F88' ; type Nighshade.
VAR GA='0x0F7A' ; type Black Pears.
VAR Sunduk='0x40075B93' ; ID sunduka.
VAR Kolvo=500 ; kol-vo resursov.
VAR LastTimer
while NOT UO.Dead()
UO.DeleteJournal()
CheckLag()
while UO.Mana>=10
UO.Cast('Magic Arrow')
uo.waittargetobject('laststatus')
wait(2000)
wend
while not uo.injournal("at peace")
uo.deletejournal()
uo.useskill('Meditation')
while not uo.injournal("You lose") and not uo.injournal("You are")
wait(100)
wend
wend
wend
end sub

Posted: 2007-03-28 21:15:50
by stickman
то ли я дурак, то ли ты скрипт выложил не полностью.
и ставь его в CODE

Posted: 2007-03-29 07:16:23
by Question_GimFlex
а в скрипте нет ничего связанного с регами :)

Posted: 2007-03-29 07:17:24
by Question_GimFlex
и зачем пить манки если ты медитируешь?)

Posted: 2007-03-29 07:24:14
by Question_GimFlex

Code: Select all

sub rezist() 
VAR NS='0x0F88' ; type Nighshade.
VAR GA='0x0F7A' ; type Black Pears.
VAR Sunduk='0x40075B93' ; ID sunduka.
uo.useobject(Sunduk)
while NOT UO.Dead()
 UO.DeleteJournal()
 while UO.Mana>=10
  uo.waittargetobject('laststatus')
  UO.Cast('Magic Arrow') 
  wait(2000)
  uo.findtype(NS,-1,'backpack')
  if uo.findcount<=3 then
   uo.findtype(NS,-1,Sunduk)
   uo.moveitem('finditem','500','backpack')
   wait(700)
  endif
  uo.findtype(GA,-1,'backpack')
  if uo.findcount<=3 then
   uo.findtype(GA,-1,Sunduk)
   uo.moveitem('finditem','500','backpack')
   wait(700)
  endif
 wend
 while not uo.injournal("at peace")
  uo.deletejournal()
  uo.useskill('Meditation')
  while not uo.injournal("You lose") and not uo.injournal("You are")
   wait(100)
  wend
 wend
 while uo.mana<>uo.int
  wait(1000)
 wend
wend
end sub

Posted: 2007-03-29 22:30:48
by Maruk
у меня реги не берет пишет UO.FINDCOUNT :(
если реги в пак положить то он 1 каст делает и сбивается опять эта же ошибка вылетает...
Плиз хелп

Posted: 2007-03-29 22:36:49
by Nmy

Code: Select all

if uo.findcount()<3 then 

Posted: 2007-03-30 00:13:39
by Maruk
Биг сенк :)
а можешь туда добавить чтобы таргет появлялся? и манки с пола пил :)

Posted: 2007-03-30 06:43:35
by Question_GimFlex

Code: Select all

sub rezist() 
VAR NS='0x0F88' ; type Nighshade.
VAR GA='0x0F7A' ; type Black Pears.
VAR Sunduk='0x40075B93' ; ID sunduka.
var manka='0000' ; tip manki
var cvet='0000' ; cvet manki
uo.useobject(Sunduk)
while NOT UO.Dead()
 UO.DeleteJournal()
 while UO.Mana>=10
  uo.waittargetobject('laststatus')
  UO.Cast('Magic Arrow') 
  wait(2000)
  uo.findtype(NS,-1,'backpack')
  if uo.findcount()<=3 then
   uo.findtype(NS,-1,Sunduk)
   uo.moveitem('finditem','500','backpack')
   wait(700)
  endif
  uo.findtype(GA,-1,'backpack')
  if uo.findcount()<=3 then
   uo.findtype(GA,-1,Sunduk)
   uo.moveitem('finditem','500','backpack')
   wait(700)
  endif
  if uo.mana<=20 then
   uo.findtype(manka,cvet,'ground')
   if uo.findcount() then
    uo.useobject('finditem')
   endif
  endif
 wend
 while not uo.injournal("at peace")
  uo.deletejournal()
  uo.useskill('Meditation')
  while not uo.injournal("You lose") and not uo.injournal("You are")
   wait(100)
  wend
 wend
 while uo.mana<>uo.int
  wait(1000)
 wend
wend
end sub

Posted: 2007-03-30 11:23:35
by Maruk
Он реги берет с каждым кастом :( Можешь исправить? и если не трдно можешь добавить чтобы он бутылки из пака выкидывал.
Заранее спасибо :)

Posted: 2007-03-30 14:37:54
by Question_GimFlex
все дальше сам :wink:

Posted: 2007-03-30 16:18:24
by 4ngt
Maruk wrote:Он реги берет с каждым кастом :( Можешь исправить? и если не трдно можешь добавить чтобы он бутылки из пака выкидывал.
Заранее спасибо :)


угу.. а потом этот скрипт по 500к впаривается? =)

Posted: 2007-04-01 12:42:26
by Maruk
нет я сам его купил за 500к и он был не рабочий, ну плиз можешь исправить :)

Posted: 2007-04-01 13:42:35
by Maruk
просто обидно потратил 500к и получил в замен нерабочий скрипт :(

Posted: 2007-04-01 15:43:03
by Question_GimFlex

Code: Select all

sub rezist() 
VAR NS='0x0F88' ; type Nighshade.
VAR GA='0x0F7A' ; type Black Pears.
VAR Sunduk='0x40075B93' ; ID sunduka.
var manka='0000' ; tip manki
var cvet='0000' ; cvet manki
var botle='0000' ; tip pustoi bytulki
var cbotle='0000' ; cvet pustoi botle
uo.useobject(Sunduk)
while NOT UO.Dead()
 UO.DeleteJournal()
 while UO.Mana>=10
  uo.waittargetobject('laststatus')
  UO.Cast('Magic Arrow') 
  wait(2000)
  uo.findtype(NS,-1,'backpack')
  if uo.getquantity('finditem')<=3 then
   uo.findtype(NS,-1,Sunduk)
   uo.moveitem('finditem','500','backpack')
   wait(700)
  endif
  uo.findtype(GA,-1,'backpack')
  if uo.getquantity('finditem')<=3 then
   uo.findtype(GA,-1,Sunduk)
   uo.moveitem('finditem','500','backpack')
   wait(700)
  endif
  if uo.mana<=20 then
   uo.findtype(manka,cvet,'ground')
   if uo.findcount() then
    uo.useobject('finditem')
   endif
  endif
  uo.findtype(botle,cbotle,'backpack')
  if uo.getquantity('finditem')>=10 then
   uo.moveitem('finditem','all','ground')
   wait(700)
  endif
 wend
 while not uo.injournal("at peace")
  uo.deletejournal()
  uo.useskill('Meditation')
  while not uo.injournal("You lose") and not uo.injournal("You are")
   wait(100)
  wend
 wend
 while uo.mana<>uo.int
  wait(1000)
 wend
wend
end sub

Posted: 2007-04-01 21:25:22
by Maruk
ОГРОМНЫЙ РЕСПЕКТ!!!!!!!!!!!!!!!!!!!!!!!!

Posted: 2007-04-02 07:17:23
by Question_GimFlex
с тебя пыво :)