Yoko

All sides of Injection
It is currently 2025-12-12 13:55:19

All times are UTC+02:00




Post new topic  Reply to topic  [ 10 posts ] 
Author Message
PostPosted: 2007-05-07 04:53:01 
Offline

Joined: 2006-09-16 00:40:39
Posts: 35
нужно поднимать с пола предмет и складывать в пак, но так чтобы он не собирался в пачку


Top
   
 Post subject:
PostPosted: 2007-05-07 11:08:22 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
Code:
uo.MoveItem( "Item ID", "Item Count", "Conteiner ID", "X", "Y", "Z" )


Зачем нужна Z при складывании в контейнер не совсем знаю, но имхо, раз есть - значит нужна 8)

_________________
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Skype: d119060


Top
   
 Post subject:
PostPosted: 2007-05-10 03:19:29 
Offline

Joined: 2006-09-16 00:40:39
Posts: 35
тобишь, мне нужно например разложить кучу из 50 бутылок, значит в срипте указывать все 50 раз разные координы по Z???

и еще есть ли среди комант инжи random?, чтобы он рандомом выбирал координату затем через IF проверил не выбиралась ли она уже, если да занова рандом, если нет ложил туда бутылку. Возможно ли это?


Top
   
 Post subject:
PostPosted: 2007-05-10 03:30:49 
Offline

Joined: 2006-09-16 00:40:39
Posts: 35
имхо вообще Z это высота всегда была :roll:


Top
   
 Post subject:
PostPosted: 2007-05-10 05:34:00 
Offline

Joined: 2006-08-29 17:12:47
Posts: 26
плюсуй по X или по Y и зацикливай :idea:


Top
   
 Post subject:
PostPosted: 2007-05-10 10:09:04 
Offline
Expert!
User avatar

Joined: 2004-10-15 22:38:04
Posts: 1396
Location: Moscow City.
IIpocTo TaK wrote:
имхо вообще Z это высота всегда была :roll:
Dest имел ввиду зачем она в контейнере.
рандом в инже есть.

_________________
The End.


Top
   
 Post subject:
PostPosted: 2007-05-10 12:39:36 
Offline
User avatar

Joined: 2007-02-21 20:15:57
Posts: 479
Положи в пак кучку итемов (не больше 250).
Запусти скрипт и появившемся прицелом ткни на кучку.
Code:
sub ItemSharing() 
var delay = 500 ; пауза
uo.print("Укажи объект для раскладки по 1шт.")
uo.addObject("item to share")
while uo.targeting()
checklag()
wend
while uo.getQuantity("item to share") > 1
uo.moveitem("item to share", uo.getQuantity("item to share")-1, uo.containerOf("item to share"), uo.getX("item to share"), uo.getY("item to share"), uo.getZ("item to share"))
checklag()
wend
endsub

Sub checklag()
deljournal("backpack|Backpack")
UO.Click("backpack")
repeat
wait(100)
until UO.InJournal("backpack|Backpack")
end sub
Sub deljournal(msg)
while UO.InJournal(msg)
  UO.SetJournalLine(UO.InJournal(msg)-1,"")
wend
end sub

_________________
Шард Антарес
Ururu


Top
   
 Post subject:
PostPosted: 2007-05-10 14:37:16 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
Code:
uo.moveitem('finditem', -1 ,'backpack',150,50,0)

_________________
Уроки языка Injection
Основные команды языка Injection
Yoko Injection Code Sweeper
Drw (2009) скрипты
2017 Начал играть на Uorpg.net


Top
   
 Post subject:
PostPosted: 2007-05-11 01:38:27 
Offline

Joined: 2006-09-16 00:40:39
Posts: 35
2 Ururu

большое спасибо, выдрал от туда саму раскладывалку написал что надо - работает )


Top
   
 Post subject:
PostPosted: 2007-05-11 12:38:33 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
Не проверял - но если указываешь координаты, то итем в кучку складываться не будет.

Так, что рендом тут не нужен.

_________________
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Skype: d119060


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 10 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