Yoko

All sides of Injection
It is currently 2025-12-24 00:54:55

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 2006-04-26 23:53:59 
Offline

Joined: 2005-05-04 16:52:49
Posts: 14
Проблемма вот в чём. Я хочу качать хилинг на "Улье" который наносит повреждения (1-5 хп в 100 милисекунд).

Пробывал написать скрип, но додумался только до того чтобы он мог наность поврежения, но как дальше написать незнаю. Ну чтобы он проверял, если у меня жизни меньше 30 тогда он хилит до упора... Если мало стамины (а она падает от хила) то он глотнёт рефрешку. Как это можно осуществить, напишите пжалуста. Я неделю уже мучаюся!
Зарание спасиба!


Top
   
 Post subject:
PostPosted: 2006-04-26 23:59:27 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Code:
sub heal()
var refresh=' type '
var color=' color of refresh '
  while not uo.Dead()
    while uo.life < 50
      uo.bandageself()
      wait(2000)
      if uo.stamina < 10 then
        uo.UseType(refresh,color)
        wait(100)
      end if
    wend
  wend
end sub


Top
   
 Post subject:
PostPosted: 2006-04-27 08:22:27 
Offline

Joined: 2005-05-04 16:52:49
Posts: 14
Во! Большая спасиба!


Top
   
 Post subject:
PostPosted: 2006-04-27 08:53:51 
Offline
Expert!
User avatar

Joined: 2004-08-11 23:56:17
Posts: 746
Location: The Citadel
Пустой цикл штука опасная, надо хотя бы минимальную задержку поставить.
Вот.

Code:
sub heal() 
var refresh=' type '
var color=' color of refresh '
  while not uo.Dead()
    while uo.life < 50
      uo.bandageself()
      wait(2000)
      if uo.stamina < 10 then
        uo.UseType(refresh,color)
        wait(100)
      end if
    wend
   wait(50)
  wend
end sub


Top
   
 Post subject:
PostPosted: 2007-01-26 12:49:21 
Offline

Joined: 2007-01-26 02:58:13
Posts: 16
можете выложыть целы скрипт чтоб он тыкал в улеи я не поиму как мне ето намутить помогитье


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

All times are UTC+02:00


Who is online

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