chuyiwen_gmsv/include/npc_lua.h

517 lines
25 KiB
C
Raw Normal View History

2016-12-24 08:45:52 +08:00
#ifndef __NPC_LUA__
#define __NPC_LUA__
#include "npc_lua_interface.h"
#include "../lua/lua.h"
#include "../lua/lauxlib.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#define LUA_DATALINE0 0
#define LUA_DATALINE1 2000
#define LUA_DATALINE2 4000
#define LUA_DATALINE3 6000
#define LUA_DATALINE4 8000
#define LUA_DATALINE5 10000
typedef struct __CREATEENEMY
{
int EnemyId;
int BaseLevel;
int SkillType;
}CREATEENEMY,*PCREATEENEMY;
typedef struct __SCRIPTREGLIB
{
const char *LibName; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
luaL_reg *FuncRegList; //<2F><>Ҫע<D2AA><D7A2><EFBFBD>ĺ<EFBFBD><C4BA><EFBFBD><EFBFBD><EFBFBD><E2BAAF><EFBFBD>б<EFBFBD>
}SCRIPTREGLIB,*PSCRIPTREGLIB;
typedef struct __SCRIPTREGCLASS
{
const char *ClassName; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
PSCRIPTREGLIB NewLib; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD><CAB5><EFBFBD><EFBFBD> SCRIPTREGLIB
luaL_reg *FuncRegList; //<2F><>Ҫע<D2AA><D7A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E0BAAF><EFBFBD>б<EFBFBD>
}SCRIPTREGCLASS,*PSCRIPTREGCLASS;
typedef struct __SCRIPTREGARRAY
{
const char *ArrayName; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
const char **SetMetaTable; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD>
const char **SetFuncName; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD><EFBFBD>ĺ<EFBFBD><C4BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
PSCRIPTREGLIB FuncList; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6>Ӧ SetMetaTable <20>Ĵ<EFBFBD><C4B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>
}SCRIPTREGARRAY,*PSCRIPTREGARRAY;
typedef struct __ARRAY_NTINT
{
size_t Size;
int Num[1];
}ARRAY_NTINT,*PARRAY_NTINT;
//<2F><><EFBFBD><EFBFBD>NPC-<2D><><EFBFBD><EFBFBD>NPCΨһ<CEA8><D2BB><EFBFBD><EFBFBD>
int NPC_Lua_Create(const char *_DoFile, const char *_InitFuncName, char *_seek, BOOL _IsFly);
//ɾ<><C9BE>NPC <20><><EFBFBD><EFBFBD>NPCΨһ<CEA8><D2BB><EFBFBD><EFBFBD>
int NPC_Lua_Del(int _index);
//<2F><><EFBFBD><EFBFBD>ս<EFBFBD><D5BD>
int NPC_Lua_CreateVsEnemy(lua_State *_NLL, int _CharaIndex, int _NpcIndex, const char *_DoFunc, PCREATEENEMY _CreateEnemy, int _ARLen, int _Flg);
const char *NPC_Lua_SetErrorStr(const char *ErrStr);
//ע<><D7A2><EFBFBD><EFBFBD>չ<EFBFBD><D5B9><EFBFBD>ýӿ<C3BD>
int NPC_Lua_RegCallEx(lua_State * _NLL, luaL_Reg *_RegList);
//ע<><D7A2><EFBFBD><EFBFBD>չ<EFBFBD><D5B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӿ<EFBFBD>
int NPC_Lua_RegLibEx(lua_State * _NLL, PSCRIPTREGLIB _RegLib);
//ע<><D7A2><EFBFBD><EFBFBD>չ<EFBFBD><D5B9><EFBFBD>ӿ<EFBFBD>
int NPC_Lua_RegClassEx(lua_State * _NLL, PSCRIPTREGCLASS _RegClass);
//ע<><D7A2><EFBFBD><EFBFBD>չ<EFBFBD><D5B9><EFBFBD><EFBFBD><EFBFBD>ӿ<EFBFBD>
int NPC_Lua_RegArrayEx(lua_State * _NLL, PSCRIPTREGARRAY _RegArray);
//<2F><>չ<EFBFBD><D5B9><EFBFBD>ͽӿں<D3BF><DABA><EFBFBD>
//NTInt
int NPC_Lua_NTInt_New(lua_State *_NLL);
int NPC_Lua_NTInt_Get(lua_State *_NLL);
int NPC_Lua_NTInt_Set(lua_State *_NLL);
int NPC_Lua_NTInt_Len(lua_State *_NLL);
//<2F>ӿں<D3BF><DABA><EFBFBD>
////////////////////////////////////////////////NL/////////////////////////////////////////////////
int NPC_Lua_NL_GetErrorStr(lua_State *_NLL); //<2F><><EFBFBD>ش<EFBFBD><D8B4><EFBFBD><EFBFBD><EFBFBD>Ϣ
int NPC_Lua_NL_CreateNpc(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>NPC
int NPC_Lua_NL_DelNpc(lua_State *_NLL); //ɾ<><C9BE>NPC
int NPC_Lua_NL_Mod(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_NL_GetStringFromIndexWithDelim(lua_State *_NLL); //ʹ<><CAB9>ָ<EFBFBD><D6B8><EFBFBD>ַ<EFBFBD><D6B7>ָ<EFBFBD><D6B8>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ص<EFBFBD><D8B5><EFBFBD><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8>indexλ<78>õ<EFBFBD><C3B5>ַ<EFBFBD><D6B7><EFBFBD>
//int NPC_Lua_NL_ANSI_PlayerLoop(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFA3AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_NL_PetLoopGetNext(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>д<EFBFBD><D0B4>ڳ<EFBFBD><DAB3><EFBFBD><EFA3AC><EFBFBD>س<EFBFBD><D8B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> д<><D0B4><EFBFBD><EFBFBD><EFBFBD>ƶ<EFBFBD>ʱ<EFBFBD><CAB1>
int NPC_Lua_NL_ItemLoopGetNext(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>д<EFBFBD><D0B4>ڵ<EFBFBD><DAB5>ߣ<EFBFBD><DFA3><EFBFBD><EFBFBD>ص<EFBFBD><D8B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
int NPC_Lua_NL_PlayerLoopGetNext(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFA3AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
int NPC_Lua_NL_GetConfigLineType(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><30>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD>Ρ<EFBFBD>1ΪSHORT<52>Ρ<EFBFBD>2ΪINT<4E>͡<EFBFBD>3ΪDOUBLE<4C>͡<EFBFBD><CDA1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD><DAB8>ֶΣ<D6B6><CEA3><EFBFBD><EFBFBD><EFBFBD>-1.
int NPC_Lua_NL_GetConfigLineVal(lua_State *_NLL); //<2F><><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD>[<5B>ַ<EFBFBD><D6B7><EFBFBD>]<5D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫת<D2AA><D7AA>Ϊ<EFBFBD><CEAA><EFBFBD>֣<EFBFBD><D6A3><EFBFBD><EFBFBD><EFBFBD>tonumber()<29><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҳ<EFBFBD><D2B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֶη<D6B6><CEB7><EFBFBD>nil
BOOL NPC_Lua_CheckNpcEventFree(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD>ij<EFBFBD><C4B3><EFBFBD><EFBFBD>
int NPC_Lua_DoNpcEventAction(lua_State *_NLL); //ִ<><D6B4>NPC<50>ű<EFBFBD><C5B1><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_NL_SetTimer(lua_State *_NLL); //<2F>һ<E8B6A8><D2BB><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ĺ<EFBFBD><C4BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD><DAB5>á<EFBFBD>
int NPC_Lua_NL_DelTimer(lua_State *_NLL); //ɾ<><C9BE>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD>ɾ<EFBFBD><C9BE><EFBFBD><EFBFBD><EFBFBD>Ͳ<EFBFBD><CDB2><EFBFBD><EFBFBD>ٱ<EFBFBD><D9B1><EFBFBD><EFBFBD>ڵ<EFBFBD><DAB5>ã<EFBFBD>
int NPC_Lua_NL_RunSaFuncII(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڶ<EFBFBD><DAB6><EFBFBD><EFBFBD>õ<EFBFBD>2<EFBFBD><32>INT<4E><54><EFBFBD><EFBFBD><EFBFBD>ĺ<EFBFBD><C4BA><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_NL_RunSaFuncIII(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڶ<EFBFBD><DAB6><EFBFBD><EFBFBD>õ<EFBFBD>3<EFBFBD><33>INT<4E><54><EFBFBD><EFBFBD><EFBFBD>ĺ<EFBFBD><C4BA><EFBFBD>(<28><>ITEM_USE<53><45>ʹ<EFBFBD>õ<EFBFBD><C3B5>ߺ<EFBFBD><DFBA>Ļص<C4BB><D8B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_NL_ANSI_PlayerLoop(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFA3AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_NL_ANSI_PetLoop(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>д<EFBFBD><D0B4>ڳ<EFBFBD><DAB3><EFBFBD><EFA3AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_NL_ANSI_ItemLoop(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>д<EFBFBD><D0B4>ڵ<EFBFBD><DAB5>ߣ<EFBFBD><DFA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_NL_ClsMk(lua_State *_NLL);
int NPC_Lua_NL_AddCheckNum(lua_State *_NLL);
int NPC_Lua_NL_Mkstring(lua_State *_NLL);
int NPC_Lua_NL_Mkint(lua_State *_NLL);
int NPC_Lua_NL_SendMesg(lua_State *_NLL);
////////////////////////////////////////////////NLG////////////////////////////////////////////////
//<2F><><EFBFBD>ܽӿ<DCBD>
int NPC_Lua_NLG_UpItem(lua_State *_NLL);
int NPC_Lua_NLG_GiveItemOne(lua_State *_NLL);
int NPC_Lua_NLG_GivePetOne(lua_State *_NLL);
int NPC_Lua_NLG_DelItemByIndex(lua_State *_NLL);
int NPC_Lua_NLG_FindPet(lua_State *_NLL); //<2F><><EFBFBD>ҳ<EFBFBD><D2B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ
int NPC_Lua_NLG_GetMap(lua_State *_NLL); //<2F><><EFBFBD>õ<EFBFBD>ǰλ<C7B0>õĽ<C3B5><C4BD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_NLG_PetUp(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_NLG_AddSk(lua_State *_NLL); //<2F><>ְҵ<D6B0><D2B5><EFBFBD><EFBFBD>
int NPC_Lua_NLG_SetZy(lua_State *_NLL); //<2F>趨ְҵ
int NPC_Lua_Char_GetPlayerMaxNum(lua_State *_NLL); //<2F><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_NLG_GetXY(lua_State *_NLL); //<2F><>ȡһ<C8A1><D2BB><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_NLG_WalkJc(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD>ϰ<EFBFBD><CFB0><EFBFBD>
int NPC_Lua_NLG_KickPlayer(lua_State *_NLL); //T<><54>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_NLG_HealOne(lua_State *_NLL); //ָ<><D6B8>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ظ<EFBFBD><D8B8><EFBFBD>HP <20><>MP
int NPC_Lua_NLG_HealAll(lua_State *_NLL); //ָ<><D6B8>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>MP <20>ظ<EFBFBD><D8B8><EFBFBD><EFBFBD>а<EFBFBD><D0B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>HP
int NPC_Lua_NLG_LevelUpTo(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ĵȼ<C4B5><C8BC><EFBFBD>
int NPC_Lua_NLG_AddExp(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_NLG_UpPet(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><C2B6><EFBFBD><EFBFBD>ij<EFBFBD><C4B3><EFBFBD><EFA3AC><EFBFBD>ڸ<EFBFBD><DAB8>¡<EFBFBD><C2A1>ͻ<EFBFBD><CDBB>ˡ<EFBFBD><CBA1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD>ijЩ<C4B3><D0A9>̨<EFBFBD><CCA8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ա<EFBFBD><D4B1>޸ĵ<DEB8><C4B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>²<EFBFBD><C2B2>ܰѸ<DCB0><D1B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݷ<EFBFBD><DDB7>͵<EFBFBD>ǰ̨<C7B0><CCA8>
int NPC_Lua_NLG_DelPetByPos(lua_State *_NLL); //ɾ<><C9BE> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD>λ<EFBFBD>ij<EFBFBD><C4B3><EFBFBD>
int NPC_Lua_NLG_DelPetByIndex(lua_State *_NLL); //ɾ<><C9BE> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ţ<EFBFBD><C5A3><EFBFBD>ID<49><44><EFBFBD>ij<EFBFBD><C4B3><EFBFBD>
int NPC_Lua_NLG_GivePetByIndex(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>һָֻ<D6BB><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ŵij<C5B5><C4B3><EFBFBD><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>س<EFBFBD><D8B3><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><CEBB>
int NPC_Lua_NLG_GiveItemByIndex(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>indexָ<78><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ص<EFBFBD><D8B5><EFBFBD><EFBFBD><EFBFBD>λ
int NPC_Lua_NLG_WarpToSpecificPoint(lua_State *_NLL); //<2F>ƶ<EFBFBD>NPC <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƶ<EFBFBD>
BOOL NPC_Lua_NLG_UpSkillupPoint(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_NLG_StayEncount(lua_State *_NLL); //ԭ<><D4AD>
int NPC_Lua_NLG_CheckInFront(lua_State *_NLL); //<2F><><EFBFBD>ڼ<EFBFBD><DABC><EFBFBD>ij<EFBFBD><C4B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD>ij<EFBFBD><C4B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǰ
int NPC_Lua_NLG_CheckObj(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>ij<EFBFBD><C4B3><EFBFBD><EFBFBD>ͼλ<CDBC><CEBB><EFBFBD>Ƿ<EFBFBD><C7B7>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_NLG_CharLook(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFB7BD>(<28><><EFBFBD>͸<EFBFBD><CDB8>·<EFBFBD><C2B7><EFBFBD>)
int NPC_Lua_NLG_CreateBattle(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>ս<EFBFBD><D5BD>
int NPC_Lua_NLG_InputCard(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E2BFA8>
int NPC_Lua_NLG_CreateBattlePvP(lua_State *_NLL);
int NPC_Lua_NLG_SearchWatchBattleRandIndex(lua_State *_NLL);
int NPC_Lua_NLG_DelPet(lua_State *_NLL); //ɾ<><C9BE>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD>ҳ<EFBFBD><D2B3><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_NLG_DelHaveIndexPet(lua_State *_NLL);
int NPC_Lua_NLG_DelItem(lua_State *_NLL); //ɾ<><C9BE>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD>ҵ<EFBFBD><D2B5><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_NLG_DelItemByPos(lua_State *_NLL); //ɾ<><C9BE>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD>ҵ<EFBFBD><D2B5><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_NLG_DischargeParty(lua_State *_NLL); //<2F><>ɢ <20>Ŷ<EFBFBD>
int NPC_Lua_NLG_GivePet(lua_State *_NLL); //<2F><>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_NLG_GiveOnePet(lua_State *_NLL); //<2F><>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_NLG_GiveItem(lua_State *_NLL); //<2F><>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_NLG_GiveOneItem(lua_State *_NLL); //<2F><>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_NLG_GiveRandItem(lua_State *_NLL);
int NPC_Lua_Char_GetOnLinePlayer(lua_State *_NLL); //<2F><>ȡ<EFBFBD><C8A1>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_NLG_ShowWindowTalked(lua_State *_NLL); //<2F><>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD>ҿͻ<D2BF><CDBB><EFBFBD><EFBFBD><EFBFBD>ʾָ<CABE><D6B8><EFBFBD><EFBFBD><EFBFBD>ݡ<EFBFBD><DDA1><EFBFBD><EFBFBD>͵ĶԻ<C4B6><D4BB><EFBFBD>
int NPC_Lua_NLG_SetAction(lua_State *_NLL); //<2F><><EFBFBD>ö<EFBFBD><C3B6><EFBFBD><EFBFBD>Ķ<EFBFBD><C4B6><EFBFBD>
int NPC_Lua_NLG_TalkToCli(lua_State *_NLL); //<2F><>ͨ˵<CDA8><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Զ<EFBFBD>ȫ<EFBFBD><C8AB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵
int NPC_Lua_NLG_TalkToFloor(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>ijһָ<D2BB><D6B8><EFBFBD><EFBFBD>ͼ<EFBFBD>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD><CBB5>
int NPC_Lua_NLG_UpChar(lua_State *_NLL); //<2F><>NPC<50><43>Χ<EFBFBD><CEA7><EFBFBD><EFBFBD><EFBFBD>ҷ<EFBFBD><D2B7><EFBFBD>NPC<50><43><EFBFBD><EFBFBD><EFBFBD>ݸ<EFBFBD><DDB8>·<EFBFBD><C2B7><EFBFBD>
int NPC_Lua_NLG_UpStateBySecond(lua_State *_NLL); //<2F><>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD>ҷ<EFBFBD><D2B7>͵<EFBFBD>2<EFBFBD><32>״̬<D7B4><CCAC><EFBFBD>·<EFBFBD><C2B7><EFBFBD>
int NPC_Lua_NLG_UpStateByThird(lua_State *_NLL); //<2F><>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD>ҷ<EFBFBD><D2B7>͵<EFBFBD>3<EFBFBD><33>״̬<D7B4><CCAC><EFBFBD>·<EFBFBD><C2B7><EFBFBD>
int NPC_Lua_NLG_Update_Party(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD><DAB5>Ŷӳ<C5B6>Ա<EFBFBD><D4B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҵ<EFBFBD>״̬<D7B4><CCAC><EFBFBD>·<EFBFBD><C2B7><EFBFBD>
int NPC_Lua_NLG_Warp(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_NLG_WalkMove(lua_State *_NLL); //<2F>ƶ<EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_NLG_WatchEntry(lua_State *_NLL); //<2F><>ս
int NPC_Lua_NLG_HealerAllHeal(lua_State *_NLL); //<2F><>Ѫ
int NPC_Lua_NLG_GetMaxPlayNum(lua_State *_NLL); //<2F><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_NLG_CheckPlayIndex(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_NLG_Save(lua_State *_NLL);
////add by mo
int NPC_Lua_NLG_SetExp(lua_State *_NLL); //<2F><><EFBFBD>÷<EFBFBD><C3B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E9B1B6>
int NPC_Lua_NLG_GetExp(lua_State *_NLL); //<2F><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E9B1B6>
#ifdef _PETTRANS_RANGE
int NPC_Lua_NLG_SetPetTransRange(lua_State *_NLL); //<2F><><EFBFBD>ó<EFBFBD><C3B3><EFBFBD>ת<EFBFBD><D7AA><EFBFBD><EFBFBD>Χ<EFBFBD><CEA7><EFBFBD><EFBFBD>
int NPC_Lua_NLG_GetPetTransRange(lua_State *_NLL); //<2F><><EFBFBD>ó<EFBFBD><C3B3><EFBFBD>ת<EFBFBD><D7AA><EFBFBD><EFBFBD>Χ<EFBFBD><CEA7><EFBFBD><EFBFBD>
#endif
///////////////////////////////////////////////Char////////////////////////////////////////////////
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݵĽӿ<C4BD>
int NPC_Lua_Char_ClrEvtEnd(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>־
int NPC_Lua_Char_ClrEvtNow(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>־
int NPC_Lua_Char_ClrEvt(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>־
int NPC_Lua_Char_GetAllocPoint(lua_State *_NLL); //<2F><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD>CharIndex<65><78><EFBFBD><EFBFBD>ά<EFBFBD>ɳ<EFBFBD>
int NPC_Lua_Char_GetDataFromEnemyBase(lua_State *_NLL); //<2F><>ȡ<EFBFBD><C8A1>Ӧ <20><>־ <20>ij<EFBFBD><C4B3><EFBFBD>ģ<EFBFBD><C4A3><EFBFBD><EFBFBD><EFBFBD>ݣ<EFBFBD>enemybaseX.txt<78><74><EFBFBD><EFBFBD>
int NPC_Lua_Char_GetPlayerIndex(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Char_FindItemIndex(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD>ӵ<EFBFBD><D3B5>ij<EFBFBD><C4B3><EFBFBD><EFBFBD>Ϊָ<CEAA><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Char_FindPetIndex(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD>ӵ<EFBFBD>г<EFBFBD><D0B3><EFBFBD>Ϊָ<CEAA><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_CHAR_CHECKINDEX(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Char_GetPetSkill(lua_State *_NLL); //ȡ<>ó<EFBFBD><C3B3><EFBFBD>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC>ܱ<EFBFBD><DCB1><EFBFBD>
int NPC_Lua_Char_GetPetSkillNo(lua_State *_NLL); //<2F><>ȡChar<61><72><EFBFBD><EFBFBD>
int NPC_Lua_Char_RidNo(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>־
int NPC_Lua_Char_GetEmptyItemBoxNum(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><CEBB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Char_GetEmptyPetBoxNum(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϳ<EFBFBD><CFB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><CEBB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Char_GetPlayerItemNum(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ΪijID<49>ĵ<EFBFBD><C4B5>ߵ<EFBFBD><DFB5><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Char_GetPlayerPetNum(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ΪijID<49>ij<EFBFBD><C4B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_ABLua_char_getPlayerMaxNum(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_ABLua_char_getBattleexp(lua_State *_NLL); //ս<><D5BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E9B1B6>
int NPC_Lua_Char_SetPetSkill(lua_State *_NLL); //<2F><><EFBFBD>ó<EFBFBD><C3B3><EFBFBD>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC>ܱ<EFBFBD><DCB1><EFBFBD>
int NPC_Lua_Char_SetPetSkillNo(lua_State *_NLL);
int NPC_Lua_Char_ComplianceParameter(lua_State *_NLL); //<2F><><EFBFBD>ݶ<EFBFBD><DDB6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼<EFBFBD><C2BC><EFBFBD><E3B2A2><EFBFBD><EFBFBD>WORK<52><4B><EFBFBD>ԣ<EFBFBD><D4A3>Դﵽ<D4B4><EFB5BD>Ч<EFBFBD><D0A7>Ŀ<EFBFBD>ġ<EFBFBD>
int NPC_Lua_Char_HcItemId(lua_State *_NLL); //<2F>ϳ<EFBFBD><CFB3>õ<EFBFBD><C3B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD><CFB7><EFBFBD><EFBFBD><EFBFBD>Ʒ<EFBFBD><C6B7>
int NPC_Lua_Char_DelHcItem(lua_State *_NLL); //ɾ<><C9BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ij<EFBFBD><C4B3>λ<EFBFBD>õ<EFBFBD><C3B5><EFBFBD>Ʒ<EFBFBD><C6B7>
int NPC_Lua_Char_GETFM(lua_State *_NLL); //<2F><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʽ<EFBFBD>
int NPC_Lua_Char_FindPetEnemyBaseId(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD>ӵ<EFBFBD>г<EFBFBD><D0B3><EFBFBD>EnemyBase<73>ļ<EFBFBD><C4BC>Ķ<EFBFBD>ӦID
int NPC_Lua_Char_ITEMID_NAME(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ID<49><44><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Char_ITEMID_NAME2(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ID<49><44>˵<EFBFBD><CBB5>
int NPC_Lua_Char_ITEMID_LEVEL(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ID<49>ĵȼ<C4B5>
int NPC_Lua_Char_ITEMID_GOLD(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ID<49>ļ۸<C4BC>
int NPC_Lua_Char_ITEMID_RANO(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ID<49><44>ͼ<EFBFBD><CDBC>
//int NPC_Lua_Char_CharRidNo(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7>Ѿ<EFBFBD><D1BE><EFBFBD><EFBFBD><EFBFBD>ij<EFBFBD><C4B3><EFBFBD><EFBFBD>֤<EFBFBD><D6A4>
int NPC_Lua_Char_GetPetOwner(lua_State *_NLL); //<2F><><EFBFBD>ó<EFBFBD><C3B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Char_GetEnemyBaseIdFromEnemyId(lua_State *_NLL); //ͨ<><CDA8>enemy.txt<78><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>õij<C3B5><C4B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>enemybase.txt<78><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ij<EFBFBD><C4B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>š<EFBFBD>
int NPC_Lua_Char_GetEnemyIdFromEnemyBaseId(lua_State *_NLL); //ͨ<><CDA8>enemybase.txt<78><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>õij<C3B5><C4B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>enemy.txt<78><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ij<EFBFBD><C4B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>š<EFBFBD>
int NPC_Lua_Char_GetIp(lua_State *_NLL); //<2F><>ȡָ<C8A1><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>IP<49><50>ַ
int NPC_Lua_Char_SetAllocPoint(lua_State *_NLL); //<2F><><EFBFBD>ó<EFBFBD><C3B3><EFBFBD>CharIndex<65><78><EFBFBD><EFBFBD>ά<EFBFBD>ɳ<EFBFBD>
int NPC_Lua_Char_GetMaxPetIndex(lua_State *_NLL); //<2F><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Char_GetMaxPlayerIndex(lua_State *_NLL); //<2F><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Char_SavePetToString(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Char_LoadPetFromString(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Char_GetPlayerFromAccAndName(lua_State *_NLL);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҵ<EFBFBD><D2B5>ʺź<CABA><C5BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ѱ<EFBFBD><D1B0><EFBFBD><EFBFBD><EFBFBD>ҡ<EFBFBD><D2A1>ʺź<CABA><C5BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҳ<EFBFBD>ɲ<EFBFBD><C9B2>ҡ<EFBFBD><D2A1><EFBFBD><EFBFBD>ɶ<EFBFBD><C9B6><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Char_CheckPet(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD>Ч<EFBFBD><D0A7>
int NPC_Lua_Char_CheckPlayer(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD>Ч<EFBFBD><D0A7>
BOOL NPC_Lua_Char_JoinParty(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD>Ŷ<EFBFBD>
int NPC_Lua_Char_getFamilyPlayIndex(lua_State *_NLL); //<2F><><EFBFBD>ü<EFBFBD><C3BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Char_SetEvtEnd(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>־Ϊ<D6BE><CEAA><EFBFBD><EFBFBD>״̬
int NPC_Lua_Char_SetEvtNow(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>־Ϊ<D6BE><CEAA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>״̬
int NPC_Lua_Char_SetData(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>Char<61><72><EFBFBD><EFBFBD>
int NPC_Lua_Char_getVipPoint(lua_State *_NLL); //<2F><>Ա<EFBFBD><D4B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Char_getjfPoint(lua_State *_NLL); //<2F><><EFBFBD>ָ<EFBFBD><D6B8><EFBFBD>
int NPC_Lua_Char_getxjPoint(lua_State *_NLL); //<2F>ֽ<EFBFBD><D6BD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Char_setVipPoint(lua_State *_NLL); //<2F><>Ա<EFBFBD><D4B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Char_setjfPoint(lua_State *_NLL); //<2F><><EFBFBD>ֲ<EFBFBD><D6B2><EFBFBD>
int NPC_Lua_Char_setxjPoint(lua_State *_NLL); //<2F>ֽ<EFBFBD><D6BD><EFBFBD><EFBFBD><EFBFBD>
//<2F>¼<EFBFBD><C2BC><EFBFBD><EFBFBD>õĽӿ<C4BD>
int NPC_Lua_Char_SetWalkPreEvent(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>WalkPre<72>¼<EFBFBD><C2BC><EFBFBD>Ӧ
int NPC_Lua_Char_SetWalkPostEvent(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>WalkPost<73>¼<EFBFBD><C2BC><EFBFBD>Ӧ
int NPC_Lua_Char_SetPreOverEvent(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>PreOver<65>¼<EFBFBD><C2BC><EFBFBD>Ӧ
int NPC_Lua_Char_SetPostOverEvent(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>PostOver<65>¼<EFBFBD><C2BC><EFBFBD>Ӧ
int NPC_Lua_Char_SetWatchEvent(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>Watch<63>¼<EFBFBD><C2BC><EFBFBD>Ӧ
int NPC_Lua_Char_SetLoopEvent(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>Loop<6F>¼<EFBFBD><C2BC><EFBFBD>Ӧ
int NPC_Lua_Char_SetTalkedEvent(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>Talked<65>¼<EFBFBD><C2BC><EFBFBD>Ӧ
int NPC_Lua_Char_SetOFFEvent(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>OFF<46>¼<EFBFBD><C2BC><EFBFBD>Ӧ
int NPC_Lua_Char_SetLookedEvent(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>Looked<65>¼<EFBFBD><C2BC><EFBFBD>Ӧ
int NPC_Lua_Char_SetItemPutEvent(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>ItemPut<75>¼<EFBFBD><C2BC><EFBFBD>Ӧ
int NPC_Lua_Char_SetWindowTalkedEvent(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>WindowTalked<65>¼<EFBFBD><C2BC><EFBFBD>Ӧ
#ifdef _USER_CHARLOOPS
int NPC_Lua_Char_SetCharLoopsEvent(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>CharLoops<70>¼<EFBFBD><C2BC><EFBFBD>Ӧ
int NPC_Lua_Char_SetBattleProPertyEvent(lua_State *_NLL);//<2F><><EFBFBD><EFBFBD>BattleProPerty<74>¼<EFBFBD><C2BC><EFBFBD>Ӧ
#endif
//<2F><>ȡ<EFBFBD><C8A1><EFBFBD>ݵĽӿ<C4BD>
int NPC_Lua_Char_IsEventEnd(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>־
int NPC_Lua_Char_IsEventNow(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>־
int NPC_Lua_Char_FindItemId(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD>ӵ<EFBFBD><D3B5>ij<EFBFBD><C4B3><EFBFBD><EFBFBD>ID
int NPC_Lua_Char_FindPetEnemyId(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD>ӵ<EFBFBD>г<EFBFBD><D0B3><EFBFBD>Enemy<6D>ļ<EFBFBD><C4BC>Ķ<EFBFBD>ӦID
int NPC_Lua_Char_GetData(lua_State *_NLL); //<2F><>ȡChar<61><72><EFBFBD><EFBFBD>
int NPC_Lua_Char_GetItemId(lua_State *_NLL); //<2F><>ȡָ<C8A1><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8>λ<EFBFBD>õĵ<C3B5><C4B5><EFBFBD>ID
int NPC_Lua_Char_GetPetEnemyId(lua_State *_NLL); //<2F><>ȡָ<C8A1><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8>λ<EFBFBD>õij<C3B5><C4B3><EFBFBD>Enemy<6D>ļ<EFBFBD><C4BC>Ķ<EFBFBD>ӦID
int NPC_Lua_Char_GetItemIndex(lua_State *_NLL); //<2F><>ȡָ<C8A1><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8>λ<EFBFBD>õĵ<C3B5><C4B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Char_GetPetIndex(lua_State *_NLL); //<2F><>ȡָ<C8A1><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8>λ<EFBFBD>õij<C3B5><C4B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Char_GetTeamIndex(lua_State *_NLL); //<2F><>ȡ<EFBFBD><C8A1>Ա<EFBFBD>Ķ<EFBFBD><C4B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Char_GetPlayerIndexByCdkey(lua_State *_NLL); //ͨ<><CDA8><EFBFBD>ʺŲ<CABA>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Char_VipPoint(lua_State *_NLL);
int NPC_Lua_Char_HealAll(lua_State *_NLL);
int NPC_Lua_Char_GetPetSkillId(lua_State *_NLL);
int NPC_Lua_Char_GetPetSkillName(lua_State *_NLL);
int NPC_Lua_Char_GetPetSkillMsg(lua_State *_NLL);
int NPC_Lua_Char_SetPetSkill(lua_State *_NLL);
int NPC_Lua_Char_RandMsg(lua_State *_NLL);
int NPC_Lua_Char_GetBeatitudeNum(lua_State *_NLL);
///////////////////////////////////////////////GAME////////////////////////////////////////////////
int NPC_Lua_Game_FMPOINT_GetData(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>ׯ԰<D7AF>ݵ<EFBFBD><DDB5><EFBFBD><EFBFBD><EFBFBD>Ϣ
int NPC_Lua_Game_FMPOINT_ACSetFMPoint(lua_State *_NLL); //<2F><EFBFBD><E8B6A8><EFBFBD><EFBFBD><EFBFBD>ݵ<EFBFBD><DDB5><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݵ<EFBFBD>δ<EFBFBD><CEB4>ռ<EFBFBD><D5BC>ʱ<EFBFBD><CAB1>Ч<EFBFBD><D0A7>
int NPC_Lua_Game_FMPOINT_ACFixFMPoint(lua_State *_NLL); //<2F>޸ļ<DEB8><C4BC><EFBFBD><EFBFBD>ݵ<EFBFBD><DDB5><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ơ<EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ս<EFBFBD><D5BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Game_FMPOINT_ACCleanFMPoint(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݵ㡣
///////////////////////////////////////////////Item////////////////////////////////////////////////
//<2F><>ȡ<EFBFBD><C8A1><EFBFBD>ݵĽӿ<C4BD>
int NPC_Lua_Item_GetData(lua_State *_NLL); //<2F><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Item_GetDataFromItemSet(lua_State *_NLL); //<2F><>ȡITEMSETX<54>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݵĽӿ<C4BD>
int NPC_Lua_Item_SetData(lua_State *_NLL); //<2F><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
//<2F>¼<EFBFBD><C2BC><EFBFBD><EFBFBD>õĽӿ<C4BD>
int NPC_Lua_Item_SetPreOverEvent(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>PreOver<65>¼<EFBFBD><C2BC><EFBFBD>Ӧ
int NPC_Lua_Item_SetPostOverEvent(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>PostOver<65>¼<EFBFBD><C2BC><EFBFBD>Ӧ
int NPC_Lua_Item_SetWatchEvent(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>Watch<63>¼<EFBFBD><C2BC><EFBFBD>Ӧ
int NPC_Lua_Item_SetUseEvent(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>Use<73>¼<EFBFBD><C2BC><EFBFBD>Ӧ
int NPC_Lua_Item_SetAttachEvent(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>Attach<63>¼<EFBFBD><C2BC><EFBFBD>Ӧ
int NPC_Lua_Item_SetDetachEvent(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>Detach<63>¼<EFBFBD><C2BC><EFBFBD>Ӧ
int NPC_Lua_Item_SetDropEvent(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>Drop<6F>¼<EFBFBD><C2BC><EFBFBD>Ӧ
int NPC_Lua_Item_SetPickUPEvent(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>PickUP<55>¼<EFBFBD><C2BC><EFBFBD>Ӧ
#ifdef _Item_ReLifeAct
int NPC_Lua_Item_SetDieReLifeEvent(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>DieReLife<66>¼<EFBFBD><C2BC><EFBFBD>Ӧ
#endif
///////////////////////////////////////////////BIT///////////////////////////////////////////////
int NPC_Lua_Bit_band(lua_State *_NLL);
int NPC_Lua_Bit_bor(lua_State *_NLL);
int NPC_Lua_Bit_bxor(lua_State *_NLL);
int NPC_Lua_Bit_lshift(lua_State *_NLL);
int NPC_Lua_Bit_rshift(lua_State *_NLL);
///////////////////////////////////////////////Obj////////////////////////////////////////////////
//<2F><>ȡ<EFBFBD><C8A1><EFBFBD>ݵĽӿ<C4BD>
int NPC_Lua_Obj_GetType(lua_State *_NLL); //<2F><>ȡOBJ<42><4A><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
/*
int NPC_Lua_Obj_GetName(lua_State *_NLL); //<2F><>ȡOBJ<42><4A><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Obj_GetDIR(lua_State *_NLL); //<2F><>ȡOBJ<42>ķ<EFBFBD><C4B7><EFBFBD>
int NPC_Lua_Obj_GetImageNum(lua_State *_NLL); //<2F><>ȡOBJ<42><4A><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*/
int NPC_Lua_Obj_GetCharType(lua_State *_NLL); //<2F><>ȡOBJ<42><4A>Ӧ<EFBFBD><D3A6>Char<61><72><EFBFBD>ݽṹ<DDBD><E1B9B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Obj_GetCharIndex(lua_State *_NLL); //<2F><>ȡOBJ<42><4A>Ӧ<EFBFBD><D3A6>Char<61><72><EFBFBD>ݽṹ<DDBD><E1B9B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Obj_GetX(lua_State *_NLL); //<2F><>ȡOBJ<42><4A>X<EFBFBD><58><EFBFBD><EFBFBD>
int NPC_Lua_Obj_GetY(lua_State *_NLL); //<2F><>ȡOBJ<42><4A>Y<EFBFBD><59><EFBFBD><EFBFBD>
int NPC_Lua_Obj_GetFloor(lua_State *_NLL); //<2F><>ȡOBJ<42><4A><EFBFBD>ڵĵ<DAB5>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD>
//int NPC_Lua_Obj_GetDelTime(lua_State *_NLL); //<2F><>ȡOBJ<42><4A>ɾ<EFBFBD><C9BE>ʱ<EFBFBD><CAB1>
int NPC_Lua_Obj_SetType(lua_State *_NLL); //<2F><>ȡOBJ<42><4A><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
/*
int NPC_Lua_Obj_SetName(lua_State *_NLL); //<2F><>ȡOBJ<42><4A><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Obj_SetDIR(lua_State *_NLL); //<2F><>ȡOBJ<42>ķ<EFBFBD><C4B7><EFBFBD>
int NPC_Lua_Obj_SetImageNum(lua_State *_NLL); //<2F><>ȡOBJ<42><4A><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*/
int NPC_Lua_Obj_SetCharType(lua_State *_NLL); //<2F><>ȡOBJ<42><4A>Ӧ<EFBFBD><D3A6>Char<61><72><EFBFBD>ݽṹ<DDBD><E1B9B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Obj_SetX(lua_State *_NLL); //<2F><>ȡOBJ<42><4A>X<EFBFBD><58><EFBFBD><EFBFBD>
int NPC_Lua_Obj_SetY(lua_State *_NLL); //<2F><>ȡOBJ<42><4A>Y<EFBFBD><59><EFBFBD><EFBFBD>
int NPC_Lua_Obj_SetFloor(lua_State *_NLL); //<2F><>ȡOBJ<42><4A><EFBFBD>ڵĵ<DAB5>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD>
//int NPC_Lua_Obj_SetDelTime(lua_State *_NLL); //<2F><>ȡOBJ<42><4A>ɾ<EFBFBD><C9BE>ʱ<EFBFBD><CAB1>
//////////////////////////////////////////////Battle///////////////////////////////////////////////
//<2F><>ȡ<EFBFBD><C8A1><EFBFBD>ݵĽӿ<C4BD>
int NPC_Lua_Battle_GetPlayIndex(lua_State *_NLL); //<2F><>ȡս<C8A1><D5BD><EFBFBD>е<EFBFBD><D0B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Battle_GetData(lua_State *_NLL); //<2F><>ȡս<C8A1><D5BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Battle_SetData(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>ս<EFBFBD><D5BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Battle_IndexToNo(lua_State *_NLL); //ͨ<><CDA8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȡ<EFBFBD><C8A1><EFBFBD>ڵ<EFBFBD>ս<EFBFBD><D5BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Battle_NoToIndex(lua_State *_NLL); //ͨ<><CDA8>ս<EFBFBD><D5BD><EFBFBD><EFBFBD><EFBFBD>Ż<EFBFBD>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Battle_CheckIndex(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>ս<EFBFBD><D5BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD>Ч<EFBFBD><D0A7>
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݵĽӿ<C4BD>
int NPC_Lua_Battle_SetNORisk(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>޷<EFBFBD><DEB7><EFBFBD>ģʽ
int NPC_Lua_Battle_SetMod(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>ս<EFBFBD><D5BD>ģʽ<C4A3><CABD>־
int NPC_Lua_Battle_SetType(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>ս<EFBFBD><D5BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Battle_Exit(lua_State *_NLL); //<2F>˳<EFBFBD>ս<EFBFBD><D5BD>
//<2F>¼<EFBFBD><C2BC><EFBFBD><EFBFBD>õĽӿ<C4BD>
int NPC_Lua_Battle_SetWinEvent(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>Win<69>¼<EFBFBD><C2BC><EFBFBD>Ӧ
int NPC_Lua_Battle_SetEndEvent(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>Win<69>¼<EFBFBD><C2BC><EFBFBD>Ӧ
///////////////////////////////////////////////Other///////////////////////////////////////////////
int NPC_Lua_GetFuncPoint(lua_State *_NLL); //<2F><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8>
//////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////MAP////////////////////////////////////////////////
int NPC_Lua_Map_CheckCoordinates(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>ij<EFBFBD><C4B3><EFBFBD>Ƿ<EFBFBD><C7B7>ڵ<EFBFBD>ͼ<EFBFBD><CDBC>Χ<EFBFBD>ڡ<EFBFBD>
int NPC_Lua_Map_GetExitFloorXY(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͼ<EFBFBD>Ƿ<EFBFBD>֧<EFBFBD>ֵdz<D6B5>
int NPC_Lua_Map_GetfloorX(lua_State *_NLL); //<2F><>ȡ<EFBFBD><C8A1>ͼX<CDBC><58><EFBFBD><EFBFBD>
int NPC_Lua_Map_GetfloorY(lua_State *_NLL); //<2F><>ȡ<EFBFBD><C8A1>ͼY<CDBC><59><EFBFBD><EFBFBD>
int NPC_Lua_Map_GetTileAndObjId(lua_State *_NLL); //<2F><>ȡ<EFBFBD><C8A1>ͼij<CDBC><C4B3><EFBFBD>ĵذ<C4B5><D8B0><EFBFBD>װ<EFBFBD>β<EFBFBD>
int NPC_Lua_Map_SetTileAndObjId(lua_State *_NLL); //<2F><><EFBFBD>õ<EFBFBD>ͼij<CDBC><C4B3><EFBFBD>ĵذ<C4B5><D8B0><EFBFBD>װ<EFBFBD>β<EFBFBD>
int NPC_Lua_Map_GetWalkAbleFromPoint(lua_State *_NLL); //<2F><>ȡij<C8A1><C4B3><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Map_GetImageData(lua_State *_NLL); //<2F><>ȡͼƬ<CDBC><C6AC><EFBFBD><EFBFBD>
int NPC_Lua_Map_SetImageData(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>ͼƬ<CDBC><C6AC><EFBFBD><EFBFBD>
int NPC_Lua_Map_GetTopObj(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȡ<EFBFBD><C8A1>ͼij<CDBC><C4B3><EFBFBD>϶<EFBFBD><CFB6><EFBFBD>
int NPC_Lua_Map_GetNextObj(lua_State *_NLL); //<2F><>ȡ<EFBFBD><C8A1>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Map_CheckImageIndex(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>ij<EFBFBD><C4B3>ͼ<EFBFBD><CDBC>ͼƬ<CDBC>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Map_CheckIndex(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>ij<EFBFBD><C4B3>ͼ<EFBFBD>ŵ<EFBFBD>ͼ<EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_Map_MakeNewMap(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD>µĵ<C2B5>ͼ <20><><EFBFBD><EFBFBD><EFBFBD>ص<EFBFBD>ͼ<EFBFBD><CDBC>ID
int NPC_Lua_Map_DelNewMap(lua_State *_NLL); //ɾ<><C9BE>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͼ
int NPC_Lua_Map_SetExWarp(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>dz<EFBFBD><C7B3><EFBFBD><EFBFBD><EFBFBD>ͼ<EFBFBD>Ĵ<EFBFBD><C4B4>͵<EFBFBD>
int NPC_Lua_Map_SetMapPoint(lua_State *_NLL); //<2F><><EFBFBD>ӵ<EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD>͵<EFBFBD>
int NPC_Lua_Map_DelMapPoint(lua_State *_NLL); //ɾ<><C9BE><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD>͵<EFBFBD>
int NPC_Lua_Map_getFloorName(lua_State *_NLL); //<2F><><EFBFBD>õ<EFBFBD>ͼ<EFBFBD><CDBC>
int NPC_Lua_Map_Upmap(lua_State *_NLL); //<2F><><EFBFBD>µ<EFBFBD>ͼ
///////////////////////////////////////////////MAP////////////////////////////////////////////////
///////////////////////////////////////////////Spell////////////////////////////////////////////////
int NPC_Lua_Spell_PETSKILL_GetData(lua_State *_NLL); //<2F><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBCBC>ID
int NPC_Lua_Spell_PROFESSION_GetData(lua_State *_NLL); //<2F><>ȡְҵ<D6B0><D2B5><EFBFBD><EFBFBD>ID
int NPC_Lua_Spell_MAGIC_GetData(lua_State *_NLL); //<2F><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><E9BCBC>ID
int NPC_Lua_Spell_PETSKILL_SetData(lua_State *_NLL); //<2F><><EFBFBD>ö<EFBFBD>ӦID<49>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݣ<EFBFBD>
int NPC_Lua_Spell_PROFESSION_SetData(lua_State *_NLL); //<2F><><EFBFBD>ö<EFBFBD>ӦID<49>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݣ<EFBFBD>
int NPC_Lua_Spell_MAGIC_SetData(lua_State *_NLL); //<2F><><EFBFBD>ö<EFBFBD>ӦID<49>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݣ<EFBFBD>
///////////////////////////////////////////////Spell////////////////////////////////////////////////
///////////////////////////////////////////////SQL/////////////////////////////////////////////////
int NPC_Lua_SQL_Push(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>MySQLָ<4C><D6B8>
int NPC_Lua_SQL_PushPop(lua_State *_NLL); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>MySQLָ<4C><EFBFBD><EEB2A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD>
int NPC_Lua_SQL_PushPopAdv(lua_State *_NLL); //<2F><>SAAC<41><43><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>SQL<51><4C>ѯ<EFBFBD><D1AF><EFBFBD>󣬲<EFBFBD>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD>SAAC<41><43><EFBFBD>ش<EFBFBD><D8B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD>Խ<EFBFBD><D4BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD>Ļص<C4BB><D8B5><EFBFBD><EFBFBD><EFBFBD>,<2C>ú<EFBFBD><C3BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ص<EFBFBD>һ<EFBFBD>н<EFBFBD><D0BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͷŽ<CDB7><C5BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_SQL_QueryFirstRow(lua_State *_NLL); //<2F>ص<EFBFBD><D8B5><EFBFBD><EFBFBD><EFBFBD>,<2C>ú<EFBFBD><C3BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ص<EFBFBD>һ<EFBFBD>н<EFBFBD><D0BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͷŽ<CDB7><C5BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_SQL_FetchRow(lua_State *_NLL); //<2F><>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int NPC_Lua_SQL_FreeResult(lua_State *_NLL); //<2F>ͷŽ<CDB7><C5BD><EFBFBD><EFBFBD><EFBFBD>
///////////////////////////////////////////////SQL///////////////////////////////////////////////
#define LRet(r) \
{ \
NPC_Lua_SetErrorStr(NULL); \
return r; \
}
#define LRetErr(c,r) \
{ \
NPC_Lua_SetErrorStr(c); \
return r; \
}
//////////////////////////////////////////////////////////////////////
//<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>nil
#define LRetNull(L) \
{ \
lua_pushnil(L); \
LRet(1); \
}
//<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>BOOL<4F><4C>LUA<55><41><EFBFBD><EFBFBD>
#define LRetBool(L, b) \
{ \
lua_pushboolean(L, b); \
LRet(1); \
}
//<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>int<6E><74>LUA<55><41><EFBFBD><EFBFBD>
#define LRetInt(L, i) \
{ \
lua_pushinteger(L, i); \
LRet(1); \
}
#define LRetMsg(L, c) \
{ \
lua_pushstring(L, c); \
LRet(1); \
}
////////////////////////////////////////////////////////////////////
//<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>״̬<D7B4><CCAC>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
#define LRetErrInt(L, i, c) \
{ \
lua_pushinteger(L, i); \
LRetErr(c,1); \
}
//<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD>LUA<55><41><EFBFBD><EFBFBD>
#define LRetErrNull(L, c) \
{ \
lua_pushnil(L); \
LRetErr(c,1); \
}
//<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD>LUA<55><41><EFBFBD><EFBFBD>
#define LRetErrMsg(L, c) \
{ \
lua_pushstring(L, c); \
LRetErr(c,1); \
}
//<2F><><EFBFBD>ڼ<EFBFBD><DABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7>
#define CheckEx(L, n) \
{ \
if(lua_gettop(L) != n) \
{ \
luaL_argerror(L, 1, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"); \
} \
}
#define CheckEx2(L, t, n) \
{ \
if(lua_gettop(L) < (t) || lua_gettop(L) > n) \
{ \
luaL_argerror(L, 1, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"); \
} \
}
#define CheckIndexNull(L, n) \
{ \
if(lua_isnil((L), (n))) \
{ \
luaL_argerror((L), 1, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊnil"); \
} \
}
#define CheckBattleIndexNull(L, n) \
{ \
if(lua_isnil((L), (n))) \
{ \
luaL_argerror((L), 1, "ս<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊnil"); \
} \
}
#define CheckItemIndexNull(L, n) \
{ \
if(lua_isnil((L), (n))) \
{ \
luaL_argerror((L), 1, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊnil"); \
} \
}
#define CheckObjIndexNull(L, n) \
{ \
if(lua_isnil((L), (n))) \
{ \
luaL_argerror((L), 1, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊnil"); \
} \
}
#define LRetArray(L, Array, num) \
{ \
Lua_ReturnArray(L, Array, num); \
LRet(1); \
}
#ifdef _LUA_Debug
int pcall_callback_err_fun(lua_State* L,const char *_InitFuncName); //<2F><><EFBFBD><EFBFBD>LUA<55>ű<EFBFBD><C5B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
#endif
#endif //#ifndef __NPC_LUA__