Yoko

All sides of Injection
It is currently 2025-10-18 23:07:39

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Дроп веши
PostPosted: 2009-08-22 18:25:57 
Offline

Joined: 2009-08-19 11:35:04
Posts: 12
Code:
sub Dagger()
while not uo.Dead()
A:
uo.FindType('0x0EC4')
wait(500)
if uo.FindCount() == 0 then
goto a
else
wait(100)
uo.MoveItem('finditem', -1, 'ground', uo.GetX('self'), uo.GetY('self'), uo.GetZ('self'))
endif
uo.FindType('0x0EC4','-1','0x0E76')
wait(100)
uo.UseObject('finditem')
wend
endsub


Почему то вот эта часть не хочет работать
Code:
uo.MoveItem('finditem', -1, 'ground', uo.GetX('self'), uo.GetY('self'), uo.GetZ('self'))


Скрипт тупо дёргает ножик по паку. В чём беда?


Top
   
 Post subject:
PostPosted: 2009-08-22 18:41:23 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Мб

Code:
STR(uo.GetX('self')), ...


п.с. Если не получится- используй ловушку на тайл и команду uo.Drop()


Top
   
 Post subject:
PostPosted: 2009-08-22 18:43:22 
Offline

Joined: 2009-08-19 11:35:04
Posts: 12
Scripts Writer wrote:
Мб

Code:
STR(uo.GetX('self')), ...


п.с. Если не получится- используй ловушку на тайл и команду uo.Drop()


Ловушку на тайл? Пробывал на обьект.. и пробывал uo.Drophere(). А это как понять?

Code:
STR(uo.GetX('self')), ...


Top
   
 Post subject:
PostPosted: 2009-08-22 20:43:53 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Замени в moveitem аналогично


Top
   
 Post subject:
PostPosted: 2009-08-22 21:44:01 
Offline

Joined: 2009-02-28 15:02:09
Posts: 42
Location: Украина
1. self указывать в функции координат не обязательно (т.е. uo.getx() по умолчанию вернет координату чара)
2. Для того чтобы что-то выкинуть на землю или даже переместить есть команда uo.drop(count, obj, x, y, z) или uo.drophere(count, obj)
3. Я же дал ответ в аське)

_________________
///


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

All times are UTC+02:00


Who is online

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