![]() |
Dawn of Light - Class documentation 2900
This is the Dawn of Light project
|
Public Member Functions | |
override bool | ReceiveItem (GameLiving source, InventoryItem item) |
Called when the living is about to get an item from someone else. | |
bool | CanMove (GamePlayer player) |
Checks if the Player is allowed to move an Item. | |
void | MoveItem (GamePlayer player, IGameInventory playerInventory, eInventorySlot fromSlot, eInventorySlot toSlot) |
Move an item from, to or inside a consignment merchants inventory. | |
void | OnPlayerBuy (GamePlayer player, IGameInventory playerInventory, eInventorySlot fromSlot, eInventorySlot toSlot, bool byMarketExplorer) |
The Player is buying an Item from the merchant. | |
override bool | Interact (GamePlayer player) |
Player interacting with this Merchant. | |
override bool | AddToWorld () |
Adds the npc to the world. | |
void | SetEmblem () |
Not Livelike but looks better - adds the owners guild emblem to the consignment merchants cloak. | |
Public Attributes | |
const int | ConsignmentSize = 100 |
Protected Member Functions | |
IDictionary< int, InventoryItem > | MoveItemFromMerchant (GamePlayer player, IGameInventory playerInventory, eInventorySlot fromSlot, eInventorySlot toSlot) |
Move an Item from the merchant. | |
IDictionary< int, InventoryItem > | MoveItemInsideMerchant (eInventorySlot fromSlot, eInventorySlot toSlot) |
Move an item around inside the Merchant. | |
IDictionary< int, InventoryItem > | MoveItemToMerchant (GamePlayer player, IGameInventory playerInventory, eInventorySlot fromSlot, eInventorySlot toSlot) |
Move an item to the merchant. | |
void | NotifyObservers (IDictionary< int, InventoryItem > updateItems) |
Send inventory updates to all players actively viewing this merchant; players that are too far away will be considered inactive. | |
Static Protected Member Functions | |
static int | RecalculateSlot (int slot) |
Recalculation is required for different merchant window/db entry indexing. | |
Properties | |
int | FirstSlot [get] |
First slot in the DB. | |
int | LastSlot [get] |
Last slot in the DB. | |
Dictionary< int, InventoryItem > | ConInventory [get] |
Inventory of the Consignment Merchant. | |
InventoryItem[] | Items [get] |
List of items in the Consignment Merchants Inventory. | |
long | TotalMoney [get, set] |
Gets or sets the total amount of money held by this consignment merchant. |
override bool DOL.GS.GameConsignmentMerchant.AddToWorld | ( | ) | [virtual] |
Adds the npc to the world.
Reimplemented from DOL.GS.GameNPC.
bool DOL.GS.GameConsignmentMerchant.CanMove | ( | GamePlayer | player | ) |
Checks if the Player is allowed to move an Item.
player |
override bool DOL.GS.GameConsignmentMerchant.Interact | ( | GamePlayer | player | ) | [virtual] |
Player interacting with this Merchant.
player |
Reimplemented from DOL.GS.GameNPC.
void DOL.GS.GameConsignmentMerchant.MoveItem | ( | GamePlayer | player, |
IGameInventory | playerInventory, | ||
eInventorySlot | fromSlot, | ||
eInventorySlot | toSlot | ||
) |
Move an item from, to or inside a consignment merchants inventory.
playerInventory | |
fromSlot | |
toSlot |
IDictionary<int, InventoryItem> DOL.GS.GameConsignmentMerchant.MoveItemFromMerchant | ( | GamePlayer | player, |
IGameInventory | playerInventory, | ||
eInventorySlot | fromSlot, | ||
eInventorySlot | toSlot | ||
) | [protected] |
Move an Item from the merchant.
playerInventory | |
fromSlot | |
toSlot |
IDictionary<int, InventoryItem> DOL.GS.GameConsignmentMerchant.MoveItemInsideMerchant | ( | eInventorySlot | fromSlot, |
eInventorySlot | toSlot | ||
) | [protected] |
Move an item around inside the Merchant.
fromSlot | |
toSlot |
IDictionary<int, InventoryItem> DOL.GS.GameConsignmentMerchant.MoveItemToMerchant | ( | GamePlayer | player, |
IGameInventory | playerInventory, | ||
eInventorySlot | fromSlot, | ||
eInventorySlot | toSlot | ||
) | [protected] |
Move an item to the merchant.
playerInventory | |
fromSlot | |
toSlot |
void DOL.GS.GameConsignmentMerchant.NotifyObservers | ( | IDictionary< int, InventoryItem > | updateItems | ) | [protected] |
Send inventory updates to all players actively viewing this merchant; players that are too far away will be considered inactive.
updateItems |
void DOL.GS.GameConsignmentMerchant.OnPlayerBuy | ( | GamePlayer | player, |
IGameInventory | playerInventory, | ||
eInventorySlot | fromSlot, | ||
eInventorySlot | toSlot, | ||
bool | byMarketExplorer | ||
) |
The Player is buying an Item from the merchant.
player | |
playerInventory | |
fromSlot | |
toSlot |
static int DOL.GS.GameConsignmentMerchant.RecalculateSlot | ( | int | slot | ) | [static, protected] |
Recalculation is required for different merchant window/db entry indexing.
slot |
override bool DOL.GS.GameConsignmentMerchant.ReceiveItem | ( | GameLiving | source, |
InventoryItem | item | ||
) | [virtual] |
Called when the living is about to get an item from someone else.
source | Source from where to get the item |
item | Item to get |
Reimplemented from DOL.GS.GameLiving.
void DOL.GS.GameConsignmentMerchant.SetEmblem | ( | ) |
Not Livelike but looks better - adds the owners guild emblem to the consignment merchants cloak.
Dictionary<int, InventoryItem> DOL.GS.GameConsignmentMerchant.ConInventory [get] |
Inventory of the Consignment Merchant.
int DOL.GS.GameConsignmentMerchant.FirstSlot [get] |
First slot in the DB.
InventoryItem [] DOL.GS.GameConsignmentMerchant.Items [get] |
List of items in the Consignment Merchants Inventory.
int DOL.GS.GameConsignmentMerchant.LastSlot [get] |
Last slot in the DB.
long DOL.GS.GameConsignmentMerchant.TotalMoney [get, set] |
Gets or sets the total amount of money held by this consignment merchant.