@LabelIndex 111576
@StringIndex 0
class 0 ai_ghost_on_the_roof : default_npc {
parameter:
	int	cursed_magic = 366542849;

handler:
	EventHandler CREATED() {
		myself::AddTimerEx(1000,1000);
	}

	EventHandler TIMER_FIRED_EX(timer_id) {
		if( timer_id == 1000 ) {
			myself::LookNeighbor(450);
			myself::AddTimerEx(1000,( 40 * 10000 ));
		}
	}

	EventHandler NO_DESIRE() {
		myself::AddMoveAroundDesire(300,1000);
	}

	EventHandler SEE_CREATURE(creature) {
		myself::AddUseSkillDesire(creature,cursed_magic,0,1,1000000);
	}

}
