Yoko

All sides of Injection
It is currently 2024-04-28 08:49:01

All times are UTC+02:00




Post new topic  This topic is locked, you cannot edit posts or make further replies.  [ 14 posts ] 
Author Message
PostPosted: 2006-11-14 17:09:57 
Offline

Joined: 2006-11-14 15:54:50
Posts: 8
Ребят, скрипт путает манки, инвизки и стонески, куда тут поставить проверку на цвет?
И еще, возможно ли сделать так, что бы скрипт кидал химию в пак в определенные места по координатам?
У как упростить количество химии?

Code:
###
var Reconnect=0 ##  1 - Включить реконнект на сервер если выкинет, 0 - отключить реконнект.
###
var Chest='0x41184472' ## - ID сундука с химией
###
var Typeheal='0x0f0c' ## - Хелы
###
var Typeinviz='0x0F09' ## - Инвизки
###
var Typemana='0x0F09' ## - Манки
###
var Typestamina='0x0f0b' ## - Инвиз
###
var Typestonesk='0x0f09' ## - Стонески
###
var Typeexp='0x0fcc' ## - Экспы
###
var GrabDelay='500' ## - Задержка при перетаскивании (Работает только с последними версиями)
###

##########################################
##########################################
Sub ToEat()
UO.FindType(Typeheal,'-1',Chest)
If UO.GetQuantity('finditem') >= 1 Then
   UO.MoveItem('finditem','1','-1')
   Wait(500)
UO.FindType(Typeheal,'-1',Chest)
If UO.GetQuantity('finditem') >= 1 Then
   UO.MoveItem('finditem','1','-1')
   Wait(500)
UO.FindType(Typeheal,'-1',Chest)
If UO.GetQuantity('finditem') >= 1 Then
   UO.MoveItem('finditem','1','-1')
   Wait(500)
##########################################
UO.FindType(Typestamina,'-1',Chest)
If UO.GetQuantity('finditem') >= 1 Then
   UO.MoveItem('finditem','1','-1')
   Wait(500)
UO.FindType(Typestamina,'-1',Chest)
If UO.GetQuantity('finditem') >= 1 Then
   UO.MoveItem('finditem','1','-1')
   Wait(500)
UO.FindType(Typestamina,'-1',Chest)
If UO.GetQuantity('finditem') >= 1 Then
   UO.MoveItem('finditem','1','-1')
   Wait(500)
####################################
UO.FindType(Typeinviz,'-1',Chest)
If UO.GetQuantity('finditem') >= 1 Then
   UO.MoveItem('finditem','1','-1')
   Wait(500)
UO.FindType(Typeinviz,'-1',Chest)
If UO.GetQuantity('finditem') >= 1 Then
   UO.MoveItem('finditem','1','-1')
   Wait(500)
UO.FindType(Typeinviz,'-1',Chest)
If UO.GetQuantity('finditem') >= 1 Then
   UO.MoveItem('finditem','1','-1')
   Wait(500)
UO.FindType(Typeinviz,'-1',Chest)
If UO.GetQuantity('finditem') >= 1 Then
   UO.MoveItem('finditem','1','-1')
   Wait(500)
UO.FindType(Typeinviz,'-1',Chest)
If UO.GetQuantity('finditem') >= 1 Then
   UO.MoveItem('finditem','1','-1')
   Wait(500)
###################################
   EndIf
Else
   UO.Print("ERROR: Not Found him!!!")
EndIf
end sub


Top
   
 
 Post subject:
PostPosted: 2006-11-14 17:25:33 
Offline
Expert!
User avatar

Joined: 2006-02-25 21:48:38
Posts: 1032
Code:
uo.findtype(type,[color,containerobject/ground/my])


Например так:

Code:
var Typeheal='0x0f0c' ## - Хелы
var Cololrheal='тут цвет' ## - Хелы


а в скрипте тогда так:
Code:
UO.FindType(Typeheal,Cololrheal,Chest)


ЗЫ: Цвет берётся из ,info

_________________
DerMeister сейчас на нейрале!


Top
   
 
 Post subject:
PostPosted: 2006-11-14 17:33:16 
Offline

Joined: 2006-11-14 15:54:50
Posts: 8
Спасибо, все работает.

А как насчет укладывания химии в пак по координатам?


Top
   
 
 Post subject:
PostPosted: 2006-11-14 17:35:28 
Offline
Expert!
User avatar

Joined: 2005-05-20 20:30:10
Posts: 548
а еще можно сделать человеческий массив
a[0]='0x0000,0x0000' и не ***** себе мозг


Top
   
 
 Post subject:
PostPosted: 2006-11-14 17:52:37 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Лучше массив с цветами бутылок, т.к. типы постоянны.

По координатам -смотри синтаксис команды
Code:
uo.moveitem()


Top
   
 
 Post subject:
PostPosted: 2006-11-14 18:36:23 
Offline

Joined: 2006-11-14 15:54:50
Posts: 8
Синтакс? Ой я в этом не понимаю, можно по подробней?


Top
   
 
 Post subject:
PostPosted: 2006-11-14 18:44:41 
Offline

Joined: 2006-11-14 15:54:50
Posts: 8
Так?
Code:
UO.MoveItem('finditem','1028,495')


Top
   
 
 Post subject:
PostPosted: 2006-11-14 18:46:20 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Code:
uo.moveitem(object,[quantity,containerobject/ground,[x,y,z]])


Top
   
 
 Post subject:
PostPosted: 2006-11-14 18:54:25 
Offline

Joined: 2006-11-14 15:54:50
Posts: 8
неработает :(
Code:
UO.MoveItem('finditem',object,[quantity,containerobject/ground,[1028,495,0]])


Top
   
 
 Post subject:
PostPosted: 2006-11-14 19:01:30 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Мб не думает?


Top
   
 
 Post subject:
PostPosted: 2006-11-14 19:02:13 
Offline
Expert!
User avatar

Joined: 2006-02-25 21:48:38
Posts: 1032
viewtopic.php?t=9392

_________________
DerMeister сейчас на нейрале!


Top
   
 
 Post subject:
PostPosted: 2006-11-14 19:03:18 
Offline
Expert!
User avatar

Joined: 2006-02-25 21:48:38
Posts: 1032
You Must Die wrote:
Мб не думает?

Анекдот wrote:
...
"Я думаю..."
-Убил.
...

_________________
DerMeister сейчас на нейрале!


Top
   
 
 Post subject:
PostPosted: 2006-11-14 19:03:26 
Offline

Joined: 2006-11-14 15:54:50
Posts: 8
Напиши пожалуйста как должно быть именно для этого скрипта...


Top
   
 
 Post subject:
PostPosted: 2006-11-14 19:18:47 
Offline

Joined: 2006-11-14 15:54:50
Posts: 8
Все, я допер :) спасибо :)


Top
   
 
Display posts from previous:  Sort by  
Post new topic  This topic is locked, you cannot edit posts or make further replies.  [ 14 posts ] 

All times are UTC+02:00


Who is online

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