mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 01:29:21 +02:00

* Started building the market UI. * More work on the market functionality. * Fixes to the market protocol. (Known issue: if I use safeSend method from Market (like so: MarketProtocol.send~) is thinks it is a bot). * Fixes to the market offer class. * Outfit window will no longer display the mount box if you are using protocol < 870. * Added getFeature to playermount module. * Added isMarketable and getMarketData to the lua binding. * Added lua casts for MarketData. * Fixed typo in the module manager. * Added new 'light flat panel' for more variation (can change later) will require some graphics for market. * Added new functions to table lib. * Fixed some styling issues from previous commits.
38 lines
591 B
Lua
38 lines
591 B
Lua
MarketAction = {
|
|
Buy = 0,
|
|
Sell = 1
|
|
}
|
|
|
|
MarketRequest = {
|
|
MyOffers = 0xFFFE,
|
|
MyHistory = 0xFFFF
|
|
}
|
|
|
|
MarketOfferState = {
|
|
Active = 0,
|
|
Cancelled = 1,
|
|
Expired = 2,
|
|
Accepted = 3,
|
|
AcceptedEx = 255
|
|
}
|
|
|
|
MarketItemDescription = {
|
|
Armor = 1,
|
|
Attack = 2,
|
|
Container = 3,
|
|
Defense = 4,
|
|
General = 5,
|
|
DecayTime = 6,
|
|
Combat = 7,
|
|
MinLevel = 8,
|
|
MinMagicLevel = 9,
|
|
Vocation = 10,
|
|
Rune = 11,
|
|
Ability = 12,
|
|
Charges = 13,
|
|
WeaponName = 14,
|
|
Weight = 15
|
|
}
|
|
MarketItemDescription.First = MarketItemDescription.Armor
|
|
MarketItemDescription.Last = MarketItemDescription.Weight
|