It is currently 28 Mar 2024, 11:42

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 13 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: скрипт на хп
PostPosted: 28 Dec 2017, 01:07 
Offline
Игрок

Joined: 21 Nov 2017, 23:33
Posts: 86
Location: Одесса
скиньте скрипт на инжу чтоб над персом были выведены % жизни ... Буду благодарен !
Спс


Top
 Profile  
 
PostPosted: 28 Dec 2017, 01:25 
Offline
Бывалый игрок
User avatar

Joined: 21 Mar 2017, 03:06
Posts: 333
Location: Київ
Code:
sub HpCounter()
var Hp = UO.GetHP(), MaxHp = UO.GetMaxHP(), color = 0x010c, percent = Hp / (MaxHp / 100)
start:
   while not uo.Dead()
      MaxHp = UO.GetMaxHP()
      if not int(UO.GetHP() / (MaxHp / 100)) == int(percent) then
         Hp = UO.GetHP()
         percent = Hp / (MaxHp / 100)
         if percent <= 25 then
            color = 0x0021
         else if percent <= 50 then
            color = 0x002b
         else if percent <= 75 then
            color = 0x0035
         else if percent <= 99 then
            color = 0x003a
         else if percent == 100 then
            color = 0x003f
         end if
         uo.charprint(self, color, '[' + str(int(percent)) + '%]')
      end if
      wait(250)
   wend
   while uo.Dead()
      wait(500)
   wend
   goto start
end sub


Top
 Profile  
 
PostPosted: 14 Jan 2018, 19:00 
Offline
Игрок

Joined: 11 Jan 2018, 16:04
Posts: 70
Что то не работает пишет ошибка Veriable indefined - SELF


Top
 Profile  
 
PostPosted: 14 Jan 2018, 19:56 
Offline
Игрок

Joined: 11 Jan 2018, 16:04
Posts: 70
Помогите настроить


Top
 Profile  
 
PostPosted: 14 Jan 2018, 19:59 
Offline
English Support
User avatar

Joined: 21 Nov 2010, 18:42
Posts: 1460
Location: Deutschland
Jestkach wrote:
Помогите настроить


Версия инжекта какая ?


Top
 Profile  
 
PostPosted: 14 Jan 2018, 21:10 
Offline
Игрок

Joined: 11 Jan 2018, 16:04
Posts: 70
Вроде заработал я добавил ковычки 'self'
Только вот какие то палки по бокам бесячие на видео их нет I:[50%]:I
Как их убрать ?


Top
 Profile  
 
PostPosted: 14 Jan 2018, 23:12 
Offline
Игрок

Joined: 11 Jan 2018, 16:04
Posts: 70
Вот такие скобки как убрать ?


Attachments:
Ultima.jpg
Ultima.jpg [ 1.01 MiB | Viewed 594 times ]
Top
 Profile  
 
PostPosted: 15 Jan 2018, 20:20 
Offline
Игрок

Joined: 11 Jan 2018, 16:04
Posts: 70
Установил другой инжект все стало норм )


Top
 Profile  
 
PostPosted: 15 Jan 2018, 20:36 
Offline
English Support
User avatar

Joined: 21 Nov 2010, 18:42
Posts: 1460
Location: Deutschland
Vikky wrote:
Jestkach wrote:
Помогите настроить


Версия инжекта какая ?

На будущее - если тебе пытаются помочь - не игнорь.


Top
 Profile  
 
PostPosted: 15 Jan 2018, 20:42 
Offline
Бывалый игрок
User avatar

Joined: 21 Mar 2017, 03:06
Posts: 333
Location: Київ
А вообще я бы посоветовал скачать Орион. там все встроено , работает лучше и плавно игра идет. Чутка поиграешь и все равно для нормально игры Орион придется качать. А Инжект с этим скриптом вылетает не в нужные моменты.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ]  Go to page 1, 2  Next

All times are UTC + 2 hours [ DST ]


Who is online

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