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

help me(hao to return and print " finditem's color")
http://forum.yoko.com.ua/viewtopic.php?f=3&t=17038
Page 1 of 1

Author:  wsqlzh [ 2012-07-25 05:48:15 ]
Post subject:  help me(hao to return and print " finditem's color")

who can help me!!please!

i want's to know each finditem's color

fox example:
TEMP_coloritem[i]=xxxxxx
uo.print(TEMP_coloritem[i])

how to get the "TEMP_coloritem[i]= "

i try to use "yoyoinjection/object type "tool get the Bback item's "Graphic",but no color val.

anytools can be do?

Author:  Mirage [ 2012-07-25 06:39:26 ]
Post subject:  Re: help me(hao to return and print " finditem's color")

Code:
sub main()
var ItemName, ItemID, ItemType, ItemColor
uo.findtype(-1,-1,'my')
uo.click('finditem')
ItemName=UO.GetName('finditem')
ItemID=UO.GetSerial('finditem')
ItemType=UO.GetGraphic(UO.GetSerial( 'finditem'))
ItemColor=UO.GetColor('finditem')
uo.Print(ItemName +', ' +ItemID +', ' +ItemType +', ' +ItemColor)
end sub

uo.click('finditem') for ItemName

Author:  wsqlzh [ 2012-07-25 07:00:15 ]
Post subject:  Re: help me(hao to return and print " finditem's color")

Mirage wrote:
Code:
sub main()
var ItemName, ItemID, ItemType, ItemColor
uo.findtype(-1,-1,'my')
uo.click('finditem')
ItemName=UO.GetName('finditem')
ItemID=UO.GetSerial('finditem')
ItemType=UO.GetGraphic(UO.GetSerial( 'finditem'))
ItemColor=UO.GetColor('finditem')
uo.Print(ItemName +', ' +ItemID +', ' +ItemType +', ' +ItemColor)
end sub

uo.click('finditem') for ItemName



so cool...thanks very much~~~~

how to active the script? doubleclick item?or.....?

when i login and runing function ,uo client print:
Horse. 0x4000173B. 0x3EA0.
0x0000

(oh.sorry~~.i'm a app of script!!)

Author:  wsqlzh [ 2012-07-25 07:28:27 ]
Post subject:  Re: help me(hao to return and print " finditem's color")

Quote:
sub main()
var ItemName, ItemID, ItemType, ItemColor
uo.findtype(-1,-1,'my')
#uo.click('finditem')
UO.Click('lasttarget')
UO.DeleteJournal()
ItemColor=UO.GetColor('lasttarget')
ItemName=UO.GetName('lasttarget')
ItemID=UO.GetSerial('lasttarget')
ItemType=UO.GetGraphic(UO.GetSerial( 'lasttarget'))
#ItemColor=UO.GetColor('finditem')
uo.Print(ItemName +', ' +ItemID +', ' +ItemType +', ' +ItemColor)
end sub



thank you!!!

when i serch!i find a script:
UO.DeleteJournal()
Color=UO.GetColor('lasttarget')
UO.Click('lasttarget')

so i changed!login and use the lastobject finished. each item object run function once!the client will print four type!

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