Jump to content
×
×
  • Create New...
  • 0

wolf starter map proplem


ImBacK

Question

hey all

 

after trying to add the wolf starter map i finally managed to add it

 

but now there is a little problem

 

when i create a new wolf char it is not landing in his map for example

 

he started in map c1 not e1

 

how to change it ?

 

kind regards

Link to comment
Share on other sites

16 answers to this question

Recommended Posts

  • 0

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

  • 0

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

  • 0

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

  • 0

not working

compile input_db.cpp
compile input_login.cpp
input_login.cpp: In function 'bool NewPlayerTable2(TPlayerTable*, const char*, BYTE, BYTE, BYTE)':
input_login.cpp:426: error: 'Lycanmapstart' was not declared in this scope

Link to comment
Share on other sites

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


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.