Jump to content

Recommended Posts

  • Premium

edit;

In belt_inventory_helper.h find

static bool IsAvailableCell(WORD cell, int beltGrade /*int beltLevel*/)

and edit the function like this:

	static bool IsAvailableCell(WORD cell, int beltGrade /*int beltLevel*/)
	{	
		return true;
	}

I think this will solve your problem.

Edited by Cataclismo
  • Love 1
Link to comment
Share on other sites

  • Premium

You did it wrong. Replace whole function with mine.

Replace

static bool IsAvailableCell(WORD cell, int beltGrade /*int beltLevel*/)
{
	//const TGradeUnit beltGrade = GetBeltGradeByRefineLevel(beltLevel);		
	const TGradeUnit* ruleTable = GetAvailableRuleTableByGrade();

	return ruleTable[cell] <= beltGrade;
}

with

static bool IsAvailableCell(WORD cell, int beltGrade /*int beltLevel*/)
{
	return true;
}
  • Love 1
Link to comment
Share on other sites

 

You did it wrong. Replace whole function with mine.

Replace

static bool IsAvailableCell(WORD cell, int beltGrade /*int beltLevel*/)
{
	//const TGradeUnit beltGrade = GetBeltGradeByRefineLevel(beltLevel);		
	const TGradeUnit* ruleTable = GetAvailableRuleTableByGrade();

	return ruleTable[cell] <= beltGrade;
}

with

static bool IsAvailableCell(WORD cell, int beltGrade /*int beltLevel*/)
{
	return true;
}

Ok now it works but how i block the spaces he cant use I make a picture too see.

5b7d8f80a8616fb30ae363949bc75aa1.png

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Premium

 

 

You did it wrong. Replace whole function with mine.

Replace

static bool IsAvailableCell(WORD cell, int beltGrade /*int beltLevel*/)
{
	//const TGradeUnit beltGrade = GetBeltGradeByRefineLevel(beltLevel);		
	const TGradeUnit* ruleTable = GetAvailableRuleTableByGrade();

	return ruleTable[cell] <= beltGrade;
}

with

static bool IsAvailableCell(WORD cell, int beltGrade /*int beltLevel*/)
{
	return true;
}

Ok now it works but how i block the spaces he cant use I make a picture too see.

5b7d8f80a8616fb30ae363949bc75aa1.png

 

 

My function allow the belts to be moved anywhere. The player can put any belt anywhere and at any level. There's no limit. You wanted to make with limits? Explain exactly what you want.

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1
Link to comment
Share on other sites

  • Premium

There are suposed to be spaced blocked I am saying about this

d2a7decf476c8dd9fe2d2482ec5c6ec0.png

The item 18009 is suposed to allow only 6 but you can use the bloched too.

 

That does my function. Allows any belt to be moved anywhere because I though that this is what you want. Revert to the original code if you want them blocked.

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.