This is a pretty easy one to do.
1. Edit spells.2da, line 134 (premonition spell). Set the TargetType column to 0x0D. This will allow targeting of the caster, an item, or the ground. Oh, and change the entry for the Range column to "L" (long range).
2. In the toolset, edit NW_S0_Premo (the script for the premonition spell). You'll have to play around a bit, but essentially you'll want to create a "split" spell script:
Very rough code snippet, not tested, definitely not complete:
object oTarget = GetSpellTargetObject();
if (oTarget = OBJECT_SELF)
{
// default premonition coding can go here
}
else if (GetObjectType(oTarget) == OBJECT_TYPE_ITEM)
{
// items-specific coding can go here
}
else
{
// really basic coding for "teleportation"
location lTarget = GetSpellTargetLocation();
ActionJumpToLocation(lTarget);
}
Modifié par The Amethyst Dragon, 20 janvier 2011 - 08:53 .