Jump to content

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 7
  • Eyes 1
  • Good 1
  • Love 7

WRnRW3H.gif

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Announcements



  • Similar Content

  • Similar Content

  • Similar Content

  • Tags

  • Activity

    1. 113

      Ulthar SF V2 (TMP4 Base)

    2. 2

      Feeding game source to LLM

    3. 0

      Target Information System

    4. 2

      Feeding game source to LLM

    5. 2

      anti exp explanation pls

    6. 2

      Feeding game source to LLM

    7. 2

      anti exp explanation pls

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.