Page 1 of 1
Help with UO.Buy
Posted: 2004-08-01 20:52:34
by SeeK-n-DeSTroY
There is a way to know, after a performed Buy command, if No item was bought?
I making a AutoBuyer macro, it works perfectly, but when npc don't have any item of my list to sell i can't detect it and macro can't continue.
Or, someone have another solution?
Posted: 2004-08-01 23:31:31
by Thdin
If UO.InJournal("Objects Found/Bought:0")==1 Then
#Go to next NPC, recall, bank, etc.
Something to that effect. Using the UO.InJournal function check to see if you bought items or bought nothing.
Post your script here so we can help you more

Posted: 2004-08-01 23:47:46
by SeeK-n-DeSTroY
Don't works...
Injection Journal is Diferent from UO Journal..
This message X items bought is from injection to uo client, but don't appear in UO.InJournal, only server messages appear in this command...
tkz, but this not sovle the problem...
Another Sugestion?
Posted: 2004-08-02 03:11:49
by Thdin
Uhhh. I tried this myself. I used a ,buy command on an NPC that I knew wouldn't have the item so that I could see what it said.
I clearly read in my journal "No items bought."
So it should work just fine...
Posted: 2004-08-02 20:44:55
by SeeK-n-DeSTroY
You read No items bought in your Ultima Online Client's Journal or using UO.Print(UO.Journal(0))?
UO.Print(UO.Journal(0)) shows the last registred line on Injection Journal... You can't access client's journal.. only injection internal journal...
Posted: 2004-08-02 23:09:55
by Yoko
,set injectecho 1
Posted: 2004-08-06 08:01:28
by SeeK-n-DeSTroY
Great!
Now I know what's do injectecho
thanks Yoko
Posted: 2004-08-13 03:21:54
by Thdin
Yeah, it said it in my actual on-screen journal. Sorry

I had echo on... forgot to tell you
