Initial commit
Initial commit [v9.7]
This commit is contained in:
34
_module/nss/cnv_dstry_shlba2.nss
Normal file
34
_module/nss/cnv_dstry_shlba2.nss
Normal file
@@ -0,0 +1,34 @@
|
||||
#include "x0_i0_partywide"
|
||||
|
||||
void main()
|
||||
|
||||
{
|
||||
|
||||
object oTarget;
|
||||
int nInt;
|
||||
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
// Give the speaker the items
|
||||
CreateItemOnObject("rdgdtmpleky", GetPCSpeaker(), 1);
|
||||
|
||||
// Give 5 experience (to party) to the PC.
|
||||
GiveXPToAll(oPC, 5);
|
||||
|
||||
// Have "Sheelba2" say something.
|
||||
AssignCommand(GetObjectByTag("Sheelba2"), SpeakString("You must fight and return the red stone to the temple's main altar."));
|
||||
|
||||
oTarget = GetObjectByTag("Sheelba2");
|
||||
|
||||
//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_3), oTarget);
|
||||
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUMMON_MONSTER_3), GetLocation(oTarget));
|
||||
|
||||
DestroyObject(oTarget, 2.0);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user