//:://///////////////////////////////////////////// //:: Name NPCACTDLLMOVE //:: Copyright (c) 2001 Bioware Corp. //::////////////////////////////////////////////// /* */ //::////////////////////////////////////////////// //:: Created By: Deva Bryson Winblood //:: Created On: 10/24/2002 //::////////////////////////////////////////////// // NPC ACTIVITIES Link Library // nParm = Library function to call // nParm1 = variable passed to function // nParm2 = variable passed to function // LIBRARY COMMANDS // # = COMMAND // 1 = walk circuit with no pause from nParm1 waypoint # to nParm2 // 2 = run circuit with no pause /* NOTICE: This library is included only for backwards compatibility the new npcactdllnm library replaces this one and has more features */ ////////////////////////////////// FUNCTIONS ////////////////////////////// void MoveAroundCircuit(int nStartP,int nEndP,int nMode=FALSE) { // MoveAroundCircuit string sName="WP_"+GetTag(OBJECT_SELF)+"_"; object oDest; string sTag; int nLoop=nStartP; //SendMessageToPC(GetFirstPC(),"DLL("+IntToString(nStartP)+","+IntToString(nEndP)+","+IntToString(nMode)+")"); while(nLoop0) { SendMessageToPC(GetFirstPC(),"ERROR: npcactdllmove - is not yet converted to use with the # lib call"); DeleteLocalString(OBJECT_SELF,"sLIBParm"); } SetLocalInt(OBJECT_SELF,"nGNBDisabled",TRUE); SetLocalInt(OBJECT_SELF,"nGNBMaxHB",1); //SendMessageToPC(GetFirstPC(),"======NPCACTDLLMOVE===:"+IntToString(nParm)); // call functions here switch(nParm) { // switch case 1: MoveAroundCircuit(nParm1,nParm2); break; case 2: MoveAroundCircuit(nParm1,nParm2,TRUE); break; default: break; } // switch // end call functions ActionDoCommand(SetLocalInt(OBJECT_SELF,"nGNBDisabled",FALSE)); }