diff --git a/data/sql/db-world/base/item_creatures_template.sql b/data/sql/db-world/base/item_creatures_template.sql index 73bced3..6181998 100644 --- a/data/sql/db-world/base/item_creatures_template.sql +++ b/data/sql/db-world/base/item_creatures_template.sql @@ -12,12 +12,12 @@ INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, -DELETE FROM `creature_template` WHERE (`entry` = 100000); +DELETE FROM `creature_template` WHERE (`entry` = 100043); INSERT INTO `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `speed_swim`, `speed_flight`, `detection_range`, `scale`, `rank`, `dmgschool`, `DamageModifier`, `BaseAttackTime`, `RangeAttackTime`, `BaseVariance`, `RangeVariance`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `HoverHeight`, `HealthModifier`, `ManaModifier`, `ArmorModifier`, `ExperienceModifier`, `RacialLeader`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `spell_school_immune_mask`, `flags_extra`, `ScriptName`, `VerifiedBuild`) VALUES -('100000','0','0','0','0','0','Pet Vip','','','0','1','2','0','35','1','1','1.42857','1','1','20','1','0','0','1','2000','2000','1','1','1','0','2048','0','0','0','0','0','0','1','0','0','0','0','0','0','0','0','','0','1','1','1','1','1','0','144','1','0','0','0','SystemVipPet','12340'); +('100043','0','0','0','0','0','Pet Vip','','','0','1','2','0','35','1','1','1.42857','1','1','20','1','0','0','1','2000','2000','1','1','1','0','2048','0','0','0','0','0','0','1','0','0','0','0','0','0','0','0','','0','1','1','1','1','1','0','144','1','0','0','0','SystemVipPet','12340'); -DELETE FROM `creature_template_model` WHERE (`CreatureID` = 100000); -INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES('100000','0','14546','1','1','12340'); -INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES('100000','1','14547','1','1','12340'); -INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES('100000','2','14551','1','1','12340'); -INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES('100000','3','14549','1','1','12340'); +DELETE FROM `creature_template_model` WHERE (`CreatureID` = 100043); +INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES('100043','0','14546','1','1','12340'); +INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES('100043','1','14547','1','1','12340'); +INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES('100043','2','14551','1','1','12340'); +INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES('100043','3','14549','1','1','12340'); diff --git a/src/system_vip_scripts.cpp b/src/system_vip_scripts.cpp index d8abcac..ce20d88 100644 --- a/src/system_vip_scripts.cpp +++ b/src/system_vip_scripts.cpp @@ -173,7 +173,7 @@ class SystemVipPocket : ItemScript { float distance = 20; float angle = player->GetOrientation() * M_PI / 180.0f; - Creature* pet = player->SummonCreature(100000, player->GetPositionX() + (distance * cos(angle)), player->GetPositionY() + (distance * sin(angle)), player->GetPositionZ(), player->GetOrientation(), TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 60000); + Creature* pet = player->SummonCreature(100043, player->GetPositionX() + (distance * cos(angle)), player->GetPositionY() + (distance * sin(angle)), player->GetPositionZ(), player->GetOrientation(), TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 60000); pet->GetMotionMaster()->MoveFollow(player, PET_FOLLOW_DIST + 2.0, PET_FOLLOW_ANGLE); pet->SetFaction(player->GetFaction()); pet->SetLevel(player->GetLevel());