Yoko

All sides of Injection
It is currently 2026-03-19 06:10:22

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Poisonong for RunUO
PostPosted: 2004-11-13 10:20:47 
Offline
Junior Expert
User avatar

Joined: 2004-07-26 19:51:05
Posts: 25
Location: Alkar Realms
sub main()
var p1,p2,dp
uo.say(',exec bandcure')
uo.say('Запущена система контроля хп')
uo.say('Покажи как выглядит бочка с ядом.')
uo.addtype('keg')
while uo.targeting()
wait(100)
wend
uo.say('Покажи как выглядит еда.')
uo.addtype('food')
while uo.targeting()
wait(100)
wend
uo.say('Покажи как выглядит яд.')
uo.addtype('poison')
while uo.targeting()
wait(100)
wend
uo.say('Покажи сумку с едой.')
uo.addobject('sum')
while uo.targeting()
wait(100)
wend

g:

uo.findtype('food','-1','sum')
uo.grab('1','finditem')
uo.say('Достал еду из сумки')
wait(2000)
goto cond



pp:
uo.usetype('keg')
wait(500)
uo.waittargettype('poison')
uo.useskill('Poisoning')
wait(1000)
uo.findtype('food','-1')
wait(1000)
uo.target('1','finditem')
wait(11000)
goto cond1



cond:
p1=uo.skillval('Poisoning')
uo.say('Значение скила Пойзонинг записано в переменную p1')
goto pp


cond1:
p2=uo.skillval('Poisoning')
dp=p2-p1
if dp>2 then
uo.say('Значение скила поднялось на 0.3, беру другую порцию еды для работы.')
uo.findtype('food','-1')
uo.setreceivingcontainer('sum')
wait(500)
uo.findtype('food')
uo.grab('1','finditem')
uo.say('Ложу еду в сумку.')
wait(1000)
uo.unsetreceivingcontainer()
goto g
else
goto pp
endif

end sub

sub bandcure()
repeat
if uo.poisoned('self') and uo.count('bandage')>0 then
uo.bandageself()
uo.say('Бинтуюсь!')
wait(10000)
end if
if uo.poisoned('self') and uo.count('cure')>0 then
uo.usetype('cure')
uo.say('Пью антидот!')
wait(1000)
end if
wait(1000)
until uo.life<0
end sub

для работы необходимо:
Бочка с ядом(их можно менят в процессе работы), бутылка(1), сумка, кол-во еду не меньше 3 в кучке.
Может работать выливая яд из бочки, а может и просто с бутылками.

_________________
Alkar Realms shard
www.ultima.alkar.net (Ukraine)


Top
   
 Post subject: Re: Poisonong for RunUO
PostPosted: 2004-11-23 11:29:54 
Offline

Joined: 2004-10-16 12:30:54
Posts: 46
Location: Argentina
doomhammer wrote:
sub main()
var p1,p2,dp
uo.exec('exec bandcure')
uo.serverprint('Запущена система контроля хп')
uo.serverprint('Покажи как выглядит бочка с ядом.')
uo.addtype('keg')
while uo.targeting()
wait(100)
wend
uo.serverprint('Покажи как выглядит еда.')
uo.addtype('food')
while uo.targeting()
wait(100)
wend
uo.Serverprint('Покажи как выглядит яд.')
uo.addtype('poison')
while uo.targeting()
wait(100)
wend
uo.Serverprint('Покажи сумку с едой.')
uo.addobject('sum')
while uo.targeting()
wait(100)
wend

g:

uo.findtype('food','-1','sum')
uo.grab('1','finditem')
uo.Serverprint('Достал еду из сумки')
wait(2000)
goto cond



pp:
uo.usetype('keg')
wait(500)
uo.waittargettype('poison')
uo.useskill('Poisoning')
wait(1000)
uo.findtype('food','-1')
wait(1000)
uo.target('1','finditem')
wait(11000)
goto cond1



cond:
p1=uo.skillval('Poisoning')
uo.Serverprint('Значение скила Пойзонинг записано в переменную p1')
goto pp


cond1:
p2=uo.skillval('Poisoning')
dp=p2-p1
if dp>2 then
uo.Serverprint('Значение скила поднялось на 0.3, беру другую порцию еды для работы.')
uo.findtype('food','-1')
uo.setreceivingcontainer('sum')
wait(500)
uo.findtype('food')
uo.grab('1','finditem')
uo.Serverprint('Ложу еду в сумку.')
wait(1000)
uo.unsetreceivingcontainer()
goto g
else
goto pp
endif

end sub

sub bandcure()
repeat
if uo.poisoned('self') and uo.count('bandage')>0 then
uo.bandageself()
uo.Serverprint('Бинтуюсь!')
wait(10000)
end if
if uo.poisoned('self') and uo.count('cure')>0 then
uo.usetype('cure')
uo.Serverprint('Пью антидот!')
wait(1000)
end if
wait(1000)
until uo.life<0
end sub

для работы необходимо:
Бочка с ядом(их можно менят в процессе работы), бутылка(1), сумка, кол-во еду не меньше 3 в кучке.
Может работать выливая яд из бочки, а может и просто с бутылками.

don't use uo.say use uo.exec or uo.serverprint


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: Bing [Bot] and 4 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