Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: PetMuun e Montaria in SafeZone  (Visto 3528 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline Betell Host Posteado: March 16, 2022, 01:22:18 PM | Modificado: April 04, 2022, 09:48:45 AM by Betell Host

  • C++ Coder
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 548
  • Gracias recibida: 3643
  • br
Code: [Select]
Procure por esta linha 
int cCustomPet::GetInfoPetType(int ItemIndex) // OK
{
   lpViewObj MuunMount = &*(ObjectPreview*)(oUserPreviewStruct);


   std::map<int, CUSTOM_PET_INFO>::iterator it = this->m_CustomPetInfo.find(ItemIndex);


   if(it != this->m_CustomPetInfo.end())
   {
               if (MuunMount->InSafeZone)
          {
       return 8;
          }
          else
          {
       return it->second.PetType;
          }
   }
   return -1;
}


Code: [Select]
Faça o mesmo aqui

float cCustomPet::GetScaleView(int ItemIndex)
{
lpViewObj MuunMount = &*(ObjectPreview*)(oUserPreviewStruct);

std::map<int, CUSTOM_PET_INFO>::iterator it = this->m_CustomPetInfo.find(ItemIndex);

float viewpet = 0;

if(it != this->m_CustomPetInfo.end())
{
viewpet = it->second.Scale_View - 0.5;


if (MuunMount->InSafeZone)
{
return viewpet;
}
else
{
return it->second.Scale_View;
}
}


return -1;
}

custompet.cpp

adiciona isso se nao vai da error na hora de compilar
#include "User.h"
#include "Object.h"
#include "Import.h"


Segue video de como vai ficar



Lembrando peguei este código de outro forum
mas os créditos são para o

Solar
Denis Alvez

Abraço!!!

Gracias:


Offline c4nhsatcodong #1 Posteado: March 16, 2022, 02:20:51 PM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 372
  • Gracias recibida: 2370
  • vn
Solar compartió esto, no es diferente, todavía tiene errores

https://tuservermu.com.ve/index.php?topic=44539.0

Publicar un anuncio Mu Online gratis - Mu Online Community GRATIS.
Post free Mu Online ads - FREE Mu Online Community
https://www.facebook.com/groups/274190243227367/
https://www.facebook.com/groups/435291436622354/

Online LuciferXT #2 Posteado: April 21, 2022, 11:43:06 AM

  • 0 puntos por ventas
  • *
  • Rank: Avanzado
  • Posts: 123
  • Gracias recibida: 1005
  • ar
This code has 1 problem. The mount is effectively displayed as a pet in the safe zone, but then when leaving the normal zone, the user correctly displays his mount but for other users (on a different PC) they continue to display it as a PET and not as a mount.



Offline visionmu #3 Posteado: August 08, 2022, 04:24:19 PM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 29
  • Gracias recibida: 16
  • br
e pra desativar a montaria na cidadE?


Offline wellwisher22 #4 Posteado: December 12, 2024, 08:19:51 AM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 334
  • Gracias recibida: 3512
  • br
e pra desativar a montaria na cidadE?

Code: [Select]
int cCustomPet::GetInfoPetType(int ItemIndex) // OK
{
std::map<int, CUSTOM_PET_INFO>::iterator it = this->m_CustomPetInfo.find(ItemIndex);

if(it != this->m_CustomPetInfo.end())
{
return it->second.PetType;
}
return -1;
}

Code: [Select]
float cCustomPet::GetScaleView(int ItemIndex)
{
std::map<int, CUSTOM_PET_INFO>::iterator it = this->m_CustomPetInfo.find(ItemIndex);

if(it != this->m_CustomPetInfo.end())
{
return it->second.Scale_View;
}
return -1;
}


Offline wellwisher22 #5 Posteado: December 12, 2024, 08:21:27 AM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 334
  • Gracias recibida: 3512
  • br
Code: [Select]
Procure por esta linha 
int cCustomPet::GetInfoPetType(int ItemIndex) // OK
{
   lpViewObj MuunMount = &*(ObjectPreview*)(oUserPreviewStruct);


   std::map<int, CUSTOM_PET_INFO>::iterator it = this->m_CustomPetInfo.find(ItemIndex);


   if(it != this->m_CustomPetInfo.end())
   {
               if (MuunMount->InSafeZone)
          {
       return 8;
          }
          else
          {
       return it->second.PetType;
          }
   }
   return -1;
}


Code: [Select]
Faça o mesmo aqui

float cCustomPet::GetScaleView(int ItemIndex)
{
lpViewObj MuunMount = &*(ObjectPreview*)(oUserPreviewStruct);

std::map<int, CUSTOM_PET_INFO>::iterator it = this->m_CustomPetInfo.find(ItemIndex);

float viewpet = 0;

if(it != this->m_CustomPetInfo.end())
{
viewpet = it->second.Scale_View - 0.5;


if (MuunMount->InSafeZone)
{
return viewpet;
}
else
{
return it->second.Scale_View;
}
}


return -1;
}

custompet.cpp

adiciona isso se nao vai da error na hora de compilar
#include "User.h"
#include "Object.h"
#include "Import.h"


Segue video de como vai ficar



Lembrando peguei este código de outro forum
mas os créditos são para o

Solar
Denis Alvez

Abraço!!!

Pra mim deu certo mas as mount fica voando dentro da city kkkk


Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
4 Replies
1824 Views
Last post October 28, 2018, 05:03:41 PM
by afabasc
3 Replies
4421 Views
Last post October 08, 2020, 02:42:40 PM
by mken
31 Replies
13472 Views
Last post August 02, 2023, 02:24:49 AM
by Nexus
0 Replies
2332 Views
Last post April 27, 2022, 06:00:32 PM
by joselagos
7 Replies
3591 Views
Last post May 16, 2024, 01:03:51 PM
by joselagos