Initial commit. Updated release archive.
This commit is contained in:
19
_module/nss/i420_cr_nyth_spl.nss
Normal file
19
_module/nss/i420_cr_nyth_spl.nss
Normal file
@@ -0,0 +1,19 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Invizible420's Nyth
|
||||
// Created On: 3/15/03
|
||||
//
|
||||
// Script Name: i420_cr_nyth_spl
|
||||
// Nyth OnSpellCastAt Event
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// This will reflect magic missles back at the caster
|
||||
void main()
|
||||
{
|
||||
if (GetLastSpell() == SPELL_MAGIC_MISSILE && GetIsPC(GetLastSpellCaster()) == TRUE) {
|
||||
float fDist = GetDistanceBetween(OBJECT_SELF,GetLastSpellCaster());
|
||||
DelayCommand(fDist/5.6,ClearAllActions(TRUE));
|
||||
DelayCommand(fDist/5.5,ActionCastSpellAtObject(SPELL_MAGIC_MISSILE, GetLastSpellCaster(), METAMAGIC_ANY, TRUE,GetHitDice(GetLastSpellCaster()), PROJECTILE_PATH_TYPE_DEFAULT, TRUE));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user