[help] Crafting & Skin system

Search for BaseItemConfig.cpp in your src files, then search for
Code:
bool CraftRecipeConfig::loadBaseFromXml(pugi::xml_node& xmlItem)

below you'll see something like this

Code:
case 301340: // bandage
		{
			components[numComponents++] = CraftComponent(301331, 1); // rag
			components[numComponents++] = CraftComponent(301366, 2); // ointment
			components[numComponents++] = CraftComponent(301319, 1); // duct tape
			craftedItemID = 101405; //DONE
		}
		break;

Duplicate that function and change the codes study the code for it it's very simple, when finish compile the Client src and Server src and search for this in your ItemDB.xml

Code:
<Item itemID="301388" category="50" Weight="0">
			<Model file="Data/ObjectsDepot/Weapons/Resource_Wood.sco" />
			<Store name="Wood" icon="$Data/Weapons/StoreIcons/Resource_Wood.dds" desc="special item, do not use it" LevelRequired="0" />
		</Item>
duplicate the function with new icons if you want and new codes

Have fun
 
Upvote 0
Back