From our end-of-day-five list, we have two things left to clean up. First we’ll tackle “The location table doesn’t get cleared when we restart the game server.”
It’s round 17, but we have NPC data from round 47 of a previous run still in the database. We should clear things out each time the server is restarted:
USE [dragonsspine]
GO
/****** Object: StoredProcedure [dbo].[prApp_NPCLocation_Clear] Script Date: 08/31/2015 22:40:33 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
----------------------------------------------------------------------------
-- Clear all entries from the NPCLocation table
----------------------------------------------------------------------------
CREATE PROC [dbo].[prApp_NPCLocation_Clear]
AS
DELETE NPCLocation
GO