Yoko

All sides of Injection
It is currently 2024-05-13 00:13:43

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Реги
PostPosted: 2004-06-07 12:41:51 
Offline

Joined: 2004-04-06 19:53:41
Posts: 82
довольно часто инжект показывает старые значения количества реагентов, что мешает точному определению что надо купить.
Нельзя ли принудительно с помощью какой-либо команды сделать принудительное пересчитывание реагентов?


Top
   
 Post subject:
PostPosted: 2004-06-07 13:59:13 
Offline
Expert!

Joined: 2004-04-25 11:11:07
Posts: 359
Code:
sub UpdateContainers(contobj)
  var cont,cnt
  uo.FindType("0x0E76","-1","contobj")
  cnt=uo.FindCount()
  while cnt>0
   uo.UseObject("finditem")
   uo.MoveItem("finditem","0","contobj",STR(uo.GetX("finditem")),STR(uo.GetY("finditem")),STR(uo.GetZ("finditem")))
   wait(100)
   uo.Ignore("finditem")
   UpdateContainers(uo.GetSerial("finditem"))
   uo.FindType("0x0E76","-1","contobj")
    cnt=uo.FindCount()
  wend
  uo.FindType("0x0E75","-1","contobj")
  cnt=uo.FindCount()
  while cnt>0
   uo.UseObject("finditem")
   uo.MoveItem("finditem","0","contobj",STR(uo.GetX("finditem")),STR(uo.GetY("finditem")),STR(uo.GetZ("finditem")))
   wait(100)
   uo.Ignore("finditem")
   UpdateContainers(uo.GetSerial("finditem"))
   uo.FindType("0x0E75","-1","contobj")
    cnt=uo.FindCount()
  wend   
end sub


вызываешь ЭТО, указав в качетсве аргумента серийник своего бакпака
Правда, работает только для сумок, насколько я понял...Но это легко модифицируется

_________________
Без труда не выловишь и рыбку из пруда,
А без пруда не выловишь её и с трудом...


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

All times are UTC+02:00


Who is online

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