Initial upload.

Adding base PRC 4.19a files to repository.
This commit is contained in:
Jaysyn904
2022-10-07 13:51:24 -04:00
parent 646eb01834
commit 1662218bb4
22441 changed files with 1274376 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
// Written by Stratovarius
// Turns Blood Component on and off.
#include "prc_class_const"
void main()
{
object oPC = OBJECT_SELF;
string nMes = "";
// Can't use this unless you're level 8
if (GetLevelByClass(CLASS_TYPE_RUNECASTER, oPC) < 8)
{
FloatingTextStringOnCreature("You are not high enough level to use this ability", oPC, FALSE);
return;
}
if(!GetLocalInt(oPC, "RuneUsesPerDay"))
{
if (GetLocalInt(oPC, "RuneCharges"))
{
DeleteLocalInt(oPC, "RuneCharges");
FloatingTextStringOnCreature("*Charges Deactivated*", oPC, FALSE);
}
SetLocalInt(oPC, "RuneUsesPerDay", TRUE);
nMes = "*Uses Per Day Activated*";
}
else
{
// Removes effects
DeleteLocalInt(oPC, "RuneUsesPerDay");
nMes = "*Uses Per Day Deactivated*";
}
FloatingTextStringOnCreature(nMes, oPC, FALSE);
}