O temacie
Autor starcd78
Zaczęty 30.11.2014 roku
Wyświetleń 2732
Odpowiedzi 5
starcd78
if (Hlp_GetInstanceID(slf) == Hlp_GetInstanceID(instancemojegoNPCA)) { if (Npc_HasItems (slf, ItRu_BeliarsRage) == 0) { CreateInvItems (slf, ItRu_BeliarsRage, 1); }; if (Npc_HasItems (slf, ItRu_FullHeal) == 0) { CreateInvItems (slf, ItRu_FullHeal, 1); }; if (Npc_HasItems (slf, ItRu_IceCube) == 0) { CreateInvItems (slf, ItRu_IceCube, 1); }; if (Npc_HasItems (slf, ItRu_SummonZombie) == 0) { CreateInvItems (slf, ItRu_SummonZombie, 1); }; if (self.attribute[ATR_HITPOINTS] < 900) { B_ReadySpell (slf, SPL_SummonZombie, SPL_Cost_SummonZombie); return TRUE; } if (Npc_IsInState (oth, ZS_MagicFreeze)) { B_ReadySpell (slf, SPL_EnergyBall, SPL_Cost_EnergyBall); return TRUE; } else { B_ReadySpell (slf, SPL_IceCube, SPL_Cost_IceCube); return TRUE; }; };
bgb
carelion RaveN Studio
Co do 2. to co zrobić, aby NPC używał danego czary tylko raz?