mirror of
http://prc.nwn.ee:3000/Jaysyn/PRC8.git
synced 2025-12-17 06:17:14 -05:00
Initial upload.
Adding base PRC 4.19a files to repository.
This commit is contained in:
14
trunk/smp/0_onspellcast.nss
Normal file
14
trunk/smp/0_onspellcast.nss
Normal file
@@ -0,0 +1,14 @@
|
||||
// 0_onspellcast
|
||||
|
||||
// On Spell Cast At report. report feedback information via. Speak String.
|
||||
|
||||
|
||||
void main()
|
||||
{
|
||||
int nSpell = GetLastSpell();// returns the SPELL_* that was cast.
|
||||
object oCaster = GetLastSpellCaster();// returns the object that cast the spell.
|
||||
int bHarmful = GetLastSpellHarmful();// returns TRUE if the spell was marked as hostile, FALSE otherwise.
|
||||
|
||||
SpeakString("[SPELL CAST AT] [" + GetName(OBJECT_SELF) + "] Caster: " + GetName(oCaster) +
|
||||
". nSpell: " + IntToString(nSpell) + ". bHarmful: " + IntToString(bHarmful));
|
||||
}
|
||||
Reference in New Issue
Block a user