IfSpawned

  //Play Music
  tmpargument = 13
  tmpdistance = 0
  PlayMusic

// Plop down some Flowers
  tmpargument = 0
  tmpx = 57 < 7 + 64
  tmpy = 5  < 7 + 64
  SpawnExactParticle
  tmpx = 57 < 7 + 0
  tmpy = 6 < 7 + 64
  SpawnExactParticle
  tmpx = 59 < 7 + 64
  tmpy = 6 < 7 + 0
  SpawnExactParticle

  tmpargument = 1
  tmpx = 59 < 7 + 84
  tmpy = 5  < 7 + 20
  SpawnExactParticle

// Ring'o'Mushrooms
  tmpx = selfx
  tmpy = selfy
  tmpturn = 0
  tmpdistance = 145
  Compass
  tmpdistance = 0
  tmpargument = 2
  SpawnExactParticle

  tmpx = selfx
  tmpy = selfy
  tmpturn = tmpturn + 8192
  tmpdistance = 145
  Compass
  tmpdistance = 0
  tmpargument = 2
  SpawnExactParticle

  tmpx = selfx
  tmpy = selfy
  tmpturn = tmpturn + 8192
  tmpdistance = 145
  Compass
  tmpdistance = 0
  tmpargument = 2
  SpawnExactParticle

  tmpx = selfx
  tmpy = selfy
  tmpturn = tmpturn + 8192
  tmpdistance = 145
  Compass
  tmpdistance = 0
  tmpargument = 2
  SpawnExactParticle

  tmpx = selfx
  tmpy = selfy
  tmpturn = tmpturn + 8192
  tmpdistance = 145
  Compass
  tmpdistance = 0
  tmpargument = 2
  SpawnExactParticle

  tmpx = selfx
  tmpy = selfy
  tmpturn = tmpturn + 8192
  tmpdistance = 145
  Compass
  tmpdistance = 0
  tmpargument = 2
  SpawnExactParticle

  tmpx = selfx
  tmpy = selfy
  tmpturn = tmpturn + 8192
  tmpdistance = 145
  Compass
  tmpdistance = 0
  tmpargument = 2
  SpawnExactParticle

  tmpx = selfx
  tmpy = selfy
  tmpturn = tmpturn + 8192
  tmpdistance = 145
  Compass
  tmpdistance = 0
  tmpargument = 2
  SpawnExactParticle

// Plants
  tmpargument = 3
  tmpx = 59 < 7 + 05
  tmpy = 7  < 7 + 25
  SpawnExactParticle
  tmpx = 57 < 7 + 70
  tmpy = 5 < 7 + 5
  SpawnExactParticle
  tmpx = 59 < 7 + 70
  tmpy = 6 < 7 + 70
  SpawnExactParticle

  tmpargument = 4
  tmpx = 58 < 7 + 15
  tmpy = 7  < 7 + 85
  SpawnExactParticle

  //Do we turn the player into a Jiive Elf?
  tmpx = timehours
  tmpy = 7            //Only after 0 AM and before 6 AM
  IfXIsLessThanY
    tmpargument = [ELFF]
    tmpdistance = BLAHPLAYERS + BLAHENEMIES + BLAHFRIENDS  //SetTargetToNearestPlayer
    SetTargetToNearestBlahID
      tmpargument = 33        //jiiveelf.obj
      ChangeTargetClass

  GoPoof
  //say bye
End
