Initial upload

Initial upload.
This commit is contained in:
Jaysyn904
2023-11-14 12:09:02 -05:00
parent 657466db0c
commit 08e84b4e71
1674 changed files with 1227255 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
void main()
{
object oMyActivator = OBJECT_SELF;
if(GetIsDM(oMyActivator) != TRUE)
{
object oTest = GetFirstPC();
string sTestName = GetPCPlayerName(oMyActivator);
int nFound = FALSE;
while (GetIsObjectValid(oTest) && (! nFound))
{
if (GetPCPlayerName(oTest) == sTestName)
{
if(GetIsDM(oTest))
{
nFound = TRUE;
}
else
{
SendMessageToPC(oMyActivator,"This is too much power for mere mortals!");
return;
}
}
oTest=GetNextPC();
}
}
// get the wand's activator and target, put target info into local vars on activator
object oMyTarget;
SetLocalObject(oMyActivator, "dmwandtarget", oMyTarget);
location lMyLoc;
SetLocalLocation(oMyActivator, "dmwandloc", lMyLoc);
//Make the activator start a conversation with itself
AssignCommand(oMyActivator, ActionStartConversation(oMyActivator, "dmwand", TRUE));
return;
}