Ever wanted to add the .morph command back into your server? Well now you can! In order to do so, you will need to have your own core.
First, go to /ascent-world/ and open up Level3.cpp. Underneath #include "Master.h", add this code:
Code:
bool ChatHandler::HandleMorph1Command(const char* args, WorldSession *m_session)
{
uint16 display_id = (uint16)atoi((char*)args);
if (!*args)
{
RedSystemMessage(m_session, "The command should look as such: .morph ID");
return true;
}
GreenSystemMessage(m_session, "You have been morphed successfully!");
m_session->GetPlayer()->SetUInt32Value(UNIT_FIELD_DISPLAYID, display_id);
return true;
}
Then open up Chat.cpp and add in this line:
Code:
{ "morph", 'a', &ChatHandler::HandleMorph1Command, "Morphs you into any creature!", NULL, 0, 0, 0},
Finally, open up Chat.h and add in this line:
Code:
bool HandleDeMorph1Command(const char* args, WorldSession *m_session);
After everything has been added, compile your core and use .morph # !