View Single Post
Old 06-13-2007, 11:44 PM   #10 (permalink)
Lord_Greywolf
Master of the Internet
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 12,209
Send a message via Yahoo to Lord_Greywolf
Default

cost of the change over - loosing stored charges

ok - now to get to work on requireg stuff in the backpack
that would be the place to have it done at

edited - for those interested - here is what to add/change to require certain skill level and 1 type of item to be used in removing a runebook:

change this:
Code:
			if (buttonID == 96) //origional before mods edited by Greywolf
			{
				from.CloseGump(typeof(InternalRunebookGump));
				from.SendGump(new OKTargetGump("Remove Runebook?", 16777215,
					"Are you sure you want to remove this Runebook?",
					16777215, 300, 300, new GenericOKCallback(RemoveRunebook_Callback), m_MasterBook, m_Book, m_BookNum));
			}
to this:
Code:
			if (buttonID == 96) // edited version for requiring scrolls added by greywolf
			{
				if ( from.Skills.Inscribe.Base < 100 )
				{
					from.SendMessage("You do not have the skill required to extract the book");
				}
				else if ( !from.Backpack.ConsumeTotal( typeof( BlankScroll ), 10 ) )
				{
					from.SendMessage("You do not have the blank scrolls needed to creat the book from");
				}
				else
				{
					from.CloseGump(typeof(InternalRunebookGump));
					from.SendGump(new OKTargetGump("Remove Runebook?", 16777215,
						"Are you sure you want to remove this Runebook?",
						16777215, 300, 300, new GenericOKCallback(RemoveRunebook_Callback), m_MasterBook, m_Book, m_BookNum));
				}
			}
again great script !!!
__________________
http://www.AoAUO.com

:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :)

Last edited by Lord_Greywolf; 06-14-2007 at 12:54 AM.
Lord_Greywolf is offline   Reply With Quote