Yoko

All sides of Injection
It is currently 2025-12-28 15:05:09

All times are UTC+02:00




Post new topic  Reply to topic  [ 10 posts ] 
Author Message
 Post subject: УО.ПРИНТ
PostPosted: 2005-08-26 23:34:10 
Offline

Joined: 2005-02-06 19:28:02
Posts: 57
Вобщем возник такой вопрос, вот часть скрипта
if uo.life < 47 then
uo.print('H E A L H E A L H E A L H E A L')
end if

if uo.mana < 35 then
uo.print ('M A N A M A N A M A N A')
end if

Карочи когда выполняеться условие, у меня начинают бежать месаги в уо бесконечное число раз, можно ли сделать чтоб она вылетала один раз и замолкала, пока условие не повториться снова


Top
   
 Post subject: Re: УО.ПРИНТ
PostPosted: 2005-08-26 23:52:12 
Offline
Expert!
User avatar

Joined: 2004-08-11 23:56:17
Posts: 746
Location: The Citadel
Code:
a = 0
if uo.mana < 35 and a == 0 then
uo.print ('M A N A M A N A M A N A')
a = 1
end if


Top
   
 Post subject:
PostPosted: 2005-08-27 10:02:26 
Offline

Joined: 2005-02-06 19:28:02
Posts: 57
хм.. пишет Variable Undefiden


Top
   
 Post subject:
PostPosted: 2005-08-27 10:45:55 
Offline
Expert!
User avatar

Joined: 2004-08-11 23:56:17
Posts: 746
Location: The Citadel
Мде.
добавь
Code:
var a
в начало скрипта.


Top
   
 Post subject:
PostPosted: 2005-08-27 11:06:50 
Offline

Joined: 2005-02-06 19:28:02
Posts: 57
хм . неа все равно орет бес перерыва пока не отхилюсь или ману не востановлю


Top
   
 Post subject:
PostPosted: 2005-08-27 11:48:10 
Offline

Joined: 2005-01-22 10:29:34
Posts: 138
сделай так
в начале скрипта поставь
Code:
var mana

потом
свой кусок переделай
Code:
if uo.mana < 47 then 
mana=uo.mana
uo.print(MANAMANAMANA)
while not mana<uo.mana
wait(500)
wend
end if


Top
   
 Post subject:
PostPosted: 2005-08-27 12:55:38 
Offline

Joined: 2005-08-12 03:04:00
Posts: 125
Может в его скрипте есть цилкл, который повторяет этот фрагмент :D и скока в этом кусочке задержек не ставь - всёрно будет повторяться :D .

2 Dread Masta:
Если у тебя на машине колесо не крутится, ты в автосервис одно колесо понесешь? Мол "Вы не посмотрите? У меня тут машина сломалась." :D :D :D

_________________
I NEED HELP at viewtopic.php?t=4903


Last edited by PCGamer on 2005-08-27 15:10:01, edited 2 times in total.

Top
   
 Post subject:
PostPosted: 2005-08-27 13:33:11 
Offline
Expert!
User avatar

Joined: 2004-08-11 23:56:17
Posts: 746
Location: The Citadel
Так пусть выложит свой скрипт целиком а не по 3 строчки.


Top
   
 Post subject:
PostPosted: 2005-08-27 17:55:10 
Offline

Joined: 2004-05-25 14:32:55
Posts: 101
Location: 74.ru
А может UO.DeleteJournal? :)

_________________
"Наточил я свой топор, головешек полон двор" :)

http://foto.bincub.ru/players/N/nik.html


Top
   
 Post subject:
PostPosted: 2005-08-27 18:00:22 
Offline
Expert!
User avatar

Joined: 2005-01-15 19:15:05
Posts: 791
Location: Dragon World
nik-kazancev wrote:
А может UO.DeleteJournal? :)

Разве это что-то изменит? Я тут не вижу какую-либо проверку на сообщения в журнале.


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 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:  
Powered by phpBB® Forum Software © phpBB Limited