Yoko

All sides of Injection
It is currently 2025-10-11 09:00:57

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 2011-03-03 18:15:13 
Offline

Joined: 2011-03-03 18:09:18
Posts: 3
Значит смысл скрипт : Берет Ширинк и кидает (именно кидает) его на скорпиона после чего поднимает его в пак.

sub shrink()
var typeshrink = '0x0EFC'
var scorpionshrink = '0x20E4'
var scorpion = '0x0030'
uo.Set('finddistance','7')
uo.FindType(typeshrink,'backpack')
if uo.FindCount() then
uo.moveitem (scorpion)
uo.UseObject('finditem')
wait(500)
end if
uo.FindType(scorpionshrink,'-1','ground')
if uo.FindCount() then
uo.moveitem('finditem','all','backpack')
wait(750)
end if
end sub

Проблема в том что он не кидает (Он вообще не кидает) Так еще и пьет. Помогте разобраться пожалуйста !
Тайп Ширинка - 0x0EFC
Тайп Скорпиона в ширинке - 0x20E4
Тайп Просто скорпиона - 0x0030


Top
   
PostPosted: 2011-03-03 18:28:19 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
конечно не кидает, ты кидаешь скорпиона а потом юзаешь шринку. Кидать предмет можно только на ID а у тебя на type.

Code:
sub shrink()
   var typeshrink = '0x0EFC'
   var typescorpion = '0x0030'
   var scorpionshrink = '0x20E4'
   var scorpion
   uo.Set('finddistance','7')
   uo.FindType(typescorpion, '-1', 'ground')            ; ищем скорпиона (-1 = пофиг какого цвета) на земле
   if uo.FindCount() then ; если нашли
      scorpion= UO.GetSerial( 'finditem' )         ; берем его ID
      uo.FindType(typeshrink, '-1', 'backpack')         ; ищем шринку (вот тут вместо -1 возможно понадобится цвет в ковычках) в рюкзаке
      if uo.FindCount() then
         uo.moveitem ('finditem', 1, scorpion)   ; кидаем в скорпиона 1 шринку (на случай стака бутылок)
         wait(500)
      end if
      uo.FindType(scorpionshrink, '-1', 'ground')      ; ищем тип скорпиона в шринке на земле
      if uo.FindCount() then
         uo.moveitem('finditem', 0, 'backpack')   ; перемещаем в пак
         wait(750)
      end if
   else
      uo.print('А где тут скорпионы то?')
   end if
end sub

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


Top
   
PostPosted: 2011-03-03 18:41:35 
Offline

Joined: 2011-03-03 18:09:18
Posts: 3
Т.е Я не могу на тайп кинуть ? , Просто у всех скорпионов разный же ID что тогда делать ?


Top
   
PostPosted: 2011-03-03 18:44:32 
Offline

Joined: 2011-03-03 18:09:18
Posts: 3
Все понял , Спасибо тебе большое !!!!


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

All times are UTC+02:00


Who is online

Users browsing this forum: Bing [Bot] 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