TL = Sum of the levels of each member of the group. XP = Total experience earned in this fight. ExpPerLevel = experience per level of player. ExpPerLevel = (XP ? TL/XP : 0); // Dont divide by zero :-) // might want to do TL%XP and add it to the highest level player too.. // (conservation of exp :-P) for each group member: experience += (ExpPerLevel * GET_LEVEL(ch)); +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST