Lankhmar_PRC8/_module/nss/enter_web_mog2.nss
Jaysyn904 ebc0c6a9b2 Initial commit
Initial commit [v9.7]
2025-04-03 12:54:47 -04:00

47 lines
1006 B
Plaintext

#include "x0_i0_partywide"
void main()
{
object oTarget;
object oSpawn;
location lTarget;
effect eEffect;
object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return;
if (GetItemPossessedBy(oPC, "fangsofmog")== OBJECT_INVALID)
return;
// Give the speaker the items
CreateItemOnObject("it_recall001", GetPCSpeaker(), 1);
// Give 5 experience (to party) to the PC.
GiveXPToAll(oPC, 5);
oTarget = GetWaypointByTag("WP_MogTrap2");
lTarget = GetLocation(oTarget);
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "plc_net001", lTarget);
AddJournalQuestEntry("The Web of Mog", 5, oPC, TRUE, FALSE);
oTarget = oPC;
eEffect = EffectKnockdown();
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 5.0f);
FloatingTextStringOnCreature("A net has fallen on you!", oPC);
oTarget = GetObjectByTag("lmpeop1");
AssignCommand(oTarget, ActionStartConversation(oPC, ""));
oTarget = GetObjectByTag("lmpeop2");
AssignCommand(oTarget, ActionStartConversation(oPC, ""));
DestroyObject(OBJECT_SELF);
}