All pastes #470098 Raw Edit

Someone

public text v1 · immutable
·published 2007-05-04 01:52 UTC
rendered paste body
function ReleaseCorpse()
{

  ; update death count
  TotalDeaths:Inc
  ; reset our fleeing state and target
  RLG:Set[FALSE]
  TargetGUID:Set[NOTARGET]

  ; wait a few seconds then release out spirit
  wait 30
  WoWScript RepopMe()
  ; wait to give us time to pop in the graveyard
  wait 50
  #ifdef PVPSERVER
  wait ${Math.Calc[${Math.Rand[5]}*500]}
  #endif
}