generated from Jaysyn/ModuleTemplate
Merged redundant hak files
Merged redundant hak files. Moved hak scripts into module. Updated gitignore. Full Compile. Added release folder & archive.
This commit is contained in:
18
_mod/_module/nss/npcact_cms_ct1.nss
Normal file
18
_mod/_module/nss/npcact_cms_ct1.nss
Normal file
@@ -0,0 +1,18 @@
|
||||
// npcact_cms_ct1 - Target selected with coins was self
|
||||
#include "npcact_h_money"
|
||||
|
||||
int StartingConditional()
|
||||
{
|
||||
object oPC=GetPCSpeaker();
|
||||
object oTarget=GetLocalObject(oPC,"oCMSTarget");
|
||||
object oItem=GetLocalObject(oPC,"oCMSItem");
|
||||
string sS;
|
||||
int nC=GetLocalInt(oItem,"nCurrency");
|
||||
if (oTarget==oPC)
|
||||
{ // self target
|
||||
sS=GetWealthCarriedString(oPC,nC);
|
||||
SetCustomToken(999990,sS);
|
||||
return TRUE;
|
||||
} // self target
|
||||
return FALSE;
|
||||
}
|
||||
Reference in New Issue
Block a user