22 lines
871 B
Plaintext
22 lines
871 B
Plaintext
|
////////////////////////////////////////////////////////////////////////////////
|
||
|
// 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));
|
||
|
}
|