Page 1 of 1

Hi, just a little tips!

Posted: 2008-05-10 03:56:29
by Sumomo
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: Select all

 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

Posted: 2008-05-10 04:50:46
by Scripts Writer

Code: Select all

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: Select all

UO.FindType(type,color,'backpack') 

and here, where ID -is an ID of a container where are ingots

Code: Select all

 UO.FindType('type','color','ID') 

Posted: 2008-05-10 12:07:44
by Sumomo
Scripts Writer wrote:

Code: Select all

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: Select all

UO.FindType(type,color,'backpack') 

and here, where ID -is an ID of a container where are ingots

Code: Select all

 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:

Posted: 2008-05-10 14:39:17
by Scripts Writer
i don't understand u.

Posted: 2008-05-10 15:51:09
by Infectous
,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

Posted: 2008-05-10 17:53:11
by Sumomo
ooohhh ty so much guys
now it's all fine!:D

ty for help! :shock: