void main()
{
object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return;
int DoOnce = GetLocalInt(oPC, GetTag(OBJECT_SELF));
if (DoOnce==TRUE) return;
SetLocalInt(oPC, GetTag(OBJECT_SELF), TRUE);
object oTarget;
object oSpawn;
location lTarget;
oTarget = GetWaypointByTag("DG_HermePoint_01");
lTarget = GetLocation(oTarget);
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "dg_hermes_01", lTarget);
}
This spawns the creature once for the pc, but if multiple pc's go in, I get multiple creatures, which is ok, as he's not hostile, but I am using a Frost giant for the creature, and it's a small room, plus I'd like the dialog that this creature has to make an item useable, once per pc who talks to him. I just have one question: How??????
|