Help with UO.Buy

Ask for help

Moderators: Murderator+, Murderator

Post Reply
SeeK-n-DeSTroY
Posts: 15
Joined: 2004-05-22 21:10:12

Help with UO.Buy

Post 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?
Thdin
Posts: 51
Joined: 2004-07-22 07:37:37

Post 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 :P
SeeK-n-DeSTroY
Posts: 15
Joined: 2004-05-22 21:10:12

Post 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?
Thdin
Posts: 51
Joined: 2004-07-22 07:37:37

Post 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...
SeeK-n-DeSTroY
Posts: 15
Joined: 2004-05-22 21:10:12

Post 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...
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

,set injectecho 1
SeeK-n-DeSTroY
Posts: 15
Joined: 2004-05-22 21:10:12

Post by SeeK-n-DeSTroY »

Great!
Now I know what's do injectecho

thanks Yoko
Thdin
Posts: 51
Joined: 2004-07-22 07:37:37

Post by Thdin »

Yeah, it said it in my actual on-screen journal. Sorry :P I had echo on... forgot to tell you :P
Post Reply