//::///////////////////////////////////////////////
//:: Actions for The Gift of Inspiration Conversation
//::///////////////////////////////////////////////
//:: 2d2f: 04-29-08 - Finished

#include "2d2f_includes"
#include "jx_inc_magic_class"

void main(string sItem, int nLvl)
{
	object oPC = GetPCSpeaker();
	CreateItemOnObject(sItem,oPC);
	
	int nWmLvl = GetLevelByClass(CLASS_WILDMAGE,oPC) + 2;
	
	if(nWmLvl == 5)
	{
		SetLocalInt(oPC,"nUsedInspiration_2",1);
	}
	else if(nWmLvl == 6)
	{
		SetLocalInt(oPC,"nUsedInspiration_2",2);
	}
	else if(nWmLvl == 7)
	{
		SetLocalInt(oPC,"nUsedInspiration_3",1);
	}
	else if(nWmLvl == 8)
	{
		SetLocalInt(oPC,"nUsedInspiration_3",2);
	}
	else if(nWmLvl == 9)
	{
		SetLocalInt(oPC,"nUsedInspiration_4",1);
	}
	else if(nWmLvl == 10)
	{
		SetLocalInt(oPC,"nUsedInspiration_4",2);
	}
	else if(nWmLvl == 11)
	{
		SetLocalInt(oPC,"nUsedInspiration_5",1);
	}
	else if(nWmLvl == 12)
	{
		SetLocalInt(oPC,"nUsedInspiration_5",2);
	}
	else if(nWmLvl == 13 || nWmLvl == 14)
	{
		SetLocalInt(oPC,"nUsedInspiration_6",1);
	}
	else if(nWmLvl == 14)
	{
		SetLocalInt(oPC,"nUsedInspiration_6",2);
	}
	else if(nWmLvl == 15)
	{
		SetLocalInt(oPC,"nUsedInspiration_7",1);
	}
		else if(nWmLvl == 16)
	{
		SetLocalInt(oPC,"nUsedInspiration_7",2);
	}
	else if(nWmLvl == 17)
	{
		SetLocalInt(oPC,"nUsedInspiration_8",1);
	}
	else if(nWmLvl == 18)
	{
		SetLocalInt(oPC,"nUsedInspiration_8",2);
	}
	else if(nWmLvl >= 19 && nWmLvl % 2 == 1)
	{
		SetLocalInt(oPC,"nUsedInspiration_8",1);
	}
	else if(nWmLvl >= 19 && nWmLvl % 2 == 0)
	{
		SetLocalInt(oPC,"nUsedInspiration_8",2);
	}
	
	/*
	if(nLvl == 1 || nLvl == 2 || nLvl == 3 )
	{	
		if(GetHasFeat(FEAT_GIFT_OF_INSPIRATION_2,oPC) == TRUE)
		{
			FeatRemove(oPC,FEAT_GIFT_OF_INSPIRATION_2);
			return;
		}
		else if(GetHasFeat(FEAT_GIFT_OF_INSPIRATION_3,oPC) == TRUE)
		{
			FeatRemove(oPC,FEAT_GIFT_OF_INSPIRATION_3);
			return;
		}
		else if(GetHasFeat(FEAT_GIFT_OF_INSPIRATION_4,oPC) == TRUE)
		{
			FeatRemove(oPC,FEAT_GIFT_OF_INSPIRATION_4);
			return;
		}
		else if(GetHasFeat(FEAT_GIFT_OF_INSPIRATION_5,oPC) == TRUE)
		{
			FeatRemove(oPC,FEAT_GIFT_OF_INSPIRATION_5);
			return;
		}
		else if(GetHasFeat(FEAT_GIFT_OF_INSPIRATION_6,oPC) == TRUE)
		{
			FeatRemove(oPC,FEAT_GIFT_OF_INSPIRATION_6);
			return;
		}
		else if(GetHasFeat(FEAT_GIFT_OF_INSPIRATION_7,oPC) == TRUE)
		{
			FeatRemove(oPC,FEAT_GIFT_OF_INSPIRATION_7);
			return;
		}
		else if(GetHasFeat(FEAT_GIFT_OF_INSPIRATION_8,oPC) == TRUE)
		{
			FeatRemove(oPC,FEAT_GIFT_OF_INSPIRATION_8);
			return;
		}
		else
		{
		return;
		}
	}	
	else if(nLvl == 4)
	{	
		if(GetHasFeat(FEAT_GIFT_OF_INSPIRATION_3,oPC) == TRUE)
		{
			FeatRemove(oPC,FEAT_GIFT_OF_INSPIRATION_3);
			return;
		}
		else if(GetHasFeat(FEAT_GIFT_OF_INSPIRATION_4,oPC) == TRUE)
		{
			FeatRemove(oPC,FEAT_GIFT_OF_INSPIRATION_4);
			return;
		}
		else if(GetHasFeat(FEAT_GIFT_OF_INSPIRATION_5,oPC) == TRUE)
		{
			FeatRemove(oPC,FEAT_GIFT_OF_INSPIRATION_5);
			return;
		}
		else if(GetHasFeat(FEAT_GIFT_OF_INSPIRATION_6,oPC) == TRUE)
		{
			FeatRemove(oPC,FEAT_GIFT_OF_INSPIRATION_6);
			return;
		}
		else if(GetHasFeat(FEAT_GIFT_OF_INSPIRATION_7,oPC) == TRUE)
		{
			FeatRemove(oPC,FEAT_GIFT_OF_INSPIRATION_7);
			return;
		}
		else if(GetHasFeat(FEAT_GIFT_OF_INSPIRATION_8,oPC) == TRUE)
		{
			FeatRemove(oPC,FEAT_GIFT_OF_INSPIRATION_8);
			return;
		}
		else
		{
		return;
		}
	}
	else if(nLvl == 5)
	{	
		if(GetHasFeat(FEAT_GIFT_OF_INSPIRATION_4,oPC) == TRUE)
		{
			FeatRemove(oPC,FEAT_GIFT_OF_INSPIRATION_4);
			return;
		}
		else if(GetHasFeat(FEAT_GIFT_OF_INSPIRATION_5,oPC) == TRUE)
		{
			FeatRemove(oPC,FEAT_GIFT_OF_INSPIRATION_5);
			return;
		}
		else if(GetHasFeat(FEAT_GIFT_OF_INSPIRATION_6,oPC) == TRUE)
		{
			FeatRemove(oPC,FEAT_GIFT_OF_INSPIRATION_6);
			return;
		}
		else if(GetHasFeat(FEAT_GIFT_OF_INSPIRATION_7,oPC) == TRUE)
		{
			FeatRemove(oPC,FEAT_GIFT_OF_INSPIRATION_7);
			return;
		}
		else if(GetHasFeat(FEAT_GIFT_OF_INSPIRATION_8,oPC) == TRUE)
		{
			FeatRemove(oPC,FEAT_GIFT_OF_INSPIRATION_8);
			return;
		}
		else
		{
		return;
		}
	}
	else if(nLvl == 6)
	{	
		if(GetHasFeat(FEAT_GIFT_OF_INSPIRATION_5,oPC) == TRUE)
		{
			FeatRemove(oPC,FEAT_GIFT_OF_INSPIRATION_5);
			return;
		}
		else if(GetHasFeat(FEAT_GIFT_OF_INSPIRATION_6,oPC) == TRUE)
		{
			FeatRemove(oPC,FEAT_GIFT_OF_INSPIRATION_6);
			return;
		}
		else if(GetHasFeat(FEAT_GIFT_OF_INSPIRATION_7,oPC) == TRUE)
		{
			FeatRemove(oPC,FEAT_GIFT_OF_INSPIRATION_7);
			return;
		}
		else if(GetHasFeat(FEAT_GIFT_OF_INSPIRATION_8,oPC) == TRUE)
		{
			FeatRemove(oPC,FEAT_GIFT_OF_INSPIRATION_8);
			return;
		}
		else
		{
		return;
		}
	}
	else if(nLvl == 7)
	{	
		if(GetHasFeat(FEAT_GIFT_OF_INSPIRATION_6,oPC) == TRUE)
		{
			FeatRemove(oPC,FEAT_GIFT_OF_INSPIRATION_6);
			return;
		}
		else if(GetHasFeat(FEAT_GIFT_OF_INSPIRATION_7,oPC) == TRUE)
		{
			FeatRemove(oPC,FEAT_GIFT_OF_INSPIRATION_7);
			return;
		}
		else if(GetHasFeat(FEAT_GIFT_OF_INSPIRATION_8,oPC) == TRUE)
		{
			FeatRemove(oPC,FEAT_GIFT_OF_INSPIRATION_8);
			return;
		}
		else
		{
		return;
		}
	}
	else if(nLvl == 8)
	{	
		if(GetHasFeat(FEAT_GIFT_OF_INSPIRATION_7,oPC) == TRUE)
		{
			FeatRemove(oPC,FEAT_GIFT_OF_INSPIRATION_7);
			return;
		}
		else if(GetHasFeat(FEAT_GIFT_OF_INSPIRATION_8,oPC) == TRUE)
		{
			FeatRemove(oPC,FEAT_GIFT_OF_INSPIRATION_8);
			return;
		}
		else
		{
		return;
		}
	}
	else if(nLvl == 9)
	{	
		if(GetHasFeat(FEAT_GIFT_OF_INSPIRATION_8,oPC) == TRUE)
		{
			FeatRemove(oPC,FEAT_GIFT_OF_INSPIRATION_8);
			return;
		}
		else
		{
		return;
		}
	}
	*/
	
}