Merged redundant hak files

Merged redundant hak files.  Moved hak scripts into module.  Updated gitignore.  Full Compile.  Added release folder & archive.
This commit is contained in:
Jaysyn904
2024-12-12 15:02:17 -05:00
parent f58f9a29b4
commit e2f4ba74d5
3227 changed files with 52239 additions and 55 deletions

View File

@@ -0,0 +1,28 @@
//////////////////////////////////////////////////////////////////////////////
// NPC ACTIVITIES 6.0 DM Wand Script - By Deva Bryson Winblood
//////////////////////////////////////////////////////////////////////////////
void main()
{
object oItem=GetItemActivated();
object oPC=GetItemActivator();
object oTarget=GetItemActivatedTarget();
int nGNB;
if (GetIsDM(oPC)==TRUE)
{ // DM
if (GetIsObjectValid(oTarget)&&GetObjectType(oTarget)==OBJECT_TYPE_CREATURE&&!GetIsPC(oTarget))
{ // valid target
SetLocalObject(oPC,"oDMTarget",oTarget);
AssignCommand(oPC,ClearAllActions(TRUE));
AssignCommand(oPC,ActionStartConversation(oPC,"npcact_dm",TRUE,FALSE));
} // valid target
else
{ // bad target
SendMessageToPC(oPC,"Not a valid target for this wand.");
} // bad target
} // DM
else
{
SendMessageToPC(oPC,"You are not a DM!");
DestroyObject(oItem);
}
}