33 lines
866 B
Plaintext
33 lines
866 B
Plaintext
|
//::///////////////////////////////////////////////
|
||
|
//:: Name ondeath_ostland
|
||
|
//:: Copyright (c) 2022 Project RATDOG
|
||
|
//:://////////////////////////////////////////////
|
||
|
/*
|
||
|
Sheriff Ostland's OnDeath script
|
||
|
*/
|
||
|
//:://////////////////////////////////////////////
|
||
|
//:: Created By: Jaysyn
|
||
|
//:: Created On: 20221129
|
||
|
//:://////////////////////////////////////////////
|
||
|
|
||
|
#include "sql_db_partywide"
|
||
|
#include "pqj_inc"
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
object oNPC = OBJECT_SELF;
|
||
|
object oPC = GetLastKiller();
|
||
|
|
||
|
//:: Track which PC's have seen Ostland dead
|
||
|
SQL_SetLocalIntOnAll(oPC, "bKilledOstland", 1);
|
||
|
|
||
|
//:: Set quest stage & update DB.
|
||
|
AddPersistentJournalQuestEntry("DishonestPatrol", 1, oPC);
|
||
|
|
||
|
//:: Execute Default NPC OnDeath script
|
||
|
ExecuteScript("nw_c2_default7", OBJECT_SELF);
|
||
|
|
||
|
//:: Execute PRC NPC OnDeath script
|
||
|
ExecuteScript("prc_npc_death", OBJECT_SELF);
|
||
|
}
|