Yoko

All sides of Injection
It is currently 2025-12-02 11:33:09

All times are UTC+02:00




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Hi, just a little tips!
PostPosted: 2008-05-10 03:56:29 
Offline

Joined: 2008-05-10 03:36:42
Posts: 5
Hi guys i just need some advice to improve a script for blacksmith

i tryed the script for blacksmith posted in this section and the crafting it's very good!
but where i play i have an house with forge and some chest what i would to do is to pick up from the FIRST chest the Ingotz inside and than put the crafted item on the SECOND chest

but i cannot take the ingotz or drop the crafted items cause with the function uo.findtype i cannot find the ingotz (maybe because i dunno witch is the serial of the container or what to do for search an item inside a container....)

tnks for ur attention i post here the screen of what i would to do and the script that i am using (it's just the one on this section but for lazy ppl i will post it also :D )

Code:
 sub BlacksmithyIM()

VAR Exit=0, LastTimer
while Exit<>1
UO.DeleteJournal()
LastTimer=UO.Timer()
UO.UseType(0x1BEF)
UO.WaitMenu('Blacksmithing','Armature','Armature','Corazza di piastre','Corazza di piastre','platemail gorget')


while NOT UO.InJournal("You put") AND NOT UO.InJournal("Hai Sbagliato")
wait(500)
wend

If UO.InJournal("You have failed") then
repeat
wait(100)
until UO.Timer()>=LastTimer+100
EndIf

UO.FindType('0x0F51',-1,'backpack')
wait(500)

If UO.GetQuantity('finditem') then
UO.WaitTargetObject('finditem')
UO.UseObject(0x4012B5AC)
Endif

UO.FindType('0x1BEF',-1,'backpack')
If UO.GetQuantity('finditem')<10 then
UO.FindType('0x1BEF','0x0000','0x4004CAE1')
UO.Grab('1000','finditem')
Endif
wait(1000)
wend
end sub


http://img372.imageshack.us/my.php?imag ... n01wr8.jpg


Top
   
 Post subject:
PostPosted: 2008-05-10 04:50:46 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Code:
UO.FindType('0x1BEF',-1,'backpack') 
If UO.GetQuantity('finditem')<10 then
  UO.FindType('0x1BEF','0x0000','0x4004CAE1')
  UO.Grab('1000','finditem')
Endif


This is a part of your script which takes an ignots. Input 'type' of your ingot and 'color' here:
Code:
UO.FindType(type,color,'backpack') 

and here, where ID -is an ID of a container where are ingots
Code:
 UO.FindType('type','color','ID') 


Top
   
 Post subject:
PostPosted: 2008-05-10 12:07:44 
Offline

Joined: 2008-05-10 03:36:42
Posts: 5
Scripts Writer wrote:
Code:
UO.FindType('0x1BEF',-1,'backpack') 
If UO.GetQuantity('finditem')<10 then
  UO.FindType('0x1BEF','0x0000','0x4004CAE1')
  UO.Grab('1000','finditem')
Endif


This is a part of your script which takes an ignots. Input 'type' of your ingot and 'color' here:
Code:
UO.FindType(type,color,'backpack') 

and here, where ID -is an ID of a container where are ingots
Code:
 UO.FindType('type','color','ID') 


rly ty for ur answer!
but the problem is that i dunno the serial of that chest on the ground :/
how can i know it?

ty again :wink:


Top
   
 Post subject:
PostPosted: 2008-05-10 14:39:17 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
i don't understand u.


Top
   
 Post subject:
PostPosted: 2008-05-10 15:51:09 
Offline

Joined: 2004-07-29 16:29:52
Posts: 55
,info
then target your chest
then check the text window that pops up for "ID= 0x00000000"
note this also gives you type,color etc....

another tip is before you start that script you must "open" the chest to let injection know what's in there so add uo.useobject('chestID') or uo.usefromground('chest type','chest color') at the begining


Top
   
 Post subject:
PostPosted: 2008-05-10 17:53:11 
Offline

Joined: 2008-05-10 03:36:42
Posts: 5
ooohhh ty so much guys
now it's all fine!:D

ty for help! :shock:


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