Updated Release Archive. Fixed Mage-killer prereqs. Removed old LETO & ConvoCC related files. Added organized spell scroll store. Fixed Gloura spellbook. Various TLK fixes. Reorganized Repo. Removed invalid user folders. Added DocGen back in.
34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
void main()
|
|
{
|
|
// AOE On Heartbeat - b
|
|
object oCreator = GetAreaOfEffectCreator(OBJECT_SELF);
|
|
|
|
// Check spell Id, ETC:
|
|
int nSpellId = GetSpellId();
|
|
int nActual = SPELL_FIREBALL;
|
|
|
|
// Get save DC:
|
|
int nSpellSaveDC = GetSpellSaveDC();
|
|
|
|
// Get caster level
|
|
int nCasterLevel = GetCasterLevel(oCreator);
|
|
|
|
// Get tag
|
|
string sTag = GetTag(OBJECT_SELF);
|
|
string sName = GetName(OBJECT_SELF);
|
|
string sResRef = GetResRef(OBJECT_SELF);
|
|
|
|
// We relay the information.
|
|
SendMessageToPC(oCreator, "ENTER (BLUE): (T: " + sTag + ")(N: " + sName + ")(RR: " + sResRef + "). ID1: " + IntToString(nSpellId) + ". ID2: " + IntToString(nActual) + ". SaveDC: " + IntToString(nSpellSaveDC) + ". CasterLevel: " + IntToString(nCasterLevel) + ".");
|
|
|
|
// Apply an On Enter effect
|
|
object oTarget = GetFirstInPersistentObject();
|
|
effect eDur = EffectVisualEffect(VFX_DUR_IOUNSTONE_GREEN);
|
|
|
|
while(GetIsObjectValid(oTarget))
|
|
{
|
|
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eDur, oTarget);
|
|
oTarget = GetNextInPersistentObject();
|
|
}
|
|
}
|