Jump to content

wolf starter map proplem


Go to solution Solved by ImBacK,

Recommended Posts

this is start_position.h

#ifndef __START_POSITION_H
#define __START_POSITION_H

#include "locale_service.h"

extern char g_nation_name[4][32];
extern DWORD g_start_position[7][2];
extern long g_start_map[7];
extern DWORD g_create_position[7][2];
extern DWORD g_create_position_canada[7][2];
extern DWORD arena_return_position[4][2];


inline const char* EMPIRE_NAME( BYTE e)
{
	return LC_TEXT(g_nation_name[e]);
}

inline DWORD EMPIRE_START_MAP(BYTE e)
{
	return g_start_map[e];
}

inline DWORD EMPIRE_START_X(BYTE e)
{
	if (1 <= e && e <= 6)
		return g_start_position[e][0];

	return 0;
}

inline DWORD EMPIRE_START_Y(BYTE e)
{
	if (1 <= e && e <= 6)
		return g_start_position[e][1];

	return 0;
}

inline DWORD ARENA_RETURN_POINT_X(BYTE e)
{
	if (1 <= e && e <= 3)
		return arena_return_position[e][0];

	return 0;
}

inline DWORD ARENA_RETURN_POINT_Y(BYTE e)
{
	if (1 <= e && e <= 3)
		return arena_return_position[e][1];

	return 0;
}

inline DWORD CREATE_START_X(BYTE e)
{
	if (1 <= e && e <= 6)
	{
		if (LC_IsCanada() == true)
			return g_create_position_canada[e][0];

		return g_create_position[e][0];
	}

	return 0;
}

inline DWORD CREATE_START_Y(BYTE e)
{
	if (1 <= e && e <= 6)
	{
		if (LC_IsCanada() == true)
			return g_create_position_canada[e][1];

		return g_create_position[e][1];
	}

	return 0;
}

#endif

and this is start_position.cpp

#include "stdafx.h"
#include "start_position.h"


char g_nation_name[4][32] =
{
	"",
	"½إ¼ِ±¹",
	"أµء¶±¹",
	"ءّ³ë±¹",
};

//	LC_TEXT("½إ¼ِ±¹")
//	LC_TEXT("أµء¶±¹")
//	LC_TEXT("ءّ³ë±¹")

long g_start_map[7] =
{
	0,
	1,
	21,
	41,
	7,
	27,
	47
};

DWORD g_start_position[7][2] =
{
	{0, 0},
	{469300, 964200},
	{55700, 157900},
	{969600, 278400},
	{768000, 896000},
	{819200, 896000},
	{870400, 896000}
};

DWORD arena_return_position[4][2] =
{
	{       0,  0       },
	{   347600, 882700  }, // ہع¾çاِ
	{   138600, 236600  }, // ؛¹ء¤اِ
	{   857200, 251800  }  // ¹ع¶َاِ
};


DWORD g_create_position[7][2] = 
{
	{0, 0},
	{459800, 953900},
	{52070, 166600},
	{957300, 255200},
	{808600, 936000},
	{859800, 936000},
	{911000, 936000}
};

DWORD g_create_position_canada[7][2] = 
{
	{0, 0},
	{457100, 946900},
	{45700, 166500},
	{966300, 288300},
	{808600, 936000},
	{859800, 936000},
	{911000, 936000}
};

kind regards

Link to comment
Share on other sites

Lycan map allow 7,27,47

 

input_login.cpp search

		table->x = CREATE_START_X(bEmpire) + number(-300, 300);
		table->y = CREATE_START_Y(bEmpire) + number(-300, 300);

Change with

	if (Lycanmapstart && race == 8)
	{
		table->x = 808274 + number(-300, 300);
		table->y = 935090 + number(-300, 300);
	}
	else
	{
		table->x = CREATE_START_X(bEmpire) + number(-300, 300);
		table->y = CREATE_START_Y(bEmpire) + number(-300, 300);
	} 

config.h

extern bool Lycanmapstart;

config.cpp

bool Lycanmapstart = true;

and

		TOKEN("LycanMap")
		{
			str_to_number(Lycanmapstart, value_string);
			continue;
		}
	}

I have not tested

  • Love 1
Link to comment
Share on other sites

Lycan map allow 7,27,47

 

input_login.cpp search

		table->x = CREATE_START_X(bEmpire) + number(-300, 300);
		table->y = CREATE_START_Y(bEmpire) + number(-300, 300);

Change with

	if (Lycanmapstart && race == 8)
	{
		table->x = 808274 + number(-300, 300);
		table->y = 935090 + number(-300, 300);
	}
	else
	{
		table->x = CREATE_START_X(bEmpire) + number(-300, 300);
		table->y = CREATE_START_Y(bEmpire) + number(-300, 300);
	} 

config.h

extern bool Lycanmapstart;

config.cpp

bool Lycanmapstart = true;

and

		TOKEN("LycanMap")
		{
			str_to_number(Lycanmapstart, value_string);
			continue;
		}
	}

I have not tested

 

i will try it

 

kind regards

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.