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

35 lines
700 B
Plaintext

object oDeny;
/* Script generated by
Lilac Soul's NWN Script Generator, v. 2.1
For download info, please visit:
http://nwvault.ign.com/View.php?view=Other.Detail&id=4683&id=625 */
//Put this OnUsed
void main()
{
object oPC = GetLastUsedBy();
if (!GetIsPC(oPC)) return;
if (GetItemPossessedBy(oPC, "NW_IT_MSMLMISC17")!= OBJECT_INVALID)
{
oDeny = GetWaypointByTag("sandpassage1");
AssignCommand(oPC, JumpToObject(oDeny));
return;
}
object oCaster;
oCaster = GetObjectByTag("punishdragon");
object oTarget;
oTarget = oPC;
AssignCommand(oCaster, ActionCastSpellAtObject(SPELL_EPIC_HELLBALL, oTarget, METAMAGIC_ANY, TRUE, 40, PROJECTILE_PATH_TYPE_DEFAULT, TRUE));
}