Initial upload
Initial upload. PRC8 has been added. Module compiles, PRC's default AI & treasure scripts have been integrated. Started work on top hak for SLA / Ability / Scripting modifications.
This commit is contained in:
64
_module/nss/jw_pillar1_onoff.nss
Normal file
64
_module/nss/jw_pillar1_onoff.nss
Normal file
@@ -0,0 +1,64 @@
|
||||
////::///////////////////////////////////////////////
|
||||
//:: NW_O2_ONOFF.nss
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Turns the placeable object's animation on/off
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Brent
|
||||
//:: Created On: January 2002
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
|
||||
void main()
|
||||
{
|
||||
// 2 is off, 1 is on
|
||||
|
||||
if (GetLocalInt(OBJECT_SELF,"NW_L_AMION") == 1)
|
||||
{
|
||||
|
||||
PlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE);
|
||||
|
||||
SetLocalInt(OBJECT_SELF,"NW_L_AMION",2);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
PlayAnimation(ANIMATION_PLACEABLE_ACTIVATE);
|
||||
|
||||
SetLocalInt(OBJECT_SELF,"NW_L_AMION",1);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
if (GetTag(OBJECT_SELF)=="jw_sarc_pillar")
|
||||
|
||||
{
|
||||
ActionCastSpellAtObject(SPELL_CHAIN_LIGHTNING,GetLastUsedBy(),METAMAGIC_ANY,TRUE);
|
||||
}
|
||||
|
||||
if (GetTag(OBJECT_SELF)=="jw_sarc_pillar2")
|
||||
|
||||
{
|
||||
ActionCastSpellAtObject(SPELL_ICE_STORM,GetLastUsedBy(),METAMAGIC_ANY,TRUE);
|
||||
}
|
||||
|
||||
if (GetTag(OBJECT_SELF)=="jw_sarc_pillar3")
|
||||
|
||||
{
|
||||
ActionCastSpellAtObject(SPELL_WALL_OF_FIRE,GetLastUsedBy(),METAMAGIC_ANY,TRUE);
|
||||
}
|
||||
|
||||
if (GetTag(OBJECT_SELF)=="jw_sarc_pillar4")
|
||||
|
||||
{
|
||||
SignalEvent(GetObjectByTag("jw_sarc"),EventUserDefined(50));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user