Beispiel #1
0
        public GamePlayer(int playerId, string account, GameClient client, PlayerInfo info)
            : base()
        {
            m_playerId = playerId;
            m_account = account;
            m_client = client;
            m_character = info;
            LastChatTime = DateTime.Today;
            m_mainBag = new PlayerEquipInventory(this);
            m_propBag = new PlayerInventory(this, true, 49, 1, 0, true);
            m_storeBag = new PlayerInventory(this, true, 100, 11, 0, true);
            m_storeBag2 = new PlayerInventory(this, true, 20, 12, 0, true);
            m_fightBag = new PlayerInventory(this, false, 3, 3, 0, false);
            m_tempBag = new PlayerInventory(this, false, 60, 4, 0, true);
            m_caddyBag = new PlayerInventory(this, false, 20, 5, 0, true);
            m_cardBag = new PlayerInventory(this, true, 20, 15, 0, true);
            m_questInventory = new QuestInventory(this);
            m_bufferList = new BufferList(this);
            m_equipEffect = new List<int>();

            //双倍经验卡初始化
            GPAddPlus = 1;

            X = 646;
            Y = 1241;
            MarryMap = 0;
            m_converter = new System.Text.UTF8Encoding();
        }
Beispiel #2
0
        public GamePlayer(int playerId, string account, GameClient client, PlayerInfo info)
            : base()
        {
            m_playerId = playerId;
            m_account = account;
            m_client = client;
            m_character = info;
            LastChatTime = DateTime.Today;
            m_mainBag = new PlayerEquipInventory(this);
            m_propBag = new PlayerInventory(this, true, 50, (int)eBageType.PropBag, 0, true);
            m_storeBag = new PlayerInventory(this, true, 100, (int)eBageType.Bank, 0, true);//bank
            m_storeBag2 = new PlayerInventory(this, true, 20, (int)eBageType.Store, 0, true);
            m_fightBag = new PlayerInventory(this, false, 3, (int)eBageType.FightBag, 0, false);
            m_tempBag = new PlayerInventory(this, false, 60, (int)eBageType.TempBag, 0, true);
            m_caddyBag = new PlayerInventory(this, false, 30, (int)eBageType.CaddyBag, 0, true);
            m_farm = new PlayerInventory(this, false, 30, (int)eBageType.FARM, 0, true);
            m_vegetable = new PlayerInventory(this, false, 30, (int)eBageType.VEGETABLE, 0, true);
            m_food = new PlayerInventory(this, false, 30, (int)eBageType.FOOD, 0, true);
            m_petEgg = new PlayerInventory(this, false, 30, (int)eBageType.PETEGG, 0, false);

            m_cardBag = new PlayerInventory(this, true, 20, 15, 0, true);
            m_questInventory = new QuestInventory(this);
            m_bufferList = new BufferList(this);
            m_equipEffect = new List<int>();

            //双倍经验卡初始化
            GPAddPlus = 1;

            X = 646;
            Y = 1241;
            MarryMap = 0;
            m_converter = new System.Text.UTF8Encoding();
        }