Initial upload.
Adding base PRC 4.19a files to repository.
This commit is contained in:
33
trunk/smp/000_testb.nss
Normal file
33
trunk/smp/000_testb.nss
Normal file
@@ -0,0 +1,33 @@
|
||||
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();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user