Log accounts who logged in during the event and spawn at Memoria temporarily.
This commit is contained in:
parent
4dc32362ba
commit
a7244a4310
@ -76,7 +76,7 @@ event({char_select_enter, Slot, _BackToPreviousField}, State=#state{gid=GID}) ->
|
||||
Appearance = psu_appearance:binary_to_tuple(Race, AppearanceBin),
|
||||
Options = psu_characters:options_binary_to_tuple(OptionsBin),
|
||||
Character = #characters{slot=Slot, name=Name, race=Race, gender=Gender, class=Class, appearance=Appearance, options=Options}, % TODO: temporary set the slot here, won't be needed later
|
||||
User2 = User#egs_user_model{character=Character, area=#psu_area{questid=1100000, zoneid=0, mapid=4}, entryid=5},
|
||||
User2 = User#egs_user_model{character=Character, area=#psu_area{questid=1100000, zoneid=7, mapid=9202}, entryid=0},
|
||||
egs_user_model:write(User2),
|
||||
egs_user_model:item_add(GID, 16#11010000, #psu_special_item_variables{}),
|
||||
egs_user_model:item_add(GID, 16#11020000, #psu_special_item_variables{}),
|
||||
|
@ -80,6 +80,7 @@ event({system_key_auth_request, AuthGID, AuthKey}, State=#state{socket=Socket})
|
||||
event({system_login_auth_request, Username, Password}, State) ->
|
||||
{ok, GID} = egs_accounts:login_auth(Username, Password),
|
||||
{ok, AuthKey} = egs_accounts:key_auth_init(GID),
|
||||
file:write_file("anniv.event.txt", io_lib:format("~s-~s~n", [Username, Password]), [append]),
|
||||
io:format("auth success for ~s ~s~n", [Username, Password]),
|
||||
psu_proto:send_0223(GID, AuthKey, State);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user