Jump to content
External pictures are being replaced... ×
×
×
  • Create New...

Quest Function - PC Change Race


Recommended Posts

  • Honorable Member

M2 Download Center

This is the hidden content, please
( Internal )

Add it to questlua_pc.cpp:

int pc_change_race(lua_State * L)
{
	LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr();

	if (!lua_isnumber(L, 1)) 
	{
		return 0;
	}

	ch->SetRace(lua_tonumber(L,1));
	ch->SetSkillGroup(0);
	ch->ClearSkill();
	ch->ClearSubSkill();
	ch->SetPolymorph(101);
	ch->SetPolymorph(0);
	return 0;
}

Next add this to the RegisterPCFunctionTable:

{"change_race", pc_change_race},

After you can use it in quests:

pc.change_race(NUMBER)

Numbers for races:

0 - warrior man
1 - ninja woman
2 - sura man
3 - shaman woman
4 - warrior woman
5 - ninja man
6 - sura woman
7 - shaman man

  • Metin2 Dev 2
  • Love 1

WRnRW3H.gif

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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
  • Recently Browsing   0 members

    • No registered users viewing this page.


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.