Yoko

All sides of Injection
It is currently 2025-10-24 19:50:00

All times are UTC+02:00




Post new topic  Reply to topic  [ 10 posts ] 
Author Message
PostPosted: 2007-09-25 05:43:32 
Offline

Joined: 2007-09-25 05:40:46
Posts: 14
Code:
sub Smelth()
Var Ruda='0x19B7'
Var Bag='0x40024289'
Var Ore='0x19B9'

IF UO.Count( Ruda ) = 0 Then
   UO.FindType ( 'Ore', '-1', 'Bag' )
      If UO.FindCount() > 4 Then
         UO.MoveItem('finditem', '1')
         wait( 300 )
         UO.UseType( 'Ruda' )
         wait(300 )
      Else
         UO.Print( 'В мешке нет руды!' )
      Endif
Endif
Next
EndSub


У меня на сервере руда плавится дабл кликом на руду, вот я себе и написал скрипт, только он почемуто ошибку выдает в строке

UO.MoveItem('finditem', '1')

Я пробывал UO.Grab не помогает тоже самое... Подскажите что не так?


Top
   
 Post subject:
PostPosted: 2007-09-25 13:40:18 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Code:
sub Smelth() 
Var Ruda='0x19B7'
Var Bag='0x40024289'
Var Ore='0x19B9'

uo.UseObject(Bag)
wait(1000)
UO.FindType ( 'Ore', '-1', 'Bag' )
if uo.FindCount() then
 repeat
  uo.moveitem('finditem','1')
  wait(500)
  uo.UseObject('finditem')
  wait(750)
  UO.FindType ( 'Ore', '-1', 'Bag' )
 until uo.FindCount() ==0
end if
uo.Print('there are no more ores to smelt.')
EndSub


Last edited by Scripts Writer on 2007-09-25 15:49:53, edited 1 time in total.

Top
   
 Post subject:
PostPosted: 2007-09-25 15:29:24 
Offline

Joined: 2007-09-25 05:40:46
Posts: 14
Ошибку пишет... UO.FINDCOUNT и указывает почемуто на строку где написанно Endsub


Top
   
 Post subject:
PostPosted: 2007-09-25 15:50:03 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Исправил


Top
   
 Post subject:
PostPosted: 2007-09-25 22:24:35 
Offline

Joined: 2007-09-25 05:40:46
Posts: 14
Мешок открывается, и далее у меня в паке все вещи начинают перекладываться... А вот руда с мешка не берется...


Top
   
 Post subject:
PostPosted: 2007-09-26 04:01:00 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Мешок у тебя в бекпеке лежит?


Top
   
 Post subject:
PostPosted: 2007-09-26 08:29:37 
Offline

Joined: 2007-09-25 05:40:46
Posts: 14
Нет наполу рядом с чаром... А нада в бекпаке?


Top
   
 Post subject:
PostPosted: 2007-09-26 10:54:29 
Offline

Joined: 2006-11-25 17:44:44
Posts: 258
Пох где мешок.Вот так должно работать
Code:
sub Smelth() 
Var Bag='0x4013C28D'
Var IronOre='0x19B9'

uo.UseObject(Bag)
wait(1000)
UO.FindType (IronOre,-1,Bag)
if uo.FindCount() then
 repeat
  uo.moveitem('finditem',1)
  wait(200)
  uo.UseObject('finditem')
  wait(200)
  UO.FindType ( IronOre, -1, Bag )
 until uo.FindCount() ==0
end if
uo.Print('there are no more ores to smelt.')
end sub


Top
   
 Post subject:
PostPosted: 2007-09-26 17:34:08 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Archy_87 wrote:
Нет наполу рядом с чаром... А нада в бекпаке?


Найди нормальный скрипт на переплавку(В проверенных скриптах там Smelthing (by Gremlin если не ошибаюсь))


Top
   
 Post subject:
PostPosted: 2007-09-26 20:04:08 
Offline
User avatar

Joined: 2006-03-23 19:25:23
Posts: 101
Там, где используются переменные, ковычки не нужны.

_________________
:O


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

All times are UTC+02:00


Who is online

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