Jump to content

Recommended Posts

Hello developers, I have encountered an issue where my Devil's Tower 5th floor is unable to repeatedly refresh monsters, which has resulted in me not being able to obtain item id: 50084. Please help me as I am using Marty 5.6 source (purchase) task from sysreldar (purchase)

 

this  my source 

ALUA(dungeon_regen_file)

	ALUA(dungeon_regen_file)
	{
		if (!lua_isstring(L,1))
		{
			sys_err("wrong filename");
			return 0;
		}

		CQuestManager& q = CQuestManager::instance();
		LPDUNGEON pDungeon = q.GetCurrentDungeon();

		if (pDungeon)
			pDungeon->SpawnRegen(lua_tostring(L,1));

		return 0;
	}

ALUA(dungeon_set_regen_file)

	ALUA(dungeon_set_regen_file)
	{
		if (!lua_isstring(L,1))
		{
			sys_err("wrong filename");
			return 0;
		}
		CQuestManager& q = CQuestManager::instance();
		LPDUNGEON pDungeon = q.GetCurrentDungeon();

		if (pDungeon)
			pDungeon->SpawnRegen(lua_tostring(L,1), false);
		return 0;
	}

data srv1/share/data/dungeon deviltower5_regen.txt

r	401	410	10	10	0	0	120s	100	1	1053
r	400	412	10	10	0	0	120s	100	1	1053
r	403	415	10	10	0	0	120s	100	1	1053
r	382	418	10	10	0	0	120s	100	1	1053
r	384	418	10	10	0	0	120s	100	1	1053
r	383	420	10	10	0	0	120s	100	1	1053
r	379	425	10	10	0	0	120s	100	1	1053
r	382	427	10	10	0	0	120s	100	1	1053
r	409	429	10	10	0	0	120s	100	1	1053
r	380	432	10	10	0	0	120s	100	1	1053
r	389	391	10	10	0	0	120s	100	1	1051
r	383	392	10	10	0	0	120s	100	1	1051
r	408	396	10	10	0	0	120s	100	1	1051
r	372	400	10	10	0	0	120s	100	1	1051
r	417	402	10	10	0	0	120s	100	1	1051
r	360	412	10	10	0	0	120s	100	1	1051
r	433	413	10	10	0	0	120s	100	1	1051
r	428	419	10	10	0	0	120s	100	1	1051
r	433	426	10	10	0	0	120s	100	1	1051
r	428	444	10	10	0	0	120s	100	1	1051
r	361	445	10	10	0	0	120s	100	1	1051
r	365	449	10	10	0	0	120s	100	1	1051
r	361	450	10	10	0	0	120s	100	1	1051
r	425	451	10	10	0	0	120s	100	1	1051
r	423	454	10	10	0	0	120s	100	1	1051
r	402	397	10	10	0	0	120s	100	1	1052
r	402	400	10	10	0	0	120s	100	1	1052
r	378	410	10	10	0	0	120s	100	1	1052
r	422	429	10	10	0	0	120s	100	1	1052
r	375	433	10	10	0	0	120s	100	1	1052
r	373	436	10	10	0	0	120s	100	1	1052
r	376	441	10	10	0	0	120s	100	1	1052
r	421	441	10	10	0	0	120s	100	1	1052
r	375	443	10	10	0	0	120s	100	1	1052
r	373	445	10	10	0	0	120s	100	1	1052
r	376	445	10	10	0	0	120s	100	1	1052
r	385	447	10	10	0	0	120s	100	1	1052

If you could help me, I would greatly appreciate it

Edited by shenhui1986
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

46 minutes ago, WeedHex said:
void CDungeon::SpawnRegen(const char* filename, bool bOnce)

Has a boolean parameter.

in dungeon.h?

Inside, there are

void	SpawnRegen(const char* filename, bool bOnce = true);

change?

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



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.