Code:
function action_message(actor_id, target_id, actor_index, target_index, message_id, param_1, param_2, param_3)
local skill ={
[1] = "Hand-to-Hand",
[2] = "Dagger",
[3] = "Sword",
[4] = "Great Sword",
[5] = "Axe",
[6] = "Great Axe",
[7] = "Scythe",
[8] = "Polearm",
[9] = "Katana",
[10] = "Great Katana",
[11] = "Club",
[12] = "Staff",
[22] = "Automaton Melee",
[23] = "Automaton Archery",
[24] = "Automaton Magic",
[25] = "Archery",
[26] = "Marksmanship",
[27] = "Throwing",
[28] = "Guard",
[29] = "Evasion",
[30] = "Shield",
[31] = "Parrying",
[32] = "Divine Magic",
[33] = "Healing Magic",
[34] = "Enhancing Magic",
[35] = "Enfeebling Magic",
[36] = "Elemental Magic",
[37] = "Dark Magic",
[38] = "Summoning Magic",
[39] = "Ninjutsu",
[40] = "Singing",
[41] = "Stringed Instrument",
[42] = "Wind Instrument",
[43] = "Blue Magic",
[44] = "Geomancy",
[45] = "Handbell",
[48] = "Fishing",
[49] = "Woodworking",
[50] = "Smithing",
[51] = "Goldsmithing",
[52] = "Clothcraft",
[53] = "Leathercraft",
[54] = "Bonecraft",
[55] = "Alchemy",
[56] = "Cooking",
[57] = "Synergy",
}
if message_id == 38 and target_id == player.id then
skill_gain[skill[param_1]] = param_2
end
end
windower.raw_register_event('action message', action_message)