Created
March 23, 2009 08:59
-
-
Save SPY/83478 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%begin | |
{R, cmsg_player_login, D} -> | |
{ok, CharId} = realm_patterns:cmsg_player_login(D), | |
Char = char_helper:find(CharId), | |
ok = set_dungeon_difficulty(S, -1), | |
MapPid = verify_world(S, Char), | |
ok = send_account_data(S), | |
ok = set_rest_start(S), | |
ok = set_tutorial_flags(S), | |
ok = send_spells_and_cooldowns(S), | |
ok = send_action_buttons(S), | |
ok = send_factions(S), | |
ok = send_timespeed(S), | |
ok = send_status(S), | |
ok = send_self(S, Char), | |
put(tick_count, 0), | |
MapPid ! {add, self(), Char#char.position_x, | |
Char#char.position_y, | |
Char#char.position_z}, | |
MapPid ! {bco, self(), | |
#vector{x=Char#char.position_x, | |
y=Char#char.position_y, | |
z=Char#char.position_z,}, | |
30, {update_objects, player_login}}, | |
in_world(State#client_state{current_map=MapPid, char=Char}); | |
%in_world_queue | |
... | |
{update_objects, Message} -> | |
io:format("*DBG* Update objects from ~p : ~p~n", [self(), Message]); | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment