Yoko

All sides of Injection
It is currently 2025-12-02 15:42:07

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 2006-11-16 22:52:30 
Offline
User avatar

Joined: 2006-08-06 10:23:20
Posts: 117
Планирую из viewtopic.php?p=29511#29511 этого скрипта всё брать. Убийство Риперов я написал сам, но не уверен в его корректности.

Code:
sub demon()
uo.waittargetself()
uo.usetype ('0x1718')  #Скрол Summon Daemon
   wait(300)
   uo.usetype('0x1F69') # Hat of Invisibility aka шапка инвизка)
   wait(6000) 
   uo.findtype('0x002F', '0x0000', '-1')
   uo.waittargetobject('findtype')
   uo.msg('all kill')
   wait(300)
end sub 

sub Search()
if uo.InJournal('Oh My God') then
uo.DeleteJournal()
demon()
end if
wait(1000)
end sub



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


Top
   
 Post subject:
PostPosted: 2006-11-17 16:01:48 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Code:
if uo.InJournal('твоя месага при вырубке ента') then
  имя_скрипта_на_убийство_ента()
end if


Top
   
 Post subject:
PostPosted: 2006-11-17 16:06:15 
Offline
User avatar

Joined: 2006-08-06 10:23:20
Posts: 117
сенк, а куда именно вставить иё ? :roll:


Top
   
 Post subject:
PostPosted: 2006-11-17 16:32:22 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
Code:
Sub WaitForChange()
var Text1=uo.GetName()+': You hack at the tree for a while, but fail to produce any useable wood.'
var Text2='There are no logs here to chop.'
var Text3="You can't reach this."
var Text4="That is too far away."
var Text5="You can't do much in your current state."
var mess
for var i=0 to 200
mess=uo.Journal(0)
if uo.InJournal('Oh My God') then
demon()
end if
if uo.Journal(0)==Text2 or uo.Journal(0)==Text3 or uo.Journal(0)==Text4 then
return 1
end if
if uo.Journal(0)==Text1 then
return 0
end if
if mess[0]=='Y' and mess[1]=='o' and mess[2]=='u' and mess[4]=='p' and mess[5]=='u' and mess[6]=='t' then
return 0
end if
wait(50)
next
return 0
end sub

_________________
Уроки языка Injection
Основные команды языка Injection
Yoko Injection Code Sweeper
Drw (2009) скрипты
2017 Начал играть на Uorpg.net


Top
   
 Post subject:
PostPosted: 2006-11-17 17:28:15 
Offline
User avatar

Joined: 2006-08-06 10:23:20
Posts: 117
спасиб огромное, пошел проверять!


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

All times are UTC+02:00


Who is online

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