Yoko

All sides of Injection
It is currently 2025-10-11 15:36:28

All times are UTC+02:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
 Post subject: повтор ф-ции
PostPosted: 2006-07-06 22:41:36 
Offline
User avatar

Joined: 2005-04-23 20:18:57
Posts: 362
Хелп плз.
Есть скрипт - как сделать его повторный запуск после определенного времени.


*script*
end sub

а куда вставлять вейт там и репит. плз скажите :)

_________________
Dragon World. [since 2004]


Top
   
 Post subject:
PostPosted: 2006-07-07 11:13:16 
Offline

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

Code:
sub a()
*script*
a()
end sub


Или же через goto промышляй.


Top
   
 Post subject:
PostPosted: 2006-07-07 11:28:02 
Offline
User avatar

Joined: 2005-04-23 20:18:57
Posts: 362
ок спс - а ктонить знает через скока на дрв респится руда?)

_________________
Dragon World. [since 2004]


Top
   
 Post subject:
PostPosted: 2006-07-07 12:02:54 
Offline
User avatar

Joined: 2005-04-12 15:13:53
Posts: 35
Location: From RuO
5-10 мин точно не знаю :oops:

_________________
Осенью все птицы летят на йух......


Top
   
 Post subject:
PostPosted: 2006-07-07 13:59:07 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
да и ищо можно
Code:
repeat
...
until


Code:
while
...
wend


Code:
LOL :lol: 

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


Top
   
 Post subject:
PostPosted: 2006-07-07 19:48:40 
Offline
User avatar

Joined: 2005-04-23 20:18:57
Posts: 362
спасибо:)
теперь мне надо точно знать сколько времени респ руды на дрв - кто знает плз скажите

_________________
Dragon World. [since 2004]


Top
   
 Post subject:
PostPosted: 2006-07-07 20:51:02 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
Code:
sub time()
uo.deletejournal()
while true
if uo.injournal('You put the') then
uo.deletejournal()
MakeTime()
else
wait(1000)
end if
wend
end sub



Code:
Sub MakeTime()
VAR D, T, Ret, i
Ret = STR(UO.Time())
T = ""
For i = 0 To Len(Ret)
T = Ret[Len(Ret)-i] + T
If (I == 2) OR (I == 4) Then
T = ":" + T
EndIf
Next
Ret = STR(UO.Date())
D = ""
For i = 0 To Len(Ret)
D = Ret[Len(Ret)-i] + D
If (I == 2) OR (I == 4) Then
D = "." + D
EndIf
Next
Ret = T + " @ " + D
RETURN Ret
end sub

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


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