Yoko

All sides of Injection
It is currently 2026-01-22 01:43:25

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 2007-01-25 19:44:07 
Offline

Joined: 2007-01-23 07:23:20
Posts: 3
Location: -=NSK=-
Взял с форума скрипт на мининг, немного его доделал, чтобы чар реколился домой, выкладывал руду и прыгал назад в шахту. Такая вот проблема возникла: оставляю чара например на ночь копать, скрипт сбивается. чар просто останавливается, и стоит на месте. по-моему происходит это когда в журнале уо появляется какое нибудь постороннее сообщение. приведен та часть скрипта, во время выполнения которой чар встаёт на месте:
Код:

Code:
Sub mine_spot() 
   HideInMine()
   While UO.InJournal("There is no")==0
   UO.Print("Mining time!")
   UO.DeleteJournal()
   UO.WaitTargetTile("1339",STR(UO.GetX()),STR(UO.GetY()),"0")
   UO.UseType("pickaxe")
   Repeat
      Wait(200)
      Until UO.InJournal("You put") OR UO.InJournal("There is no") OR UO.injournal("You loosen")
   Wend
   if uo.weight>=maxWeight then
         mark("rune_Temp")
         recall("rune_Home")
         unload()
         load()
         recall("rune_Temp")
      endif
   return 0
end sub
 


может кто либо знает в чём дело? пробовал добавить таймер, всё равно иногда останавливается .

_________________
и тишина...и только мертвые на макросах стоят...


Top
   
 Post subject:
PostPosted: 2007-01-26 08:07:26 
Offline
Expert!
User avatar

Joined: 2004-04-04 11:13:54
Posts: 1205
Location: Балаково, Саратовская обл.
Здесь все норм, не там ищешь.


Top
   
 Post subject:
PostPosted: 2007-01-26 09:50:49 
Offline
User avatar

Joined: 2006-11-06 21:45:23
Posts: 137
А какое сообщение ты считаешь посторонним?
Посмотри все сообщения при добыче руды. У меня они, например, такие:
1. Добыча еще возможна.
You loosen some rocks but fail to find any useable ore
You put the
2. Добыча не возможна.
There is no ore here to mine
Try mining in rock
That is too far away
You have no line of sight to that location
3. Ну а это элементаль.
OOPS !!! It's Ore Elemental !!!

Code:
Sub mine_spot() 
   HideInMine()
   while not UO.InJournal("no ore here") and not UO.InJournal("location") and not UO.InJournal("far away") and not UO.InJournal("in rock")
      UO.Print("Mining time!")
      UO.DeleteJournal()
      UO.WaitTargetTile("1339",STR(UO.GetX()),STR(UO.GetY()),"0")
      UO.UseType("pickaxe")
      while not UO.InJournal("You put") and not UO.InJournal("location") and not UO.InJournal("no ore here") and not UO.InJournal("loosen some rocks") and not UO.InJournal("too far away") and not UO.InJournal("mining in rock")
         wait(100)
      wend
   wend
   if uo.weight>=maxWeight then
      mark("rune_Temp")
      recall("rune_Home")
      unload()
      load()
      recall("rune_Temp")
   endif
   return 0
endsub


Top
   
 Post subject:
PostPosted: 2007-01-26 12:39:45 
Offline
Expert!
User avatar

Joined: 2004-04-04 11:13:54
Posts: 1205
Location: Балаково, Саратовская обл.
Эти:
Code:
Try mining in rock 
That is too far away
You have no line of sight to that location

предложенные сообщения не нужны. Внимательнее смотрим код. Чел копает под собой.


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 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:  
cron
Powered by phpBB® Forum Software © phpBB Limited