Как дать рошану предметы?

Веджитто

Пользователь
3 Июн 2017
45
0
Проект
Dotomemium Phoenix
Хочу добавить рошана в свою кастомку, но есть две проблемы:
1. Изменение характеристик npc_dota_roshan в нпс юнитс кастом не меняет рошана, который спавнится с помощью рошан спавнера в хаммере
2. Метод выдачи предметов описанный в гайде не работает даже на обычных крипах, на которых действует изменение характеристик в нпс юнитс кастом(инвентарь я им добавил, он у них есть).
P.S. Мне надо, чтобы они с него падали
Код крипа такой, спавню с помощью консоли:
Код:
"npc_dota_creep_badguys_ranged"
    {
        // General
        //
        "BaseClass"                    "npc_dota_creep_lane"    // Class of entity of link to.
        "Model"                        "models/creeps/lane_creeps/creep_bad_ranged/lane_dire_ranged.vmdl"    // Model.
        "SoundSet"                    "Creep_Bad_Range"                    // Name of sound set.
        "ModelScale"                     "0.93"
        "Level"                        "2"
       
        // Abilities
        //----------------------------------------------------------------
       
        "Ability1"                    ""            // Ability 1.
        "Ability2"                    ""            // Ability 2.
        "Ability3"                    ""            // Ability 3.
        "Ability4"                    ""            // Ability 4.
        "Ability5"                    ""            // Ability 5.
        "Ability6"                    ""            // Ability 6 - Extra.
        "Ability7"                    ""            // Ability 7 - Extra.
        "Ability8"                    ""            // Ability 8 - Extra.

        // Armor
        //----------------------------------------------------------------
        "ArmorPhysical"                "0"            // Physical protection.
        "MagicalResistance"                "0"            // Magical protection.

        // Attack
        //----------------------------------------------------------------
        "AttackCapabilities"        "DOTA_UNIT_CAP_RANGED_ATTACK"
        "AttackDamageMin"            "21"        // Damage range min.
        "AttackDamageMax"            "26"        // Damage range max.
        "AttackDamageType"            "DAMAGE_TYPE_ArmorPhysical"
        "AttackRate"                "1"            // Speed of attack.
        "AttackAnimationPoint"        "0.5"        // Normalized time in animation cycle to attack.
        "AttackAcquisitionRange"    "600"        // Range within a target can be acquired.
        "AttackRange"                "500"        // Range within a target can be attacked.
        "ProjectileModel"            "particles/base_attacks/ranged_badguy.vpcf" // Particle system model for projectile.
        "ProjectileSpeed"            "900"        // Speed of projectile.

        // Attributes
        //----------------------------------------------------------------
        "AttributePrimary"            "DOTA_ATTRIBUTE_STRENGTH"
        "AttributeBaseStrength"        "0"            // Base strength
        "AttributeStrengthGain"        "0"            // Strength bonus per level.
        "AttributeBaseIntelligence"    "0"            // Base intelligence
        "AttributeIntelligenceGain"    "0"            // Intelligence bonus per level.
        "AttributeBaseAgility"        "0"            // Base agility
        "AttributeAgilityGain"        "0"            // Agility bonus per level.

        // Bounty
        //----------------------------------------------------------------
        "BountyXP"                    "69"        // Experience earn.
        "BountyGoldMin"                "48"        // Gold earned min.
        "BountyGoldMax"                "58"        // Gold earned max.

        // Bounds
        //----------------------------------------------------------------
        "BoundsHullName"            "DOTA_HULL_SIZE_SMALL"            // Hull type used for navigation/locomotion.
        "RingRadius"                "45"
        "HealthBarOffset"            "150"

        // Movement
        //----------------------------------------------------------------
        "MovementCapabilities"        "DOTA_UNIT_CAP_MOVE_GROUND"            // Type of locomotion - ground, air
        "MovementSpeed"                "325"        // Speed
        "MovementTurnRate"            "0.5"        // Turning rate.

        // Status
        //----------------------------------------------------------------
        "StatusHealth"                "3000"        // Base health.
        "StatusHealthRegen"            "2"            // Health regeneration rate.
        "StatusMana"                "500"        // Base mana.
        "StatusManaRegen"            "0.75"        // Mana regeneration rate.

        // Team
        //----------------------------------------------------------------
        "TeamName"                    "DOTA_TEAM_BADGUYS"            // Team name.
        "CombatClassAttack"            "DOTA_COMBAT_CLASS_ATTACK_PIERCE"
        "CombatClassDefend"            "DOTA_COMBAT_CLASS_DEFEND_BASIC"
        "UnitRelationshipClass"        "DOTA_NPC_UNIT_RELATIONSHIP_TYPE_DEFAULT"
       
        // Vision
        //----------------------------------------------------------------
        "VisionDaytimeRange"        "750"        // Range of vision during day light.
        "VisionNighttimeRange"        "750"        // Range of vision at night time.
       
        //Inventory
        "HasInventory" "1"
        "EquippedItems"
{
  "ForceStaff"  {  "Item"  "item_force_staff"  }
  "PhaseBoots"  {  "Item"  "item_phase_boots"  }
  "Drums"    
  {
    "Item"    "item_ancient_janggo"
    "Charges"  "10"
  }
  "Urn"
  {
    "Item"    "item_urn_of_shadows"
    "Charges"  "10"
  }
}
Код рошана:
Код:
"npc_dota_roshan"
    {
        // General
        //
        "BaseClass"                    "npc_dota_roshan"    // Class of entity of link to.
        "Model"                        "models/creeps/roshan/roshan.vmdl"    // Model.
        "SoundSet"                    "Roshan"                    // Name of sound set.
        "ModelScale"                "1"
        "Level"                        "30"
        "IsAncient"                    "1"
               
        // Abilities
        //----------------------------------------------------------------
        "Ability1"                    "roshan_spell_block"    // Ability 1.
        "Ability2"                    "roshan_bash"            // Ability 2.
        "Ability3"                    "roshan_slam"            // Ability 3.
        "Ability4"                    "roshan_inherent_buffs"    // Ability 4.
        "Ability5"                    "roshan_devotion"        // Ability 5.
        "Ability6"                    ""                        // Ability 6 - Extra.
        "Ability7"                    ""                        // Ability 7 - Extra.
        "Ability8"                    ""                        // Ability 8 - Extra.

        // Armor
        //----------------------------------------------------------------
        "ArmorPhysical"                "18.0"            // Physical protection.
        "MagicalResistance"                "55"                                    // Magical protection (percentage).

        // Attack
        //----------------------------------------------------------------
        "AttackCapabilities"        "DOTA_UNIT_CAP_MELEE_ATTACK"
        "AttackDamageMin"            "75"        // Damage range min.
        "AttackDamageMax"            "75"        // Damage range max.
        "AttackDamageType"            "DAMAGE_TYPE_ArmorPhysical"
        "AttackRate"                "2.0"            // Speed of attack.
        "AttackAnimationPoint"        "0.6"        // Normalized time in animation cycle to attack.
        "AttackAcquisitionRange"    "150"        // Range within a target can be acquired.
        "AttackRange"                "150"        // Range within a target can be attacked.
        "ProjectileModel"            "particles/base_attacks/ranged_goodguy.vpcf" // Particle system model for projectile.
        "ProjectileSpeed"            "1000"        // Speed of projectile.

        // Bounty
        //----------------------------------------------------------------
        "BountyXP"                    "750"        // Experience earn.
        "BountyGoldMin"                "150"        // Gold earned min.
        "BountyGoldMax"                "400"        // Gold earned max.

        // Bounds
        //----------------------------------------------------------------
        "BoundsHullName"            "DOTA_HULL_SIZE_HERO"            // Hull type used for navigation/locomotion.
        "RingRadius"                "110"
        "HealthBarOffset"            "400"

        // Movement
        //----------------------------------------------------------------
        "MovementCapabilities"        "DOTA_UNIT_CAP_MOVE_GROUND"            // Type of locomotion - ground, air
        "MovementSpeed"                "270"        // Speed
        "MovementTurnRate"            "1.0"        // Turning rate.

        // Status
        //----------------------------------------------------------------
        "StatusHealth"                "6000"        // Base health.
        "StatusHealthRegen"            "20"        // Health regeneration rate.
        "StatusMana"                "0"        // Base mana.
        "StatusManaRegen"            "0"        // Mana regeneration rate.

        // Team
        //----------------------------------------------------------------
        "TeamName"                    "DOTA_TEAM_NEUTRALS"            // Team name.
        "CombatClassAttack"            "DOTA_COMBAT_CLASS_ATTACK_HERO"
        "CombatClassDefend"            "DOTA_COMBAT_CLASS_DEFEND_HERO"
        "UnitRelationshipClass"        "DOTA_NPC_UNIT_RELATIONSHIP_TYPE_DEFAULT"
       
        // Vision
        //----------------------------------------------------------------
        "VisionDaytimeRange"        "1400"        // Range of vision during day light.
        "VisionNighttimeRange"        "1400"        // Range of vision at night time.

        // Inventory
        //----------------------------------------------------------------
        "HasInventory"                "1"
        "EquippedItems"
{
  "ForceStaff"  {  "Item"  "item_force_staff"  }
  "PhaseBoots"  {  "Item"  "item_phase_boots"  }
  "Drums"    
  {
    "Item"    "item_ancient_janggo"
    "Charges"  "10"
  }
  "Urn"
  {
    "Item"    "item_urn_of_shadows"
    "Charges"  "10"
  }
}
    }
 
Последнее редактирование:

xDes

Продвинутый
8 Ноя 2018
232
34
Проект
Boss Survival Adventure
Так ты же ничего не дропаешь с него... если я правильно понял, сделай так:
Код:
"npc_dota_creature_friendly_ogre_tank"
    {

        // General
        //----------------------------------------------------------------
        "Model"                        "models/creeps/neutral_creeps/n_creep_ogre_med/n_creep_ogre_med.vmdl"
        "BaseClass"                    "npc_dota_creature"
        "SoundSet"                    "n_creep_Melee"
        "GameSoundsFile"            "soundevents/game_sounds_creeps.vsndevts"
        "Level"                        "1"
        "ModelScale"                 "1.8"
        "ConsideredHero"            "1"
        "IsAncient"                    "1"
        "HasInventory"                "1"
        "MinimapIcon"                "minimap_enemyicon"
        "MinimapIconSize"            "275"

// Abilities
        "Ability1"                    "ogre_tank_melee_smash"
        "Ability2"                    "ogre_tank_jump_smash"
        "Ability3"                    "imprisoned_soldier"
        "Ability4"                    "no_vision"

// Armor
        "ArmorPhysical"                "20"
        "MagicalResistance"            "0"
        
// Attack
        "AttackCapabilities"        "DOTA_UNIT_CAP_MELEE_ATTACK"
        "AttackDamageMin"            "175"
        "AttackDamageMax"            "225"
        "AttackRate"                "2.8"
        "AttackAnimationPoint"        "0.3"
        "AttackAcquisitionRange"    "500"
        "AttackRange"                "1"
        "ProjectileModel"            ""
        "ProjectileSpeed"            "0"

// Bounds
        "BoundsHullName"            "DOTA_HULL_SIZE_REGULAR"
        "RingRadius"                "100"
        "HealthBarOffset"            "320"

// Bounty
        "BountyXP"                    "200"
        "BountyGoldMin"                "120"
        "BountyGoldMax"                "140"

// Movement
        "MovementCapabilities"        "DOTA_UNIT_CAP_MOVE_GROUND"
        "MovementSpeed"                "200"
        "MovementTurnRate"            "0.2"

// Status
        "StatusHealth"                "7000"
        "StatusHealthRegen"            "50"
        "StatusMana"                "500"
        "StatusManaRegen"            "5"
        
// Vision
        "VisionDaytimeRange"        "1000"
        "VisionNighttimeRange"        "800"

// Team
        "TeamName"                    "DOTA_TEAM_BADGUYS"
        "CombatClassAttack"            "DOTA_COMBAT_CLASS_ATTACK_BASIC"
        "CombatClassDefend"            "DOTA_COMBAT_CLASS_DEFEND_BASIC"
        "UnitRelationshipClass"        "DOTA_NPC_UNIT_RELATIONSHIP_TYPE_DEFAULT"

// Creature Data
        "Creature"
        {
            //Basic AI State
            //------------------------------------------------------------
            "DefaultState"                "Invade"
            "States"
            {
                "Invade"
                {
                    "Name"                "Invade"
                    "Aggression"        "100.0"
                    "Avoidance"            "0.0"
                    "Support"            "0.0"
                }
            }
    
            "DefaultState"                "Invade"
            
            "DisableResistance"            "99.0"

            //------------------------------------------------------------
            "ItemDrops"
            {
                "Consumables"
                {
                    "Item"
                    {
                        "1"              "item_ogre_axe"
                    }
                    "Chance"            "20"
                }
            }

            "EquippedItems"
            {
                "Ogre_axe"
                {
                    "Item"                    "item_ogre_axe"
                }
            }
        }
    }
 

Веджитто

Пользователь
3 Июн 2017
45
0
Проект
Dotomemium Phoenix
скопировал Итем дропс часть и ничего не дропается(шанс 100 поставил). Если менять рошану атаку, он меняется, то есть меняю я то, что надо
Так ты же ничего не дропаешь с него... если я правильно понял, сделай так:
Код:
"npc_dota_creature_friendly_ogre_tank"
    {

        // General
        //----------------------------------------------------------------
        "Model"                        "models/creeps/neutral_creeps/n_creep_ogre_med/n_creep_ogre_med.vmdl"
        "BaseClass"                    "npc_dota_creature"
        "SoundSet"                    "n_creep_Melee"
        "GameSoundsFile"            "soundevents/game_sounds_creeps.vsndevts"
        "Level"                        "1"
        "ModelScale"                 "1.8"
        "ConsideredHero"            "1"
        "IsAncient"                    "1"
        "HasInventory"                "1"
        "MinimapIcon"                "minimap_enemyicon"
        "MinimapIconSize"            "275"

// Abilities
        "Ability1"                    "ogre_tank_melee_smash"
        "Ability2"                    "ogre_tank_jump_smash"
        "Ability3"                    "imprisoned_soldier"
        "Ability4"                    "no_vision"

// Armor
        "ArmorPhysical"                "20"
        "MagicalResistance"            "0"
      
// Attack
        "AttackCapabilities"        "DOTA_UNIT_CAP_MELEE_ATTACK"
        "AttackDamageMin"            "175"
        "AttackDamageMax"            "225"
        "AttackRate"                "2.8"
        "AttackAnimationPoint"        "0.3"
        "AttackAcquisitionRange"    "500"
        "AttackRange"                "1"
        "ProjectileModel"            ""
        "ProjectileSpeed"            "0"

// Bounds
        "BoundsHullName"            "DOTA_HULL_SIZE_REGULAR"
        "RingRadius"                "100"
        "HealthBarOffset"            "320"

// Bounty
        "BountyXP"                    "200"
        "BountyGoldMin"                "120"
        "BountyGoldMax"                "140"

// Movement
        "MovementCapabilities"        "DOTA_UNIT_CAP_MOVE_GROUND"
        "MovementSpeed"                "200"
        "MovementTurnRate"            "0.2"

// Status
        "StatusHealth"                "7000"
        "StatusHealthRegen"            "50"
        "StatusMana"                "500"
        "StatusManaRegen"            "5"
      
// Vision
        "VisionDaytimeRange"        "1000"
        "VisionNighttimeRange"        "800"

// Team
        "TeamName"                    "DOTA_TEAM_BADGUYS"
        "CombatClassAttack"            "DOTA_COMBAT_CLASS_ATTACK_BASIC"
        "CombatClassDefend"            "DOTA_COMBAT_CLASS_DEFEND_BASIC"
        "UnitRelationshipClass"        "DOTA_NPC_UNIT_RELATIONSHIP_TYPE_DEFAULT"

// Creature Data
        "Creature"
        {
            //Basic AI State
            //------------------------------------------------------------
            "DefaultState"                "Invade"
            "States"
            {
                "Invade"
                {
                    "Name"                "Invade"
                    "Aggression"        "100.0"
                    "Avoidance"            "0.0"
                    "Support"            "0.0"
                }
            }
  
            "DefaultState"                "Invade"
          
            "DisableResistance"            "99.0"

            //------------------------------------------------------------
            "ItemDrops"
            {
                "Consumables"
                {
                    "Item"
                    {
                        "1"              "item_ogre_axe"
                    }
                    "Chance"            "20"
                }
            }

            "EquippedItems"
            {
                "Ogre_axe"
                {
                    "Item"                    "item_ogre_axe"
                }
            }
        }
    }
 

xDes

Продвинутый
8 Ноя 2018
232
34
Проект
Boss Survival Adventure
скопировал так? всю?
Код:
    "Creature"
        {
            "ItemDrops"
            {
                "Trinkets"
                {
                    "Item"
                    {   
                        "1"                "item_power_treads"
                    }
                    "Chance"            "100"
                }
            }       
        }
 

Веджитто

Пользователь
3 Июн 2017
45
0
Проект
Dotomemium Phoenix
скопировал так? всю?
Код:
    "Creature"
        {
            "ItemDrops"
            {
                "Trinkets"
                {
                    "Item"
                    {  
                        "1"                "item_power_treads"
                    }
                    "Chance"            "100"
                }
            }      
        }
Вот так:
Код:
"npc_dota_roshan"
    {
        // General
        //
        "BaseClass"                    "npc_dota_roshan"    // Class of entity of link to.
        "Model"                        "models/creeps/roshan/roshan.vmdl"    // Model.
        "SoundSet"                    "Roshan"                    // Name of sound set.
        "ModelScale"                "1"
        "Level"                        "30"
        "IsAncient"                    "1"
                
        // Abilities
        //----------------------------------------------------------------
        "Ability1"                    "roshan_spell_block"    // Ability 1.
        "Ability2"                    "roshan_bash"            // Ability 2.
        "Ability3"                    "roshan_slam"            // Ability 3.
        "Ability4"                    "roshan_inherent_buffs"    // Ability 4.
        "Ability5"                    "roshan_devotion"        // Ability 5.
        "Ability6"                    ""                        // Ability 6 - Extra.
        "Ability7"                    ""                        // Ability 7 - Extra.
        "Ability8"                    ""                        // Ability 8 - Extra.

        // Armor
        //----------------------------------------------------------------
        "ArmorPhysical"                "18.0"            // Physical protection.
        "MagicalResistance"                "55"                                    // Magical protection (percentage).

        // Attack
        //----------------------------------------------------------------
        "AttackCapabilities"        "DOTA_UNIT_CAP_MELEE_ATTACK"
        "AttackDamageMin"            "750"        // Damage range min.
        "AttackDamageMax"            "750"        // Damage range max.
        "AttackDamageType"            "DAMAGE_TYPE_ArmorPhysical"
        "AttackRate"                "2.0"            // Speed of attack.
        "AttackAnimationPoint"        "0.6"        // Normalized time in animation cycle to attack.
        "AttackAcquisitionRange"    "150"        // Range within a target can be acquired.
        "AttackRange"                "150"        // Range within a target can be attacked.
        "ProjectileModel"            "particles/base_attacks/ranged_goodguy.vpcf" // Particle system model for projectile.
        "ProjectileSpeed"            "1000"        // Speed of projectile.

        // Bounty
        //----------------------------------------------------------------
        "BountyXP"                    "750"        // Experience earn.
        "BountyGoldMin"                "150"        // Gold earned min.
        "BountyGoldMax"                "400"        // Gold earned max.

        // Bounds
        //----------------------------------------------------------------
        "BoundsHullName"            "DOTA_HULL_SIZE_HERO"            // Hull type used for navigation/locomotion.
        "RingRadius"                "110"
        "HealthBarOffset"            "400"

        // Movement
        //----------------------------------------------------------------
        "MovementCapabilities"        "DOTA_UNIT_CAP_MOVE_GROUND"            // Type of locomotion - ground, air
        "MovementSpeed"                "270"        // Speed
        "MovementTurnRate"            "1.0"        // Turning rate.

        // Status
        //----------------------------------------------------------------
        "StatusHealth"                "8000"        // Base health.
        "StatusHealthRegen"            "20"        // Health regeneration rate.
        "StatusMana"                "0"        // Base mana.
        "StatusManaRegen"            "0"        // Mana regeneration rate.

        // Team
        //----------------------------------------------------------------
        "TeamName"                    "DOTA_TEAM_NEUTRALS"            // Team name.
        "CombatClassAttack"            "DOTA_COMBAT_CLASS_ATTACK_HERO"
        "CombatClassDefend"            "DOTA_COMBAT_CLASS_DEFEND_HERO"
        "UnitRelationshipClass"        "DOTA_NPC_UNIT_RELATIONSHIP_TYPE_DEFAULT"
        
        // Vision
        //----------------------------------------------------------------
        "VisionDaytimeRange"        "1400"        // Range of vision during day light.
        "VisionNighttimeRange"        "1400"        // Range of vision at night time.

        // Inventory
        //----------------------------------------------------------------
        "HasInventory"                "1"
        "Creature"{
         "ItemDrops"
            {
                "Consumables"
                {
                    "Item"
                    {
                        "1"              "item_ogre_axe"
                    }
                    "Chance"            "100"
                }
            }
            }

    }
 

xDes

Продвинутый
8 Ноя 2018
232
34
Проект
Boss Survival Adventure
значит спавни предмет на месте гибели рошана
 
Реклама: