Initial Commit

Initial Commit
This commit is contained in:
Jaysyn904
2025-04-03 11:24:16 -04:00
parent 3ba3cf1b81
commit 5e558169a0
6086 changed files with 1502996 additions and 1 deletions

103
_removed/clone_sys.nss Normal file
View File

@@ -0,0 +1,103 @@
#include "clone_lib"
void main()
{
if(GetLocalInt(OBJECT_SELF,"PC_CLONE_SYSTEM"))
{
if(!GetIsDead(OBJECT_SELF) && GetLocalInt(OBJECT_SELF,"PC_CLONE_SYSTEM_DeathRun"))
{
SetLocalInt(OBJECT_SELF,"PC_CLONE_SYSTEM_DeathRun",FALSE);
}
struct perceivedEvent lastPerceptionEvent = GetLastPerceivedEvent();
struct perceivedEvent perceptionEvent = PerceivedEvent();
if( perceptionEvent.isValid &&
(!lastPerceptionEvent.isValid || (lastPerceptionEvent != perceptionEvent) ) )
{
SetLastPerceivedEvent(perceptionEvent);
ExecuteScript("custom_percep",OBJECT_SELF);
}
if(GetLastSpell() >= 0)
{
ExecuteScript("custom_spellcast",OBJECT_SELF);
SignalEvent(OBJECT_SELF,EventSpellCastAt(OBJECT_SELF,-1,FALSE));
}
if(GetUserDefinedEventNumber() >= 0)
{
ExecuteScript("custom_userdef",OBJECT_SELF);
SignalEvent(OBJECT_SELF,EventUserDefined(-1));
}
struct attackedEvent lastattackedEvent = GetLastAttackedEvent();
struct attackedEvent attackedEvent = AttackedEvent();
if( attackedEvent.isValid &&
(!lastattackedEvent.isValid || (lastattackedEvent != attackedEvent) ) )
{
SetLastAttackedEvent(attackedEvent);
ExecuteScript("custom_physicald",OBJECT_SELF);
}
struct disturbedEvent lastDisturbedEvent = GetLastDisturbedEvent();
struct disturbedEvent disturbedEvent = DisturbedEvent();
if( disturbedEvent.isValid &&
(!lastDisturbedEvent.isValid || (lastDisturbedEvent != disturbedEvent) ) )
{
SetLastDisturbedEvent(disturbedEvent);
ExecuteScript("custom_disturbed",OBJECT_SELF);
}
struct damagedEvent lastDamagegEvent = GetLastDamagedEvent();
struct damagedEvent damagegEvent = DamagedEvent();
if( damagegEvent.isValid &&
(!lastDamagegEvent.isValid || (lastDamagegEvent != damagegEvent) ) )
{
SetLastDamagedEvent(damagegEvent);
ExecuteScript("custom_damage",OBJECT_SELF);
}
struct blockedEvent blockedEvent = BlockedEvent();
struct blockedEvent lastBlockedEvent = GetLastBlockedEvent();
if( blockedEvent.isValid &&
(!lastBlockedEvent.isValid || (lastBlockedEvent != blockedEvent) ) )
{
SetLastBlockedEvent(blockedEvent);
ExecuteScript("custom_blocked",OBJECT_SELF);
}
if(GetIsDead(OBJECT_SELF) && !GetLocalInt(OBJECT_SELF,"PC_CLONE_SYSTEM_DeathRun"))
{
SetLocalInt(OBJECT_SELF,"PC_CLONE_SYSTEM_DeathRun",TRUE);
ExecuteScript("custom_death",OBJECT_SELF);
}
}
}

103
_removed/default.nss Normal file
View File

@@ -0,0 +1,103 @@
#include "clone_lib"
void main()
{
if(GetLocalInt(OBJECT_SELF,"PC_CLONE_SYSTEM"))
{
if(!GetIsDead(OBJECT_SELF) && GetLocalInt(OBJECT_SELF,"PC_CLONE_SYSTEM_DeathRun"))
{
SetLocalInt(OBJECT_SELF,"PC_CLONE_SYSTEM_DeathRun",FALSE);
}
struct perceivedEvent lastPerceptionEvent = GetLastPerceivedEvent();
struct perceivedEvent perceptionEvent = PerceivedEvent();
if( perceptionEvent.isValid &&
(!lastPerceptionEvent.isValid || (lastPerceptionEvent != perceptionEvent) ) )
{
SetLastPerceivedEvent(perceptionEvent);
ExecuteScript("custom_percep",OBJECT_SELF);
}
if(GetLastSpell() >= 0)
{
ExecuteScript("custom_spellcast",OBJECT_SELF);
SignalEvent(OBJECT_SELF,EventSpellCastAt(OBJECT_SELF,-1,FALSE));
}
if(GetUserDefinedEventNumber() >= 0)
{
ExecuteScript("custom_userdef",OBJECT_SELF);
SignalEvent(OBJECT_SELF,EventUserDefined(-1));
}
struct attackedEvent lastattackedEvent = GetLastAttackedEvent();
struct attackedEvent attackedEvent = AttackedEvent();
if( attackedEvent.isValid &&
(!lastattackedEvent.isValid || (lastattackedEvent != attackedEvent) ) )
{
SetLastAttackedEvent(attackedEvent);
ExecuteScript("custom_physicald",OBJECT_SELF);
}
struct disturbedEvent lastDisturbedEvent = GetLastDisturbedEvent();
struct disturbedEvent disturbedEvent = DisturbedEvent();
if( disturbedEvent.isValid &&
(!lastDisturbedEvent.isValid || (lastDisturbedEvent != disturbedEvent) ) )
{
SetLastDisturbedEvent(disturbedEvent);
ExecuteScript("custom_disturbed",OBJECT_SELF);
}
struct damagedEvent lastDamagegEvent = GetLastDamagedEvent();
struct damagedEvent damagegEvent = DamagedEvent();
if( damagegEvent.isValid &&
(!lastDamagegEvent.isValid || (lastDamagegEvent != damagegEvent) ) )
{
SetLastDamagedEvent(damagegEvent);
ExecuteScript("custom_damage",OBJECT_SELF);
}
struct blockedEvent blockedEvent = BlockedEvent();
struct blockedEvent lastBlockedEvent = GetLastBlockedEvent();
if( blockedEvent.isValid &&
(!lastBlockedEvent.isValid || (lastBlockedEvent != blockedEvent) ) )
{
SetLastBlockedEvent(blockedEvent);
ExecuteScript("custom_blocked",OBJECT_SELF);
}
if(GetIsDead(OBJECT_SELF) && !GetLocalInt(OBJECT_SELF,"PC_CLONE_SYSTEM_DeathRun"))
{
SetLocalInt(OBJECT_SELF,"PC_CLONE_SYSTEM_DeathRun",TRUE);
ExecuteScript("custom_death",OBJECT_SELF);
}
}
}

626
_removed/level_include.nss Normal file
View File

@@ -0,0 +1,626 @@
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 () {}

View File

@@ -0,0 +1,28 @@
////////////////////////////////////////////////////////////
// OnConversation
// g_ConversationDG.nss
// Copyright (c) 2001 Bioware Corp.
////////////////////////////////////////////////////////////
// Created By: Noel Borstad
// Created On: 04/25/02001
// Description: This is the default script that is called if
// no OnConversation script is specified.
////////////////////////////////////////////////////////////
#include "custom_set_lib"
#include "inc_eventhook"
void main()
{
ExecuteAllScriptsHookedToEvent(OBJECT_SELF, EVENT_VIRTUAL_ONCONVERSATION);
if(!GetLocalInt(OBJECT_SELF,"PC_CLONE_SYSTEM"))
{
if ( GetListenPatternNumber() == -1 )
{
BeginConversation();
}
}
else
{
ExecuteScript("custom_conv",OBJECT_SELF);
}
}

5903
_removed/nw_i0_generic.nss Normal file

File diff suppressed because it is too large Load Diff

1464
_removed/nw_i0_plot.nss Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,62 @@
//::///////////////////////////////////////////////
//:: Balor On Death
//:: NW_S3_BALORDETH
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
Fireball explosion does 50 damage to all within
20ft
*/
//:://////////////////////////////////////////////
//:: Created By: Preston Watamaniuk
//:: Created On: Jan 9, 2002
//:://////////////////////////////////////////////
#include "NW_I0_SPELLS"
void main()
{
//Declare major variables
object oCaster = OBJECT_SELF;
int nMetaMagic = GetMetaMagicFeat();
int nDamage;
float fDelay;
effect eExplode = EffectVisualEffect(VFX_FNF_FIREBALL);
effect eVis = EffectVisualEffect(VFX_IMP_FLAME_M);
effect eDam;
//Get the spell target location as opposed to the spell target.
location lTarget = GetLocation(OBJECT_SELF);
//Limit Caster level for the purposes of damage
//Apply the fireball explosion at the location captured above.
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eExplode, lTarget);
//Declare the spell shape, size and the location. Capture the first target object in the shape.
object oTarget = GetFirstObjectInShape(SHAPE_SPHERE, RADIUS_SIZE_HUGE, lTarget, TRUE, OBJECT_TYPE_CREATURE | OBJECT_TYPE_DOOR);
//Cycle through the targets within the spell shape until an invalid object is captured.
while (GetIsObjectValid(oTarget))
{
//Fire cast spell at event for the specified target
SignalEvent(oTarget, EventSpellCastAt(OBJECT_SELF, SPELL_FIREBALL));
//Get the distance between the explosion and the target to calculate delay
fDelay = GetDistanceBetweenLocations(lTarget, GetLocation(oTarget))/20;
if (!MyResistSpell(OBJECT_SELF, oTarget, fDelay))
{
//Adjust the damage based on the Reflex Save, Evasion and Improved Evasion.
nDamage = GetReflexAdjustedDamage(50, oTarget, GetSpellSaveDC(), SAVING_THROW_TYPE_FIRE);
//Set the damage effect
eDam = EffectDamage(nDamage, DAMAGE_TYPE_FIRE);
if(nDamage > 0)
{
// Apply effects to the currently selected target.
DelayCommand(fDelay, ApplyEffectToObject(DURATION_TYPE_INSTANT, eDam, oTarget));
//This visual effect is applied to the target object not the location as above. This visual effect
//represents the flame that erupts on the target not on the ground.
DelayCommand(fDelay, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget));
}
}
//Select the next target within the spell shape.
oTarget = GetNextObjectInShape(SHAPE_SPHERE, RADIUS_SIZE_HUGE, lTarget, TRUE, OBJECT_TYPE_CREATURE | OBJECT_TYPE_DOOR);
}
}

1885
_removed/subrace_include.nss Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,4 @@
void main()
{
SetSubRace(GetPCSpeaker(), "Demon");
}

4
_removed/subset_drac.nss Normal file
View File

@@ -0,0 +1,4 @@
void main()
{
SetSubRace(GetPCSpeaker(), "Dracula");
}

View File

@@ -0,0 +1,4 @@
void main()
{
SetSubRace(GetPCSpeaker(), "Dragoon");
}

4
_removed/subset_drow.nss Normal file
View File

@@ -0,0 +1,4 @@
void main()
{
SetSubRace(GetPCSpeaker(), "Drow");
}

View File

@@ -0,0 +1,4 @@
void main()
{
SetSubRace(GetPCSpeaker(), "Duergar");
}

View File

@@ -0,0 +1,4 @@
void main()
{
SetSubRace(GetPCSpeaker(), "Horodrim");
}

View File

@@ -0,0 +1,4 @@
void main()
{
SetSubRace(GetPCSpeaker(), "Morphlord");
}

View File

@@ -0,0 +1,4 @@
void main()
{
SetSubRace(GetPCSpeaker(), "Night Elf");
}

View File

@@ -0,0 +1,4 @@
void main()
{
SetSubRace(GetPCSpeaker(), "Pixie");
}

View File

@@ -0,0 +1,4 @@
void main()
{
SetSubRace(GetPCSpeaker(), "Silver Dwarf");
}

4
_removed/subset_succ.nss Normal file
View File

@@ -0,0 +1,4 @@
void main()
{
SetSubRace(GetPCSpeaker(), "Succubus");
}

4
_removed/subset_vamp.nss Normal file
View File

@@ -0,0 +1,4 @@
void main()
{
SetSubRace(GetPCSpeaker(), "Vampire");
}

View File

@@ -0,0 +1,4 @@
void main()
{
SetSubRace(GetPCSpeaker(), "Wood Elf");
}