jeludok
Участник форума
- Регистрация
- 23 Окт 2010
- Сообщения
- 41
- Благодарности
- 0
- Баллы
- 150
Вопрос был по первой готике. Кпримеру Огненного голема можно убить только ледяной стрелой.jeludok,
функция B_MM_AssessDamage()
убийство магического голема молотом Инноса
if(Npc_HasItems(other,Holy_Hammer_MIS) > 0)
{
MagGol = Hlp_GetNpc(MagicGolem);
Npc_GetInvItem(other,Holy_Hammer_MIS);
OthWeap = Npc_GetReadiedWeapon(other);
if((Hlp_GetInstanceID(self) == Hlp_GetInstanceID(MagGol)) && (Hlp_GetInstanceID(OthWeap) == Hlp_GetInstanceID(item)))
{
Npc_ChangeAttribute(self,ATR_HITPOINTS,-1000);
return;
};
};
Вот скрипт големоа:
prototype Mst_Default_Golem(C_Npc)
{
name[0] = "Голем";
guild = GIL_GOLEM;
level = 100;
attribute[ATR_STRENGTH] = 150;
attribute[ATR_DEXTERITY] = 150;
attribute[ATR_HITPOINTS_MAX] = 600;
attribute[ATR_HITPOINTS] = 600;
attribute[ATR_MANA_MAX] = 0;
attribute[ATR_MANA] = 0;
protection[PROT_BLUNT] = 9999;
protection[PROT_EDGE] = 9999;
protection[PROT_POINT] = 9999;
protection[PROT_FIRE] = 9999;
protection[PROT_FLY] = 9999;
protection[PROT_MAGIC] = 9999;
damagetype = DAM_FLY;
fight_tactic = FAI_GOLEM;
senses = SENSE_HEAR | SENSE_SEE | SENSE_SMELL;
senses_range = 2000;
aivar[AIV_FINDABLE] = PASSIVE;
aivar[AIV_PCISSTRONGER] = 1500;
aivar[AIV_BEENATTACKED] = 1500;
aivar[AIV_HIGHWAYMEN] = 1500;
aivar[AIV_HAS_ERPRESSED] = 0;
aivar[AIV_BEGGAR] = 5;
aivar[AIV_OBSERVEINTRUDER] = TRUE;
start_aistate = ZS_MM_AllScheduler;
aivar[AIV_HASBEENDEFEATEDINPORTALROOM] = OnlyRoutine;
};
instance FireGolem(Mst_Default_Golem)
{
name[0] = "Огненный голем";
aivar[AIV_IMPORTANT] = id_firegolem;
Set_FireGolem_Visuals();
Npc_SetToFistMode(self);
attribute[ATR_STRENGTH] = 50;
protection[PROT_MAGIC] = 0;
attribute[ATR_HITPOINTS_MAX] = 150;
attribute[ATR_HITPOINTS] = 150;
damagetype = DAM_FIRE;
CreateInvItem(self,ItAt_FireGolem_01);
};
{
name[0] = "Голем";
guild = GIL_GOLEM;
level = 100;
attribute[ATR_STRENGTH] = 150;
attribute[ATR_DEXTERITY] = 150;
attribute[ATR_HITPOINTS_MAX] = 600;
attribute[ATR_HITPOINTS] = 600;
attribute[ATR_MANA_MAX] = 0;
attribute[ATR_MANA] = 0;
protection[PROT_BLUNT] = 9999;
protection[PROT_EDGE] = 9999;
protection[PROT_POINT] = 9999;
protection[PROT_FIRE] = 9999;
protection[PROT_FLY] = 9999;
protection[PROT_MAGIC] = 9999;
damagetype = DAM_FLY;
fight_tactic = FAI_GOLEM;
senses = SENSE_HEAR | SENSE_SEE | SENSE_SMELL;
senses_range = 2000;
aivar[AIV_FINDABLE] = PASSIVE;
aivar[AIV_PCISSTRONGER] = 1500;
aivar[AIV_BEENATTACKED] = 1500;
aivar[AIV_HIGHWAYMEN] = 1500;
aivar[AIV_HAS_ERPRESSED] = 0;
aivar[AIV_BEGGAR] = 5;
aivar[AIV_OBSERVEINTRUDER] = TRUE;
start_aistate = ZS_MM_AllScheduler;
aivar[AIV_HASBEENDEFEATEDINPORTALROOM] = OnlyRoutine;
};
instance FireGolem(Mst_Default_Golem)
{
name[0] = "Огненный голем";
aivar[AIV_IMPORTANT] = id_firegolem;
Set_FireGolem_Visuals();
Npc_SetToFistMode(self);
attribute[ATR_STRENGTH] = 50;
protection[PROT_MAGIC] = 0;
attribute[ATR_HITPOINTS_MAX] = 150;
attribute[ATR_HITPOINTS] = 150;
damagetype = DAM_FIRE;
CreateInvItem(self,ItAt_FireGolem_01);
};
instance ItArRuneThunderbolt(C_Item)
{
name = NAME_Rune;
mainflag = ITEM_KAT_RUNE;
flags = 0;
value = 500;
visual = "ItAr_Rune_19.3ds";
material = MAT_STONE;
spell = SPL_THUNDERBOLT;
mag_circle = 1;
description = "Ледяная стрела";
text[0] = NAME_Mag_Circle;
count[0] = mag_circle;
text[1] = NAME_Manakosten;
count[1] = SPL_SENDCAST_THUNDERBOLT;
text[2] = NAME_Dam_Magic;
count[2] = SPL_DAMAGE_THUNDERBOLT;
text[5] = NAME_Value;
count[5] = value;
};
{
name = NAME_Rune;
mainflag = ITEM_KAT_RUNE;
flags = 0;
value = 500;
visual = "ItAr_Rune_19.3ds";
material = MAT_STONE;
spell = SPL_THUNDERBOLT;
mag_circle = 1;
description = "Ледяная стрела";
text[0] = NAME_Mag_Circle;
count[0] = mag_circle;
text[1] = NAME_Manakosten;
count[1] = SPL_SENDCAST_THUNDERBOLT;
text[2] = NAME_Dam_Magic;
count[2] = SPL_DAMAGE_THUNDERBOLT;
text[5] = NAME_Value;
count[5] = value;
};