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:
21
_mod/_module/nss/npcact_ms_coin.nss
Normal file
21
_mod/_module/nss/npcact_ms_coin.nss
Normal file
@@ -0,0 +1,21 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// npcact_ms_coin - NPC ACTIVITIES 6.0 Monetary System - coin onactivateitem
|
||||
// By Deva Bryson Winblood. 12/24/2004
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC=GetItemActivator();
|
||||
object oItem=GetItemActivated();
|
||||
object oTarget=GetItemActivatedTarget();
|
||||
location lLoc=GetItemActivatedTargetLocation();
|
||||
vector vVec=GetPositionFromLocation(lLoc);
|
||||
SetLocalObject(oPC,"oCMSItem",oItem);
|
||||
SetLocalObject(oPC,"oCMSTarget",oTarget);
|
||||
SetLocalObject(oPC,"oCMSTargetArea",GetArea(oPC));
|
||||
SetLocalFloat(oPC,"fCMSX",vVec.x);
|
||||
SetLocalFloat(oPC,"fCMSY",vVec.y);
|
||||
SetLocalFloat(oPC,"fCMSZ",vVec.z);
|
||||
AssignCommand(oPC,ClearAllActions(TRUE));
|
||||
AssignCommand(oPC,ActionStartConversation(oPC,"npcact_money",TRUE,FALSE));
|
||||
}
|
||||
Reference in New Issue
Block a user