Yoko

All sides of Injection
It is currently 2026-01-17 19:13:28

All times are UTC+02:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
 Post subject: Bowcraft [Torch].
PostPosted: 2004-11-20 18:11:30 
Offline
User avatar

Joined: 2004-11-20 18:02:30
Posts: 1
Location: /[63,Ru]/root/
АлЯ мой скрипт :) Писал для себя. Скрипт делает торчи из логов которые вы задали в настройках. Если логов меньше 20, тогда берёт из контейнера. Всё предельно просто, меняем цвет логов на нужный; Id контейнера и backpack'a ставим свои, и всё.
Ps. Играю на Drw, на нём скрипт работает замечательно, на других шардах к сожалению не тестировал.
Code:
sub torch() 
var colour='0x0482'       ##Цвет логов
var cont='0x400709D6'     ##Id контейнера с логами и куда кидать торчи
var backpack='0x40037475' ##Id backpack
var count=0               ##For developing
repeat
UO.FindType(0x1BDD,colour,backpack)
If UO.GetQuantity('finditem')<20 then
UO.FindType(0x1BDD,colour,cont)
UO.Grab('500','finditem')
wait(1000)
endif
UO.WaittargetType('0x1BDD')
UO.Usetype('0x0F51')
UO.WaitMenu('What do you want to carve the wood into?', 'Items', 'Items', 'torch')
wait(1000)
UO.DeleteJournal()
count=0
while NOT UO.InJournal('You put') AND NOT UO.InJournal('fail') AND (count<50)
count=count+1
wait(300)
wend
UO.FindType(0x0F64,colour,backpack)
uo.moveitem('finditem',-1,cont)
wait(1000)
until UO.Dead()
end sub

PS. Сначало прочитал тему в хелпе, потом сдесь, и написал его. Приятной игры ;)

_________________

Icq: 123964 ; LJ ; LwTeam
Relax.! Enjoy.!
I only nf...


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

All times are UTC+02:00


Who is online

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