Yoko

All sides of Injection
It is currently 2025-11-12 03:44:59

All times are UTC+02:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
PostPosted: 2007-05-23 21:55:38 
Offline

Joined: 2007-05-18 04:30:15
Posts: 5
Хороший скрипт,но у меня проблема! На моем шарде когда тамишь животное второй раз оно пишет "The Liama remebers you and accepts you onse more as it's masrer."В журнале появляеться You see: (выше написанное). Помогите вписать так чтобы после этой фразы он писал алл релеасе и опять начинал тамить.зарание спасибо.


var fruit='0x09D1' ##Тип еды, которой кормим животное
var food= '0x097B' ##Тип того что сами будем кушать
var Timer=UO.Timer()
var Animal, Staff

sub AnimalTaming()
#¤Leo¤#
UO.Msg('All release')

UO.Print('Выбери Животину...')
UO.Exec('addobject Animal')
while uo.Targeting()
wait(100)
wend

UO.Print('Выбери Палку...')
UO.Exec('addobject Staff')
while uo.Targeting()
wait(100)
wend

UO.DeleteJournal()
while not UO.InJournal('It seems') or not UO.InJournal('see the creature')
UO.DeleteJournal()
UO.WaitTargetObject('Animal')
UO.UseObject('Staff')
repeat
wait(100)
until UO.InJournal('fail') or UO.InJournal('It seems') or UO.InJournal('see the creature')
if UO.Timer()>(Timer+1200) then
UO.SetReceivingContainer('Animal')
wait(500)
UO.FindType(fruit)
if UO.GetQuantity('finditem')>0 then
UO.Grab('5','finditem')
wait(500)
end if
UO.UnSetReceivingContainer('Animal')
wait(500)
UO.UseType(food)
Timer=UO.Timer()
end if
UO.Msg('All release')
wend
end sub


Top
   
 Post subject:
PostPosted: 2007-05-25 07:03:29 
Offline
User avatar

Joined: 2006-04-02 11:33:38
Posts: 91
не понял а какая разница он всегда будет кричать олл реалайз в не зависимости затамил или нет!


Top
   
 Post subject:
PostPosted: 2007-05-28 22:53:20 
Offline

Joined: 2007-05-18 04:30:15
Posts: 5
Ну я не понимаю,вродь как в скрипте вбито что когда он затамил или не затамил он кричит,но тут не появляеться надписи что он затамил а типо животное вспомнило и само присоединилось.В следствии скрипт просто ниче не делает дальше вот !


Top
   
 Post subject:
PostPosted: 2007-05-29 08:12:57 
Offline

Joined: 2005-01-06 11:49:28
Posts: 205
в эту строчку
Code:
until UO.InJournal('fail') or UO.InJournal('It seems') or UO.InJournal('see the creature')
добавь
Code:
or uo.injournal("The Llama remebers you and accepts you onse more as it's master.")


Top
   
 Post subject:
PostPosted: 2007-05-29 17:29:38 
Offline

Joined: 2007-05-18 04:30:15
Posts: 5
var fruit='0x09D1' ##Тип еды, которой кормим животное
var food= '0x097B' ##Тип того что сами будем кушать
var Timer=UO.Timer()
var Animal, Staff

sub AnimalTaming()
#¤Leo¤#
UO.Msg('All release')

UO.Print('Выбери Животину...')
UO.Exec('addobject Animal')
while uo.Targeting()
wait(100)
wend

UO.Print('Выбери Палку...')
UO.Exec('addobject Staff')
while uo.Targeting()
wait(100)
wend

UO.DeleteJournal()
while not UO.InJournal('It seems') or not UO.InJournal('see the creature')
UO.DeleteJournal()
UO.WaitTargetObject('Animal')
UO.UseObject('Staff')
repeat
wait(100)
until UO.InJournal('fail') or UO.InJournal('It seems') or UO.InJournal('see the creature') or uo.InJournal("The Llama remebers you and accepts you once more as it's master.")
if UO.Timer()>(Timer+1200) then
UO.SetReceivingContainer('Animal')
wait(500)
UO.FindType(fruit)
if UO.GetQuantity('finditem')>0 then
UO.Grab('5','finditem')
wait(500)
end if
UO.UnSetReceivingContainer('Animal')
wait(500)
UO.UseType(food)
Timer=UO.Timer()
end if
UO.Msg('All release')
wend
end sub


Неа все равно тоже самое просто останавливаеться и все


Top
   
 Post subject:
PostPosted: 2007-05-30 13:47:22 
Offline

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

Code:
[code][/code]


Top
   
 Post subject:
PostPosted: 2007-05-31 11:02:44 
Offline

Joined: 2007-05-18 04:30:15
Posts: 5
Code:
var fruit='0x09D1' ##Тип еды, которой кормим животное 
var food= '0x097B' ##Тип того что сами будем кушать
var Timer=UO.Timer()
var Animal, Staff

sub AnimalTaming()
#¤Leo¤#
UO.Msg('All release')

UO.Print('Выбери Животину...')
UO.Exec('addobject Animal')
while uo.Targeting()
wait(100)
wend

UO.Print('Выбери Палку...')
UO.Exec('addobject Staff')
while uo.Targeting()
wait(100)
wend

UO.DeleteJournal()
while not UO.InJournal('It seems') or not UO.InJournal('see the creature')
UO.DeleteJournal()
UO.WaitTargetObject('Animal')
UO.UseObject('Staff')
repeat
wait(100)
until UO.InJournal('fail') or UO.InJournal('It seems') or UO.InJournal('see the creature') or uo.InJournal("The Llama remebers you and accepts you once more as it's master.")
if UO.Timer()>(Timer+1200) then
UO.SetReceivingContainer('Animal')
wait(500)
UO.FindType(fruit)
if UO.GetQuantity('finditem')>0 then
UO.Grab('5','finditem')
wait(500)
end if
UO.UnSetReceivingContainer('Animal')
wait(500)
UO.UseType(food)
Timer=UO.Timer()
end if
UO.Msg('All release')
wend
end sub

Вот скрипт и он не работает,тоже самое останавливаеться и все


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