diff --git a/p/lumilass-flesh-female.bin b/p/lumilass-flesh-female.bin new file mode 100755 index 0000000..13ef631 Binary files /dev/null and b/p/lumilass-flesh-female.bin differ diff --git a/p/lumilass-flesh-male.bin b/p/lumilass-flesh-male.bin new file mode 100755 index 0000000..fbba179 Binary files /dev/null and b/p/lumilass-flesh-male.bin differ diff --git a/p/lumilassA.bin b/p/lumilass-metal-female.bin old mode 100644 new mode 100755 similarity index 100% rename from p/lumilassA.bin rename to p/lumilass-metal-female.bin diff --git a/p/lumilass-metal-male.bin b/p/lumilass-metal-male.bin new file mode 100755 index 0000000..97b4d85 Binary files /dev/null and b/p/lumilass-metal-male.bin differ diff --git a/src/psu/psu_game.erl b/src/psu/psu_game.erl index 56f13e8..62ade89 100644 --- a/src/psu/psu_game.erl +++ b/src/psu/psu_game.erl @@ -1737,7 +1737,15 @@ send_1a02(A, B, C, D, E) -> %% @doc Lumilass handler. Possibly more. %% @todo Figure out how Lumilass work exactly. The 4 bytes before the file may vary. send_1a03() -> - {ok, File} = file:read_file("p/lumilassA.bin"), + {ok, User} = egs_user_model:read(get(gid)), + Character = User#egs_user_model.character, + Filename = case {Character#characters.race, Character#characters.gender} of + {cast, male} -> "p/lumilass-metal-male.bin"; + {cast, female} -> "p/lumilass-metal-female.bin"; + {_, male} -> "p/lumilass-flesh-male.bin"; + {_, female} -> "p/lumilass-flesh-female.bin" + end, + {ok, File} = file:read_file(Filename), send(<< (header(16#1a03))/binary, 0:32, File/binary >>). %% @doc PP cube handler.