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

#include "2d2f_includes"

void main(string sItem)
{
	object oSpeaker = GetPCSpeaker();
	int nLvl = GetLevelByClass(CLASS_WILDMAGE,oSpeaker);
	int nFirstScroll = GetLocalInt(oSpeaker,"nFirstScrollSelected");
	string sFirstItem;
	
	if(nLvl == 1)
	{
		if(nFirstScroll == 0)
		{
			//CreateItemOnObject(sItem,oSpeaker);
			SetLocalString(oSpeaker,"sItem1",sItem);
			SetLocalInt(oSpeaker,"nFirstScrollSelected",1);
		}
		else
		{
			string sItem1 = GetLocalString(oSpeaker,"sItem1");
			CreateItemOnObject(sItem1,oSpeaker);
			CreateItemOnObject(sItem,oSpeaker);
			DeleteLocalInt(oSpeaker,"nFirstScrollSelected");
			DeleteLocalString(oSpeaker,"sItem1");
			SetLocalInt(oSpeaker,"nUsedInspiration_1",1);
			//FeatRemove(oSpeaker,FEAT_GIFT_OF_INSPIRATION_1);
		}
	}
	else if(nLvl == 2)
	{
		if(nFirstScroll == 0)
		{
			//CreateItemOnObject(sItem,oSpeaker);
			SetLocalString(oSpeaker,"sItem1",sItem);
			SetLocalInt(oSpeaker,"nFirstScrollSelected",1);
		}
		else
		{
			string sItem1 = GetLocalString(oSpeaker,"sItem1");
			CreateItemOnObject(sItem1,oSpeaker);
			CreateItemOnObject(sItem,oSpeaker);
			DeleteLocalInt(oSpeaker,"nFirstScrollSelected");
			DeleteLocalString(oSpeaker,"sItem1");
			SetLocalInt(oSpeaker,"nUsedInspiration_1",2);
			//FeatRemove(oSpeaker,FEAT_GIFT_OF_INSPIRATION_1);
		}	
	}
}