Yoko

All sides of Injection
It is currently 2025-12-04 10:41:56

All times are UTC+02:00




Post new topic  Reply to topic  [ 36 posts ]  Go to page Previous 1 2
Author Message
 Post subject:
PostPosted: 2006-05-31 15:13:53 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
Code:
Sub del(msg) 
while uo.injournal(msg)
uo.setjournalline(uo.injournal(msg)-1,'')
wend
end sub


Code:
del(You are hungry)
del(You are consuming)


может надо
Code:
until not uo.dead() 

_________________
Уроки языка Injection
Основные команды языка Injection
Yoko Injection Code Sweeper
Drw (2009) скрипты
2017 Начал играть на Uorpg.net


Top
   
 Post subject:
PostPosted: 2006-05-31 15:15:55 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
Code:
sub eating()
repeat
if uo.injournal('You are hungry') then
while not uo.injournal('You are consuming')
uo.usetype('') #еда
wait(500)
wend
del(You are hungry)
del(You are consuming)
wait(10000) #время через сколько будем проверять журнал на hungry
until not uo.dead()
end if
end sub

Sub del(msg)
while uo.injournal(msg)
uo.setjournalline(uo.injournal(msg)-1,'')
wend
end sub


пробуй... :wink:

_________________
Уроки языка Injection
Основные команды языка Injection
Yoko Injection Code Sweeper
Drw (2009) скрипты
2017 Начал играть на Uorpg.net


Top
   
 Post subject:
PostPosted: 2006-05-31 15:19:55 
Offline

Joined: 2006-04-15 09:00:35
Posts: 93
NMY wrote:
может надо
Code:
until not uo.dead() 


Сорь, не углядел :D


Top
   
 Post subject:
PostPosted: 2006-05-31 15:24:59 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
так это я так написал :mrgreen: совсем разучился писать скрипты :oops:

_________________
Уроки языка Injection
Основные команды языка Injection
Yoko Injection Code Sweeper
Drw (2009) скрипты
2017 Начал играть на Uorpg.net


Top
   
 Post subject:
PostPosted: 2006-05-31 16:02:39 
Offline

Joined: 2006-02-03 19:32:33
Posts: 156
NMY wrote:
Code:
sub eating()
repeat
if uo.injournal('You are hungry') then
while not uo.injournal('You are consuming')
uo.usetype('') #еда
wait(500)
wend
del(You are hungry)
del(You are consuming)
wait(10000) #время через сколько будем проверять журнал на hungry
until not uo.dead()
end if
end sub

Sub del(msg)
while uo.injournal(msg)
uo.setjournalline(uo.injournal(msg)-1,'')
wend
end sub


пробуй... :wink:

ВАРИБЛ ИНДЕВЕНДЕТ you

_________________
ЦСКА- чЕмПиОн, кто не верит, тот ...... (нехороший человек)


Top
   
 Post subject:
PostPosted: 2006-05-31 16:06:36 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
а ? :shock:

_________________
Уроки языка Injection
Основные команды языка Injection
Yoko Injection Code Sweeper
Drw (2009) скрипты
2017 Начал играть на Uorpg.net


Top
   
 Post subject:
PostPosted: 2006-05-31 16:17:01 
Offline

Joined: 2005-08-19 16:12:23
Posts: 182
Code:
sub eating()
repeat
if uo.injournal('You are hungry') then
while not uo.injournal('You are consuming')
uo.usetype('') #еда
wait(500)
wend
del("You are hungry")
del("You are consuming")
wait(10000) #время через сколько будем проверять журнал на hungry
end if
wait(100)
until uo.dead()
end sub

Sub del(msg)
while uo.injournal(msg)
uo.setjournalline(uo.injournal(msg)-1,'')
wend
end sub


Top
   
 Post subject:
PostPosted: 2006-05-31 16:19:04 
Offline
Expert!
User avatar

Joined: 2005-05-04 14:05:19
Posts: 2580
Location: Москва
переменая you не объявленна


Top
   
 Post subject:
PostPosted: 2006-05-31 16:21:25 
Offline

Joined: 2006-02-03 19:32:33
Posts: 156
SLAK wrote:
Code:
sub eating()
repeat
if uo.injournal('You are hungry') then
while not uo.injournal('You feel quite')
uo.usetype('') #еда
wait(500)
wend
del("You are hungry")
del("You are consuming")
wait(10000) #время через сколько будем проверять журнал на hungry
end if
wait(100)
until uo.dead()
end sub

Sub del(msg)
while uo.injournal(msg)
uo.setjournalline(uo.injournal(msg)-1,'')
wend
end sub


вроде работает
но когда написал You are hungry, он не остановился на You feel quite
и еще через некторое время выдает ошибку и скрипт вырубается

_________________
ЦСКА- чЕмПиОн, кто не верит, тот ...... (нехороший человек)


Top
   
 Post subject:
PostPosted: 2006-05-31 16:26:45 
Offline
Expert!
User avatar

Joined: 2005-05-04 14:05:19
Posts: 2580
Location: Москва
гдето цикл не закрыт если ошибка вылезает


Top
   
 Post subject:
PostPosted: 2006-05-31 17:19:34 
Offline

Joined: 2005-08-19 16:12:23
Posts: 182
я просто исправил явные ошибки предидущих аффторов...


Top
   
 Post subject:
PostPosted: 2006-05-31 17:24:27 
Offline

Joined: 2005-08-19 16:12:23
Posts: 182
ghost_hnt wrote:
SLAK wrote:
Code:
sub eating()
repeat
if uo.injournal('You are hungry') then
while not uo.injournal('You feel quite')
uo.usetype('') #еда
wait(500)
wend
del("You are hungry")
del("You are consuming")
wait(10000) #время через сколько будем проверять журнал на hungry
end if
wait(100)
until uo.dead()
end sub

Sub del(msg)
while uo.injournal(msg)
uo.setjournalline(uo.injournal(msg)-1,'')
wend
end sub


вроде работает
но когда написал You are hungry, он не остановился на You feel quite
и еще через некторое время выдает ошибку и скрипт вырубается


Ты с сообщениями определись!!! ты отквотил как бы выложеный мной код, но с другими месагами...


Top
   
 Post subject:
PostPosted: 2006-05-31 17:26:15 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
забей типо с мой или я писал... я ваще этот скрипт написал в окне ответа...

_________________
Уроки языка Injection
Основные команды языка Injection
Yoko Injection Code Sweeper
Drw (2009) скрипты
2017 Начал играть на Uorpg.net


Top
   
 Post subject:
PostPosted: 2006-05-31 18:14:53 
Offline

Joined: 2006-02-03 19:32:33
Posts: 156
определился
You are hungry голодный чар
You fell наедаться до такого состояния

_________________
ЦСКА- чЕмПиОн, кто не верит, тот ...... (нехороший человек)


Top
   
 Post subject:
PostPosted: 2006-05-31 19:14:18 
Offline

Joined: 2005-08-19 16:12:23
Posts: 182
Code:
sub eating()
repeat
if uo.injournal('You are hungry') then
  while not uo.injournal('fell')
    uo.usetype('') #еда
    wait(500)
  wend
 del("You are hungry")
 del("fell")
 wait(10000) #время через сколько будем проверять журнал на hungry
end if
 wait(100)
until uo.dead()
end sub

Sub del(msg)
while uo.injournal(msg)
uo.setjournalline(uo.injournal(msg)-1,'')
wend
end sub


Top
   
 Post subject:
PostPosted: 2006-06-01 14:36:11 
Offline

Joined: 2006-02-03 19:32:33
Posts: 156
да все спс - ПОЛНОСТЬЮ РАБОЧИЙ СКРИПТ :D :!: :!:

_________________
ЦСКА- чЕмПиОн, кто не верит, тот ...... (нехороший человек)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 36 posts ]  Go to page Previous 1 2

All times are UTC+02:00


Who is online

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