Exemplo n.º 1
0
 static void useRecoveryItemButton_Click(object sender, SdlDotNet.Widgets.MouseButtonEventArgs e)
 {
     Players.Inventory inv = Players.PlayerManager.MyPlayer.Inventory;
     //for (int i = 1; i <= inv.Length; i++) {
     //if (inv[i].Num > 0) {
     //if (Items.ItemHelper.Items[inv[i].Num].Type == Enums.ItemType.PotionAddHP) {
     //ExpKit.Modules.kitChat chat = (ExpKit.Modules.kitChat)Windows.WindowSwitcher.ExpKit.KitContainer.ModuleSwitcher.FindKitModule(Enums.ExpKitModules.Chat);
     //if (chat != null) {
     //    chat.AppendChat("You have used a " + Items.ItemHelper.Items[inv[i].Num].Name + "!", Color.Yellow);
     //}
     //Messenger.SendUseItem(i);
     //break;
     //}
     //}
     //}
 }
Exemplo n.º 2
0
        public MyPlayer()
        {
            // Initialize the job list
            jobList = new JobList();
            // Initialize the move list
            Moves = new RecruitMove[MaxInfo.MAX_PLAYER_MOVES];
            for (int i = 0; i < Moves.Length; i++) {
                Moves[i] = new RecruitMove();
            }
            // Initialize the player team
            Team = new Recruit[MaxInfo.MAX_ACTIVETEAM];
            Pets = new PlayerPet[MaxInfo.MAX_ACTIVETEAM];
            // Initialize the inventory and bank
            Inventory = new Inventory(MaxInfo.MaxInv);
            FriendsList = new List<Friend>();
            Mobility = new bool[16];
            TimeMultiplier = 1000;
            VolatileStatus = new List<int>();
            MapGoals = new List<MissionGoal>();
            ScreenActive = true;

            TargetX = -1;
            TargetY = -1;
        }