public static void OnScriptCompiled(DOLEvent e, object sender, EventArgs args) { if (!ServerProperties.Properties.LOAD_EXAMPLES) { return; } m_myFollowTimer = new Timer(1500); m_myFollowTimer.AutoReset = true; m_myFollowTimer.Start(); // Create an instance of the following spider m_npc = new FollowingNPC(); // And add it to the world (the position and all // other relevant data is defined in the constructor // of the NPC bool good = m_npc.AddToWorld(); if (log.IsInfoEnabled) { if (log.IsInfoEnabled) { log.Info("FollowingNPCEvent initialized"); } } }
public static void OnScriptCompiled(DOLEvent e, object sender, EventArgs args) { if (!ServerProperties.Properties.LOAD_EXAMPLES) return; m_myFollowTimer = new Timer(1500); m_myFollowTimer.AutoReset = true; m_myFollowTimer.Start(); //Create an instance of the following spider m_npc = new FollowingNPC(); //And add it to the world (the position and all //other relevant data is defined in the constructor //of the NPC bool good = m_npc.AddToWorld(); if (log.IsInfoEnabled) if (log.IsInfoEnabled) log.Info("FollowingNPCEvent initialized"); }