Yoko

All sides of Injection
It is currently 2026-01-19 09:54:19

All times are UTC+02:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: 2007-12-15 10:59:34 
Offline

Joined: 2007-12-15 09:25:05
Posts: 2
Не я этот скрипт писал, темболи он не работает
Помогите подправить скрипт до рабочего состояние :)

Поидеи нужен скрипт с проверкой на скорость магией, т.е секунды...
и притом кастуя ту магию чтоб шол отчет времени каста этой магией
а желательно всей магии
т.е скрипт для массовых ПвП, поможет избежать от противника каст, притом успеть попасть каст на другово противника :)

ну хотяб похожий скрипт :/

sub castSpell
uo.Cast('Flame Strike')
var i, cast_time = uo.getglobal( "time-" + spellname )
if cast_time == "N/A" then
uo.print( "Неизвестное заклинание, засекаю время." )
castTimer( spellname, target )
return false
endif
cast_time = val( cast_time )
if target then
uo.waittargetobject( target )
endif
deljournal( "fizzles" )
uo.cast( spellname )
for i=cast_time to 1 step -1
uo.print( "До конца каста: " + str( i ) + "сек." )
wait( 1000 )
if uo.injournal( "fizzles" ) then
uo.print( "Каст не удался." )
return false
endif
next
endsub

sub castTimer( spellname, target )
if target then
uo.waittargetobject( target )
endif
var time = 0, mana = uo.mana
deljournal( "fizzles" )
uo.cast('Flame Strike','laststatus')
repeat
wait( 1000 )
time = time + 1
until uo.injournal( "fizzles" ) OR uo.mana < mana
if not uo.injournal( "fizzles" ) then
uo.print( "Каст прошёл удачно, время записано: " + str( time ) + " сек." )
uo.setGlobal( "time-" + spellname, str( time ) )
else
uo.print( "Каст неудался, время не записано." )
endif
endsub



Сколько не создавай темы насчет этого скрипта и не где не видел хотябы на половину рабочего скрипта


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

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