Yoko

All sides of Injection
It is currently 2024-04-18 09:08:14

All times are UTC+02:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: 2006-12-25 21:47:54 
Offline

Joined: 2005-05-02 17:37:12
Posts: 46
Во есть такой кусочек кода для постоянной проверки и каста демонов
и периодически пишет что типа демонов 1-2 хотя демонов нет поблизости вообще, какие есть предложения по поводу проверки есть ли демон ? код полность мой и мне непонятно где он находит демонов в области чистой от всех существ вообще.(демон уже всех убил) Понятно део что это токот кусок более общирного кода в нем этот макр запускается каждый жар при цикле основного сркипта.
Code:
var zakl = "Summon Daemon"
var killer = "0x0009"
var Svitok = "0x1F66"   
sub summon()
    UO.Set('finddistance',10)           
   UO.FindType(killer, '-1', '1')   
   wait(2000)
   uo.print('uge  est Sumoner - ' + str(uo.findcount()) )
   while uo.findcount() == 0
      uo.print('Sumoner - ' + str(uo.findcount()) )
      UO.WaitTargetTile(0,UO.GetX()+1,UO.GetY()+1,UO.GetZ())
      uo.print('Svitkov - ' + str(uo.Count(Svitok,"0x0000")) )
      if str(uo.Count(Svitok,"0x0000")) <> "0" then
         uo.waittargetobject("runebookid")
         UO.Usetype(Svitok)
      else
         UO.Cast(Zakl)
      end if
      wait(10000)
      UO.FindType(killer, '-1', '1')   
       uo.say("All guard")
   wend
end sub


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

All times are UTC+02:00


Who is online

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