А какое сообщение ты считаешь посторонним?
Посмотри все сообщения при добыче руды. У меня они, например, такие:
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