Beispiel #1
0
	public void SetQuickSlot( int iIndex, int iValue, eQUICKSLOT_TYPE eType)
	{
		sQUICKSLOT _data = new sQUICKSLOT();
		_data.nValue = iValue;
		_data.eType = (int)eType;
		SetQuickSlot( iIndex, _data);
		
		#region - auto combat -
		AutoCombatManager.Instance.ItemRemovedFromQuickSlot( iIndex, iValue, eType);
		#endregion
	}
	// potion
	public void ItemRemovedFromQuickSlot( int _index, int _value, eQUICKSLOT_TYPE _type)
	{
		if( m_Activate == true && _index == 0 &&
			( _value == 0 || m_PotionSpecifier.CheckValidPotion(_value) == false))
		{
			TurnOff();
			
			AsEntityManager.Instance.MessageToPlayer( new Msg_AutoCombat_Off(false));
		
			string str = AsTableManager.Instance.GetTbl_String(2115);
			AsEventNotifyMgr.Instance.CenterNotify.AddQuestMessage(str, false);
		}
	}