help me(hao to return and print " finditem's color")

Ask for help

Moderators: Murderator+, Murderator

Post Reply
wsqlzh
Posts: 3
Joined: 2012-07-25 05:37:13

help me(hao to return and print " finditem's color")

Post by wsqlzh »

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?
Mirage
Posts: 2802
Joined: 2009-05-28 09:58:28
Location: Иваново
Contact:

Re: help me(hao to return and print " finditem's color")

Post by Mirage »

Code: Select all

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
wsqlzh
Posts: 3
Joined: 2012-07-25 05:37:13

Re: help me(hao to return and print " finditem's color")

Post by wsqlzh »

Mirage wrote:

Code: Select all

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!!)
wsqlzh
Posts: 3
Joined: 2012-07-25 05:37:13

Re: help me(hao to return and print " finditem's color")

Post by wsqlzh »

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!
Post Reply