Yoko

All sides of Injection
It is currently 2025-12-02 16:08:23

All times are UTC+02:00




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
PostPosted: 2007-11-12 14:33:20 
Offline

Joined: 2006-11-25 17:44:44
Posts: 258
Такая проблема: чар в пещере копает руду. при появлении ПК сваливает домой и ждет минут 8.Потом летит обратно в пещеру.И тут же обнаруживает того же ПК, хотя его там на самом деле НЕТУ!!! КАК ТАКОЕ МОЖЕТ БЫТЬ??
Code:
sub CheckPK()
uo.print('Проверяем наличие ПК')
VAR j, jor, ser, noto, n ,i,name
DIM man[2]
man[0]='0x0190'
man[1]='0x0191'
uo.set('finddistance','20')
uo.IgnoreReset()
uo.ignore('self')

for i=0 to 1
Repeat
  uo.findtype(man[i],'-1','1')
  If uo.FindCount()>0 then
    noto=uo.getnotoriety('finditem')
    If noto<>0 and noto<>1   then
      name=uo.GetName('finditem')
      if uo.waiting() then
        uo.canceltarget()
      endif
      uo.Print('!!!***PK DETECTED***!!!')
      uo.Print('Его имя- '+name)
      uo.Print('Его злобность= '+str(noto))
      uo.Print('Валим на хрен!')
      uo.Forget('finditem') 
    #uo.Ignore('finditem')
      return 1
    EndIf 
  uo.Ignore('finditem') 
  else
    wait(200)
  EndIf
 
Until uo.findcount()==0
next
end sub


Last edited by grundick on 2007-11-17 13:23:56, edited 1 time in total.

Top
   
 Post subject:
PostPosted: 2007-11-14 10:55:39 
Offline

Joined: 2006-11-25 17:44:44
Posts: 258
ап ап ап!!!


Top
   
 Post subject:
PostPosted: 2007-11-15 19:41:01 
Offline

Joined: 2006-11-25 17:44:44
Posts: 258
ап


Top
   
 Post subject:
PostPosted: 2007-11-15 21:58:44 
Offline
User avatar

Joined: 2005-07-10 21:53:05
Posts: 457
по тому что пакет на удаление от сервера не приходит, а сама инжа его удалить не может. Юзай forget


Top
   
 Post subject:
PostPosted: 2007-11-15 23:28:07 
Offline

Joined: 2006-11-25 17:44:44
Posts: 258
Юзал форгет.То же самое всё...


Top
   
 Post subject:
PostPosted: 2007-11-16 08:37:41 
Offline

Joined: 2006-11-25 17:44:44
Posts: 258
Упс, заработало :oops: .uo.forget() вроде как помог!!


Top
   
 Post subject:
PostPosted: 2007-11-17 13:26:26 
Offline

Joined: 2006-11-25 17:44:44
Posts: 258
Вообщем такая история.Если я отдельно использую эту функцию, она работает как положено.Если же я её использую в основном скрипте, она всё равно находит того же ПК (от которого свалил)! С чем это может быть связано???


Top
   
 Post subject:
PostPosted: 2007-11-19 01:21:46 
Offline
User avatar

Joined: 2005-07-10 21:53:05
Posts: 457
С чем связано уже сказал, осталось добится гарантированного удаления объекта призрака. Форгетом сам я некогда не пользовался икак он работает без понятия.


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

All times are UTC+02:00


Who is online

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