generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit
This commit is contained in:
56
_module/nss/full_buff.nss
Normal file
56
_module/nss/full_buff.nss
Normal file
@@ -0,0 +1,56 @@
|
||||
#include "spawner"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetLastUsedBy();
|
||||
if (!GetIsPC(oPC)) return;
|
||||
object oMod = GetModule();
|
||||
int iScore = GetLocalInt(oPC, "a_score");
|
||||
int iChall = GetLocalInt(oMod, "challenge");
|
||||
int nIntd4=GetLocalInt(oMod, "d4");
|
||||
int nIntd2=GetLocalInt(oMod, "d2");
|
||||
int nIntd2a=GetLocalInt(oMod, "d2a");
|
||||
int nIntd3=GetLocalInt(oMod, "d3");
|
||||
|
||||
if (nIntd2a==1)
|
||||
{
|
||||
iScore-=50;
|
||||
SetLocalInt(oPC, "a_score", iScore);
|
||||
SendMessageToPC(oPC, "** You spent 50 AOC score points **");
|
||||
}
|
||||
if (nIntd3==1)
|
||||
{
|
||||
iScore-=50;
|
||||
SetLocalInt(oPC, "a_score", iScore);
|
||||
SendMessageToPC(oPC, "** You spent 75 AOC score points **");
|
||||
}
|
||||
if (nIntd2==1)
|
||||
{
|
||||
iScore-=25;
|
||||
SetLocalInt(oPC, "a_score", iScore);
|
||||
SendMessageToPC(oPC, "** You spent 25 AOC score points **");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
int oState = GetLocalInt(oMod, "lever_state");
|
||||
if (oState==1)
|
||||
{
|
||||
Cast(SPELL_BATTLETIDE, oPC);
|
||||
//Cast(SPELL_FLAME_WEAPON, oPC);
|
||||
Cast(SPELL_AID, oPC);
|
||||
Cast(SPELL_EAGLE_SPLEDOR, oPC);
|
||||
Cast(SPELL_AURA_OF_VITALITY, oPC);
|
||||
Cast(SPELL_BULLS_STRENGTH, oPC);
|
||||
Cast(SPELL_DIVINE_FAVOR, oPC);
|
||||
Cast(SPELL_PRAYER, oPC);
|
||||
Cast(SPELL_DIVINE_POWER, oPC);
|
||||
Cast(SPELL_TRUE_STRIKE, oPC);
|
||||
}
|
||||
else
|
||||
{
|
||||
PlaySound("sim_cntresist");
|
||||
FloatingTextStringOnCreature( "This crystal is not active",oPC);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user