Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- At top of players.c
- static void load_skills(struct char_data *ch, const char *line, int mode);
- under Case S: in load_char
- else if (!strcmp(tag, "Skil"))load_skills(ch, line, LOAD_SKILL);
- the function of load_skill (based off of load_mana
- static void load_skills (struct char_data *ch, const char *line, int mode) {//(FILE *fl, struct char_data *ch) {
- int num = 0, num2 = 0, i;
- sscanf(line, "%d/%d", &num, &num2);
- switch (mode) {
- case LOAD_SKILL:
- GET_SKILL_RANK(ch, i) = num;
- GET_SKILL_XP(ch, i) = num2;
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment