22 lines
629 B
Plaintext
22 lines
629 B
Plaintext
/////////////////////////////////////////////
|
|
// Vampire Experience
|
|
//////////////////////////////////////////////
|
|
void fnGiveVampXP(object oPC,int nAmount)
|
|
{
|
|
int nXP=GetLocalInt(oPC,"nVampireXP");
|
|
string sMsg="Your vampire class made "+IntToString(nAmount)+" experience bringing your total to ";
|
|
nXP=nXP+nAmount;
|
|
sMsg=sMsg+IntToString(nXP)+" and your level is ";
|
|
SetLocalInt(oPC,"nVampireXP",nXP);
|
|
nXP=1+(nXP/5000);
|
|
if (nXP>4) sMsg=sMsg+"5 [Maximum Vampire Level].";
|
|
else { sMsg=sMsg+IntToString(nXP)+".";}
|
|
SendMessageToPC(oPC,sMsg);
|
|
}
|
|
|
|
int fnGetVampXP(object oPC)
|
|
{
|
|
return GetLocalInt(oPC,"nVampireXP");
|
|
}
|
|
|