📄 localdb.pas
字号:
nCMDCode:=nSC_CHECKLISTCOUNT;
Goto L001;
end;
if sCmd = sSC_CHECKDC then begin
nCMDCode:=nSC_CHECKDC;
Goto L001;
end;
if sCmd = sSC_CHECKMC then begin
nCMDCode:=nSC_CHECKMC;
Goto L001;
end;
if sCmd = sSC_CHECKSC then begin
nCMDCode:=nSC_CHECKSC;
Goto L001;
end;
if sCmd = sSC_CHECKHP then begin
nCMDCode:=nSC_CHECKHP;
Goto L001;
end;
if sCmd = sSC_CHECKMP then begin
nCMDCode:=nSC_CHECKMP;
Goto L001;
end;
if sCmd = sSC_CHECKITEMTYPE then begin
nCMDCode:=nSC_CHECKITEMTYPE;
Goto L001;
end;
if sCmd = sSC_CHECKEXP then begin
nCMDCode:=nSC_CHECKEXP;
Goto L001;
end;
if sCmd = sSC_CHECKCASTLEGOLD then begin
nCMDCode:=nSC_CHECKCASTLEGOLD;
Goto L001;
end;
if sCmd = sSC_PASSWORDERRORCOUNT then begin
nCMDCode:=nSC_PASSWORDERRORCOUNT;
Goto L001;
end;
if sCmd = sSC_ISLOCKPASSWORD then begin
nCMDCode:=nSC_ISLOCKPASSWORD;
Goto L001;
end;
if sCmd = sSC_ISLOCKSTORAGE then begin
nCMDCode:=nSC_ISLOCKSTORAGE;
Goto L001;
end;
if sCmd = sSC_CHECKBUILDPOINT then begin
nCMDCode:=nSC_CHECKBUILDPOINT;
Goto L001;
end;
if sCmd = sSC_CHECKAURAEPOINT then begin
nCMDCode:=nSC_CHECKAURAEPOINT;
Goto L001;
end;
if sCmd = sSC_CHECKSTABILITYPOINT then begin
nCMDCode:=nSC_CHECKSTABILITYPOINT;
Goto L001;
end;
if sCmd = sSC_CHECKFLOURISHPOINT then begin
nCMDCode:=nSC_CHECKFLOURISHPOINT;
Goto L001;
end;
if sCmd = sSC_CHECKCONTRIBUTION then begin
nCMDCode:=nSC_CHECKCONTRIBUTION;
Goto L001;
end;
if sCmd = sSC_CHECKRANGEMONCOUNT then begin
nCMDCode:=nSC_CHECKRANGEMONCOUNT;
Goto L001;
end;
if sCmd = sSC_CHECKITEMADDVALUE then begin
nCMDCode:=nSC_CHECKITEMADDVALUE;
Goto L001;
end;
{$IF SoftVersion = VERENT}
if sCmd = sSC_CHECKINMAPRANGE then begin
nCMDCode:=nSC_CHECKINMAPRANGE;
Goto L001;
end;
{$IFEND}
if sCmd = sSC_CASTLECHANGEDAY then begin
nCMDCode:=nSC_CASTLECHANGEDAY;
Goto L001;
end;
if sCmd = sSC_CASTLEWARDAY then begin
nCMDCode:=nSC_CASTLEWARDAY;
Goto L001;
end;
if sCmd = sSC_ONLINELONGMIN then begin
nCMDCode:=nSC_ONLINELONGMIN;
Goto L001;
end;
if sCmd = sSC_CHECKGUILDCHIEFITEMCOUNT then begin
nCMDCode:=nSC_CHECKGUILDCHIEFITEMCOUNT;
Goto L001;
end;
if sCmd = sSC_CHECKNAMEDATELIST then begin
nCMDCode:=nSC_CHECKNAMEDATELIST;
Goto L001;
end;
if sCmd = sSC_CHECKMAPHUMANCOUNT then begin
nCMDCode:=nSC_CHECKMAPHUMANCOUNT;
Goto L001;
end;
if sCmd = sSC_CHECKMAPMONCOUNT then begin
nCMDCode:=nSC_CHECKMAPMONCOUNT;
Goto L001;
end;
if sCmd = sSC_CHECKVAR then begin
nCMDCode:=nSC_CHECKVAR;
Goto L001;
end;
if sCmd = sSC_CHECKSERVERNAME then begin
nCMDCode:=nSC_CHECKSERVERNAME;
Goto L001;
end;
if sCmd = sSC_ISATTACKGUILD then begin
nCMDCode:=nSC_ISATTACKGUILD;
Goto L001;
end;
if sCmd = sSC_ISDEFENSEGUILD then begin
nCMDCode:=nSC_ISDEFENSEGUILD;
Goto L001;
end;
if sCmd = sSC_ISATTACKALLYGUILD then begin
nCMDCode:=nSC_ISATTACKALLYGUILD;
Goto L001;
end;
if sCmd = sSC_ISDEFENSEALLYGUILD then begin
nCMDCode:=nSC_ISDEFENSEALLYGUILD;
Goto L001;
end;
if sCmd = sSC_ISCASTLEGUILD then begin
nCMDCode:=nSC_ISCASTLEGUILD;
Goto L001;
end;
if sCmd = sSC_CHECKCASTLEDOOR then begin
nCMDCode:=nSC_CHECKCASTLEDOOR;
Goto L001;
end;
if sCmd = sSC_ISSYSOP then begin
nCMDCode:=nSC_ISSYSOP;
Goto L001;
end;
if sCmd = sSC_ISADMIN then begin
nCMDCode:=nSC_ISADMIN;
Goto L001;
end;
if sCmd = sSC_CHECKGROUPCOUNT then begin
nCMDCode:=nSC_CHECKGROUPCOUNT;
Goto L001;
end;
if sCmd = sCHECKACCOUNTLIST then begin
nCMDCode:=nCHECKACCOUNTLIST;
Goto L001;
end;
if sCmd = sCHECKIPLIST then begin
nCMDCode:=nCHECKIPLIST;
Goto L001;
end;
if sCmd = sCHECKBBCOUNT then begin
nCMDCode:=nCHECKBBCOUNT;
Goto L001;
end;
if sCmd = sCHECKCREDITPOINT then begin
nCMDCode:=nCHECKCREDITPOINT;
Goto L001;
end;
if sCmd = sDAYTIME then begin
nCMDCode:=nDAYTIME;
Goto L001;
end;
if sCmd = sCHECKITEMW then begin
nCMDCode:=nCHECKITEMW;
Goto L001;
end;
if sCmd = sISTAKEITEM then begin
nCMDCode:=nISTAKEITEM;
Goto L001;
end;
if sCmd = sCHECKDURA then begin
nCMDCode:=nCHECKDURA;
Goto L001;
end;
if sCmd = sCHECKDURAEVA then begin
nCMDCode:=nCHECKDURAEVA;
Goto L001;
end;
if sCmd = sDAYOFWEEK then begin
nCMDCode:=nDAYOFWEEK;
Goto L001;
end;
if sCmd = sHOUR then begin
nCMDCode:=nHOUR;
Goto L001;
end;
if sCmd = sMIN then begin
nCMDCode:=nMIN;
Goto L001;
end;
if sCmd = sCHECKLUCKYPOINT then begin
nCMDCode:=nCHECKLUCKYPOINT;
Goto L001;
end;
if sCmd = sCHECKMONMAP then begin
nCMDCode:=nCHECKMONMAP;
Goto L001;
end;
if sCmd = sCHECKMONAREA then begin
nCMDCode:=nCHECKMONAREA;
Goto L001;
end;
if sCmd = sCHECKHUM then begin
nCMDCode:=nCHECKHUM;
Goto L001;
end;
if sCmd = sEQUAL then begin
nCMDCode:=nEQUAL;
Goto L001;
end;
if sCmd = sLARGE then begin
nCMDCode:=nLARGE;
Goto L001;
end;
if sCmd = sSMALL then begin
nCMDCode:=nSMALL;
Goto L001;
end;
if sCmd = sSC_CHECKPOSEDIR then begin
nCMDCode:=nSC_CHECKPOSEDIR;
Goto L001;
end;
if sCmd = sSC_CHECKPOSELEVEL then begin
nCMDCode:=nSC_CHECKPOSELEVEL;
Goto L001;
end;
if sCmd = sSC_CHECKPOSEGENDER then begin
nCMDCode:=nSC_CHECKPOSEGENDER;
Goto L001;
end;
if sCmd = sSC_CHECKLEVELEX then begin
nCMDCode:=nSC_CHECKLEVELEX;
Goto L001;
end;
if sCmd = sSC_CHECKBONUSPOINT then begin
nCMDCode:=nSC_CHECKBONUSPOINT;
Goto L001;
end;
if sCmd = sSC_CHECKMARRY then begin
nCMDCode:=nSC_CHECKMARRY;
Goto L001;
end;
if sCmd = sSC_CHECKPOSEMARRY then begin
nCMDCode:=nSC_CHECKPOSEMARRY;
Goto L001;
end;
if sCmd = sSC_CHECKMARRYCOUNT then begin
nCMDCode:=nSC_CHECKMARRYCOUNT;
Goto L001;
end;
if sCmd = sSC_CHECKMASTER then begin
nCMDCode:=nSC_CHECKMASTER;
Goto L001;
end;
if sCmd = sSC_HAVEMASTER then begin
nCMDCode:=nSC_HAVEMASTER;
Goto L001;
end;
if sCmd = sSC_CHECKPOSEMASTER then begin
nCMDCode:=nSC_CHECKPOSEMASTER;
Goto L001;
end;
if sCmd = sSC_POSEHAVEMASTER then begin
nCMDCode:=nSC_POSEHAVEMASTER;
Goto L001;
end;
if sCmd = sSC_CHECKISMASTER then begin
nCMDCode:=nSC_CHECKISMASTER;
Goto L001;
end;
if sCmd = sSC_CHECKPOSEISMASTER then begin
nCMDCode:=nSC_CHECKPOSEISMASTER;
Goto L001;
end;
if sCmd = sSC_CHECKNAMEIPLIST then begin
nCMDCode:=nSC_CHECKNAMEIPLIST;
Goto L001;
end;
if sCmd = sSC_CHECKACCOUNTIPLIST then begin
nCMDCode:=nSC_CHECKACCOUNTIPLIST;
Goto L001;
end;
if sCmd = sSC_CHECKSLAVECOUNT then begin
nCMDCode:=nSC_CHECKSLAVECOUNT;
Goto L001;
end;
if sCmd = sSC_CHECKPOS then begin
nCMDCode:=nSC_CHECKPOS;
Goto L001;
end;
if sCmd = sSC_CHECKMAP then begin
nCMDCode:=nSC_CHECKMAP;
Goto L001;
end;
if sCmd = sSC_REVIVESLAVE then begin
nCMDCode:=nSC_REVIVESLAVE;
Goto L001;
end;
if sCmd = sSC_CHECKMAGICLVL then begin
nCMDCode:=nSC_CHECKMAGICLVL;
Goto L001;
end;
if sCmd = sSC_CHECKGROUPCLASS then begin
nCMDCode:=nSC_CHECKGROUPCLASS;
Goto L001;
end;
//------------------------------
L001:
if nCMDCode > 0 then begin
QuestConditionInfo.nCmdCode:=nCMDCode;
if (sParam1 <> '') and (sParam1[1] = '"') then begin
ArrestStringEx(sParam1,'"','"',sParam1);
end;
if (sParam2 <> '') and (sParam2[1] = '"') then begin
ArrestStringEx(sParam2,'"','"',sParam2);
end;
if (sParam3 <> '') and (sParam3[1] = '"') then begin
ArrestStringEx(sParam3,'"','"',sParam3);
end;
if (sParam4 <> '') and (sParam4[1] = '"') then begin
ArrestStringEx(sParam4,'"','"',sParam4);
end;
if (sParam5 <> '') and (sParam5[1] = '"') then begin
ArrestStringEx(sParam5,'"','"',sParam5);
end;
if (sParam6 <> '') and (sParam6[1] = '"') then begin
ArrestStringEx(sParam6,'"','"',sParam6);
end;
QuestConditionInfo.sParam1:=sParam1;
QuestConditionInfo.sParam2:=sParam2;
QuestConditionInfo.sParam3:=sParam3;
QuestConditionInfo.sParam4:=sParam4;
QuestConditionInfo.sParam5:=sParam5;
QuestConditionInfo.sParam6:=sParam6;
if IsStringNumber(sParam1) then
QuestConditionInfo.nParam1:=Str_ToInt(sParam1,0);
if IsStringNumber(sParam2) then
QuestConditionInfo.nParam2:=Str_ToInt(sParam2,0);
if IsStringNumber(sParam3) then
QuestConditionInfo.nParam3:=Str_ToInt(sParam3,0);
if IsStringNumber(sParam4) then
QuestConditionInfo.nParam4:=Str_ToInt(sParam4,0);
if IsStringNumber(sParam5) then
QuestConditionInfo.nParam5:=Str_ToInt(sParam5,0);
if IsStringNumber(sParam6) then
QuestConditionInfo.nParam6:=Str_ToInt(sParam6,0);
Result:=True;
end;
end;
function QuestAction(sText:String;QuestActionInfo:pTQuestActionInfo):Boolean; //0048A640
var
sCmd,sParam1,sParam2,sParam3,sParam4,sParam5,sParam6:String;
nCMDCode:Integer;
Label L001;
begin
Result:=False;
sText:=GetValidStrCap(sText,sCmd,[' ',#9]);
sText:=GetValidStrCap(sText,sParam1,[' ',#9]);
sText:=GetValidStrCap(sText,sParam2,[' ',#9]);
sText:=GetValidStrCap(sText,sParam3,[' ',#9]);
sText:=GetValidStrCap(sText,sParam4,[' ',#9]);
sText:=GetValidStrCap(sText,sParam5,[' ',#9]);
sText:=GetValidStrCap(sText,sParam6,[' ',#9]);
sCmd:=UpperCase(sCmd);
nCmdCode:=0;
if sCmd = sSET then begin
nCMDCode:=nSET;
ArrestStringEx(sParam1,'[',']',sParam1);
if not IsStringNumber(sParam1) then nCMDCode:=0;
if not IsStringNumber(sParam2) then nCMDCode:=0;
end;
if sCmd = sRESET then begin
nCMDCode:=nRESET;
ArrestStringEx(sParam1,'[',']',sParam1);
if not IsStringNumber(sParam1) then nCMDCode:=0;
if not IsStringNumber(sParam2) then nCMDCode:=0;
end;
if sCmd = sSETOPEN then begin
nCMDCode:=nSETOPEN;
ArrestStringEx(sParam1,'[',']',sParam1);
if not Is
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -