Yoko

All sides of Injection
It is currently 2024-03-28 23:25:30

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 2015-03-31 19:16:48 
Offline

Joined: 2012-07-27 23:43:14
Posts: 249
хелло, помогите пожалуйста! вот кусочек на определение тварей что на экране:
Code:
for jor = 0 to 9   
ser = uo.journalserial(jor)
noto = uo.getnotoriety(ser)
if not ser==me then
if noto<>0 and noto<>1 and noto<>3 and not uo.injournal('Elemental|Scorpion King|Giant Spider|Energy Vortex') then
if uo.waiting() then
uo.canceltarget()
endif
uo.TextOpen()
uo.TextPrint(uo.getname(ser)+' @ '+MakeTime())
loot()
wait(3000)


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


Top
   
PostPosted: 2015-04-01 07:49:15 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
убрать этот кусок, расставить endif или написать что скрипт должен делать вместо описания того чего он делает. :roll:

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


Top
   
PostPosted: 2015-04-01 15:07:52 
Offline

Joined: 2012-07-27 23:43:14
Posts: 249
вот кусок, я убераю и пишется - Label defined outside proc END

Code:
for jor = 0 to 9   
   ser = uo.journalserial(jor)
   noto = uo.getnotoriety(ser)
   if not ser==me then
      if noto<>0 and noto<>1 and noto<>3 and not uo.injournal('Elemental|Scorpion King|Giant Spider|Energy Vortex') then
         if uo.waiting() then
            uo.canceltarget()
         endif
         uo.TextOpen()
         uo.TextPrint(uo.getname(ser)+' @ '+MakeTime())
         loot()
         wait(3000)
         goto reccal
      endif
   endif
next   
wend
if uo.weight > 500 then
goto end
endif
wend
UO.DeleteJournal()
next
next
goto dig
end:
if uo.waiting() then
uo.canceltarget()
endif


Top
   
PostPosted: 2015-04-03 17:12:40 
Offline

Joined: 2012-07-27 23:43:14
Posts: 249
этот кусок не очень получается убрать, как будто его приклеили пле.


Top
   
PostPosted: 2015-04-03 19:48:10 
Offline

Joined: 2012-07-27 23:43:14
Posts: 249
разобрался.


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 14 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