Initial commit
Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
25
_module/nss/cnr_rock_osca.nss
Normal file
25
_module/nss/cnr_rock_osca.nss
Normal file
@@ -0,0 +1,25 @@
|
||||
/////////////////////////////////////////////////////////
|
||||
//
|
||||
// Craftable Natural Resources (CNR) by Festyx
|
||||
//
|
||||
// Name: cnr_rock_osca
|
||||
//
|
||||
// Desc: OnSpellCastAt event handler for minable
|
||||
// rocks. Minable rocks are immune to spell attacks.
|
||||
//
|
||||
// Author: David Bobeck 30Apr03
|
||||
//
|
||||
/////////////////////////////////////////////////////////
|
||||
#include "cnr_language_inc"
|
||||
void main()
|
||||
{
|
||||
object oPC = GetLastSpellCaster();
|
||||
if (GetIsObjectValid(oPC) && GetIsPC(oPC))
|
||||
{
|
||||
SetPlotFlag(OBJECT_SELF, TRUE);
|
||||
FloatingTextStringOnCreature(CNR_TEXT_MINABLE_ROCKS_ARE_RESISTANT, oPC, FALSE);
|
||||
|
||||
// clear the plot flag so the next attacker won't get "weapon not effective"
|
||||
DelayCommand(1.0, SetPlotFlag(OBJECT_SELF, FALSE));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user