Hello guys, any idea how to remove time count from pets when i wear them?
i have deleted pet time from query.sql but it doesn't remove it and still counting for the default time 3 days :>
Hello guys, any idea how to remove time count from pets when i wear them?
i have deleted pet time from query.sql but it doesn't remove it and still counting for the default time 3 days :>
Inititem as I remember.
in the sourcecode as far i remember, there only was one option and it was the one with a timer
//if ((PetTime.count(Item.CheckIndex()) || (Item.CheckIndex() >= 1747 && Item.CheckIndex() <= 1762) || (Item.CheckIndex() >= 1870 && Item.CheckIndex() <= 1877) || (Item.CheckIndex() >= 2004 && Item.CheckIndex() <= 2007) || (Item.CheckIndex() >= 2421 && Item.CheckIndex() <= 2423) || (Item.CheckIndex() >= 2550 && Item.CheckIndex() <= 2653) || (Item.CheckIndex() >= 6045 && Item.CheckIndex() <= 6052)) && !PetLifeCheck.count(Item.GetIID()))
//{
// if (PetTime.count(Item.CheckIndex()) && PetTime.find(Item.CheckIndex())->second.Time > 0)
// GetPetTime = PetTime.find(Item.CheckIndex())->second.Time;
// PetLifeCheck[Item.GetIID()].Time = (int)time(0) + GetPetTime;
// PetLifeCheck[Item.GetIID()].Player = (int)Player.GetOffset();
// CDBSocket::Write(89,"ddd",Player.GetPID(),(int)time(0) + GetPetTime,Item.GetIID());
// CPlayer::Write(Player.GetOffset(),0xFF,"ddd",230,Item.GetIID(),GetPetTime*1000);
// *(DWORD*)(Itemx+68) = GetTickCount() + (2000*GetPetTime);
// *(DWORD*)(Itemx+72) = 0;
// CItem::OnTimer(Itemx,0);
//}am not sure if these 2 was correct to be outcommented, about a year ago i worked with that source//if (IPlayer.IsOnline() && (GetTickCount() / 1000) % 5 == 0 && PlayerPet.count(IPlayer.GetPID()) && !PetLifeCheck.count(PlayerPet.find(IPlayer.GetPID())->second.IID))
//{
// if (PlayerPet.find(IPlayer.GetPID())->second.IID && PlayerPet.find(IPlayer.GetPID())->second.Owner)
// {
// int Value = 0, Item = 0, Recheck = 0, Check = 0;
// Undefined::CreateMonsterValue((char *)Player + 1068, (int)&Value, (int)&PlayerPet.find(IPlayer.GetPID())->second.IID);
// Check = Undefined::Check((int)((char *)Player + 1068), (int)&Recheck);
// if (Undefined::CheckValues(&Value, Check))
// {
// Item = *(DWORD*)(Undefined::GetValue(&Value) + 4);
// if (Item && PlayerPet.find(IPlayer.GetPID())->second.IID)
// {
// IItem Itemx((void*)Item);
// if (CItem::IsState(Item,1))
// OrnamentPutOff(Itemx.GetOffset(),0,(int)IPlayer.GetOffset());
// }
// }
// }
//}