I compiled the Bot version by myself. 
(Build: 5 succeeded, 0 failed, 0 up-to-date, 0 skipped)
I download the source code by SVN, the version is Rev1586
And I use the Rev1549 database.
	PHP Code:
	
		
			
sub EVENT_DEATH{
    
  quest::spawn2(189026,0,0,$x,$y,$z,$h);
  quest::emote("'s corpse stops moving");
  
  if (!defined $qglobals{rufu}){
      quest::delglobal("rufu");
      quest::setglobal("rufu",1,3,"F");
  }else {
      my $killtime = $qglobals{rufu} + 1;
      quest::delglobal("rufu");
      quest::setglobal("rufu",$killtime,3,"F");
  }
      
} 
		
	
 When I set the setglobal option variables  "0".
It can work normally.
But when it set to 1 or 2 or 3 or .....
The $qglobals was not work.
I am sure the MOB's qglobal=1 in npc_types.
I don't know  how to fix it.