RoT2_PRC8/_module/nss/tab_newply_port.nss
Jaysyn904 499aba4eb3 Initial upload
Initial upload
2023-09-25 18:13:22 -04:00

47 lines
1.0 KiB
Plaintext

#include "nw_i0_tool"
void main()
{
object oPC = GetPCSpeaker();
RewardPartyXP(10000, oPC, FALSE);
RewardPartyGP(5000, oPC, FALSE);
CreateItemOnObject("curemod", oPC);
CreateItemOnObject("curemod", oPC);
CreateItemOnObject("curemod", oPC);
CreateItemOnObject("trinitybook", oPC);
object oCaster;
oCaster = OBJECT_SELF;
object oTarget;
oTarget = oPC;
AssignCommand(oCaster, ActionCastFakeSpellAtObject(SPELL_RAISE_DEAD, oTarget, PROJECTILE_PATH_TYPE_DEFAULT));
location lTarget;
oTarget = GetWaypointByTag("trin_home_01");
lTarget = GetLocation(oTarget);
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
AssignCommand(oPC, ClearAllActions());
DelayCommand(2.0, AssignCommand(oPC, ActionJumpToLocation(lTarget)));
oTarget = oPC;
int nInt;
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));
}