Alangara_PRC8/_module/nss/earthrod1.nss
Jaysyn904 86feb9ca6f Initial commit
Initial commit.
2024-06-05 21:21:06 -04:00

54 lines
1.1 KiB
Plaintext

object oItem;
/* Script generated by
Lilac Soul's NWN Script Generator, v. 2.3
For download info, please visit:
http://nwvault.ign.com/View.php?view=Other.Detail&id=4683&id=625 */
// and develloped by Tarashon for alangara Quest
#include "nw_i0_tool"
void main()
{
object oPC;
oPC = GetItemActivator();
object oTarget;
oTarget = oPC;
if (GetItemPossessedBy(oPC, "fes")!= OBJECT_INVALID)
{
int nInt;
nInt = GetObjectType(oTarget);
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_MYSTICAL_EXPLOSION), oTarget);
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_MYSTICAL_EXPLOSION), GetLocation(oTarget));
oItem = GetItemPossessedBy(oPC, "earthrod1");
if (GetIsObjectValid(oItem))
DestroyObject(oItem);
oItem = GetItemPossessedBy(oPC, "fes");
if (GetIsObjectValid(oItem))
DestroyObject(oItem);
RewardPartyXP(1000, oPC, FALSE);
CreateItemOnObject("earthrod2", oPC);
}
else
{
FloatingTextStringOnCreature("The rod seemes to lack energy to absorb !", oPC);
}
}