Yoko

All sides of Injection
It is currently 2025-10-16 11:52:27

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2009-12-10 04:23:12 
Offline
User avatar

Joined: 2006-08-06 10:23:20
Posts: 117
Тоеть.. Ситуация такая.. Лумбер, ходилка.

Хайд в начале рубки дерева, хайд в ходилке.
И когда он не успевает захайдится во время шага, хайд из рубки его перехватывает и получается вечный 'fail'

подскажите чтото типа...

Code:
sub tohide()
var h=1
   uo.useskill(Hiding)
end sub

sub checkhide()
var h
   if h == 1 then
   uo.print('Wait for Hiding')
tohide()
   else
uo.print('Hiding complete')


Тоесть если Мы захайдились, присвоить h Значение 1.. и потом проверка на это значение.. как то так.. сам пока не могу осилить


Top
   
 Post subject:
PostPosted: 2009-12-10 07:49:34 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
У тебя мгновенно должен заходить в хайд? :) Где паузы?

У меня чуть подлиннее зато надежнее

в шапке скрипта
Code:
var hiding=1 ; при =0 не прячется


в теле скрипта где надо прятаться
Code:
if hiding then
hide()
endif


внизу

Code:
Sub Hide()
VAR LastTimer, n=0, HidFlag=1
    if UO.Hidden() then
        HidFlag=0
    else
    end if
    while HidFlag
        DeleteJournal("can't seem to hide|to perform|stop trying|прекратили|не удалось|удачно|You have hidden yourself well")
        LastTimer=UO.Timer()
        UO.WarMode(0)
        UO.UseSkill('Hiding')
        repeat
            wait(50)
        until UO.InJournal("can't seem to hide|to perform|stop trying|прекратили|не удалось|удачно|You have hidden yourself well") || LastTimer+50<UO.Timer()
        if UO.InJournal("0xA5F8|удачно|You have hidden yourself well") then
            HidFlag=0
        else
            n=n+1
            if n>3 then
 UO.Set('quiet','0')
                UO.Print('Спрятаться не получается')
 UO.Set('quiet','1')
  #ДЕЙСТВИЕ ПРИ НЕУДАЧЕ#
            end if
        end if
wend
end sub
3 раза не спрятался = либо забивает ретурном либо терминатит весь скрипт

_________________
Image
YokoInjection CodeSweeper
Ошибка "Unhandled exception in parser"
Стрелялка для олдов.


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


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