Esempio n. 1
0
        private void dumpButton_Click(object sender, EventArgs e)
        {
            /*Personas
             * Persona Skills
             * Persona Stats
             * Social Stats*/

            dumpOutput.Text = "";

            for (int personaSlot = 0; personaSlot < 12; personaSlot++)
            {
                //Prefix
                dumpOutput.Text = dumpOutput.Text + "---PERSONA " + (personaSlot + 1) + "---\n";
                //Persona
                if (dumpListBox.GetItemChecked(0))
                {
                    string personaBytesString = ByteArrayToString(Addresses.GetPersona(personaSlot + 1));
                    if (personaBytesString.Length == 3)
                    {
                        personaBytesString = "0" + personaBytesString;
                    }
                    else if (personaBytesString.Length == 2)
                    {
                        personaBytesString = "00" + personaBytesString;
                    }

                    dumpOutput.Text = dumpOutput.Text + "Persona - 0x" + Addresses.GetPersonaAddress(personaSlot + 1).ToString("X") + " - " + personaBytesString + "\n";
                }
                //Persona skills
                if (dumpListBox.GetItemChecked(1))
                {
                    for (int skillSlot = 0; skillSlot < 8; skillSlot++)
                    {
                        string skillBytesString = ByteArrayToString(Addresses.GetPersonaSkill(personaSlot + 1, skillSlot + 1));
                        if (skillBytesString.Length == 3)
                        {
                            skillBytesString = "0" + skillBytesString;
                        }
                        else if (skillBytesString.Length == 2)
                        {
                            skillBytesString = "00" + skillBytesString;
                        }

                        dumpOutput.Text = dumpOutput.Text + "Skill " + (skillSlot + 1) + "- 0x" + Addresses.GetPersonaSkillAddress(personaSlot + 1, skillSlot + 1).ToString("X") + " - " + skillBytesString + "\n";
                    }
                }
                //Persona stats
                if (dumpListBox.GetItemChecked(2))
                {
                    dumpOutput.Text = dumpOutput.Text + "Strength - 0x" + Addresses.GetPersonaStatAddress(personaSlot + 1, Addresses.PersonaStats.Strength).ToString("X") + " - " + Addresses.GetPersonaStat(personaSlot + 1, Addresses.PersonaStats.Strength) + "\n";
                    dumpOutput.Text = dumpOutput.Text + "Magic - 0x" + Addresses.GetPersonaStatAddress(personaSlot + 1, Addresses.PersonaStats.Magic).ToString("X") + " - " + Addresses.GetPersonaStat(personaSlot + 1, Addresses.PersonaStats.Magic) + "\n";
                    dumpOutput.Text = dumpOutput.Text + "Endurance - 0x" + Addresses.GetPersonaStatAddress(personaSlot + 1, Addresses.PersonaStats.Endurance).ToString("X") + " - " + Addresses.GetPersonaStat(personaSlot + 1, Addresses.PersonaStats.Endurance) + "\n";
                    dumpOutput.Text = dumpOutput.Text + "Agility - 0x" + Addresses.GetPersonaStatAddress(personaSlot + 1, Addresses.PersonaStats.Agility).ToString("X") + " - " + Addresses.GetPersonaStat(personaSlot + 1, Addresses.PersonaStats.Agility) + "\n";
                    dumpOutput.Text = dumpOutput.Text + "Luck - 0x" + Addresses.GetPersonaStatAddress(personaSlot + 1, Addresses.PersonaStats.Luck).ToString("X") + " - " + Addresses.GetPersonaStat(personaSlot + 1, Addresses.PersonaStats.Luck) + "\n";
                }
            }
            //Social stats
            if (dumpListBox.GetItemChecked(3))
            {
                dumpOutput.Text = dumpOutput.Text + "\n---SOCIAL STATS---\n";
                dumpOutput.Text = dumpOutput.Text + "Knowledge - 0x" + Addresses.GetSocialStatAddress(Addresses.SocialStats.Knowledge).ToString("X") + " - " + Addresses.GetSocialStat(Addresses.SocialStats.Knowledge) + "\n";
                dumpOutput.Text = dumpOutput.Text + "Charm - 0x" + Addresses.GetSocialStatAddress(Addresses.SocialStats.Charm).ToString("X") + " - " + Addresses.GetSocialStat(Addresses.SocialStats.Charm) + "\n";
                dumpOutput.Text = dumpOutput.Text + "Proficiency - 0x" + Addresses.GetSocialStatAddress(Addresses.SocialStats.Proficiency).ToString("X") + " - " + Addresses.GetSocialStat(Addresses.SocialStats.Proficiency) + "\n";
                dumpOutput.Text = dumpOutput.Text + "Guts - 0x" + Addresses.GetSocialStatAddress(Addresses.SocialStats.Guts).ToString("X") + " - " + Addresses.GetSocialStat(Addresses.SocialStats.Guts) + "\n";
                dumpOutput.Text = dumpOutput.Text + "Kindness - 0x" + Addresses.GetSocialStatAddress(Addresses.SocialStats.Kindness).ToString("X") + " - " + Addresses.GetSocialStat(Addresses.SocialStats.Kindness) + "\n";
            }
        }
Esempio n. 2
0
 private void SetMoneyButton_Click(object sender, EventArgs e)
 {
     Addresses.SetMoney((int)moneyInput.Value);
     SetInformationBar("Money set to: " + moneyInput.Value);
 }
Esempio n. 3
0
 private void GetMoneyButton_Click(object sender, EventArgs e)
 {
     moneyInput.Value = Addresses.GetMoney();
     SetInformationBar("Money retrieved as: " + moneyInput.Value);
 }
Esempio n. 4
0
 private void GetLuckButton_Click(object sender, EventArgs e)
 {
     Addresses.PersonaStats stat = Addresses.PersonaStats.Luck;
     luckInput.Value = Addresses.GetPersonaStat((int)personaSlotInput.Value, stat);
     SetInformationBar(stat.ToString() + " retrieved as: " + luckInput.Value);
 }
Esempio n. 5
0
 private void SetLuckButton_Click(object sender, EventArgs e)
 {
     Addresses.PersonaStats stat = Addresses.PersonaStats.Luck;
     Addresses.SetPersonaStat((int)personaSlotInput.Value, stat, (int)luckInput.Value);
     SetInformationBar(stat.ToString() + " set to: " + luckInput.Value);
 }
Esempio n. 6
0
 private void GetPersonaLevelButton_Click(object sender, EventArgs e)
 {
     levelInput.Value = Addresses.GetPersonaLevel((int)personaSlotInput.Value);
     SetInformationBar("Level retrieved as: " + levelInput.Value);
 }
Esempio n. 7
0
 private void SetPersonaLevelButton_Click(object sender, EventArgs e)
 {
     Addresses.SetPersonaLevel((int)personaSlotInput.Value, (int)levelInput.Value);
     SetInformationBar("Level set to: " + levelInput.Value);
 }
Esempio n. 8
0
 private void SetPersonaSkillButton_Click(object sender, EventArgs e)
 {
     byte[] skillBytes = StringToByteArray(skillInput.Text);
     Addresses.SetPersonaSkill((int)personaSlotInput.Value, (int)skillSlotInput.Value, skillBytes);
     SetInformationBar("SKill " + skillSlotInput.Value + " set to: " + ByteArrayToString(skillBytes));
 }