// * Applies an XP and GP penalty
// * to the player respawning
void ApplyPenalty(object oDead)
{


}

void main()
{
    object oArea = GetArea(OBJECT_SELF);
    location lBegLoc = GetLocation(OBJECT_SELF);
    //The "beggmale001" needs to be changed to whatever your module
    //names the BLUEPRINT for your custom created creature. You
    //cannot use a completely standard creature, because then you
    //won't be able to change the scripts. Just create a regular
    //instance of an NPC, right click it and pick properties. Switch
    //to the scripts tag and fill in this script's name under the
    //on death script. Then close that, and right click on your
    //newly created NPC and add pick add blueprint. Then from the
    //advanced tab of the properties for the blueprint, find out
    //what the blueprint name is.
    CreateObject(OBJECT_TYPE_PLACEABLE, "tree1", lBegLoc);
    ApplyPenalty(GetLastKiller());
}