Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7
Unable to Close Trade Windows
Unable to Close Trade Windows
I have run into another interesting problem. Stealth does not seem able to close certain things like trade windows. I used what I thought was the most appropriate function, CancelTrade, but that only removes the checkmark from the player's accept trade box. Is there another function I should be using to do this?
Re: Unable to Close Trade Windows
it must remove secure trade with selected number from stealth securetrades_list.
Does TradeCount return same value after calling CancelTrade as before?
Does TradeCount return same value after calling CancelTrade as before?
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
Re: Unable to Close Trade Windows
But that doesn't make sense because UO only ever allows one secure trade at a time. Why would stealth be setup to handle more than one?
I waited until I knew I had a trade window open and ran the following code:
The above code removed my checkmark from the window, but did not close it.
I waited until I knew I had a trade window open and ran the following code:
Code: Select all
#Python 2.7
import stealth
stealth.CancelTrade(0)
Re: Unable to Close Trade Windows
Negative. Technically allowed multiply secure trades.Vlek wrote:UO only ever allows one secure trade at a time. Why would stealth be setup to handle more than one?
How do you check this?Vlek wrote:The above code removed my checkmark from the window, but did not close it.
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
Re: Unable to Close Trade Windows
That's some weird Russian Sphere server stuff then because RunUO and OSI UO both disallow more than one trade at a time.Vizit0r wrote:Negative. Technically allowed multiply secure trades.
Just how I said. I log two characters in, initiate a trade with one of the characters, then run that script.Vizit0r wrote:How do you check this?
Re: Unable to Close Trade Windows
Stealth support all shard, not only OSI etc.Vlek wrote:That's some weird Russian Sphere server stuff then because RunUO and OSI UO both disallow more than one trade at a time.Vizit0r wrote:Negative. Technically allowed multiply secure trades.
Just how I said. I log two characters in, initiate a trade with one of the characters, then run that script.[/quote]Vizit0r wrote:How do you check this?
you use stealth.CancelTrade(0) on first character, and what you check on second? Visually on logged EA client? or by stealth?
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".