Yoko
http://forum.yoko.com.ua/

Hi, just a little tips!
http://forum.yoko.com.ua/viewtopic.php?f=17&t=13580
Page 1 of 1

Author:  Sumomo [ 2008-05-10 03:56:29 ]
Post subject:  Hi, just a little tips!

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

Author:  Scripts Writer [ 2008-05-10 04:50:46 ]
Post subject: 

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') 

Author:  Sumomo [ 2008-05-10 12:07:44 ]
Post subject: 

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:

Author:  Scripts Writer [ 2008-05-10 14:39:17 ]
Post subject: 

i don't understand u.

Author:  Infectous [ 2008-05-10 15:51:09 ]
Post subject: 

,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

Author:  Sumomo [ 2008-05-10 17:53:11 ]
Post subject: 

ooohhh ty so much guys
now it's all fine!:D

ty for help! :shock:

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/