Initial Upload

Initial Upload
This commit is contained in:
Jaysyn904
2023-09-21 21:20:34 -04:00
parent d3f23f8b3c
commit 94990edc60
5734 changed files with 6324648 additions and 0 deletions

View 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));
}
}