35 lines
692 B
Plaintext
35 lines
692 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("sandpasage2");
|
|
|
|
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));
|
|
|
|
}
|
|
|