Yoko

All sides of Injection
It is currently 2025-12-26 18:44:50

All times are UTC+02:00




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
PostPosted: 2005-06-22 08:50:07 
Offline

Joined: 2005-06-12 09:14:09
Posts: 52
Location: Moscow, Russia
Всё таки я неудачник! :( :oops: Вот такой скрипт, и то глючит. Если без moveitem, то все нормально. Но это неинтересно.
Code:
sub Inscription()
var sunduk=0x4002899A
var meshok=0x4002F958

While not UO.Dead()
  wait(250)
  If UO.NS < 10 then                              ; Nightshade
    UO.Findtype('0x0F88',0x0000, sunduk)
    wait(250)
    UO.moveitem('finditem', 100, 'backpack')
    wait(1000)
  endif
  wait(250)
  If UO.BP < 10 then                              ; Black Pearl
    UO.Findtype('0x0F7A',0x0000, sunduk)
    wait(250)
    UO.moveitem('finditem', 100, 'backpack')
    wait(1000)
  endif
  wait(250)
  UO.Findtype('0x0E34', 0x0000, 'backpack')       ; Blank Scrolls
  If UO.GetQuantity('finditem') < 10 then
    UO.Findtype('0x0E34',0x0000, sunduk)
    wait(250)
    UO.moveitem('finditem', 100, 'backpack')
    wait(1000)
  endif
  wait(250)
  UO.Findtype('0x1F32',0x0000, 'backpack')
  While UO.FindCount() > 1
    UO.Findtype('0x1F32',0x0000, 'backpack')
    wait(250)
    UO.Moveitem('finditem', -1, meshok)
    wait(1000)
  wend
  Checklag()
  UO.waitmenu('Spell Circles', 'First Circle', 'Spell Circle 1', 'Magic Arrow')
  UO.UseSkill('Inscription')
  UO.DeleteJournal()
  wait(250)
  while not UO.InJournal('You put|fail')
    wait(250)
  wend
  wait(250)
wend
endsub

Sub Checklag()
UO.DeleteJournal()
UO.Click('backpack')
Repeat
  wait(500)
Until UO.InJournal("backpack")
endsub


Что ему не нравится? Я уже и задержек напихал повсюду, всё равно виснет.


Top
   
PostPosted: 2005-06-22 08:56:29 
Offline
Sphere expert
User avatar

Joined: 2004-10-01 08:27:38
Posts: 1143
Location: Уфа
Tergos wrote:
Всё таки я неудачник! :( :oops: Вот такой скрипт, и то глючит. Если без moveitem, то все нормально. Но это неинтересно.
Code:
sub Inscription()
var sunduk=0x4002899A
var meshok=0x4002F958

While not UO.Dead()
  wait(250)
  If UO.NS < 10 then                              ; Nightshade
    UO.Findtype('0x0F88',0x0000, sunduk)
    wait(250)
    UO.moveitem('finditem', 100, 'backpack')
    wait(1000)
  endif
  wait(250)
  If UO.BP < 10 then                              ; Black Pearl
    UO.Findtype('0x0F7A',0x0000, sunduk)
    wait(250)
    UO.moveitem('finditem', 100, 'backpack')
    wait(1000)
  endif
  wait(250)
  UO.Findtype('0x0E34', 0x0000, 'backpack')       ; Blank Scrolls
  If UO.GetQuantity('finditem') < 10 then
    UO.Findtype('0x0E34',0x0000, sunduk)
    wait(250)
    UO.moveitem('finditem', 100, 'backpack')
    wait(1000)
  endif
  wait(250)
  UO.Findtype('0x1F32',0x0000, 'backpack')
  While UO.FindCount() > 1
    UO.Findtype('0x1F32',0x0000, 'backpack')
    wait(250)
    UO.Moveitem('finditem', -1, meshok)
    wait(1000)
  wend
  Checklag()
  UO.waitmenu('Spell Circles', 'First Circle', 'Spell Circle 1', 'Magic Arrow')
  UO.UseSkill('Inscription')
  UO.DeleteJournal()
  wait(250)
  while not UO.InJournal('You put|fail')
    wait(250)
  wend
  wait(250)
wend
endsub

Sub Checklag()
UO.DeleteJournal()
UO.Click('backpack')
Repeat
  wait(500)
Until UO.InJournal("backpack")
endsub


Что ему не нравится? Я уже и задержек напихал повсюду, всё равно виснет.

Не 100 , а '100'
Не -1 , а '-1'

_________________
Сделал дело - флуди смело !!!


Top
   
 Post subject:
PostPosted: 2005-06-22 10:27:35 
Offline

Joined: 2005-06-12 09:14:09
Posts: 52
Location: Moscow, Russia
ой блин! :shock: Это я такое слажал!!! :oops: :oops: :oops: Мдя. Больше не буду писать скрипты ночью с похмелья... :oops:
Биг сенк. А то глаз "замылился" и искал уже глобальные глюки, а не кавычки забытые. :)
ЗЫ: Хм. А как же он тогда вообще работал? :shock:


Top
   
 Post subject:
PostPosted: 2005-06-22 10:38:17 
Offline
Expert!
User avatar

Joined: 2004-07-04 00:14:58
Posts: 1284
Tergos wrote:
ЗЫ: Хм. А как же он тогда вообще работал? :shock:
а вот это и есть самый главный глюк ;)

ЗЫ оно бывает так иногда...


Top
   
 Post subject:
PostPosted: 2005-06-22 11:05:58 
Offline
Sphere expert
User avatar

Joined: 2004-10-01 08:27:38
Posts: 1143
Location: Уфа
Sfagnum wrote:
Tergos wrote:
ЗЫ: Хм. А как же он тогда вообще работал? :shock:
а вот это и есть самый главный глюк ;)

ЗЫ оно бывает так иногда...

Но недолго.

_________________
Сделал дело - флуди смело !!!


Top
   
 Post subject:
PostPosted: 2005-06-22 12:48:42 
Offline

Joined: 2005-06-12 09:14:09
Posts: 52
Location: Moscow, Russia
Спасибо за нахождение глюка. Щас поубирал задержки, поставил кавычки и он нормально работает даже на диалапе (на работе :wink: ).


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 4 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