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

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
Saint
Posts: 42
Joined: 2007-03-05 11:39:11

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

Post 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
stickman
Posts: 139
Joined: 2005-04-05 04:13:24
Location: DRW
Contact:

Post by stickman »

то ли я дурак, то ли ты скрипт выложил не полностью.
и ставь его в CODE
Question_GimFlex
Posts: 188
Joined: 2007-03-24 08:12:51

Post by Question_GimFlex »

а в скрипте нет ничего связанного с регами :)
Question_GimFlex
Posts: 188
Joined: 2007-03-24 08:12:51

Post by Question_GimFlex »

и зачем пить манки если ты медитируешь?)
Question_GimFlex
Posts: 188
Joined: 2007-03-24 08:12:51

Post 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
Maruk
Posts: 34
Joined: 2006-12-22 22:43:19

Post by Maruk »

у меня реги не берет пишет UO.FINDCOUNT :(
если реги в пак положить то он 1 каст делает и сбивается опять эта же ошибка вылетает...
Плиз хелп
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Post by Nmy »

Code: Select all

if uo.findcount()<3 then 
Maruk
Posts: 34
Joined: 2006-12-22 22:43:19

Post by Maruk »

Биг сенк :)
а можешь туда добавить чтобы таргет появлялся? и манки с пола пил :)
Question_GimFlex
Posts: 188
Joined: 2007-03-24 08:12:51

Post 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
Maruk
Posts: 34
Joined: 2006-12-22 22:43:19

Post by Maruk »

Он реги берет с каждым кастом :( Можешь исправить? и если не трдно можешь добавить чтобы он бутылки из пака выкидывал.
Заранее спасибо :)
Question_GimFlex
Posts: 188
Joined: 2007-03-24 08:12:51

Post by Question_GimFlex »

все дальше сам :wink:
4ngt
Posts: 3
Joined: 2005-04-04 11:58:25

Post by 4ngt »

Maruk wrote:Он реги берет с каждым кастом :( Можешь исправить? и если не трдно можешь добавить чтобы он бутылки из пака выкидывал.
Заранее спасибо :)


угу.. а потом этот скрипт по 500к впаривается? =)
Maruk
Posts: 34
Joined: 2006-12-22 22:43:19

Post by Maruk »

нет я сам его купил за 500к и он был не рабочий, ну плиз можешь исправить :)
Maruk
Posts: 34
Joined: 2006-12-22 22:43:19

Post by Maruk »

просто обидно потратил 500к и получил в замен нерабочий скрипт :(
Question_GimFlex
Posts: 188
Joined: 2007-03-24 08:12:51

Post 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
Maruk
Posts: 34
Joined: 2006-12-22 22:43:19

Post by Maruk »

ОГРОМНЫЙ РЕСПЕКТ!!!!!!!!!!!!!!!!!!!!!!!!
Question_GimFlex
Posts: 188
Joined: 2007-03-24 08:12:51

Post by Question_GimFlex »

с тебя пыво :)
Post Reply