Initial upload
Initial upload
This commit is contained in:
91
_module/nss/rangershrinebuff.nss
Normal file
91
_module/nss/rangershrinebuff.nss
Normal file
@@ -0,0 +1,91 @@
|
||||
string sDeny;
|
||||
|
||||
//Created by Guile 01/10/07
|
||||
//Put this script OnUsed to the shrine of Umberlee
|
||||
#include "nw_i0_tool"
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetLastUsedBy();
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
if ((GetLevelByClass(CLASS_TYPE_RANGER, oPC)==0))
|
||||
{
|
||||
sDeny="This sacred shrine porths forth water without end and is commonly believed to be the provider of water to all the heavens and worlds alike.";
|
||||
|
||||
SendMessageToPC(oPC, sDeny);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
RewardPartyXP(50000, oPC, FALSE);
|
||||
|
||||
CreateItemOnObject("umbersecret", oPC);
|
||||
|
||||
FloatingTextStringOnCreature("As you touch the Shrine of Umberlee you feel her power enter you and are overtaken by her power.", oPC);
|
||||
|
||||
object oTarget;
|
||||
oTarget = oPC;
|
||||
|
||||
//Visual effects can't be applied to waypoints, so if it is a WP
|
||||
//the VFX will be applied to the WP's location instead
|
||||
|
||||
int nInt;
|
||||
nInt = GetObjectType(oTarget);
|
||||
|
||||
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_GOOD_HELP), oTarget);
|
||||
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_GOOD_HELP), GetLocation(oTarget));
|
||||
|
||||
//Visual effects can't be applied to waypoints, so if it is a WP
|
||||
//the VFX will be applied to the WP's location instead
|
||||
|
||||
nInt = GetObjectType(oTarget);
|
||||
|
||||
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_DISPEL_GREATER), oTarget);
|
||||
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_DISPEL_GREATER), GetLocation(oTarget));
|
||||
|
||||
effect eEffect;
|
||||
eEffect = EffectAttackIncrease(20);
|
||||
|
||||
eEffect = SupernaturalEffect(eEffect);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 9999.0f);
|
||||
|
||||
eEffect = EffectACIncrease(20);
|
||||
|
||||
eEffect = SupernaturalEffect(eEffect);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 9999.0f);
|
||||
|
||||
eEffect = EffectConcealment(99);
|
||||
|
||||
eEffect = SupernaturalEffect(eEffect);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 9999.0f);
|
||||
|
||||
eEffect = EffectDamageIncrease(DAMAGE_BONUS_20, DAMAGE_TYPE_DIVINE);
|
||||
|
||||
eEffect = SupernaturalEffect(eEffect);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 9999.0f);
|
||||
|
||||
eEffect = EffectSpellResistanceIncrease(99);
|
||||
|
||||
eEffect = SupernaturalEffect(eEffect);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 9999.0f);
|
||||
|
||||
eEffect = EffectMovementSpeedIncrease(99);
|
||||
|
||||
eEffect = SupernaturalEffect(eEffect);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 9999.0f);
|
||||
|
||||
eEffect = EffectRegenerate(150, 3.0f);
|
||||
|
||||
eEffect = SupernaturalEffect(eEffect);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 9999.0f);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user