Yoko

All sides of Injection
It is currently 2026-01-26 21:01:33

All times are UTC+02:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Подкормка
PostPosted: 2008-08-28 20:34:51 
Offline
User avatar

Joined: 2006-10-08 08:37:57
Posts: 87
Народ помогите разобраться Я когда запускаю подкормку выдаёт Unhandled in parsed error как-то так )

Code:
Sub EatChar( Sunduk, Nom, Add, TimeWait ) 
   ; сообщения при кормежке
   UO.Print( 'TEST: eat ' + str( Nom ) + ' message ' + str( Add ) + ' add ' + str( TimeWait ) + ' minutes' )
   VAR Eat1 = 'You eat the food, but are still extremely hungry'
   VAR Eat2 = 'After eating the food, you fell much less hungry'
   VAR Eat3 = 'You eat the food, and begin to feel more satiated'
   VAR Eat4 = 'You are nearly stuffed, but manage to eat the food'
   VAR Eat5 = 'You fell quite full after consuming the food'
   VAR Eat6 = 'You are stuffed!'
   VAR Eat7 = 'You are simply too full to eat any more!'
   VAR Steak = '0x097B'         ; тип меда для подкормки
   VAR i, Eat, j
   ; проверим, пора ли кормиться
   i = Val( UO.GetGlobal( 'TimeProcess' ) )
   i = ( UO.Timer() - i ) / 600
   If i < TimeWait Then
      ; рано кормиться
      return
   Endif
   ; пора кормиться
   If Nom == 1 Then
      Eat = Eat1
   Endif
   If Nom == 2 Then
      Eat = Eat2
   Endif
   If Nom == 3 Then
      Eat = Eat3
   Endif
   If Nom == 4 Then
      Eat = Eat4
   Endif
   If Nom == 5 Then
      Eat = Eat5
   Endif
   If Nom == 6 Then
      Eat = Eat6
   Endif
   If Nom == 7 Then
      Eat = Eat7
   Endif
   UO.FindType( Steak, '-1', Sunduk )
   If UO.FindCount() == 0 Then
      ; мед кончился
      UO.SetGlobal( 'TimeProcess', str( UO.Timer() ) )
      return
   Endif
   UO.Grab( '60', 'finditem' )
   Wait( 1000 )
   repeat
      DeleteJournal( Eat )
      UO.UseType( Steak )
      Wait( 1000 )
   until NOT UO.InJournal( Eat )
   If Add > 0 Then
      For j = 1 To Add
         UO.UseType( Steak )
         Wait( 1000 )
      Next
   Endif
   ; хватит кормиться 
   ; Сбросим счетчик
   UO.SetGlobal( 'TimeProcess', str( UO.Timer() ) )
endsub


Top
   
 Post subject:
PostPosted: 2008-08-28 20:46:00 
Offline

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


Top
   
 Post subject:
PostPosted: 2008-08-28 22:14:30 
Offline
User avatar

Joined: 2006-10-08 08:37:57
Posts: 87
Sub EatChar :)
З.Ы. а у тебя есть чисто отдельная подкормка чара? тоесть раз в час он чтобы кушал, если есть дай пожалуйста :)


Top
   
 Post subject:
PostPosted: 2008-08-28 22:42:27 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Странно что он у тебя анхендл выдаёт, а не ошибку аргументов. Обращайся к автору этой функции,-он тебе поможет


Top
   
 Post subject:
PostPosted: 2008-08-29 10:20:12 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
viewtopic.php?t=6903&start=0

_________________
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Skype: d119060


Top
   
 Post subject:
PostPosted: 2008-08-29 18:30:18 
Offline
User avatar

Joined: 2006-10-08 08:37:57
Posts: 87
всё скрипт сделал сам разорбрался ^_^ и ещё у меня один такой вопрос как можно сделать юз масивов? тоесть к примеру у меня на шарде рыбу резать при дабл клике на неё а не даггером :)


Top
   
 Post subject:
PostPosted: 2008-08-29 18:51:10 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
D3VnuLL wrote:
всё скрипт сделал сам разорбрался ^_^ и ещё у меня один такой вопрос как можно сделать юз масивов? тоесть к примеру у меня на шарде рыбу резать при дабл клике на неё а не даггером :)

Луталку открой и посмотри как сделать


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

All times are UTC+02:00


Who is online

Users browsing this forum: Bing [Bot] 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