void EffectAnnounce(object oPlayer) { object oPC = oPlayer; int nInt; if(GetSubRace(oPC) == "Night Elf" && GetRacialType(oPC) == RACIAL_TYPE_ELF) { if(GetHitDice(oPC) == 4)//gets it at 4th level { //AC +2 SendMessageToPC(oPC,"AC increased +2"); //Movement speed up 120% nInt=GetLocalInt(oPC, "ms_nightelf"); if (nInt!=1) { SetLocalInt(oPC, "ms_nightelf", 1); SendMessageToPC(oPC,"Movement speed increased by 120%"); } } if(GetHitDice(oPC) == 8)//gets it at 8th level { //Attack Increase +3 SendMessageToPC(oPC,"Attack increased +3"); //Damage increase +2 SendMessageToPC(oPC,"Negative Damage increased +2"); FloatingTextStringOnCreature("Your talisman gains power", oPC); SendMessageToPC(oPC,"New Talisman power: slowdown"); } if(GetHitDice(oPC) == 10)//gets it at 10th level { // Immunity cursed SendMessageToPC(oPC,"Gained immunity to curse"); } if(GetHitDice(oPC) == 6)//gets it at 6th level { // Saving Throw SendMessageToPC(oPC,"Reflex saving throws & saving throws vs evil increased +2"); } if(GetHitDice(oPC) == 12)//gets it at 12th level { //Skill Increase SendMessageToPC(oPC,"Skill increased: Listen +10"); SendMessageToPC(oPC,"Skill increased: Move Silently +10"); } if(GetHitDice(oPC) == 16)//gets it at 4th level { //Immune to Doom SendMessageToPC(oPC,"Gained immunity to spell: Doom"); FloatingTextStringOnCreature("Your talisman gains power", oPC); SendMessageToPC(oPC,"New Talisman power: implosion"); } if(GetHitDice(oPC) == 4)//gets it at 4th level { //Ultravision SendMessageToPC(oPC,"Gained Ultravision"); //change "resref" to the resref of the item //add this items tag to the following scripts: "subraces_items" } } if(GetSubRace(oPC) == "Drow" && GetRacialType(oPC) == RACIAL_TYPE_ELF) { SendMessageToPC(oPlayer,"Spell Resistance increased"); if(GetHitDice(oPC) == 4)//gets it at 4th level { //AC +2 SendMessageToPC(oPC,"AC increased +2"); } if(GetHitDice(oPC) == 8)//gets it at 8th level { //Attack Increase +2 SendMessageToPC(oPC,"Attack increased +2"); FloatingTextStringOnCreature("Your talisman gains power", oPC); SendMessageToPC(oPC,"New Talisman power: negative energy burst"); } if(GetHitDice(oPC) == 10)//gets it at 10th level { //Damage Immunity +20% Magic SendMessageToPC(oPC,"Gained 20% immunity to magic damage"); //Immunity Blindness SendMessageToPC(oPC,"Gained immunity to blindness"); } if(GetHitDice(oPC) == 6)//gets it at 6th level { //Saving throw increase +1 all SendMessageToPC(oPC,"Will saving throws & saving throws vs death increased +1"); } if(GetHitDice(oPC) > 11)//gets it at 4th level { //Skill Increase SendMessageToPC(oPC,"Skill increased: Discipline +5"); SendMessageToPC(oPC,"Skill increased: Concentration +5"); } if(GetHitDice(oPC) == 16)//gets it at 4th level { // Spell Immunity Darkness SendMessageToPC(oPC,"Gained immunity to spell: Darkness"); //True Seeing SendMessageToPC(oPC,"Gained True Seeing"); FloatingTextStringOnCreature("Your talisman gains power", oPC); SendMessageToPC(oPC,"New Talisman power: improved circle of doom"); } //Spell Resistance 24 } if(GetSubRace(oPC) == "Wood Elf" && GetRacialType(oPC) == RACIAL_TYPE_HALFELF) { if(GetHitDice(oPC) == 8)//gets it at 4th level { //Attack Increase +2 SendMessageToPC(oPC,"AC increased +2"); } if(GetHitDice(oPC) == 10)//gets it at 4th level { //Concealment percentage 20% SendMessageToPC(oPC,"Gained 20% concealment"); //Damage Immunity +50% SendMessageToPC(oPC,"Gained 50% immunity to positive damage"); //Immunity Paraysis SendMessageToPC(oPC,"Gained immunity to paralysis"); FloatingTextStringOnCreature("Your talisman gains powers", oPC); SendMessageToPC(oPC,"New Talisman power: improved invisibility"); SendMessageToPC(oPC,"New Talisman power: haste"); } if(GetHitDice(oPC) == 4)//gets it at 4th level { //Movement speed up 140% nInt=GetLocalInt(oPC, "ms_woodelf"); if (nInt!=1) { SetLocalInt(oPC, "ms_woodelf", 1); SendMessageToPC(oPC,"Movement speed increased by 120%"); } } if(GetHitDice(oPC) == 6)//gets it at 6th level { //Saving throw increase Fort +2 SendMessageToPC(oPC,"Fort saving throws increased +2"); } if(GetHitDice(oPC) == 12)//gets it at 12th level { //Skill Increase Empathy SendMessageToPC(oPC,"Skill increased: Aminal Empathy +10"); SendMessageToPC(oPC,"Skill increased: Move Silently +5"); } if(GetHitDice(oPC) == 16)//gets it at 17th level { //Spell Immunity, web SendMessageToPC(oPC,"Gained immunity to spell: Web"); FloatingTextStringOnCreature("Your talisman gains powers", oPC); SendMessageToPC(oPC,"New Talisman power: earthquake"); } } if(GetSubRace(oPC) == "Duergar" && GetRacialType(oPC) == RACIAL_TYPE_DWARF) { SendMessageToPC(oPlayer,"Spell Resistance increased"); if(GetHitDice(oPC) == 4)//gets it at 4th level { //AC +2 SendMessageToPC(oPC,"AC increased +2"); } if(GetHitDice(oPC) == 8)//gets it at 4th level { //Attack Increase +2 SendMessageToPC(oPC,"Attack increased +2"); } if(GetHitDice(oPC) == 10)//gets it at 4th level { //Damage Immunity Bludgeoning +20% SendMessageToPC(oPC,"Gained 20% immunity to bludgeon damage"); //Immunity SendMessageToPC(oPC,"Gained immunity to poison"); SendMessageToPC(oPC,"Gained immunity to disease"); FloatingTextStringOnCreature("Your talisman gains power", oPC); SendMessageToPC(oPC,"New Talisman power: aura of vitality"); } if(GetHitDice(oPC) == 6)//gets it at 4th level { //Saving throw increase +1 all SendMessageToPC(oPC,"Will saving throws saving throws vs death increased +2"); SendMessageToPC(oPC,"Fort saving saving throws increased +4"); } if(GetHitDice(oPC) == 12)//gets it at 4th level { //Skill Increase Taunt & Parry +5 SendMessageToPC(oPC,"Skill increased: Parry +5"); SendMessageToPC(oPC,"Skill increased: Taunt +5"); } if(GetHitDice(oPC) == 16)//gets it at 4th level { //True Seeing SendMessageToPC(oPC,"Gained True Seeing"); FloatingTextStringOnCreature("Your talisman gains power", oPC); SendMessageToPC(oPC,"New Talisman power: greater restoration"); } //Spell Resistance 20 //Give Subrace Item } if(GetSubRace(oPC) == "Silver Dwarf" && GetRacialType(oPC) == RACIAL_TYPE_DWARF) { SendMessageToPC(oPlayer,"Spell Resistance increased"); if(GetHitDice(oPC) == 4)//gets it at 4th level { //AC +2 SendMessageToPC(oPC,"AC increased +2"); //Movement speed up 60% nInt=GetLocalInt(oPC, "ms_silverdwarf"); if (nInt!=1) { SetLocalInt(oPC, "ms_sliverdwarf", 1); SendMessageToPC(oPC,"Movement speed increased by 120%"); } } if(GetHitDice(oPC) == 8)//gets it at 4th level { FloatingTextStringOnCreature("Your talisman gains power", oPC); SendMessageToPC(oPC,"New Talisman power: ghostly visage"); SendMessageToPC(oPC,"New Talisman power: invisibility"); } if(GetHitDice(oPC) == 10)//gets it at 4th level { //Concealment percentage 30% SendMessageToPC(oPC,"Gained 30% concealment"); //Immunity SendMessageToPC(oPC,"Gained immunity to Daze"); SendMessageToPC(oPC,"Gained immunity to Stun"); SendMessageToPC(oPC,"Gained immunity to Poison"); } if(GetHitDice(oPC) == 6)//gets it at 4th level { //Saving throw increase +5 fort SendMessageToPC(oPC,"Fort saving throws increased +5"); } if(GetHitDice(oPC) == 12)//gets it at 4th level { //Skill Increase SendMessageToPC(oPC,"Skill increased: Discipline +5"); SendMessageToPC(oPC,"Skill increased: Spot +5"); } if(GetHitDice(oPC) == 16)//gets it at 4th level { //True Seeing SendMessageToPC(oPC,"Gained True Seeing"); FloatingTextStringOnCreature("Your talisman gains power", oPC); SendMessageToPC(oPC,"New Talisman power: shadow shield"); } //Spell Resistance 16 //Give Subrace Item } if(GetSubRace(oPC) == "Dragoon" && GetRacialType(oPC) == RACIAL_TYPE_HUMAN) { SendMessageToPC(oPlayer,"Spell Resistance increased"); if(GetHitDice(oPC) == 4)//gets it at 4th level { //AC +2 SendMessageToPC(oPC,"AC increased +2"); //Movement speed Increase 30% nInt=GetLocalInt(oPC, "ms_dragoon"); if (nInt!=1) { SetLocalInt(oPC, "ms_dragoon", 1); SendMessageToPC(oPC,"Movement speed increased by 110%"); } FloatingTextStringOnCreature("Your talisman gains power", oPC); SendMessageToPC(oPC,"New Talisman power: breath of fire"); } if(GetHitDice(oPC) == 10)//gets it at 4th level { //Damage Immunity Fire 100% SendMessageToPC(oPC,"Gained 100% immunity to fire damage"); //Immunity SendMessageToPC(oPC,"Gained immunity to Fear"); SendMessageToPC(oPC,"Gained immunity to Paralysis"); } if(GetHitDice(oPC) == 8)//gets it at 4th level { //Attack Increase +4 SendMessageToPC(oPC,"Attack increased +4"); //Damage increase fire +1 SendMessageToPC(oPC,"Fire Damage increased +2"); } if(GetHitDice(oPC) == 6)//gets it at 4th level { //Saving throw increase +1 all SendMessageToPC(oPC,"Saving throws vs mind spells increased +1"); FloatingTextStringOnCreature("Your talisman gains power", oPC); SendMessageToPC(oPC,"New Talisman power: breath of cold"); } if(GetHitDice(oPC) == 12)//gets it at 4th level { //Skill Increase SendMessageToPC(oPC,"Skill increased: Discipline +10"); SendMessageToPC(oPC,"Skill increased: Concentration +5"); FloatingTextStringOnCreature("Your talisman gains powers", oPC); SendMessageToPC(oPC,"New Talisman power: breath of slowdown"); SendMessageToPC(oPC,"New Talisman power: breath of paralysis"); } if(GetHitDice(oPC) == 16)//gets it at 4th level { //Spell immunity SendMessageToPC(oPC,"Gained immunity to spell: Storm of Vengeance"); //True Seeing SendMessageToPC(oPC,"Gained True Seeing"); FloatingTextStringOnCreature("Your talisman gains power", oPC); SendMessageToPC(oPC,"New Talisman power: summon red dragon"); } //Spell Resistance 12 //Give Subrace Item } if(GetSubRace(oPC) == "Horodrim" && GetRacialType(oPC) == RACIAL_TYPE_HUMAN) { SendMessageToPC(oPlayer,"Magic Damage increased"); SendMessageToPC(oPlayer,"Spell Resistance increased"); if(GetHitDice(oPC) == 4)//gets it at 4th level { //AC +6 SendMessageToPC(oPC,"AC increased +4"); //Movement speed up 100% nInt=GetLocalInt(oPC, "ms_horodrim"); if (nInt!=1) { SetLocalInt(oPC, "ms_horodrim", 1); SendMessageToPC(oPC,"Movement speed increased by 150%"); } } // Magical Damage gets +1 per level up to a Max of +20 if(GetHitDice(oPC) == 10)//gets it at 4th level { //Immunity spell Res Decrease SendMessageToPC(oPC,"Gained immunity to spell type: Spell resistance decrease"); } if(GetHitDice(oPC) == 6)//gets it at 4th level { //Saving throw increase +3 mind SendMessageToPC(oPC,"Will saving throws & saving throws vs mind spells increased +3"); } if(GetHitDice(oPC) == 12)//gets it at 4th level { //Skill Increase SendMessageToPC(oPC,"Skill increased: Concentration +10"); SendMessageToPC(oPC,"Skill increased: Spellcraft +10"); SendMessageToPC(oPC,"Skill increased: Use Magic Device +10"); FloatingTextStringOnCreature("Your talisman gains powers", oPC); SendMessageToPC(oPC,"New Talisman power: greater dispel"); SendMessageToPC(oPC,"New Talisman power: premonition"); } if(GetHitDice(oPC) == 16)//gets it at 4th level { //Spell Immunity, specific spell SendMessageToPC(oPC,"Gained immunity to spell: Lesser Dispel"); SendMessageToPC(oPC,"Gained immunity to spell: Dispel Magic"); SendMessageToPC(oPC,"Gained immunity to spell: Greater Dispelling"); SendMessageToPC(oPC,"Gained immunity to spell: Lesser Spell Breach"); SendMessageToPC(oPC,"Gained immunity to spell: Greater Spell Breach"); SendMessageToPC(oPC,"Gained immunity to spell: Mordenkainen's Disjunction"); //True Seeing SendMessageToPC(oPC,"Gained True Seeing"); FloatingTextStringOnCreature("Your talisman gains power", oPC); SendMessageToPC(oPC,"New Talisman power: mummy dust"); } //Spell Resistance 36 //Give Subrace Item } if(GetSubRace(oPC) == "Succubus" && GetRacialType(oPC) == RACIAL_TYPE_HUMAN) { SendMessageToPC(oPlayer,"Cold Damage increased"); SendMessageToPC(oPlayer,"Spell Resistance increased"); if(GetHitDice(oPC) == 4)//gets it at 4th level { //AC +6 SendMessageToPC(oPC,"AC increased +4"); //Movement speed up 100% nInt=GetLocalInt(oPC, "ms_horodrim"); if (nInt!=1) { SetLocalInt(oPC, "ms_horodrim", 1); SendMessageToPC(oPC,"Movement speed increased by 150%"); } } // Magical Damage gets +1 per level up to a Max of +20 if(GetHitDice(oPC) == 8)//gets it at 4th level { FloatingTextStringOnCreature("Your talisman gains power", oPC); SendMessageToPC(oPC,"New Talisman power: flame lash"); } if(GetHitDice(oPC) == 10)//gets it at 4th level { //Immunity spell Res Decrease SendMessageToPC(oPC,"Gained immunity to spell type: Spell resistance decrease"); } if(GetHitDice(oPC) == 6)//gets it at 4th level { //Saving throw increase +3 mind SendMessageToPC(oPC,"Will saving throws & saving throws vs mind spells increased +3"); } if(GetHitDice(oPC) == 12)//gets it at 4th level { //Skill Increase SendMessageToPC(oPC,"Skill increased: Concentration +10"); SendMessageToPC(oPC,"Skill increased: Spellcraft +10"); SendMessageToPC(oPC,"Skill increased: Use Magic Device +10"); SendMessageToPC(oPC,"Skill increased: Persuasion +10"); } if(GetHitDice(oPC) == 16)//gets it at 4th level { //Spell Immunity, specific spell SendMessageToPC(oPC,"Gained immunity to spell: Lesser Dispel"); SendMessageToPC(oPC,"Gained immunity to spell: Dispel Magic"); SendMessageToPC(oPC,"Gained immunity to spell: Greater Dispelling"); SendMessageToPC(oPC,"Gained immunity to spell: Lesser Spell Breach"); SendMessageToPC(oPC,"Gained immunity to spell: Greater Spell Breach"); SendMessageToPC(oPC,"Gained immunity to spell: Mordenkainen's Disjunction"); //True Seeing SendMessageToPC(oPC,"Gained True Seeing"); FloatingTextStringOnCreature("Your talisman gains power", oPC); SendMessageToPC(oPC,"New Talisman power: dominate monster"); } //Spell Resistance 36 //Give Subrace Item } if(GetSubRace(oPC) == "Pixie" && GetRacialType(oPC) == RACIAL_TYPE_GNOME) { SendMessageToPC(oPlayer,"Spell Resistance increased"); if(GetHitDice(oPC) == 4)//gets it at 4th level { //AC +6 SendMessageToPC(oPC,"AC increased +4"); //Haste SendMessageToPC(oPC,"Gained Haste"); } if(GetHitDice(oPC) == 10)//gets it at 4th level { //Concealment percentage 20% SendMessageToPC(oPC,"Gained 50% concealment"); //Immunity SendMessageToPC(oPC,"Gained immunity to spell type: Spell resistance decrease"); //Miss chance 10% SendMessageToPC(oPC,"Gained supernatural evasion: 10% chance to evade"); } if(GetHitDice(oPC) == 6)//gets it at 4th level { //Saving throw increase +2 all SendMessageToPC(oPC,"Universal saving throws increased +2"); } if(GetHitDice(oPC) == 12)//gets it at 4th level { //Skill Increase SendMessageToPC(oPC,"Skill increased: Animal Empathy +10"); SendMessageToPC(oPC,"Skill increased: Move Silently +10"); SendMessageToPC(oPC,"Skill increased: Hide +10"); SendMessageToPC(oPC,"Skill increased: Use Magic Device +10"); } if(GetHitDice(oPC) == 8)//gets it at 4th level { FloatingTextStringOnCreature("Your talisman gains power", oPC); SendMessageToPC(oPC,"New Talisman power: improved invisibility"); } if(GetHitDice(oPC) == 16)//gets it at 4th level { //Ultravision SendMessageToPC(oPC,"Ultravision"); FloatingTextStringOnCreature("Your talisman gains power", oPC); SendMessageToPC(oPC,"New Talisman power: mass heal"); } //Spell Resistance 36 } if(GetSubRace(oPC) == "Demon" && GetRacialType(oPC) == RACIAL_TYPE_HALFORC) { if(GetHitDice(oPC) == 4)//gets it at 4th level { //AC +3 SendMessageToPC(oPC,"AC increased +3"); } if(GetHitDice(oPC) == 8)//gets it at 4th level { //Attack Increase +4 SendMessageToPC(oPC,"Attack increased +4"); //Damage increase +4 SendMessageToPC(oPC,"Acid Damage increased +4"); FloatingTextStringOnCreature("Your talisman gains powers", oPC); SendMessageToPC(oPC,"New Talisman power: breath of fear"); SendMessageToPC(oPC,"New Talisman power: breath of fire"); } if(GetHitDice(oPC) == 10)//gets it at 4th level { //Damage Immunity +100% fire, acid SendMessageToPC(oPC,"Gained 100% immunity to fire damage"); SendMessageToPC(oPC,"Gained 100% immunity to acid damage"); //Immunity SendMessageToPC(oPC,"Gained immunity to charm"); SendMessageToPC(oPC,"Gained immunity to disease"); SendMessageToPC(oPC,"Gained immunity to death"); } if(GetHitDice(oPC) == 16)//gets it at 4th level { //Regeneration 1 damage every 6.0 seconds SendMessageToPC(oPC,"Gained regeneration +1"); FloatingTextStringOnCreature("Your talisman gains power", oPC); SendMessageToPC(oPC,"New Talisman power: timestop"); } if(GetHitDice(oPC) == 16)//gets it at 4th level { //Bonus Skill SendMessageToPC(oPC,"Skill increased: Taunt +15"); } } if(GetSubRace(oPC) == "Morphlord" && GetRacialType(oPC) == RACIAL_TYPE_GNOME) { SendMessageToPC(oPlayer,"Spell Resistance increased"); if(GetHitDice(oPC) == 4)//gets it at 4th level { //AC +3 SendMessageToPC(oPC,"AC increased +3"); //Movement speed up 130% nInt=GetLocalInt(oPC, "ms_morphlord"); if (nInt!=1) { SetLocalInt(oPC, "ms_morphlord", 1); SendMessageToPC(oPC,"Movement speed increased by 130%"); } } if(GetHitDice(oPC) == 8)//gets it at 4th level { //Damage Increase +3 SendMessageToPC(oPC,"Electrical Damage increased +3"); FloatingTextStringOnCreature("Your talisman gains power", oPC); SendMessageToPC(oPC,"New Talisman power: call lightening"); } if(GetHitDice(oPC) == 10)//gets it at 4th level { //Immunity Paralysis SendMessageToPC(oPC,"Gained immunity to paralysis"); } if(GetHitDice(oPC) == 6)//gets it at 4th level { //Saving throw increase +2 all SendMessageToPC(oPC,"Fort saving throws & saving throws vs mind spells increased +1"); } if(GetHitDice(oPC) == 12)//gets it at 4th level { //Skill Increase SendMessageToPC(oPC,"Skill increased: Animal Empathy +10"); SendMessageToPC(oPC,"Skill increased: Concentration +10"); SendMessageToPC(oPC,"Skill increased: Spellcraft +10"); SendMessageToPC(oPC,"Skill increased: Use Magic Device +10"); } if(GetHitDice(oPC) == 16)//gets it at 4th level { FloatingTextStringOnCreature("Your talisman gains power", oPC); SendMessageToPC(oPC,"New Talisman power: shapechange"); } //Spell Resistance 18 } } //void main () {}