Yoko

All sides of Injection
It is currently 2025-12-10 05:52:16

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2008-07-20 18:49:32 
Offline
User avatar

Joined: 2006-10-24 01:51:41
Posts: 23
Location: Middle Earth
скрипт для шарда Middle-Earth

непойму в чем проблема. кует горгеку, перемещает ее, а дальше выдает это
Quote:
What would you like to use that on? - эта надпись появляется когда юзаешь smith's hammer
Targetting cancelled


Code:
   var newitem
sub full_dwp()
   var i
   var material=0x1BF2 #тип ингов
   
   Dim armor[5]
   armor[0] = 'Platemail Gorget'
   armor[1] = 'Dwarwen Platemail Breastplate'
   armor[2] = 'Dwarwen Platemail Arms'
   armor[3] = 'Dwarwen Platemail Gloves'
   armor[4] = 'Dwarwen Platemail Legs'
   
   Dim brak[6]
   brak[0] = '0x1413'    ## Platemail Gorget
   brak[1] = '0x1416'    ## Dwarwen Platemail Breastplate
   brak[2] = '0x1417'    ## Dwarwen Platemail Arms
   brak[3] = '0x1418'    ## Dwarwen Platemail Gloves
   brak[4] = '0x141A'    ## Dwarwen Platemail Legs
   brak[5] = '0x1419'    ## Dwarwen Plate Helm
   
   uo.print("!Set receiving bag!")
   uo.addobject('thebag')
   while uo.targeting()
      wait(100)
   wend
   
   for i = 0 to 4
      repeat
         uo.deletejournal()
         uo.waittargettype('material')
         uo.usetype('0x13E3')
         uo.waitmenu('What', 'Armor', 'Select', 'Platemail', 'Select', armor[i])
         WaitJournal('in your pack|destroy',10000)
         MeltNonExeptional(brak[i])
      until uo.injournal('exceptional')
      wait(100)
      newitem = WaitType(brak[i],1000)
      UO.MoveItem(newitem,1,'thebag')
      uo.deletejournal()
   next
   
   repeat
      uo.deletejournal()
      uo.waittargettype('material')
      uo.usetype('0x13E3')
      uo.waitmenu('What', 'Armor', 'Select', 'Helmets', 'Select', 'Dwarven')
      WaitJournal('in your pack|destroy',10000)
      MeltNonExeptional(brak[5])
   until uo.injournal('exceptional')
   wait(100)
   newitem = WaitType(brak[5],1000)
   UO.MoveItem(newitem,1,'thebag')
   
end sub

sub MeltNonExeptional(type)
   if uo.injournal('create') then
      uo.waittargettype(type)
      uo.usetype('0x0FBB')
      while not uo.injournal('You could make some material from that.')
         wait(100)
      wend
      wait(3000)
   endif
end sub

sub WaitJournal(Line,maxWait)
   if (maxWait < 0) then
      maxWait = 60*60*24*30*12
   end if
   
   while (not UO.InJournal(Line)) and (maxWait > 0)
      wait(100)
      maxWait = maxWait - 100
   wend
   wait(100)
end sub

sub WaitType(Type,maxWait)
   if (maxWait < 0) then
      maxWait = 60*60*24*30*12
   end if

   UO.findtype(Type,-1,-1)
   while (not UO.FindCount()) and (maxWait > 0)
      wait(100)
      maxWait = maxWait - 100
      UO.findtype(Type,-1,-1)
   wend
   return uo.getserial("finditem")
end sub


Top
   
 Post subject:
PostPosted: 2008-08-02 15:23:28 
Offline

Joined: 2004-07-29 16:29:52
Posts: 55
uo.waittargettype(type,color)


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 0 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