12 lines
387 B
Plaintext
12 lines
387 B
Plaintext
void main()
|
|
{
|
|
object oPC=GetPCSpeaker();
|
|
object oItem=CreateItemOnObject("vamp_it_coffin",oPC);
|
|
object oTarget=GetLocalObject(oPC,"oTarget");
|
|
object oOwner=GetLocalObject(oTarget,"oVampire");
|
|
SetLocalObject(oItem,"oOwner",oOwner);
|
|
DeleteLocalObject(oOwner,"oCoffin");
|
|
DeleteLocalInt(oOwner,"nCoffinPlaced");
|
|
if (GetIsObjectValid(oItem)) DestroyObject(oTarget);
|
|
}
|