Code: Select all
abnormal program termination
Code: Select all
sub hide()
uo.useskill('Hiding')
while 1==1
if uo.hidden() then
uo.moveoff()
uo.print('STOP')
wait(500)
uo.moveon()
uo.Exec('terminate hide')
end if
wait(1)
wend
end sub
Moderators: Murderator+, Murderator
Code: Select all
abnormal program termination
Code: Select all
sub hide()
uo.useskill('Hiding')
while 1==1
if uo.hidden() then
uo.moveoff()
uo.print('STOP')
wait(500)
uo.moveon()
uo.Exec('terminate hide')
end if
wait(1)
wend
end sub
Code: Select all
sub Hiding_PvP()
uo.WarMode(0)
if not uo.Hidden() then
repeat
uo.UseSkill('Hiding')
wait(2000) #edit for your shard (if delay for hiding is 2500 then input 2000)
uo.moveoff()
until uo.Hidden()
uo.moveon()
end if
end sub
Code: Select all
warmode 0; useskill Hiding
Code: Select all
if uo.hidden() then
uo.moveoff()
Scripts Writer wrote:Я понял суть скрипта, но его реализация очень скверная и спорная.Code: Select all
sub Hiding_PvP()
uo.WarMode(0)
if not uo.Hidden() then
repeat
uo.UseSkill('Hiding')
wait(2000) #edit for your shard (if delay for hiding is 2500 then input 2000)
uo.moveoff()
until uo.Hidden()
uo.moveon()
end if
end sub
Code: Select all
sub Hiding_PvP()
uo.WarMode(0)
if not uo.Hidden() then
repeat
uo.UseSkill('Hiding')
wait(2000) #edit for your shard (if delay for hiding is 2500 then input 2000)
uo.moveoff()
if uo.InJournal('seem') then #One of a word of fail to hide message
uo.moveon()
wait(100)
return 0#delete this string if d u like don't exit from script if not Hidden and useskill until your character'll be hidden
end if
until uo.Hidden()
uo.moveon()
end if
end sub
Bangbuss wrote:ne nu ti menja neponil tak i tak. nuzhno 6tob funkcija
uo.moveoff() izpolnalas tolka togda kogda 4ar uzhe uo.Hidden(). shas uo.moveoff() izpolnaetsa 2 sekundi posle zapuska skripta i vso.
vot takie piroga.
posmatri na moj pervij post tam est imeno tak, no tam nety etoj fishki 6tob pitalsa zaiti v hide poka ne udastsa.
Code: Select all
sub Hiding_PvP()
uo.WarMode(0)
if not uo.Hidden() then
uo.DeleteJournal()
uo.UseSkill('Hiding')
repeat
wait(100)
until uo.Hidden() || uo.InJournal('seem')
uo.moveoff()
end if
uo.moveon()
end sub