Initial commit
Initial commit [v9.7]
This commit is contained in:
32
_module/nss/cnv_dtry_sh2b2c2.nss
Normal file
32
_module/nss/cnv_dtry_sh2b2c2.nss
Normal file
@@ -0,0 +1,32 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
object oTarget;
|
||||
object oSpawn;
|
||||
location lTarget;
|
||||
int nInt;
|
||||
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
// Give the speaker the items
|
||||
CreateItemOnObject("sheelbasstone", GetPCSpeaker(), 1);
|
||||
|
||||
oTarget = GetWaypointByTag("WP_SPn_GM_Se1");
|
||||
lTarget = GetLocation(oTarget);
|
||||
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "graymousersas2", lTarget);
|
||||
|
||||
oTarget = GetObjectByTag("Sheelba2b");
|
||||
|
||||
//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_SUMMON_MONSTER_1), oTarget);
|
||||
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUMMON_MONSTER_1), GetLocation(oTarget));
|
||||
|
||||
DestroyObject(oTarget, 3.0);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user