Yoko

All sides of Injection
It is currently 2025-12-25 12:44:12

All times are UTC+02:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
PostPosted: 2006-04-09 18:23:57 
Offline

Joined: 2006-02-04 03:34:30
Posts: 13
вообщем недавно я просил скрипт на розкладку перье по 1 шт, спасибо за помощ. но он недавно перестал работать =(((

когда запускаю скрипт и указываю перья, инжа кидает перья(весь стак) за сумку ( за графику сумки, но перья остаются в сумке) и не розкидывает их ((, можно ли как то это исправить и что бы перья кидапись рандомно по паку, а не один поверх другого? спасибо
скрипт:

Code:
 sub main()
   sub ItemSharing()
var delay = 500 ; пауза
uo.print("Укажи объект для раскладки по 1шт.")
uo.addObject("item to share")
while uo.targeting()
wait(100)
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"))
wait(delay)
wend
end sub


Top
   
 Post subject:
PostPosted: 2006-04-09 18:39:31 
Offline
Expert!
User avatar

Joined: 2006-02-25 21:48:38
Posts: 1032
Ну во-первых: подними ту тему и посмотри, в этом скрипте была ошибочка, которая у тебя не сразу всплыла...
А у меня сразу, поэтому я его подправил.

Насчет рандомного раскладывания:
Ет просто, но я, например, не знаю как в инжекте рандомное число сгенерировать... :(


Top
   
 Post subject:
PostPosted: 2006-04-09 20:21:30 
Offline

Joined: 2005-08-19 16:12:23
Posts: 182
Синтакс: number uo.Random(maxnumber)
Тема: Команды скриптов Ключевые слова: uoscript, system


--------------------------------------------------------------------------------

Возвращает случайное целое число в диапазоне 0..maxnumber


Top
   
 Post subject:
PostPosted: 2006-04-09 20:54:21 
Offline
Expert!
User avatar

Joined: 2006-02-25 21:48:38
Posts: 1032
ЫЫЫ
Я там когда-то искал и не нашел, :lol: , спасиб.

ТОгда так:
Code:
sub main() 
   sub ItemSharing()
var delay = 500 ; пауза
uo.print("Укажи объект для раскладки по 1шт.")
uo.addObject("item to share")
while uo.targeting()
wait(100)
wend
while uo.getQuantity("item to share") > 1
uo.moveitem(("item to share"), str(uo.getQuantity("item to share")-1), (uo.containerOf("item to share")), uo.Random(200), uo.Random(200), str(uo.getZ("item to share")))
wait(delay)
wend
end sub


Last edited by DerMeister =) on 2006-04-09 23:27:02, edited 1 time in total.

Top
   
 Post subject:
PostPosted: 2006-04-09 22:58:19 
Offline

Joined: 2006-02-04 03:34:30
Posts: 13
пишет "обджект нот фаунд" :(


Top
   
 Post subject:
PostPosted: 2006-04-09 23:26:36 
Offline
Expert!
User avatar

Joined: 2006-02-25 21:48:38
Posts: 1032
lefty wrote:
пишет "обджект нот фаунд" :(


ЫЫ, лишний STR, даже 2!

Code:
sub main() 
   sub ItemSharing()
var delay = 500 ; пауза
uo.print("Укажи объект для раскладки по 1шт.")
uo.addObject("item to share")
while uo.targeting()
wait(100)
wend
while uo.getQuantity("item to share") > 1
uo.moveitem(("item to share"), str(uo.getQuantity("item to share")-1), (uo.containerOf("item to share")), uo.Random(200), uo.Random(200), str(uo.getZ("item to share")))
wait(delay)
wend
end sub


ЗЫ: вверху тоже пожправил...


Top
   
 Post subject:
PostPosted: 2006-04-10 10:17:31 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
А риквесты тут причём? Ща автор по лбу получит.

PS: str(), моя ошибка, не спорю.


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


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