30 lines
724 B
Plaintext
30 lines
724 B
Plaintext
|
//::///////////////////////////////////////////////
|
||
|
//::
|
||
|
//:: ra_npc_talktimes.nss
|
||
|
//::
|
||
|
//:: Copyright (c) 2022 Project RATDOG
|
||
|
//::
|
||
|
//:://////////////////////////////////////////////
|
||
|
/*
|
||
|
Tracks the number of times a PC has spoken
|
||
|
to a given NPC.
|
||
|
*/
|
||
|
//:://////////////////////////////////////////////
|
||
|
//::
|
||
|
//:: Created By: Jaysyn
|
||
|
//:: Created On: 20220618
|
||
|
//::
|
||
|
//:://////////////////////////////////////////////
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
|
||
|
//:: Declare major variables
|
||
|
object oPC = GetPCSpeaker();
|
||
|
object oNPC = OBJECT_SELF;
|
||
|
string sTag = GetTag(oNPC);
|
||
|
|
||
|
//SetLocalInt(OBJECT_SELF,"NW_L_TALKTIMES",GetLocalInt(OBJECT_SELF,"NW_L_TALKTIMES") + 1);
|
||
|
SetLocalInt(oPC,"Spoke2"+sTag,GetLocalInt(oPC,"Spoke2"+sTag) + 1);
|
||
|
}
|