14 lines
364 B
Plaintext
14 lines
364 B
Plaintext
void main()
|
|
{
|
|
if (GetLocalInt(OBJECT_SELF, "nprisoner") == 0)
|
|
{
|
|
object oTrashCan = GetObjectByTag("TrashCan");
|
|
if(GetLocalInt(oTrashCan, "nGoodNPCDead") > 0)
|
|
{
|
|
location loc = GetLocation(GetObjectByTag("prisoner"));
|
|
CreateObject(OBJECT_TYPE_CREATURE, "prisoner1", loc, TRUE);
|
|
SetLocalInt(OBJECT_SELF, "nprisoner", 1);
|
|
}
|
|
}
|
|
}
|