RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Trading... How it works.

Person

Sorceror
I've been looking at how trading works in detail, and found this line of code in the core:

List<Item> list = m_From.Container.Items;

I was under the belief that that there were only Backpack and Corpse containers on a mobile... Does anyone know more about this "Mobile.Container" in the core?

Thanks,
Person
 

Irian

Page
That m_From is not a Mobile. That m_From is a SecureTradeInfo, which has a SecureTradeContainer. This does not have anything to do with the core.
 

Lichtblitz

Sorceror
A bit more on mobiles and containers:

A mobile is a container by itself. Every item in it is regarded as being equipped. The two special containers of a mobile are the backpack and the bank box. The corpse is more like a link as it's completely independent of the mobile (which you could say to a certain degree of the backpack as well).
That's all I could think of from the top of my head.
 
Top