#author: dracaryS


System work by tpIdx in txt or data dict in uiteleport both way tpIdx so its connect to server directly

example jinno.txt

	#REGEN_TYPE	X	Y	VNUM	TPIDX	MIN_LEVEL	MAX_LEVEL	YANG	MARK	EFFECT
	NPC	383	693	9003	100(HERE)	0	0	500000	1	1


			1  : {
					"map_name" : "Jinno",
					"hover_image" : IMG_DIR + "hover_map/jinno.png",
					"position" : (82, 18),
					"regen" : LoadRegen("locale/teleport/jinno.txt"),
					"atlas" : "d:/ymir work/ui/atlas/metin2_map_c1/atlas.sub",
					"map_file_name" : "metin2_map_c1",
					"tp_points" : {
						"Center"  : {
							"position" : (50, 20),
							"need_level" : [1, 120],
							"need_yang" : 0,
							"tpIdx" : 1, (HERE)
						},
						"Middle"  : {
							"position" : (42, 77),
							"need_level" : [1, 120],
							"need_yang" : 0,
							"tpIdx" : 2, (HERE)
						},
					},
				},

	This tpIdx directly connect to serversrc/game/constant.cpp

	const std::map<DWORD, tpDatas> mapTeleportData = {
		{
			1, //tp_idx (HERE)
			tpDatas(
				959900,//global_x
				268800,//global_y
				1,//minlevel
				120,//maxlevel
				0//yang
			)
		},
	};

HOW TO CHANGE NEED TP ITEM?
	
	cmd_general.cpp -> const DWORD NEED_TP_ITEM = 70007;

	uiteleport.py ->

		def IsWarpItems(itemVnum):
			return True if itemVnum == 70007 else False


MARK OR AFFECT?

#REGEN_TYPE	X	Y	VNUM	TPIDX	MIN_LEVEL	MAX_LEVEL	YANG	MARK	EFFECT

You can put npc, boss or stone put mark or affect like u want with putting 0 or 1
