XP script

Post your tips, ideas for improvements, requests for new features, etc. here
Locked
JesterOI
Resident Spam King
Posts: 1016
Joined: Wed Jan 15, 2003 4:14 am
Location: SPAM!!!ville
Contact:

XP script

Post by JesterOI »

Just a general idea here, no party support yet, does it look like it can work?

int nHD = GetHitDice(object oPlayer);
int nCR = GetChallengeRating(object oCreature);
int nLowerCap = 1

int nCRadj = nHD - nCR;
if(nCRadj > 5)
{
nLowerCap = 0;
}
else if(nCRadj < -5)
{
nCRadj = -5;
nCR = nHD + 4;
}

int nCRadj = nCRadj * 5
int nBaseXP = (nCR * 1000);
int nNeededCR = (nHD*2)+45;

int nXPprize = (nBaseXP / (nNeededCR + nCRadj)) * nLowerCap;

nXPprize is the amount of xp the player would get for a kill



Would I use these to start working out party xp?
object GetFactionStrongestMember(object oFactionMember=OBJECT_SELF, int bMustBeVisible=TRUE)
object GetFactionWeakestMember(object oFactionMember=OBJECT_SELF, int bMustBeVisible=TRUE)
LVL 69 LFGS!!!
Image
Image
The Hasselhoff 4 3v3r!!! Metis n3v3r!!!

Locked

Return to “NS4 Ideas and Suggestions”