class 1 ai_boss06_baium_stone : default_npc
{
parameter:
	int	GM_ID = 2;

handler:
	EventHandler CREATED(reply,i0)
	{
		myself.i_ai0 = 0;
	}

	EventHandler TALKED(talker)
	{
		myself::ShowPage(talker,"baium_npc001.htm");
	}

	EventHandler MENU_SELECTED(talker,ask,reply,i0,c0)
	{
		if( ask == 9999 )
		{
			if( reply == 1 )
			{
				if( myself.i_ai0 == 0 )
				{
					myself.i_ai0 = 1;
					i0 = myself::GetGlobalMap(GM_ID);
					if( i0 != -1 )
					{
						c0 = myself::GetCreatureFromIndex(i0);
						gg::SendScriptEvent(c0,10025,myself::GetIndexFromCreature(talker));
					}
					myself::Despawn();
				}
			}
		}
	}

}
