Jump to content

[MOD REQUEST] Hide old craft items


mike2003

Recommended Posts

A few ideas:

1. Some goods have 1 level (components/tools/runes). No need to hide these! But it is very well to hide weapons and armor level 1))

http://i.imgur.com/zhDvcsC.jpg

http://i.imgur.com/mJFHujR.jpg

2. I took a little bit of code from Enhanced Menus to always see the item level

itemLevel = m_definitionsManager.GetItemLevelFromName(schematic.craftedItemName);

l_DataFlashObject.SetMemberFlashString( "cantCookReason", "Level:"+ " " + itemLevel);

and for restricted by ECE_NoException

l_DataFlashObject.SetMemberFlashString( "cantCookReason", "Level:"+ " " + itemLevel+" "+ GetLocStringByKeyExt(CraftingExceptionToString(canCraftResult)) );

 

Very helpful!

http://i.imgur.com/eyjLnK3.jpg

3. Option to hide not only old but very very good items

if(
m_definitionsManager.GetItemLevelFromName(schematic.craftedItemName) > thePlayer.GetLevel() - StringToInt(inGameConfig.GetVarValue('Misc', 'threshold'))
&& m_definitionsManager.GetItemLevelFromName(schematic.craftedItemName) < thePlayer.GetLevel() + StringToInt(inGameConfig.GetVarValue('Misc', 'threshold'))
|| m_definitionsManager.GetItemLevelFromName(schematic.craftedItemName) == 1

)

No more recipes that I can not do a week of the game))

I used 1 value from gui. but probably better to do individually for the maximum level difference.

(Item level - Option 1) < Player level < (Item level + Option 2)

 

Thank you, I hope useful.

Edited by mike2003
Link to comment
Share on other sites

				// ----- modExtendedHUD ----- //
				if(inGameConfig.GetVarValue('Misc', 'hideSchematics'))
				{
					if(
m_definitionsManager.GetItemLevelFromName(schematic.craftedItemName) > thePlayer.GetLevel() - StringToInt(inGameConfig.GetVarValue('Misc', 'threshold'))
&& m_definitionsManager.GetItemLevelFromName(schematic.craftedItemName) < thePlayer.GetLevel() + StringToInt(inGameConfig.GetVarValue('Misc', 'threshold'))
|| m_definitionsManager.IsItemBolt(schematic.craftedItemName) //bolts are weapon too
|| !( m_definitionsManager.IsItemWeapon(schematic.craftedItemName) || m_definitionsManager.IsItemAnyArmor(schematic.craftedItemName) )
					)

this is my code for bolt/armor/weapons issue with level 1

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...