AOC_PRC8/_module/nss/n_start.nss
Jaysyn904 5e558169a0 Initial Commit
Initial Commit
2025-04-03 11:24:16 -04:00

98 lines
2.6 KiB
Plaintext

#include "strip"
#include "rank"
void Delevel(object oPC);
void main()
{
object oPC = GetPCSpeaker();
object oMod = GetModule();
string oJourn;
int oMode = GetLocalInt(oMod, "gamemode");
SetLocalInt(GetModule(), "nord_mode", 1);
InvStrip(oPC);
GearStrip(oPC);
CreateItemOnObject("nordock_token", oPC, 1);
SetLocalInt(oPC, "iKilled", 0);
SetLocalInt(oPC, "iDied", 0);
SetLocalInt(oPC, "pc_swing", 0);
SetLocalInt(oPC, "pc_HWswing", 0);
SetLocalInt(oPC, "pc_hit", 0);
SetLocalInt(oPC, "player_dd", 0);
SetLocalInt(oPC, "pc_HWdam", 0);
SetLocalInt(oPC, "pc_HWhit", 0);
SetLocalInt(oPC, "aScore", 0);
// Reset Completed Arena Challenges
SetLocalInt(oMod, "d1_complete",0);
SetLocalInt(oMod, "d2_complete",0);
SetLocalInt(oMod, "d2a_complete",0);
SetLocalInt(oMod, "d3_complete",0);
SetLocalInt(oMod, "d4_complete",0);
SetLocalInt(oMod, "d5_complete",0);
// Reset Killed Challengers
SetLocalInt(oPC, "wurmdead",0);
SetLocalInt(oPC, "balrogdead",0);
SetLocalInt(oPC, "doppledead",0);
SetLocalInt(oPC, "pitfienddead",0);
SetLocalInt(oPC, "hdfienddead",0);
SetLocalInt(oPC, "paledead",0);
SetLocalInt(oPC, "marilithdead",0);
SetLocalInt(oPC, "bossdead",0);
SetLocalInt(oPC, "lorddead",0);
SetLocalInt(oPC, "luciferdead",0);
// Reset the Arena Scoreboard to its default display
SetLocalInt(oMod, "score_switch", 0);
// Remove Journal Entries
RemoveJournalQuestEntry(oJourn, oPC, FALSE, FALSE);
if (oMode==1)
{
RemoveJournalQuestEntry("boss1_0", oPC, FALSE, FALSE);
RemoveJournalQuestEntry("boss2_0", oPC, FALSE, FALSE);
RemoveJournalQuestEntry("boss3_0", oPC, FALSE, FALSE);
RemoveJournalQuestEntry("boss4_0", oPC, FALSE, FALSE);
RemoveJournalQuestEntry("boss5_0", oPC, FALSE, FALSE);
RemoveJournalQuestEntry("boss6_0", oPC, FALSE, FALSE);
}
else
{
RemoveJournalQuestEntry("boss1", oPC, FALSE, FALSE);
RemoveJournalQuestEntry("boss2", oPC, FALSE, FALSE);
RemoveJournalQuestEntry("boss3", oPC, FALSE, FALSE);
RemoveJournalQuestEntry("boss4", oPC, FALSE, FALSE);
RemoveJournalQuestEntry("boss5", oPC, FALSE, FALSE);
RemoveJournalQuestEntry("boss6", oPC, FALSE, FALSE);
}
DelayCommand(4.0, FloatingTextStringOnCreature("** Australis Mode Initiated **", oPC));
DelayCommand(4.0, PlaySound("sce_neutral"));
DelayCommand(3.0, GetRank(oPC));
}
void Delevel(object oPC)
{
int oXP = 378000;
effect eVis = EffectVisualEffect(VFX_FNF_LOS_EVIL_10);
ActionPauseConversation();
AssignCommand(GetObjectByTag("starfall"),
ActionCastFakeSpellAtObject(SPELL_NEGATIVE_ENERGY_BURST, oPC));
DelayCommand(2.5, SetXP(oPC, oXP));
DelayCommand(2.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oPC));
DelayCommand(2.75, ActionResumeConversation());
}