Yoko

All sides of Injection
It is currently 2025-11-23 20:52:22

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 2008-01-24 11:57:40 
Offline

Joined: 2007-01-08 12:41:39
Posts: 5
sub HideR5() #vakrug hiding kidaet na 5 kletok

HideInRange(5)

endsub

sub HideInRange(r)

uo.set('finddistance', r)
uo.Ignore('self')


uo.FindType(-1, -1, 'ground')
while uo.FindCount()
if uo.InNpc('finditem') then
uo.Hide('finditem')
wait(10)
end if
uo.Ignore('finditem')
wait(100)
uo.FindType(-1, -1, 'ground')
wend

uo.IgnoreReset()

endsub


Top
   
 Post subject:
PostPosted: 2008-01-24 12:00:47 
Offline

Joined: 2007-01-08 12:41:39
Posts: 5
on 4eta ne ho4et norm rabotati


Top
   
 Post subject:
PostPosted: 2008-01-24 12:46:08 
Offline
Expert!
User avatar

Joined: 2004-04-04 21:40:09
Posts: 1007
Во-первых: uo.set принимает строковые параметры, а значит HideInRange(5) заменяем на HideInRange('5').

Во-вторых: uo.InNpc('finditem') это шо за нах? Предположительно должно быть uo.IsNpc('finditem').

В-третьих: запускаем и все работает. Все монстры в радиусе 5 ярдов растворяются в воздухе. ;)


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 3 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:  
Powered by phpBB® Forum Software © phpBB Limited