Пропали все предметы Dota 2

  • Автор темы Автор темы qofma
  • Дата начала Дата начала

qofma

Активный
1 Апр 2016
81
0
У меня пропали все предметы ,которые я добавил.Теперь все предметы стоят 0,а предметы доты остались без изменения.Как пофиксить::?
 
Re: Помогите

Я копался в предметах и наверное что-то сломал(((
Код:
"DOTAAbilities"
{
	"item_hcmanta"
	{
		"ID"							"4003"

		// General
		//-------------------------------------------------------------------------------------------------------------
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_PASSIVE"
		"BaseClass"						"item_ultimate_orb"
		"Model"							"models/props_gameplay/recipe.mdl"

		// Item Info
		//-------------------------------------------------------------------------------------------------------------
		"AbilityManaCost"				"0"
		"AbilityTextureName"			"item_hcmanta"
        "SecretShop"  			"1"
		"SideShop"  				"0"
		"ItemCost"						"650"
		"ItemQuality"					"rare"
		"ItemDeclarations"				"DECLARE_PURCHASES_TO_SPECTATORS"
		"ItemDisassembleRule"			"0"
		"ItemAlertable"					"1"
		
		// Special	
		//-------------------------------------------------------------------------------------------------------------
	}
		"item_hcblack_king_bar"
	{
		"ID"							"4004"

		// General
		//-------------------------------------------------------------------------------------------------------------
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_PASSIVE"
		"BaseClass"						"item_datadriven"
		"Model"							"models/props_gameplay/recipe.mdl"

		// Item Info
		//-------------------------------------------------------------------------------------------------------------
		"AbilityManaCost"				"0"
		"AbilityTextureName"			"item_hcblack_king_bar"
        "SecretShop"  			"1"
		"SideShop"  				"0"
		"ItemCost"						"850"
		"ItemQuality"					"rare"
		"ItemDeclarations"				"DECLARE_PURCHASES_TO_SPECTATORS"
		"ItemDisassembleRule"			"0"
		"ItemAlertable"					"1"
		
		// Special	
		//-------------------------------------------------------------------------------------------------------------
		"AbilitySpecial"
		{
			"01"
			{
				"var_type"							"FIELD_INTEGER"
				"bonus_strength"				"3"
			}
		}
		
		"Modifiers"
		{
			"modifier_item_hcblack_king_bar"
			{
				"Passive"			"1"
				"IsHidden"			"1"
				"Attributes" 		"MODIFIER_ATTRIBUTE_MULTIPLE"
				
				"Properties"
				{
					"MODIFIER_PROPERTY_STATS_STRENGTH_BONUS"	"%bonus_strength"
				}
			}
		}
	}
		"item_hcrefresher"
	{
		"ID"							"4005"

		// General
		//-------------------------------------------------------------------------------------------------------------
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_PASSIVE"
		"BaseClass"						"item_datadriven"
		"Model"							"models/props_gameplay/recipe.mdl"

		// Item Info
		//-------------------------------------------------------------------------------------------------------------
		"AbilityManaCost"				"0"
		"AbilityTextureName"			"item_hcrefresher"
        "SecretShop"  			"1"
		"SideShop"  				"1"
		"ItemCost"						"800"
		"ItemQuality"					"rare"
		"ItemDeclarations"				"DECLARE_PURCHASES_TO_SPECTATORS"
		"ItemDisassembleRule"			"0"
		"ItemAlertable"					"1"
		
		// Special	
		//-------------------------------------------------------------------------------------------------------------
		"AbilitySpecial"
		{
			"01"
			{
				"var_type"							"FIELD_INTEGER"
				"bonus_health_regen"				"2"
			}
		}
		
		"Modifiers"
		{
			"modifier_item_hcrefresher"
			{
				"Passive"			"1"
				"IsHidden"			"1"
				"Attributes" 		"MODIFIER_ATTRIBUTE_MULTIPLE"
				
				"Properties"
				{
					"MODIFIER_PROPERTY_HEALTH_REGEN_CONSTANT"			"%bonus_health_regen"
				}
			}
		}
	}
	"item_hcinvis_sword"
	{
		"ID"							"4006"
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_PASSIVE"
		"BaseClass"						"item_ultimate_orb"
		"Model"							"models/props_gameplay/recipe.mdl"
		"AbilityManaCost"				"0"
		"AbilityTextureName"			"item_hcinvis_sword"
    "SecretShop"  			"0"
		"SideShop"  				"0"
		"ItemCost"						"450"
		"ItemQuality"					"rare"
		"ItemDeclarations"				"DECLARE_PURCHASES_TO_SPECTATORS"
		"ItemDisassembleRule"			"0"
		"ItemAlertable"					"1"
	}
	"item_hcradiance"
	{
		"ID"							"4007"
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_PASSIVE"
		"BaseClass"						"item_ultimate_orb"
		"Model"							"models/props_gameplay/recipe.mdl"
		"AbilityManaCost"				"0"
		"AbilityTextureName"			"item_hcradiance"
    "SecretShop"  			"1"
		"SideShop"  				"1"
		"ItemCost"						"500"
		"ItemQuality"					"rare"
		"ItemDeclarations"				"DECLARE_PURCHASES_TO_SPECTATORS"
		"ItemDisassembleRule"			"0"
		"ItemAlertable"					"1"
	}
		"item_gem_of_vengeance"
	{
		// Item Stuff
		//-------------------------------------------------------------------------------------------------------------
		
		"id"					"2005"
		"BaseClass"				"item_datadriven"
		"AbilityTextureName"	"item_gem_of_vengeance"
		"Model"					"models/props_gameplay/red_box.vmdl" 
		"Effect"				"particles/generic_gameplay/dropped_item.vpcf"
		"ItemQuality" "artifact"

		"ItemCost"   "900"
		"ItemKillable" "0" 
		"ItemSellable" "1"
		"ItemPurchasable" "1"
		"ItemDroppable" "1"
		"ItemShareability" "ITEM_NOT_SHAREABLE"

		"SecretShop"  "1"

		"ItemStackable" "0"
		"ItemPermanent" "1"
		"ItemDisassembleRule" "DOTA_ITEM_DISASSEMBLE_NEVER"

		// General
		//-------------------------------------------------------------------------------------------------------------
		
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_UNIT_TARGET"
		"AbilityUnitTargetTeam"			"DOTA_UNIT_TARGET_TEAM_BOTH"
		"AbilityUnitTargetType"			"DOTA_UNIT_TARGET_HERO"
		"SpellImmunityType"				"SPELL_IMMUNITY_ENEMIES_NO"
		"FightRecapLevel"				"1"

		// Casting
		//-------------------------------------------------------------------------------------------------------------
		"AbilityCastPoint"				"0"
		"AbilityCastRange"				"1300"
		
		// Time		
		//-------------------------------------------------------------------------------------------------------------
		"AbilityCooldown"				"14.0"
		
		// Cost
		//-------------------------------------------------------------------------------------------------------------
		"AbilityManaCost"				"0"
		
		// Special
		//-------------------------------------------------------------------------------------------------------------
		"AbilitySpecial"
		{
			"01"
			{
				"var_type"			"FIELD_INTEGER"
				"range"				"1300"
			}
		}
		"OnSpellStart"
		{

			"FireSound"
			{
				"EffectName"	"Hero_VengefulSpirit.NetherSwap"
				"Target" 		"TARGET"
			}
			
			"FireSound"
			{
				"EffectName"	"Hero_VengefulSpirit.NetherSwap"
				"Target" 		"CASTER"
			}
			
			"FireEffect"
			{
				"EffectName"    "particles/units/heroes/hero_vengeful/vengeful_nether_swap.vpcf"
				"EffectAttachType" "start_at_customorigin"
				
				"ControlPointEntities"
				{
					"TARGET"	"follow_origin"
					"CASTER"	"follow_origin"
				}
			}

			"FireEffect"
			{
				"EffectName"    "particles/units/heroes/hero_vengeful/vengeful_nether_swap_pink.vpcf"
				"EffectAttachType" "start_at_customorigin"
				
				"ControlPointEntities"
				{
					"CASTER"	"follow_origin"
					"TARGET"	"follow_origin"
				}
			}
			"RunScript"
			{
				"ScriptFile"	"swap.lua"
				"Function"		"swap_ability"
			}
		}
	}
	"item_doom_datadriven"
	{
	// General
	//-------------------------------------------------------------------------------------------------------------
	"id"					"4010"
	"BaseClass"				"item_datadriven"
	"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_UNIT_TARGET" | DOTA_ABILITY_BEHAVIOR_IMMEDIATE
	"AbilityUnitTargetTeam"			"DOTA_UNIT_TARGET_TEAM_ENEMY"
	"AbilityUnitTargetType"			"DOTA_UNIT_TARGET_HERO | DOTA_UNIT_TARGET_BASIC"
	"AbilityUnitTargetFlags"		"DOTA_UNIT_TARGET_FLAG_MAGIC_IMMUNE_ENEMIES | DOTA_UNIT_TARGET_FLAG_NOT_ANCIENTS"
	"SpellImmunityType"				"SPELL_IMMUNITY_ENEMIES_YES"
	"AbilityUnitDamageType"			"DAMAGE_TYPE_PURE"
	"Model"							"models/props_gameplay/red_box.vmdl" 
	"Effect"						"particles/generic_gameplay/dropped_item.vpcf"
	"AbilityTextureName"			"item_doom_datadriven"
	"ItemAliases"					"Stuff Of Doom"

	// Precache
	//-------------------------------------------------------------------------------------------------------------
	"precache"
	{
		"soundfile"			"soundevents/game_sounds_heroes/game_sounds_doombringer.vsndevts"
		"particle"			"particles/units/heroes/hero_doom_bringer/doom_bringer_doom_ring.vpcf"
		"particle"			"particles/status_fx/status_effect_doom.vpcf"
	}
	
	// Stats
	//-------------------------------------------------------------------------------------------------------------
		"AbilityCastPoint"				"0.0"
		"AbilityCastRange"				"200"
		"AbilityCooldown"				"30.0"
		"AbilityCastAnimation" "ACT_DOTA_ATTACK"
		"AnimationPlaybackRate" "2"
		
	// Item Info
	//-------------------------------------------------------------------------------------------------------------
	"ItemCost"						"2500"
	"ItemQuality"					"epic"
	"ItemAliases"					"doom"
	"ItemDeclarations"				"DECLARE_PURCHASES_TO_TEAMMATES | DECLARE_PURCHASES_IN_SPEECH | DECLARE_PURCHASES_TO_SPECTATORS"
	"ItemSellable" "1"
	"ItemPurchasable" "1"
	"ItemDroppable" "1"
	"ItemShareability" "ITEM_NOT_SHAREABLE"
	"ItemStackable" "0"
	"ItemPermanent" "1"
	"ItemDisassembleRule" "DOTA_ITEM_DISASSEMBLE_NEVER"

	// Cost
	//-------------------------------------------------------------------------------------------------------------
	"AbilityManaCost"				"0"

	// Special
	//-------------------------------------------------------------------------------------------------------------
	"AbilitySpecial"
	{
		"01"
		{
			"var_type"				"FIELD_FLOAT"
			"duration"				"8.0"
		}
		"02"
		{
			"var_type"				"FIELD_INTEGER"
			"damage"				"35"
		}
		"03"
		{
			"var_type"				"FIELD_FLOAT"
			"duration_scepter"		"16.0"
		}
		"04"
		{
			"var_type"				"FIELD_INTEGER"
			"damage_scepter"		"40"
		}
		"05"
		{
			"var_type"				"FIELD_INTEGER"
			"deniable_pct"			"25"
		}
	}

	"OnSpellStart"
	{
		"FireSound"
		{
			"EffectName"	"Hero_VengefulSpirit.NetherSwap"
			"Target"
			{
				"Center"	"TARGET"
				"Flags"		"DOTA_UNIT_TARGET_FLAG_MAGIC_IMMUNE_ENEMIES"
			}
		}

		"RunScript"
		{
			"ScriptFile"	"items/doom.lua"
			"Function"		"DoomPurge"
		}

		"ApplyModifier"
		{
			"ModifierName"	"modifier_doom_datadriven"
			"Target" 
			{
				"Center"	"TARGET"
				"Flags"		"DOTA_UNIT_TARGET_FLAG_MAGIC_IMMUNE_ENEMIES"
			}
			"Duration"		"%duration"
		}

		"ApplyModifier"
		{
			"ModifierName"	"modifier_doom_deny_check_datadriven"
			"Target" 
			{
				"Center"	"TARGET"
				"Flags"		"DOTA_UNIT_TARGET_FLAG_MAGIC_IMMUNE_ENEMIES"
			}
			"Duration"		"%duration"
		}
	}

	"Modifiers"
	{
		"modifier_doom_datadriven"
		{
			"IsDebuff"			"1"
			"IsPurgable"		"0"
	
			"StatusEffectName" 		"particles/status_fx/status_effect_doom.vpcf" 	  
			"StatusEffectPriority" "10"
	
			"OnCreated"
			{
				"AttachEffect"
				{
					"EffectName"    "particles/units/heroes/hero_doom_bringer/doom_bringer_doom.vpcf"
					"EffectAttachType" "follow_origin"
					"Target"
					{
						"Center"	"TARGET"
						"Flags"		"DOTA_UNIT_TARGET_FLAG_MAGIC_IMMUNE_ENEMIES"
					}

					"ControlPoints"
					{
						"04"	"TARGET"
					}
				}
			}

			"OnDestroy"
			{
				"RunScript"
				{
					"ScriptFile"	"items/doom.lua"
					"Function"		"StopSound"
					"sound"			"Hero_DoomBringer.Doom"
				}
			}

			"ThinkInterval" "1.0"
			"OnIntervalThink"
			{
				"Damage"
				{
					"Target"		"TARGET"
					"Type"			"DAMAGE_TYPE_PURE"
					"Damage"		"%damage"
				}
			}

			"States"
			{
				"MODIFIER_STATE_SILENCED"		"MODIFIER_STATE_VALUE_ENABLED"
			}
		}

		"modifier_doom_deny_check_datadriven"
		{
			"IsHidden"		"1"
			"IsPurgable"	"0"

			"ThinkInterval" "0.03"
			"OnIntervalThink"
			{
				"RunScript"
				{
					"ScriptFile"	"items/doom.lua"
					"Function"		"DoomDenyCheck"
					"modifier"		"modifier_doom_deny_datadriven"
				}
			}
		}

		"modifier_doom_deny_datadriven"
		{
			"IsHidden"		"1"
			"IsPurgable"	"0"

			"States"
			{
				"MODIFIER_STATE_SPECIALLY_DENIABLE"		"MODIFIER_STATE_VALUE_ENABLED"
			}
		}
	}
	"item_techies_land_mines_datadriven"
	{
	// General
	//-------------------------------------------------------------------------------------------------------------
	"BaseClass"				"item_datadriven"
	"ID"						"4014"
	"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_POINT | DOTA_ABILITY_BEHAVIOR_AOE"
	"AbilityUnitDamageType"			"DAMAGE_TYPE_PURE"
	"SpellImmunityType"				"SPELL_IMMUNITY_ENEMIES_YES"
	"AbilityTextureName"			"item_techies_land_mines_datadriven"
	"Model"							"models/props_gameplay/red_box.vmdl" 
	"Effect"						"particles/generic_gameplay/dropped_item.vpcf"
	"ItemAliases"					"Stuff"
	"AOERadius"						"%small_radius"
	"ItemStackable"					"1"
	"ItemPermanent"					"0"
	"ItemCost"						"1100"

	// Precache
	//-------------------------------------------------------------------------------------------------------------
	"precache"
	{
		"soundfile"		"soundevents/game_sounds_heroes/game_sounds_techies.vsndevts"		
		"particle"		"particles/units/heroes/hero_techies/techies_land_mine.vpcf"
		"particle"		"particles/units/heroes/hero_techies/techies_land_mine_explode.vpcf"
		"model"			"models/heroes/techies/fx_techiesfx_mine.vmdl"	
	}

	// Casting
	//-------------------------------------------------------------------------------------------------------------
	"AbilityCastRange"				"550"
	"AbilityCastPoint"				"0.0"
	
	// Time		
	//-------------------------------------------------------------------------------------------------------------
	"AbilityCooldown"				"12"

	// Cost
	//-------------------------------------------------------------------------------------------------------------
	"AbilityManaCost"				"0"

	// Special
	//-------------------------------------------------------------------------------------------------------------
	"AbilitySpecial"
	{
		"01"
		{
			"var_type"					"FIELD_INTEGER"
			"damage"					"210"
		}
		"02"
		{
			"var_type"					"FIELD_INTEGER"
			"small_radius"				"200"
		}
		"03"
		{
			"var_type"					"FIELD_INTEGER"
			"big_radius"				"450"
		}
		"04"
		{
			"var_type"					"FIELD_FLOAT"
			"activation_time"			"2.0"
		}
		"05"
		{
			"var_type"					"FIELD_INTEGER"
			"max_mines"					"5"
		}
		"06"
		{
			"var_type"					"FIELD_FLOAT"
			"explode_delay"				"0.3"
		}
		"07"
		{
			"var_type"					"FIELD_FLOAT"
			"fade_time"					"1.0"
		}
		// Extra
		"08"
		{
			"var_type"					"FIELD_FLOAT"
			"vision_radius"				"300"
		}
		"09"
		{
			"var_type"					"FIELD_FLOAT"
			"vision_duration"			"1.0"
		}
	}

	"OnSpellStart"
	{
		"FireSound"
		{
			"EffectName"	"Hero_Techies.LandMine.Plant"
			"Target" 		"CASTER"
		}

		"RunScript"
		{
			"ScriptFile"	"items/land_mines.lua"
			"Function"		"LandMinesPlant"
			"Target"		"POINT"
			"modifier_land_mine"	"modifier_land_mine_datadriven"
			"modifier_tracker"		"modifier_land_mine_tracker_datadriven"
			"modifier_caster"		"modifier_land_mine_caster_datadriven"
			"modifier_land_mine_invisibility"	"modifier_land_mine_invisibility_datadriven"
		}
	}

	"Modifiers"
	{
		"modifier_land_mine_datadriven"
		{
			"IsHidden"		"1"
			"IsPurgable"	"0"

			"OnDeath"
			{
				"CreateThinker"
				{
					"ModifierName"	"modifier_land_mine_thinker"
					"Target" 		"UNIT"
				}				

				"FireEffect"
				{
					"EffectName"    "particles/units/heroes/hero_techies/techies_land_mine_explode.vpcf"
					"EffectAttachType" "follow_hitloc"
					"Target"
					{
						"Center"	"UNIT"
						"Flags"		"DOTA_UNIT_TARGET_FLAG_DEAD"
					}
				}

				"ActOnTargets"
				{
					"Target"
					{
						"Center" 	"UNIT"
						"Radius" 	"%small_radius"
						"Teams" 	"DOTA_UNIT_TARGET_TEAM_BOTH"
						"Types" 	"DOTA_UNIT_TARGET_HERO | DOTA_UNIT_TARGET_BASIC | DOTA_UNIT_TARGET_BUILDING"
						"Flags"   "DOTA_UNIT_TARGET_FLAG_MAGIC_IMMUNE_ENEMIES"
					}
				
					"Action"  
					{
						"Damage"
						{
							"Target"
							{
								"Center"	"TARGET"
								"Flags"   "DOTA_UNIT_TARGET_FLAG_MAGIC_IMMUNE_ENEMIES"
							}
							"Type"			"DAMAGE_TYPE_PURE"
							"Damage"		"%damage / 2"
						}
					}
				}

				"ActOnTargets"
				{
					"Target"
					{
						"Center" 	"UNIT"
						"Radius" 	"%big_radius"
						"Teams" 	"DOTA_UNIT_TARGET_TEAM_ENEMY"
						"Types" 	"DOTA_UNIT_TARGET_HERO | DOTA_UNIT_TARGET_BASIC | DOTA_UNIT_TARGET_BUILDING"
						"Flags"   "DOTA_UNIT_TARGET_FLAG_MAGIC_IMMUNE_ENEMIES"
					}
				
					"Action"  
					{
						"Damage"
						{
							"Target"
							{
								"Center"	"TARGET"
								"Flags"   "DOTA_UNIT_TARGET_FLAG_MAGIC_IMMUNE_ENEMIES"
							}
							"Type"			"DAMAGE_TYPE_PHYSICAL"
							"Damage"		"%damage / 2"
						}
					}					
				}

				"RunScript"
				{
					"ScriptFile"	"items/land_mines.lua"
					"Function"		"LandMinesDeath"
					"modifier_caster"	"modifier_land_mine_caster_datadriven"
				}
			}

			"States"
			{
				"MODIFIER_STATE_NO_UNIT_COLLISION"		"MODIFIER_STATE_VALUE_ENABLED"
			}
		}

		"modifier_land_mine_tracker_datadriven"
		{
			"IsHidden"		"1"
			"IsPurgable"	"0"

			"EffectName"	"particles/units/heroes/hero_techies/techies_land_mine.vpcf"
			"EffectAttachType"	"follow_origin"

			"ThinkInterval" "0.1"
			"OnIntervalThink"
			{
				"RunScript"
				{
					"ScriptFile"	"items/land_mines.lua"
					"Function"		"LandMinesTracker"
				}
			}
		}

		"modifier_land_mine_caster_datadriven"
		{
			"IsBuff"		"1"
			"IsPurgable"	"0"
		}

		"modifier_land_mine_invisibility_datadriven"
		{
			"IsHidden"		"1"
			"IsPurgable"	"0"

			"States"
			{
				"MODIFIER_STATE_INVISIBLE"		"MODIFIER_STATE_VALUE_ENABLED"
			}
		}

		"modifier_land_mine_thinker"
		{
			"Duration"	"0.03"
			"OnCreated"
			{
				"FireSound"
				{
					"EffectName"	"Hero_Techies.LandMine.Detonate"
					"Target"
					{
						"Center"	"TARGET"
						"Flags"		"DOTA_UNIT_TARGET_FLAG_DEAD"
					}
				}
			}
		}
	}
	"item_sphere_datadriven"
	{
		// General
		//-------------------------------------------------------------------------------------------------------------
		"BaseClass"						"item_datadriven"
		"ID"							"1123" //Valve's version of this item uses the ID "123".
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_UNIT_TARGET | DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING"
		"AbilityUnitTargetTeam"			"DOTA_UNIT_TARGET_TEAM_FRIENDLY"
		"AbilityUnitTargetType"			"DOTA_UNIT_TARGET_HERO"
		"Model"							"models/props_gameplay/red_box.vmdl" 
		"Effect"						"particles/generic_gameplay/dropped_item.vpcf"
		"AbilityTextureName"			"item_sphere_datadriven"
		"FightRecapLevel"				"1"
		
		// Stats
		//-------------------------------------------------------------------------------------------------------------
		"AbilityCastPoint"				"0.0"
		"AbilityCastRange"				"700"
		"AbilityCooldown"				"15.0"
		
		// Item Info
		//-------------------------------------------------------------------------------------------------------------
		"ItemCost"						"800"
		"ItemShopTags"					"regen_health;regen_mana;str;agi;int;hard_to_tag"
		"ItemQuality"					"epic"
		"ItemAliases"					"ls;linken's sphere"
		"ItemDeclarations"				"DECLARE_PURCHASES_TO_TEAMMATES | DECLARE_PURCHASES_IN_SPEECH | DECLARE_PURCHASES_TO_SPECTATORS"
	
		// Special	
		//-------------------------------------------------------------------------------------------------------------
		"AbilitySpecial"
		{
			"01"
			{
				"var_type"					"FIELD_INTEGER"
				"bonus_health_regen"		"3"
			}
			"02"
			{
				"var_type"					"FIELD_FLOAT"
				"block_cooldown"			"15.0"
			}
			"03"
			{
				"var_type"				"FIELD_INTEGER"
				"bonus_health"			"150"
			}
		}
		
		"OnSpellStart"
		{
			"RunScript"
			{
				"ScriptFile"		"items/item_sphere.lua"
				"Function"			"item_sphere_datadriven_on_spell_start"
				"Duration"			"%block_cooldown"
			}
		}
		
		"Modifiers"
		{
			"modifier_item_sphere_datadriven"
			{
				"Passive"			"1"
				"IsHidden"			"1"
				"Attributes" 		"MODIFIER_ATTRIBUTE_MULTIPLE"
				
				"Properties"
				{
					"MODIFIER_PROPERTY_HEALTH_REGEN_CONSTANT"		"%bonus_health_regen"
					"MODIFIER_PROPERTY_HEALTH_BONUS"				"%bonus_health"
				}
				
				"OnCreated"
				{			
					"RunScript"
					{
						"ScriptFile"		"items/item_sphere.lua"
						"Function"			"modifier_item_sphere_datadriven_on_created"
					}
				}
				
				"OnDestroy"
				{
					"RunScript"
					{
						"ScriptFile"		"items/item_sphere.lua"
						"Function"			"modifier_item_sphere_datadriven_on_destroy"
					}
				}
				
				"ThinkInterval" 		".03"
				"OnIntervalThink"
				{
					//Check if the caster has the correct number of Linken's modifiers on them. If they have less than they are
					//supposed to, we can assume that a sphere was popped due to an enemy's targeted spell, and put the player's 
					//Linken's Spheres on cooldown.
					"RunScript"
					{
						"ScriptFile"			"items/item_sphere.lua"
						"Function"				"modifier_item_sphere_datadriven_on_interval_think"
					}
				}
			}
			//A modifier that is applied to a unit when they receive the modifier_item_sphere_target modifier.
			//So long as they still have that modifier, this one will remain and provide a public face on the modifier icon bar.
			//This modifier deletes itself when modifier_item_sphere_target no longer exists on the unit.
			"modifier_item_sphere_datadriven_icon"
			{
				"Passive"			"1"
				"IsHidden"			"1"
				
				"ThinkInterval" 		".03"
				"OnIntervalThink"
				{
					"RunScript"
					{
						"ScriptFile"			"items/item_sphere.lua"
						"Function"				"modifier_item_sphere_datadriven_icon_on_interval_think"
					}
				}
			}
		}
	}
	"item_hood_of_defiance_ultimate_datadriven"
	{
	// General
	//-------------------------------------------------------------------------------------------------------------
	"BaseClass"				"item_datadriven"
	"ID"							"4013"
	"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_NO_TARGET | DOTA_ABILITY_BEHAVIOR_IMMEDIATE"
	"Model"							"models/props_gameplay/red_box.vmdl" 
	"Effect"						"particles/generic_gameplay/dropped_item.vpcf"
	"SpellImmunityType"				"SPELL_IMMUNITY_ALLIES_NO"
	"FightRecapLevel"				"1"
	"AbilityTextureName"			"item_hood_of_defiance_ultimate_datadriven"

	// Casting
	//-------------------------------------------------------------------------------------------------------------
	"AbilityCastRange"				"500"
	"AbilityCastPoint"				"0.0"
	
	// Time		
	//-------------------------------------------------------------------------------------------------------------
	"AbilityCooldown"				"12.0"
	
	// Cost
	//-------------------------------------------------------------------------------------------------------------
	"AbilityManaCost"				"0"
	// Special
	//-------------------------------------------------------------------------------------------------------------
	"AbilitySpecial"
	{
		"01"
		{
			"var_type"							"FIELD_INTEGER"
			"bonus_magic_resist_percentage"		"20"
		}
		"02"
		{
			"var_type"						"FIELD_FLOAT"
			"duration"						"2.0"
		}
	}

	"precache"
	{
		"soundfile"	"soundevents/game_sounds_heroes/game_sounds_nevermore.vsndevts"
		"particle"	"particles/units/heroes/hero_omniknight/omniknight_repel_buff.vpcf"
	}

	"OnSpellStart"
	{
		"FireSound"
		{
			"EffectName"		"Hero_Omniknight.Repel"
			"Target"			"CASTER"
		}

		"FireEffect"
		{
			"EffectName"		"particles/units/heroes/hero_omniknight/omniknight_repel_cast.vpcf"
			"EffectAttachType" "follow_origin"
			"Target"      "CASTER"
		}

		"ApplyModifier"
		{
			"Target" 			"CASTER"
			"ModifierName"		"modifier_hood_of_defiance_ultimate_datadriven"
		}
	}

	"Modifiers"
	{
		"modifier_hood_of_defiance_ultimate_datadriven"
		{
			"IsBuff"		"1"
			"IsPurgable"	"0"
			"Attributes" 		"MODIFIER_ATTRIBUTE_MULTIPLE"
			"Duration"		"%duration"
			"EffectName"		"particles/units/heroes/hero_omniknight/omniknight_repel_buff.vpcf"
			"EffectAttachType"	"follow_origin"
			"Properties"
			{
				"MODIFIER_PROPERTY_MAGICAL_RESISTANCE_BONUS"		"%bonus_magic_resist_percentage"
			}
			"States"
			{
				"MODIFIER_STATE_MAGIC_IMMUNE"	"MODIFIER_STATE_VALUE_ENABLED"
			}
		}
	}
	"item_hood_of_defiance_datadriven"
	{
		// General
		//-------------------------------------------------------------------------------------------------------------
		"BaseClass"						"item_datadriven"
		"ID"							"4002" //Valve's version of this item uses the ID "131".
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_PASSIVE"
		"Model"							"models/props_gameplay/red_box.vmdl" 
		"Effect"						"particles/generic_gameplay/dropped_item.vpcf"
		"AbilityTextureName"			"item_hood_of_defiance"
		
		// Item Info
		//-------------------------------------------------------------------------------------------------------------
		"ItemCost"						"1200"
		"ItemShopTags"					"regen_health;magic_resist"
		"ItemQuality"					"epic"
		"ItemAliases"					"hood of defiance"
		"ItemDeclarations"				"DECLARE_PURCHASES_TO_TEAMMATES | DECLARE_PURCHASES_TO_SPECTATORS"
	
		// Special	
		//-------------------------------------------------------------------------------------------------------------
		"AbilitySpecial"
		{
			"01"
			{
				"var_type"							"FIELD_INTEGER"
				"bonus_magic_resist_percentage"		"20"
			}
			"02"
			{
				"var_type"							"FIELD_INTEGER"
				"bonus_health_regen"				"2"
			}
			"03"
			{
				"var_type"				"FIELD_INTEGER"
				"bonus_movement"		"45"
			}
		}
		
		"Modifiers"
		{
			"modifier_item_hood_of_defiance_datadriven"
			{
				"Passive"			"1"
				"IsHidden"			"1"
				"Attributes" 		"MODIFIER_ATTRIBUTE_MULTIPLE"
				
				"Properties"
				{
					"MODIFIER_PROPERTY_MAGICAL_RESISTANCE_BONUS"		"%bonus_magic_resist_percentage"
					"MODIFIER_PROPERTY_HEALTH_REGEN_CONSTANT"			"%bonus_health_regen"
					"MODIFIER_PROPERTY_MOVESPEED_BONUS_UNIQUE"		"%bonus_movement"
				}
			}
		}
	}
	"item_recipe_hood_of_defiance_datadriven"
	{
		// General
		//-------------------------------------------------------------------------------------------------------------
		"BaseClass"						"item_datadriven"
		"ID"							"1130" //Valve's version of this item uses the ID "130".
		"Model"							"models/props_gameplay/recipe.mdl"
		"AbilityTextureName"			"item_recipe"
		
		// Item Info
		//-------------------------------------------------------------------------------------------------------------
		"ItemCost"						"0"	
		"ItemShopTags"					""
		
		// Recipe
		//-------------------------------------------------------------------------------------------------------------
		"ItemRecipe"					"1"
		"ItemResult"					"item_hood_of_defiance_datadriven"
		"ItemRequirements"
		{
			"01"						"item_ring_of_regen;item_cloak;item_boots"
		}
	}
	"item_lion_voodoo_datadriven"
	{
	// General
	//-------------------------------------------------------------------------------------------------------------
	"BaseClass"				"item_datadriven"
	"id"							"4000"
	"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_UNIT_TARGET"
	"AbilityUnitTargetTeam"			"DOTA_UNIT_TARGET_TEAM_ENEMY"
	"AbilityUnitTargetType"			"DOTA_UNIT_TARGET_HERO | DOTA_UNIT_TARGET_BASIC"
	"SpellImmunityType"				"SPELL_IMMUNITY_ENEMIES_NO"
	"FightRecapLevel"				"1"
	"Model"							"models/props_gameplay/red_box.vmdl" 
	"Effect"						"particles/generic_gameplay/dropped_item.vpcf"
	"AbilityTextureName"			"item_lion_voodoo_datadriven"
	"ItemCost"						"2700"
	"ItemQuality"					"epic"	

	// Precache
	//-------------------------------------------------------------------------------------------------------------
	"precache"
	{
		"soundfile"			"soundevents/game_sounds_heroes/game_sounds_lion.vsndevts"
		"particle"			"particles/units/heroes/hero_lion/lion_spell_voodoo.vpcf"
		"model"				"models/props_gameplay/frog.vmdl"
	}
	
	// Casting
	//-------------------------------------------------------------------------------------------------------------
	"AbilityCastRange"				"500"
	"AbilityCastPoint"				"0"
	"AbilityCastAnimation" "ACT_DOTA_ATTACK"
	"AnimationPlaybackRate" "2"

	// Time		
	//-------------------------------------------------------------------------------------------------------------
	"AbilityCooldown"				"30.0"

	// Cost
	//-------------------------------------------------------------------------------------------------------------
	"AbilityManaCost"				"0"
	
	// Special
	//-------------------------------------------------------------------------------------------------------------
	"AbilitySpecial"
	{
		"01"
		{
			"var_type"					"FIELD_FLOAT"
			"duration"					"2.5"
		}
		"02"
		{
			"var_type"					"FIELD_INTEGER"
			"movespeed"					"160"
		}
	}

	"OnSpellStart"
	{
		"FireSound"
		{
			"EffectName"	"Hero_Lion.Voodoo"
			"Target"		"TARGET"
		}

		"FireSound"
		{
			"EffectName"	"Hero_Lion.Hex.Target"
			"Target"		"TARGET"
		}

		"FireEffect"
		{
			"EffectName"	"particles/units/heroes/hero_lion/lion_spell_voodoo.vpcf"
			"EffectAttachType"	"follow_origin"
			"Target"		"TARGET"
		}

		"RunScript"
		{
			"ScriptFile"	"items/voodoo.lua"
			"Function"		"voodoo_start"
			"Target"		"TARGET"
		}
	}
	"item_puck_phase_shift_datadriven"
	{
	// General
	//-------------------------------------------------------------------------------------------------------------
	"BaseClass"				"item_datadriven"
	"id"							"4001"
	"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_NO_TARGET | DOTA_ABILITY_BEHAVIOR_DONT_RESUME_MOVEMENT | DOTA_ABILITY_BEHAVIOR_CHANNELLED | DOTA_ABILITY_BEHAVIOR_DONT_RESUME_ATTACK | DOTA_ABILITY_BEHAVIOR_ROOT_DISABLES"
	"Model"							"models/props_gameplay/branch.vmdl" 
	"AbilityTextureName"			"item_puck_phase_shift_datadriven"
	"ItemCost"						"1700"
	"ItemQuality"					"epic"
	"ItemAliases"					"Phase Shift"	

	// Casting
	//-------------------------------------------------------------------------------------------------------------
	"AbilityCastPoint"				"0"
	"AbilityChannelTime"			"2.3"

	// Time		
	//-------------------------------------------------------------------------------------------------------------
	"AbilityCooldown"				"7.0"

	// Cost
	//-------------------------------------------------------------------------------------------------------------
	"AbilityManaCost"				"0"

	// Special
	//-------------------------------------------------------------------------------------------------------------
	"AbilitySpecial"
	{
		"01"
		{
			"var_type"					"FIELD_FLOAT"
			"duration"					"2.3"
		}
	}
	
	// Data driven
	//-------------------------------------------------------------------------------------------------------------
	"precache"
	{
		"soundfile"					"soundevents/game_sounds_heroes/game_sounds_puck.vsndevts"
		"particle"					"particles/units/heroes/hero_puck/puck_phase_shift.vpcf"
	}
	
	"OnSpellStart"
	{
		"ApplyModifier"
		{
			"ModifierName"	"modifier_phase_shift_datadriven"
			"Target"		"CASTER"
		}
	}
	
	"OnChannelFinish"
	{
		"RemoveModifier"
		{
			"ModifierName"	"modifier_phase_shift_datadriven"
			"Target"		"CASTER"
		}
	}
	
	"Modifiers"
	{
		"modifier_phase_shift_datadriven"
		{
			"Duration"		"%duration"
			
			"EffectName"		"particles/units/heroes/hero_puck/puck_phase_shift.vpcf"
			"EffectAttachType"	"attach_origin"
			
			"OnCreated"
			{
				"FireSound"
				{
					"EffectName"	"Hero_Puck.Phase_Shift"
					"Target"		"TARGET"
				}
				
				"RunScript"
				{
					"ScriptFile"		"items/phase_shift.lua"
					"Function"			"HideCaster"
				}
			}
			
			"OnDestroy"
			{
				"RunScript"
				{
					"ScriptFile"	"items/phase_shift.lua"
					"Function"		"StopSound"
					"Target"		"TARGET"
					"sound_name"	"Hero_Puck.Phase_Shift"
				}
				
				"RunScript"
				{
					"ScriptFile"		"items/phase_shift.lua"
					"Function"			"ShowCaster"
				}
			}
			
			"States"
			{
			//	"MODIFIER_STATE_INVULNERABLE"			"MODIFIER_STATE_VALUE_ENABLED"	// Don't use these state for a channeling ability.
			//	"MODIFIER_STATE_OUT_OF_GAME"			"MODIFIER_STATE_VALUE_ENABLED"
			
				"MODIFIER_STATE_ATTACK_IMMUNE"			"MODIFIER_STATE_VALUE_ENABLED"
				"MODIFIER_STATE_MAGIC_IMMUNE"			"MODIFIER_STATE_VALUE_ENABLED"
				"MODIFIER_STATE_UNSELECTABLE"			"MODIFIER_STATE_VALUE_ENABLED"
				"MODIFIER_STATE_NO_HEALTH_BAR"			"MODIFIER_STATE_VALUE_ENABLED"
			}
		}
	}
	// Recipe: Force Boots
	//=================================================================================================================
	"item_recipe_force_boots"
	{
		// General
		//-------------------------------------------------------------------------------------------------------------
		"ID"							"3012"														// unique ID number for this item. Do not change this once established or it will invalidate collected stats.
		"BaseClass"						"item_recipe_arcane_boots"
		"Model"							"models/props_gameplay/recipe.mdl"
		
		// Item Info
		//-------------------------------------------------------------------------------------------------------------
		"ItemCost"						"600"	
		"ItemShopTags"					""
		
		// Recipe
		//-------------------------------------------------------------------------------------------------------------
		"ItemRecipe"					"1"
		"ItemResult"					"item_force_boots"
		"ItemRequirements"
		{
			"01"						"item_boots;"
		}
	}

	//=================================================================================================================
	// Force Boots
	//=================================================================================================================
	"item_force_boots"
	{
		// General
		//-------------------------------------------------------------------------------------------------------------
		"ID"							"3013"														// unique ID number for this item. Do not change this once established or it will invalidate collected stats.
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_IMMEDIATE | DOTA_ABILITY_BEHAVIOR_NO_TARGET"

		// Item Info
		//-------------------------------------------------------------------------------------------------------------
		"ItemCost"						"900"
		"ItemShopTags"					"attack_speed;move_speed;int;agi;str;hard_to_tag"
		"ItemQuality"					"common"
		"ItemShareability"				"ITEM_FULLY_SHAREABLE_STACKING"
		"ItemAliases"					"force boots"
		"ItemDeclarations"				"DECLARE_PURCHASES_TO_SPECTATORS"
		"ItemPurchasable"				"1"
		"AbilityTextureName"			"item_force_boots"
		"AbilityCooldown"				"8.5"
		
		// Special	
		//-------------------------------------------------------------------------------------------------------------
		"AbilitySpecial"
		{
			"01"
			{
				"var_type"				"FIELD_INTEGER"
				"bonus_movement_speed" "45"
			}
			"02"
			{
				"var_type"				"FIELD_INTEGER"
				"bonus_str"				"5"
			}
			"03"
			{
				"var_type"				"FIELD_INTEGER"
				"push_length"			"420"
			}
		}
	}
	//=================================================================================================================
	// Octarine Core 2
	//=================================================================================================================
	"item_octarine_core2"
	{
		// General
		//-------------------------------------------------------------------------------------------------------------
		"ID"							"1060"														// unique ID number for this item. Do not change this once established or it will invalidate collected stats.
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_PASSIVE"

		// Item Info
		//-------------------------------------------------------------------------------------------------------------
		"ItemCost"						"3220"
		"ItemShopTags"					"move_speed;boost_mana;mana_pool"
		"ItemQuality"					"rare"
		"ItemShareability"				"ITEM_FULLY_SHAREABLE_STACKING"
		"ItemAliases"					"mana;mb;octarine core"
		"BaseClass"						"item_octarine_core"
		"AbilityTextureName"			"item_octarine_core2"
		"ItemDeclarations"				"DECLARE_PURCHASES_TO_TEAMMATES | DECLARE_PURCHASES_TO_SPECTATORS"
		"ItemDisassembleRule"			"DOTA_ITEM_DISASSEMBLE_ALWAYS"
		
		// Special	
		//-------------------------------------------------------------------------------------------------------------
		"AbilitySpecial"
		{
			"01"
			{
				"var_type"				"FIELD_INTEGER"
				"bonus_intelligence"	"0"
			}
			"02"
			{
				"var_type"				"FIELD_INTEGER"
				"bonus_health"			"0"
			}
			"03"
			{
				"var_type"				"FIELD_INTEGER"
				"bonus_mana"			"0"
			}
			"04"
			{
				"var_type"				"FIELD_INTEGER"
				"bonus_health_regen"	"0"
			}
			"05"
			{
				"var_type"				"FIELD_INTEGER"
				"bonus_mana_regen"		"0"
			}
			"06"
			{
				"var_type"				"FIELD_INTEGER"
				"bonus_cooldown"		"90"
			}
			"07"
			{
				"var_type"				"FIELD_FLOAT"
				"hero_lifesteal"		"80"
			}			
			"08"
			{
				"var_type"				"FIELD_FLOAT"
				"creep_lifesteal"		"80"
			}	
			"09"
			{
				"var_type"				"FIELD_INTEGER"
				"active_duration"		"10"
			}
		}
	}
	"item_hccyclone"
	{
		"ID"							"4008"
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_PASSIVE"
		"BaseClass"						"item_datadriven"
		"Model"							"models/props_gameplay/recipe.mdl"
		"AbilityManaCost"				"0"
		"AbilityTextureName"			"item_hccyclone"
    	"SecretShop"  			"1"
		"SideShop"  				"1"
		"ItemCost"						"650"
		"ItemQuality"					"rare"
		"ItemDeclarations"				"DECLARE_PURCHASES_TO_SPECTATORS"
		"ItemDisassembleRule"			"0"
		"ItemAlertable"					"1"
		"AbilitySpecial"
		{
			"01"
			{
				"var_type"				"FIELD_INTEGER"
				"bonus_movement"		"5"
			}
		}
		
		"Modifiers"
		{
			"modifier_item_hccyclone"
			{
				"Passive"			"1"
				"IsHidden"			"1"
				"Attributes" 		"MODIFIER_ATTRIBUTE_MULTIPLE"
				"Properties"
				{
					"MODIFIER_PROPERTY_MOVESPEED_BONUS_UNIQUE"		"%bonus_movement"
				}
			}
		}
	}
}
 
Последнее редактирование модератором:
Re: Помогите

Всё разобрался ,вручную все переносил
 
Реклама: