13.01.2020, 09:20:15
Три зелья для сравнения, чтобы увидеть зачем я так сделал
1.5.1, original NC
instance ItPo_Mana_01(C_Item)
{
name = NAME_Trank;
mainflag = ITEM_KAT_POTIONS;
flags = ITEM_MULTI;
value = Value_ManaEssenz;
visual = "ItPo_Mana_01.3ds";
material = MAT_GLAS;
on_state[0] = UseItPo_Mana_01;
scemeName = "POTIONFAST";
wear = WEAR_EFFECT;
effect = "SPELLFX_MANAPOTION";
description = "Esencja many";
text[1] = NAME_Bonus_Mana;
count[1] = Mana_Essenz;
text[5] = NAME_Value;
count[5] = value;
};
func void UseItPo_Mana_01()
{
Npc_ChangeAttribute(self,ATR_MANA,Mana_Essenz);
};
instance ItPo_Mana_02(C_Item)
{
name = NAME_Trank;
mainflag = ITEM_KAT_POTIONS;
flags = ITEM_MULTI;
value = Value_ManaExtrakt;
visual = "ItPo_Mana_02.3ds";
material = MAT_GLAS;
on_state[0] = UseItPo_Mana_02;
scemeName = "POTIONFAST";
wear = WEAR_EFFECT;
effect = "SPELLFX_MANAPOTION";
description = "Ekstrakt many";
text[1] = NAME_Bonus_Mana;
count[1] = Mana_Extrakt;
text[5] = NAME_Value;
count[5] = value;
};
func void UseItPo_Mana_02()
{
Npc_ChangeAttribute(self,ATR_MANA,Mana_Extrakt);
};
instance ItPo_Mana_03(C_Item)
{
name = NAME_Trank;
mainflag = ITEM_KAT_POTIONS;
flags = ITEM_MULTI;
value = Value_ManaElixier;
visual = "ItPo_Mana_03.3ds";
material = MAT_GLAS;
on_state[0] = UseItPo_Mana_03;
scemeName = "POTIONFAST";
wear = WEAR_EFFECT;
effect = "SPELLFX_MANAPOTION";
description = "Eliksir many";
text[1] = NAME_Bonus_Mana;
count[1] = Mana_Elixier;
text[5] = NAME_Value;
count[5] = value;
};
func void UseItPo_Mana_03()
{
Npc_ChangeAttribute(self,ATR_MANA,Mana_Elixier);
};
{
name = NAME_Trank;
mainflag = ITEM_KAT_POTIONS;
flags = ITEM_MULTI;
value = Value_ManaEssenz;
visual = "ItPo_Mana_01.3ds";
material = MAT_GLAS;
on_state[0] = UseItPo_Mana_01;
scemeName = "POTIONFAST";
wear = WEAR_EFFECT;
effect = "SPELLFX_MANAPOTION";
description = "Esencja many";
text[1] = NAME_Bonus_Mana;
count[1] = Mana_Essenz;
text[5] = NAME_Value;
count[5] = value;
};
func void UseItPo_Mana_01()
{
Npc_ChangeAttribute(self,ATR_MANA,Mana_Essenz);
};
instance ItPo_Mana_02(C_Item)
{
name = NAME_Trank;
mainflag = ITEM_KAT_POTIONS;
flags = ITEM_MULTI;
value = Value_ManaExtrakt;
visual = "ItPo_Mana_02.3ds";
material = MAT_GLAS;
on_state[0] = UseItPo_Mana_02;
scemeName = "POTIONFAST";
wear = WEAR_EFFECT;
effect = "SPELLFX_MANAPOTION";
description = "Ekstrakt many";
text[1] = NAME_Bonus_Mana;
count[1] = Mana_Extrakt;
text[5] = NAME_Value;
count[5] = value;
};
func void UseItPo_Mana_02()
{
Npc_ChangeAttribute(self,ATR_MANA,Mana_Extrakt);
};
instance ItPo_Mana_03(C_Item)
{
name = NAME_Trank;
mainflag = ITEM_KAT_POTIONS;
flags = ITEM_MULTI;
value = Value_ManaElixier;
visual = "ItPo_Mana_03.3ds";
material = MAT_GLAS;
on_state[0] = UseItPo_Mana_03;
scemeName = "POTIONFAST";
wear = WEAR_EFFECT;
effect = "SPELLFX_MANAPOTION";
description = "Eliksir many";
text[1] = NAME_Bonus_Mana;
count[1] = Mana_Elixier;
text[5] = NAME_Value;
count[5] = value;
};
func void UseItPo_Mana_03()
{
Npc_ChangeAttribute(self,ATR_MANA,Mana_Elixier);
};
instance ItPo_Mana_01(C_Item)
{
name = "Esencja many";
mainflag = ITEM_KAT_POTIONS;
flags = ITEM_MULTI;
value = Value_ManaEssenz;
visual = "ItPo_Mana_01.3ds";
material = MAT_GLAS;
on_state[0] = UseItPo_Mana_01;
scemeName = "POTIONFAST";
wear = WEAR_EFFECT;
effect = "SPELLFX_MANAPOTION";
description = name;
text[1] = NAME_Bonus_Mana;
count[1] = Mana_Essenz;
text[5] = NAME_Value;
count[5] = Value_ManaEssenz;
};
func void UseItPo_Mana_01()
{
Npc_ChangeAttribute(self,ATR_MANA,Mana_Essenz);
};
instance ItPo_Mana_02(C_Item)
{
name = "Ekstrakt many";
mainflag = ITEM_KAT_POTIONS;
flags = ITEM_MULTI;
value = Value_ManaExtrakt;
visual = "ItPo_Mana_02.3ds";
material = MAT_GLAS;
on_state[0] = UseItPo_Mana_02;
scemeName = "POTIONFAST";
wear = WEAR_EFFECT;
effect = "SPELLFX_MANAPOTION";
description = name;
text[1] = NAME_Bonus_Mana;
count[1] = Mana_Extrakt;
text[5] = NAME_Value;
count[5] = Value_ManaExtrakt;
};
func void UseItPo_Mana_02()
{
Npc_ChangeAttribute(self,ATR_MANA,Mana_Extrakt);
};
instance ItPo_Mana_03(C_Item)
{
name = "Eliksir many";
mainflag = ITEM_KAT_POTIONS;
flags = ITEM_MULTI;
value = Value_ManaElixier;
visual = "ItPo_Mana_03.3ds";
material = MAT_GLAS;
on_state[0] = UseItPo_Mana_03;
scemeName = "POTIONFAST";
wear = WEAR_EFFECT;
effect = "SPELLFX_MANAPOTION";
description = name;
text[1] = NAME_Bonus_Mana;
count[1] = Mana_Elixier;
text[5] = NAME_Value;
count[5] = Value_ManaElixier;
};
func void UseItPo_Mana_03()
{
Npc_ChangeAttribute(self,ATR_MANA,Mana_Elixier);
};
{
name = "Esencja many";
mainflag = ITEM_KAT_POTIONS;
flags = ITEM_MULTI;
value = Value_ManaEssenz;
visual = "ItPo_Mana_01.3ds";
material = MAT_GLAS;
on_state[0] = UseItPo_Mana_01;
scemeName = "POTIONFAST";
wear = WEAR_EFFECT;
effect = "SPELLFX_MANAPOTION";
description = name;
text[1] = NAME_Bonus_Mana;
count[1] = Mana_Essenz;
text[5] = NAME_Value;
count[5] = Value_ManaEssenz;
};
func void UseItPo_Mana_01()
{
Npc_ChangeAttribute(self,ATR_MANA,Mana_Essenz);
};
instance ItPo_Mana_02(C_Item)
{
name = "Ekstrakt many";
mainflag = ITEM_KAT_POTIONS;
flags = ITEM_MULTI;
value = Value_ManaExtrakt;
visual = "ItPo_Mana_02.3ds";
material = MAT_GLAS;
on_state[0] = UseItPo_Mana_02;
scemeName = "POTIONFAST";
wear = WEAR_EFFECT;
effect = "SPELLFX_MANAPOTION";
description = name;
text[1] = NAME_Bonus_Mana;
count[1] = Mana_Extrakt;
text[5] = NAME_Value;
count[5] = Value_ManaExtrakt;
};
func void UseItPo_Mana_02()
{
Npc_ChangeAttribute(self,ATR_MANA,Mana_Extrakt);
};
instance ItPo_Mana_03(C_Item)
{
name = "Eliksir many";
mainflag = ITEM_KAT_POTIONS;
flags = ITEM_MULTI;
value = Value_ManaElixier;
visual = "ItPo_Mana_03.3ds";
material = MAT_GLAS;
on_state[0] = UseItPo_Mana_03;
scemeName = "POTIONFAST";
wear = WEAR_EFFECT;
effect = "SPELLFX_MANAPOTION";
description = name;
text[1] = NAME_Bonus_Mana;
count[1] = Mana_Elixier;
text[5] = NAME_Value;
count[5] = Value_ManaElixier;
};
func void UseItPo_Mana_03()
{
Npc_ChangeAttribute(self,ATR_MANA,Mana_Elixier);
};