O temacie
Autor Kempix
Zaczęty 31.01.2017 roku
Wyświetleń 3386
Odpowiedzi 7
Kempix
Halicor
http://themodders.org/index.php?topic=14783.0
Bogdan Zwei
// ************// SPL_BlueFlame// ************const int SPL_Cost_BlueFlame = 5;const int SPL_Damage_BlueFlame = 25;INSTANCE Spell_BlueFlame (C_Spell_Proto){ time_per_mana = 0; damage_per_level = SPL_Damage_BlueFlame; damageType = DAM_MAGIC;};func int Spell_Logic_BlueFlame (var int manaInvested){ if (Npc_GetActiveSpellIsScroll(self) && (self.attribute[ATR_MANA] >= SPL_Cost_Scroll)) { return SPL_SENDCAST; } else if (self.attribute[ATR_MANA] >= SPL_Cost_BlueFlame) { return SPL_SENDCAST; } else //nicht genug Mana { return SPL_SENDSTOP; };};func void Spell_Cast_BlueFlame(){ if (Npc_GetActiveSpellIsScroll(self)) { self.attribute[ATR_MANA] = self.attribute[ATR_MANA] - SPL_Cost_Scroll; } else { self.attribute[ATR_MANA] = self.attribute[ATR_MANA] - SPL_Cost_BlueFlame; }; self.aivar[AIV_SelectSpell] += 1;};
if (activeSpell == SPL_BlueFlame ) { return Spell_Logic_BlueFlame (manaInvested); };
"WND", // 90 SPL_BlueFlame
"nowyczar1", // 90 SPL_BlueFlame
INSTANCE spell1 (C_Item){ name = NAME_Rune; mainflag = ITEM_KAT_RUNE; flags = 0; value = 1000; visual = "ItRu_Pyrokinesis.3ds"; material = MAT_STONE; spell = SPL_BlueFlame; mag_circle = 1; wear = WEAR_EFFECT; effect = "SPELLFX_WEAKGLIMMER_YELLOW"; description = NAME_SPL_BlueFlame; TEXT [0] = NAME_Mag_Circle; COUNT [0] = mag_circle; TEXT [5] = NAME_Value; COUNT [5] = value;};[/cod
"FBT", // 90 SPL_BlueFlame
"InstantFireball", // 90 SPL_BlueFlame
Siemekk Złote Wrota