Yoko

All sides of Injection
It is currently 2025-12-03 13:34:53

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2005-05-08 14:15:00 
Offline

Joined: 2004-10-28 20:30:52
Posts: 2
sub Train_Poisoning()
var sucmessage, nsucmessage, LastTimer, dagger, poison
dagger=UO.GetSerial("_0x0F51")
poison=UO.GetSerial("_0x0F0E")
sucmessage="You apply the poison"
nsucmessage="You fail to apply"
while True
uo.deletejournal()
LastTimer=UO.Timer()
UO.waittargetobject (dagger, poison)
uo.useskill ("Poisoning")
repeat
wait(250)
until uo.injournal(sucmessage) or uo.injournal(nsucmessage) or LastTimer+90<UO.Timer()
wait(250)
if not uo.Count(0x0F0E) then
uo.sound(61)
return
endif
wend
end sub


вот собственно сам скрипт на дрв. добавьте кусочек плз. чтобы он брал пойзон и дальше юзал его


Top
   
 Post subject:
PostPosted: 2005-05-09 08:35:59 
Offline
Expert!
User avatar

Joined: 2004-07-04 00:14:58
Posts: 1284
[not tested]
Code:
sub Poisoning()   
var idContainer =
var idDagger=UO.GetSerial("_0x0F51")
   while GrabContainer(idContainer, '0x0F0E','0x0998',100)==0 and uo.skillval("Poisoning",1) < 10000
      UO.FindType('0x0F0E','0x0998','backpack')
      While UO.FindCount() > 0
         UO.DeleteJournal()
         UO.WaitTargetObject(idDagger,'finditem')
         UO.UseSkill("Poisoning")
         while NOT UO.InJournal("You fail to apply") AND NOT UO.InJournal("You apply")
            wait(300)
         wend   
      wend
   wend
end sub

sub GrabContainer(idContainer, tType, cType, Quanty)
   if UO.Count(tType,cType)<=10 then
      UO.FindType(tType,cType,idContainer)
      If UO.GetQuantity('finditem')>0 then            
         UO.Grab(Quanty,'finditem')
         wait(100)
         CheckLag()
      else
         return 1
      Endif            
   End If
   return 0
end sub

sub CheckLag()
   UO.DeleteJournal()
   UO.Click('backpack')
   repeat
      wait(50)
   until UO.InJournal('backpack')
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: Bing [Bot] and 1 guest


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