Hello!
I made command for morph and it work now I want to limit morphs and set only few morph ids which will bee possible to use not all.
How can I do that ?
Also I want command which wont be possible to use on other players lile GM .morph command (only usable on yourself).
This one work like that (only on yourself) but like i said after editing and setting limits maybe it will lost.
So all what I want is: to make morph command with few morph ids inside command and when player type example .vip morph
It should to send him like. ( .vip morph .... morphid1 , morphid2 , morphid3)
Here is code what I use right now:
I made command for morph and it work now I want to limit morphs and set only few morph ids which will bee possible to use not all.
How can I do that ?
Also I want command which wont be possible to use on other players lile GM .morph command (only usable on yourself).
This one work like that (only on yourself) but like i said after editing and setting limits maybe it will lost.
So all what I want is: to make morph command with few morph ids inside command and when player type example .vip morph
It should to send him like. ( .vip morph .... morphid1 , morphid2 , morphid3)
Here is code what I use right now:
Code:
static bool HandleMorphCommand(ChatHandler* handler, const char* args)
{
handler->GetSession()->GetPlayer()->SetDisplayId((uint32)atol((char*)args));
return true;
}