[DiscordArchive] oh, are you trying to change the look of the player?
[DiscordArchive] oh, are you trying to change the look of the player?
Archived author: KJack • Posted: 2023-05-25T06:47:19.579000+00:00
Original source
oh, are you trying to change the look of the player?
Archived author: static • Posted: 2023-05-25T06:47:24.475000+00:00
Original source
yeah
Archived author: static • Posted: 2023-05-25T06:47:31.019000+00:00
Original source
specifically the cat model
Archived author: KJack • Posted: 2023-05-25T06:47:39.359000+00:00
Original source
okay, did not realize that - thought you were talking about an NPC in the world
Archived author: KJack • Posted: 2023-05-25T06:47:57.524000+00:00
Original source
i don't know much about changing the player models, sorry. didn't understand the question.
Archived author: Rymercyble • Posted: 2023-05-25T06:49:04.648000+00:00
Original source
giving them morphs would be simple hackfix otherwise it depends ™️
Archived author: Anchy • Posted: 2023-05-25T06:49:30.742000+00:00
Original source
make a module that detects when the player enters cat form and then swap out the model id
Archived author: Dreadmaster • Posted: 2023-05-25T06:50:53.911000+00:00
Original source
He said people
Archived author: Anchy • Posted: 2023-05-25T06:50:59.698000+00:00
Original source
```cpp
#include "ScriptMgr.h"
#include "Player.h"
class CatFormModelSwap : public PlayerScript
{
public:
CatFormModelSwap() : PlayerScript("CatFormModelSwap") {}
void OnUpdateZone(Player* player, uint32 /*newZone*/, uint32 /*newArea*/) override
{
if (player->GetShapeShift() == FORM_CAT)
{
player->SetDisplayId(123);
player->UpdateAllSlots();
}
}
};
void AddSC_CatFormModelSwap()
{
new CatFormModelSwap();
}```
Archived author: Anchy • Posted: 2023-05-25T06:51:02.798000+00:00
Original source
thanks chatgpt