heres my code to replace the titles[] stuff... put it at the end of utils.c, and then grep -in titles *.[ch] and replace all the titles exp stuff with exp_to_level(ch). this makes it easier to add new levels, and gets rid of those ugly tables at the end of class.c. oh, and if you want to add a class modifier (i didnt want it), just create another int cmodifier, and change that. oh, and you have to lose all the set_title stuff too, because that wont exist any more. 'luck :) Nic Suzor int exp_to_level(struct char_data *ch) { int modifier, exp; if (GET_LEVEL(ch) < 10) modifier = 1; else if (GET_LEVEL(ch) < 20) modifier = 2; else if (GET_LEVEL(ch) < 30) modifier = 5; else if (GET_LEVEL(ch) < 40) modifier = 10; else if (GET_LEVEL(ch) < 50) modifier = 20; else if (GET_LEVEL(ch) < 60) modifier = 30; else if (GET_LEVEL(ch) < 70) modifier = 50; else if (GET_LEVEL(ch) < 80) modifier = 70; else if (GET_LEVEL(ch) < 90) modifier = 100; else modifier = 250; exp = GET_LEVEL(ch) * modifier * 4000; return exp; } At 11:39 PM 2/21/97 +0000, you wrote: >Anyone who has made this, or could direct me in the right way?? +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | | Or send 'info circle' to majordomo@cspo.queensu.ca | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST