… | |
… | |
1061 | { |
1061 | { |
1062 | char buf[MAX_BUF]; |
1062 | char buf[MAX_BUF]; |
1063 | |
1063 | |
1064 | /* this must before then initial items are given */ |
1064 | /* this must before then initial items are given */ |
1065 | esrv_new_player (op->contr, op->weight + op->carrying); |
1065 | esrv_new_player (op->contr, op->weight + op->carrying); |
|
|
1066 | |
1066 | create_treasure (find_treasurelist ("starting_wealth"), op, 0, 0, 0); |
1067 | treasurelist *tl = find_treasurelist ("starting_wealth"); |
|
|
1068 | if (tl) |
|
|
1069 | create_treasure (tl, op, 0, 0, 0); |
1067 | |
1070 | |
1068 | INVOKE_PLAYER (BIRTH, op->contr); |
1071 | INVOKE_PLAYER (BIRTH, op->contr); |
1069 | INVOKE_PLAYER (LOGIN, op->contr); |
1072 | INVOKE_PLAYER (LOGIN, op->contr); |
1070 | |
1073 | |
1071 | op->contr->state = ST_PLAYING; |
1074 | op->contr->state = ST_PLAYING; |