Skip to content

Instantly share code, notes, and snippets.

@SPY
Created March 23, 2009 08:59
Show Gist options
  • Save SPY/83478 to your computer and use it in GitHub Desktop.
Save SPY/83478 to your computer and use it in GitHub Desktop.
%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]);
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment