📄 main.lua
字号:
-- 加载API en: Loaded API
API=GetApi();
NPCAPI=GetNPCAPI();
-- 加载变量 en: Loaded variables
client=NPCAPI._client;
Char=NPCAPI._char;
_NPCID=NPCAPI._NPCID;
NPCcon=NPCAPI._NPCcontrol;
-- 开始了 en: start
if NPCAPI._NPCtype==0 then
Char.LastNPC=_NPCID;
API:SendMess(client,_NPCID);
end;
CLNPC=Char.LastNPC;
if API:BackendDBNPCSAYDB(CLNPC,NPCcon) then
local SendDate=API:BackendDBNPC2(CLNPC,NPCcon);
SendDate:Finish();
API:SendConsole('加载NPC('..CLNPC..','..NPCcon..'从数据库'); -- en 'Loaded NPC(" + CLNPC + "," + _NPCcontrol + ") data from DB.'
else
CmdNPC=API:GetCmdNPC(client,CLNPC,NPCcon);
if CLNPC==79850 then -- 感谢猪猪GG提供
dofile(".\\NPCScripts\\王大嘴-79850\\王大嘴.lua");
elseif CLNPC==46 or CLNPC == 48 or CLNPC == 8 or CLNPC == 44 or CLNPC == 10012 or OLNPC == 10028 or CLNPC ==10011 or CLNPC ==10027 then
dofile(".\\NPCScripts\\Bank\\Bank.lua");
elseif CLNPC==46 or CLNPC == 48 or CLNPC == 8 or CLNPC == 44 or CLNPC == 10012 or OLNPC == 10028 or CLNPC ==10011 or CLNPC ==10027 then
dofile(".\\NPCScripts\\Bank\\Bank.lua"); -- Bank
elseif CLNPC==435 or CLNPC==65221 then -- Surgeon Miracle
dofile(".\\NPCScripts\\领会员工资\\领会员工资.lua");
elseif CLNPC==100060 then
dofile(".\\NPCScripts\\赌场\\赌场进入.lua");
elseif CLNPC==100010 then
dofile(".\\NPCScripts\\赌场\\雪人.lua");
elseif CLNPC==100050 then
dofile(".\\NPCScripts\\赌场\\赌场管理员.lua");
elseif CLNPC==100028 then
dofile(".\\NPCScripts\\赌场\\大.lua");
elseif CLNPC==100027 then
dofile(".\\NPCScripts\\赌场\\小.lua");
elseif CLNPC==100016 then
dofile(".\\NPCScripts\\赌场\\89.lua");
elseif CLNPC==100015 then
dofile(".\\NPCScripts\\赌场\\67.lua");
elseif CLNPC==100014 then
dofile(".\\NPCScripts\\赌场\\45.lua");
elseif CLNPC==100013 then
dofile(".\\NPCScripts\\赌场\\23.lua");
elseif CLNPC==100012 then
dofile(".\\NPCScripts\\赌场\\01.lua");
elseif CLNPC==100026 then
dofile(".\\NPCScripts\\赌场\\9.lua");
elseif CLNPC==100025 then
dofile(".\\NPCScripts\\赌场\\8.lua");
elseif CLNPC==100024 then
dofile(".\\NPCScripts\\赌场\\7.lua");
elseif CLNPC==100023 then
dofile(".\\NPCScripts\\赌场\\6.lua");
elseif CLNPC==100022 then
dofile(".\\NPCScripts\\赌场\\5.lua");
elseif CLNPC==100021 then
dofile(".\\NPCScripts\\赌场\\4.lua");
elseif CLNPC==100020 then
dofile(".\\NPCScripts\\赌场\\3.lua");
elseif CLNPC==100019 then
dofile(".\\NPCScripts\\赌场\\2.lua");
elseif CLNPC==100018 then
dofile(".\\NPCScripts\\赌场\\1.lua");
elseif CLNPC==100017 then
dofile(".\\NPCScripts\\赌场\\0.lua");
elseif CLNPC==100088 then
dofile(".\\NPCScripts\\新春雪人\\新春雪人.lua");
elseif CLNPC==722840 then
dofile(".\\NPCScripts\\千里传音\\千里传音.lua");
elseif CLNPC==380 then
dofile(".\\NPCScripts\\帮派管理员\\帮派管理员.lua");
elseif CLNPC==100003 then
dofile(".\\NPCScripts\\帮柱\\帮柱.lua");
elseif CLNPC==100002 then
dofile(".\\NPCScripts\\东城门\\东城门.lua");
elseif CLNPC==100004 then
dofile(".\\NPCScripts\\南城门\\南城门.lua");
elseif CLNPC==3881 then -- Surgeon Miracle
dofile(".\\NPCScripts\\Surgeon-3881\\Surgeon.lua");
elseif CLNPC==10050 then -- TC Conductress
dofile(".\\NPCScripts\\TCConductress-10050\\TCConductress.lua");
elseif CLNPC==3646 then -- Luna
dofile(".\\NPCScripts\\Luna-3646\\Luna.lua");
elseif CLNPC==390 then -- LoveStone
dofile(".\\NPCScripts\\LoveStone-390\\LoveStone.lua");
elseif CLNPC==10010 then -- KnowItAll
dofile(".\\NPCScripts\\KnowItAll-10010\\KnowItAll.lua");
elseif CLNPC==30110 then -- Leisure
dofile(".\\NPCScripts\\Leisure-30110\\Leisure.lua");
elseif CLNPC==30085 then -- FoodCarrier
dofile(".\\NPCScripts\\FoodCarrier-30085\\FoodCarrier.lua");
elseif CLNPC==10063 then -- Shopboy
dofile(".\\NPCScripts\\Shopboy-10063\\Shopboy.lua");
elseif CLNPC==30165 then
dofile(".\\NPCScripts\\EscortChief-30165\\EscortChief.lua"); -- EscortChief
elseif CLNPC==20005 then
dofile(".\\NPCScripts\\Celestine-20005\\Celestine.lua"); -- Celestine
elseif CLNPC==127 then
dofile(".\\NPCScripts\\Assistant-127\\Assistant.lua"); -- Assistant
elseif CLNPC==126 then
dofile(".\\NPCScripts\\Assistant-126\\Assistant.lua"); -- Assistant
elseif CLNPC==10031 then
dofile(".\\NPCScripts\\SpaceMark-10031\\SpaceMark.lua"); -- SpaceMark
elseif CLNPC==10033 then
dofile(".\\NPCScripts\\SpaceMark-10033\\SpaceMark.lua"); -- SpaceMark
elseif CLNPC==10038 then
dofile(".\\NPCScripts\\SpaceMark-10038\\SpaceMark.lua"); -- SpaceMark
elseif CLNPC==10041 then
dofile(".\\NPCScripts\\SpaceMark-10041\\SpaceMark.lua"); -- SpaceMark
elseif CLNPC==10042 then
dofile(".\\NPCScripts\\SpaceMark-10042\\SpaceMark.lua"); -- SpaceMark
elseif CLNPC==10040 then
dofile(".\\NPCScripts\\SpaceMark-10042\\SpaceMark.lua"); -- SpaceMark
elseif CLNPC==10034 then
dofile(".\\NPCScripts\\SpaceMark-10034\\SpaceMark.lua"); -- SpaceMark
elseif CLNPC==10046 then
dofile(".\\NPCScripts\\SpaceMark-10046\\SpaceMark.lua"); -- SpaceMark
elseif CLNPC==10043 then
dofile(".\\NPCScripts\\SpaceMark-10043\\SpaceMark.lua"); -- SpaceMark
elseif CLNPC==10044 then
dofile(".\\NPCScripts\\SpaceMark-10044\\SpaceMark.lua"); -- SpaceMark
elseif CLNPC==10045 then
dofile(".\\NPCScripts\\SpaceMark-10045\\SpaceMark.lua"); -- SpaceMark
elseif CLNPC==30157 then -- Houseagrent
dofile(".\\NPCScripts\\Houseagrent-30157\\Houseagrent.lua");
elseif CLNPC==30106 then -- David
dofile(".\\NPCScripts\\David-30106\\David.lua");
elseif CLNPC==300010 then -- David
dofile(".\\NPCScripts\\Exorist-300010\\Exorist.lua");
elseif CLNPC==108349 then -- GuildConductor1
dofile(".\\NPCScripts\\GuildConductor1-108349\\Exorist.lua");
elseif CLNPC==104827 then -- GuildConductor1 GW
dofile(".\\NPCScripts\\GuildConductor1-104827\\Exorist.lua");
elseif CLNPC==108343 then -- GuildConductor2
dofile(".\\NPCScripts\\GuildConductor1-108343\\Exorist.lua");
elseif CLNPC==104821 then -- GuildConductor2 GW
dofile(".\\NPCScripts\\GuildConductor1-104821\\Exorist.lua");
elseif CLNPC==108361 then -- GuildConductor3
dofile(".\\NPCScripts\\GuildConductor1-108361\\Exorist.lua");
elseif CLNPC==104815 then -- GuildConductor3 GW
dofile(".\\NPCScripts\\GuildConductor1-104815\\Exorist.lua");
elseif CLNPC==108709 then -- GuildConductor4
dofile(".\\NPCScripts\\GuildConductor1-108709\\Exorist.lua");
elseif CLNPC==104809 then -- GuildConductor4 GW
dofile(".\\NPCScripts\\GuildConductor1-104809\\Exorist.lua");
elseif CLNPC==10054 then -- GeneralPeace
dofile(".\\NPCScripts\\GeneralPeace-10054\\GeneralPeace.lua");
elseif CLNPC==380 then -- Guild Controller 350,337
dofile(".\\NPCScripts\\GuildController-380\\GuildController.lua");
elseif CLNPC==10021 then -- Arena Guard 459,292
dofile(".\\NPCScripts\\竞技场守卫\\竞技场守卫.lua");
elseif CLNPC==30096 then -- Richard
dofile(".\\NPCScripts\\Richard-30096\\Richard.lua");
elseif CLNPC==30161 then -- FurnitureNPC
dofile(".\\NPCScripts\\FurnitureNPC-30161\\FurnitureNPC.lua");
elseif CLNPC==125 then -- Assistant PC
dofile(".\\NPCScripts\\AssistantPC-125\\AssistantPC.lua");
elseif CLNPC==43 then -- CaptainLi
dofile(".\\NPCScripts\\CaptainLi-43\\CaptainLi.lua");
elseif CLNPC==42 then -- CaptainLi
dofile(".\\NPCScripts\\Waren-42\\Waren.lua");
elseif CLNPC==104797 then -- TC Tg
dofile(".\\NPCScripts\\Boxer-104797\\Boxer.lua");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -