Jump to content

selim9550

Inactive Member
  • Posts

    2
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by selim9550

  1. On 11/24/2022 at 10:36 AM, Mali said:

    ActorInstance.h:

      Reveal hidden contents
    //Find
    		bool IsPoly();
    
    ///Add
    		bool IsPet() const;

     

    ActorInstance.cpp:

      Hide contents
    //Find
    bool CActorInstance::IsPoly()
    {
    	...
    }
    
    ///Add
    bool CActorInstance::IsPet() const
    {
    	//for 2014 default proto
    	
    	if (TYPE_NPC != m_eActorType)
    		return false;
    
    	switch (m_eRace)
    	{
    	case 34005:
    	case 34006:
    		return true;
    	default:
    		return false;
    	}
    }
    
    //Find
    	/*if (GetActorType() == EType::TYPE_PET || GetActorType() == EType::TYPE_PET_PAY)
    		m_bRenderActor = CPythonGraphicOnOff::Instance().CanRenderPet();*/
    
    ///Change
    	if (IsPet())
    		m_bRenderActor = CPythonGraphicOnOff::Instance().CanRenderPet();

     

    you add the vnum of the pets to the function

    Sistemi sorunsuz bir şekilde kurdum ve gerçekten çok güzel elinize sağlık.

    Hocam petleri gizlemeyi başaramadım, yardımcı olabilir misiniz? 

    Petleri mob olarak çağırınca gizlenebiliyor örnek /m 53250 ama pet çağırmak için envanterinde ki ikonu pet mührünü kullanınca pet gizleme çalışmıyor. 
    bu arada pet listesine oyunumda ki tüm petleri ekledim.

    Yardımlarınız için şimdiden teşekkür ederim...

     

    I installed the system without any problems and it's really nice. Sir, I failed to hide the pets, can you help me? It can be hidden when summoning pets as mobs, for example /m 53250, but when you use the pet seal icon in your inventory to summon pets, pet hiding does not work. By the way, I added all the pets in my game to the pet list. Thank you in advance for your help...

     

    resim "image"

     

×
×
  • 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.