HoS_PRC8/_mod/_module/nss/npcact_ext_sgos.nss
Jaysyn904 e2f4ba74d5 Merged redundant hak files
Merged redundant hak files.  Moved hak scripts into module.  Updated gitignore.  Full Compile.  Added release folder & archive.
2024-12-12 15:02:17 -05:00

28 lines
1.0 KiB
Plaintext

////////////////////////////////////////////////////////////////////////////////
// npcact_ext_sgos - NPC ACTIVITIES 6.0 sgos external command
//------------------------------------------------------------------------------
// By Deva Bryson Winblood 06/13/2004
//------------------------------------------------------------------------------
// Last Modified By: Deva Bryson Winblood
// Last Modified Date: 06/13/2004
////////////////////////////////////////////////////////////////////////////////
#include "npcactivitiesh"
void fnSetGossip(string sListen)
{
SetListenPattern(OBJECT_SELF,sListen+"**",6132004);
SetLocalString(OBJECT_SELF,"sGNBListen",sListen+"**");
}
void main()
{
object oMe=OBJECT_SELF;
string sParm=GetLocalString(oMe,"sParm");
if (GetStringLeft(sParm,4)=="SGOS") sParm=GetStringRight(sParm,GetStringLength(sParm)-4);
else { sParm=GetStringRight(sParm,GetStringLength(sParm)-2); }
fnSetGossip(sParm);
DeleteLocalString(oMe,"sParm");
SetLocalFloat(oMe,"fDelay",0.1);
}