I looked at the remort code on the Developer site and it looks more like a remort\multiclass code. What I want to do is have it so people can remort at a specific mob and have a counter in the pfile and character struct. I would like to make it so that certain spells or skills get replaced at certain remorts. Here is what I have so far. What I need help with is the mob advance part and the getting certain skills at a certain remort part. Any assistance would be appreciated. -SaGE First add to structs.h in the struct char_player_data and char_file_u int remorts; /* PC's number of remorts */ In utils.h add #define GET_REMORT(ch) ((ch)->player.remorts) In interpreter.c predeclare ACMD(do_remort); and add: { "remort" , POS_STANDING, do_remort , 1, 0 }, In act.other.c predeclare ACMD(do_remort); and add: ACMD(do_remort) { if (GET_LEVEL(ch)!=(LVL_IMMORT-1)) { send_to_char(ch, "You are not worthy of being reborn!"); return; } /* Possibly add some gold requirement */ GET_LEVEL(ch)=1; /* Set back to level 1 */ GET_REMORT(ch)+=1; /* Increase remort counter by 1 */ GET_AC(ch) = 100; /* Reset their AC to 100 */ /* Reset Max Hit Points */ GET_MAX_HIT(ch) = (GET_MAX_HIT(ch) * .2); /* Reset Max Hit Points */ GET_MAX_MANA(ch) = (GET_MAX_MANA(ch) * .2); /* Reset Max Movement Points */ GET_MAX_MOVE(ch) = (GET_MAX_MOVE(ch) * .2); SET_SKILL(ch, i, 0); /* Reset the skill level */ send_to_char(ch,"You awaken to a new begining."); } -- +---------------------------------------------------------------+ | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html | | Newbie List: http://groups.yahoo.com/group/circle-newbies/ | +---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 06/25/03 PDT