Jump to content
  • We need you!

    You must register to discover all the features of our community!

  • 0

Special Storage Stone&Alchemist




Hey , do someone have a function for Special storage (Stone inventory)  to stone +0 +1 +2 can be read by Alchemist for Ore refine?


i tryed so but doens't work:

	int pc_ore_refine(lua_State* L)
		if (!lua_isnumber(L, 1))
			lua_pushboolean(L, 0);
			return 1;

		int cost = (int) lua_tonumber(L, 1);
		int pct = (int)lua_tonumber(L, 2);
		int metinstone_cell = (int)lua_tonumber(L, 3);

		LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr();
		LPCHARACTER npc = CQuestManager::instance().GetCurrentNPCCharacterPtr();
		LPITEM item = CQuestManager::instance().GetCurrentItem();
		LPITEM metinstone_item = ch->GetStoneInventoryItem(metinstone_cell);
		LPITEM metinstone_item = ch->GetInventoryItem(metinstone_cell);

		if (item && metinstone_item)
			lua_pushboolean(L, mining::OreRefine(ch, npc, item, cost, pct, metinstone_item));
			lua_pushboolean(L, 0);

		return 1;


Link to post

3 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.