Yoko

All sides of Injection
It is currently 2026-01-17 11:03:08

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 2005-06-09 14:32:01 
Offline
Expert!
User avatar

Joined: 2005-05-20 20:30:10
Posts: 548
Code:
sub woodself() 
while not uo.dead()
var x
x=uo.getserial('self')
uo.findtype("0x09AA","0x0E7D")
if uo.findcount()<1 then
uo.print('you have no boxes')
else
uo.drop("1",str(uo.getx(x)),str(uo.gety(x)),0,"finditem")
uo.print('you drop box')
end if
end sub

Скрипт должен кидать под себя коробку, но проблема в том что коробка флипается и из-за этого имеет 2 типа 0x09AA и 0x0E7D, когда ставлю оба типа в скрипт - не работает (пишет, что нету у меня коробок) если оставить только одну группу - то работает.. что не так :( :?:


Top
   
 Post subject:
PostPosted: 2005-06-09 14:44:42 
Offline
Expert!
User avatar

Joined: 2004-08-11 23:56:17
Posts: 746
Location: The Citadel
Во первых, у тебя нет концы цикла While.
Во вторых, Одним поиском можно искать только один тип.
Если у нас два типа, можно сделть так:

Code:
sub woodself()
  UO.FindType( '0x09AA' )
    If UO.FindCount() == 0 Then
      UO.FindType( '0x0E7D' )
        If UO.FindCount() == 0 Then
          UO.Print( 'you have no boxes' )
        EndIf
    EndIf
  UO.Drophere('finditem')
  UO.Print( 'you drop box' )
end sub


Top
   
 Post subject:
PostPosted: 2005-06-09 15:24:02 
Offline
Expert!
User avatar

Joined: 2005-05-20 20:30:10
Posts: 548
спасибо


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