objbase.pas
来自「飞尔传奇世界的引擎代码可直接编译M2Engine 请使用Delphi编译」· PAS 代码 · 共 1,468 行 · 第 1/5 页
PAS
1,468 行
procedure SendUseMagic();
procedure SendSaveItemList(nBaseObject: Integer);
procedure SendSaveBigStorageItemList(nBaseObject: Integer; nPage: Integer);
procedure SendDelItemList(ItemList: TStringList);
procedure SendAdjustBonus();
procedure SendChangeGuildName();
procedure SendMapDescription();
procedure SendGoldInfo(boSendName: Boolean);
procedure ShowMapInfo(sMAP, sX, sY: string);
function CancelGroup(): Boolean;
function DoMotaebo(nDir: Byte; nMagicLevel: Integer): Boolean;
function DoSpell(UserMagic: pTUserMagic; nTargetX, nTargetY: Integer; BaseObject: TBaseObject): Boolean;
procedure GetOldAbil(var OAbility: TOAbility);
procedure ReadAllBook;
function CheckItemsNeed(StdItem: pTStdItem): Boolean;
function CheckItemBindUse(UserItem: pTUserItem): Boolean;
function CheckActionStatus(wIdent: Word; var dwDelayTime: LongWord): Boolean;
procedure RecalcAdjusBonus;
procedure CheckMarry();
procedure CheckMaster();
procedure RefMyStatus;
procedure ProcessClientPassword(ProcessMsg: pTProcessMessage);
function CheckDenyLogon: Boolean;
procedure ProcessSpiritSuite;
function HorseRunTo(btDir: Byte; boFlag: Boolean): Boolean;
function GetSpellPoint(UserMagic: pTUserMagic): Integer;
{$IF HEROVERSION = 1}
procedure ClientGetUserOrder(nSortType, nType, nPage: Integer); //用户排行
procedure ClientHeroUseItems(nItemIdx: Integer; sItemName: string);
procedure ClientHeroUseSpell;
{$IFEND}
procedure DelMember(PlayObject: TPlayObject);
procedure SendGroupText(sMsg: string);
procedure LeaveGroup();
public
constructor Create(); override;
destructor Destroy; override;
function GetMagicInfo(sMagicName: string): pTUserMagic; overload;
function GetMagicInfo(nMagicID: Integer): pTUserMagic; overload;
procedure ClearViewRange;
procedure ClientTakeOnItems(btWhere: Byte; nItemIdx: Integer; sItemName: string);
procedure ClientTakeOffItems(btWhere: Byte; nItemIdx: Integer; sItemName: string);
{$IF HEROVERSION = 1}
function MakeHero(PlayObject: TPlayObject; HumanRcd: THumDataInfo): TBaseObject;
procedure ClientRecallHero();
procedure ClientHeroLogOut();
procedure ClientTakeOnItemsFormBag(nIndex: Integer; btWhere: Byte; nItemIdx: Integer; sItemName: string);
procedure ClientHeroTakeOnItems(btWhere: Byte; nItemIdx: Integer; sItemName: string);
procedure ClientHeroTakeOffItems(btWhere: Byte; nItemIdx: Integer; sItemName: string);
procedure ClientHeroTakeOffItemsToBag(nIndex: Integer; btWhere: Byte; nItemIdx: Integer; sItemName: string);
procedure ClientBagToBag(nIndex: Integer; nItemIdx: Integer; sItemName: string);
procedure ClientChgHeroStatus();
procedure ClientHeroProtect(nX, nY: Integer);
procedure ClientHeroAttack(BaseObject: TBaseObject; nX, nY: Integer);
{$IFEND}
function MakeSelf(PlayObject: TPlayObject; sMonName: string; nMaxMob: Integer; dwRoyaltySec: LongWord): TBaseObject;
function AbilityUp(UserMagic: pTUserMagic): Boolean;
procedure SearchViewRange(); override;
procedure PKDie(PlayObject: TPlayObject);
procedure GameTimeChanged();
procedure RunNotice();
function GetMyStatus(): Integer;
function IncGold(tGold: Integer): Boolean;
procedure IncGamePoint(nGamePoint: Integer);
procedure IncGameGold(nGameGold: Integer);
procedure SendSocket(DefMsg: pTDefaultMessage; sMsg: string); virtual;
procedure SendDefMessage(wIdent: Word; nRecog: Integer; nParam, nTag, nSeries: Word; sMsg: string); virtual;
function IsEnoughBag(): Boolean;
procedure SendAddItem(UserItem: pTUserItem); virtual;
procedure SendDelItems(UserItem: pTUserItem); virtual;
procedure Whisper(whostr, saystr: string);
function IsBlockWhisper(sName: string): Boolean;
function QuestCheckItem(sItemName: string; var nCount: Integer; var nParam: Integer; var nDura: Integer): pTUserItem;
function QuestTakeCheckItem(CheckItem: pTUserItem): Boolean;
procedure GainExp(dwExp: LongWord);
procedure GetExp(dwExp: LongWord);
procedure WinExp(dwExp: LongWord);
function DecGold(nGold: Integer): Boolean;
procedure DecGamePoint(nGamePoint: Integer);
procedure DecGameGold(nGameGold: Integer);
procedure Run(); override;
function Operate(ProcessMsg: pTProcessMessage): Boolean; override;
procedure RecalcAbilitys(); override;
procedure MakeSaveRcd(var HumanRcd: THumDataInfo);
procedure DealCancel();
procedure DealCancelA();
function GetShowName(): string; override;
procedure GetBackDealItems();
procedure Disappear(); override;
procedure GoldChange(sChrName: string; nGold: Integer);
procedure ProcessUserLineMsg(sData: string);
procedure ProcessSayMsg(sData: string); override;
procedure ClearStatusTime();
procedure UserLogon(); virtual;
procedure RefRankInfo(nRankNo: Integer; sRankName: string);
procedure RefUserState;
procedure SendGroupMembers();
procedure JoinGroup(PlayObject: TPlayObject);
function GeTBaseObjectInfo(): string;
function GetHitMsgCount(): Integer;
function GetSpellMsgCount(): Integer;
function GetWalkMsgCount(): Integer;
function GetRunMsgCount(): Integer;
function GetTurnMsgCount(): Integer;
function GetSiteDownMsgCount(): Integer;
function GetDigUpMsgCount(): Integer;
procedure SetScriptLabel(sLabel: string);
procedure GetScriptLabel(sMsg: string);
function LableIsCanJmp(sLabel: string): Boolean;
function GetMyInfo(): string;
procedure MakeGhost; override;
procedure ScatterBagItems(ItemOfCreat: TBaseObject); override;
procedure DropUseItems(BaseObject: TBaseObject); override;
procedure RecallHuman(sHumName: string);
procedure SendAddMagic(UserMagic: pTUserMagic);
procedure SendDelMagic(UserMagic: pTUserMagic);
procedure ReQuestGuildWar(sGuildName: string);
procedure SendUpdateItem(UserItem: pTUserItem);
procedure GetBagUseItems(var btDc: Byte; var btSc: Byte; var btMc: Byte; var btDura: Byte);
procedure RepairAllItem();
procedure RandomMove();
function IsGroupMember(Target: TBaseObject): Boolean;
procedure CmdShowEffect(Cmd: pTGameCmd; sEffect, sTime: string);
procedure CmdSignMapMove(Cmd: pTGameCmd);
procedure CmdGetUserItems(Cmd: pTGameCmd; sHumanName, sItemName, sItemCount, sType: string);
procedure CmdUserCmd(sLable: string);
procedure CmdEndGuild();
procedure CmdMemberFunction(sCmd, sParam: string);
procedure CmdMemberFunctionEx(sCmd, sParam: string);
procedure CmdSearchDear(sCmd, sParam: string);
procedure CmdSearchMaster(sCmd, sParam: string);
procedure CmdDearRecall(sCmd, sParam: string);
procedure CmdMasterRecall(sCmd, sParam: string);
procedure CmdSbkDoorControl(sCmd, sParam: string);
procedure CmdClearBagItem(Cmd: pTGameCmd; sHumanName: string);
procedure CmdShowUseItemInfo(Cmd: pTGameCmd; sHumanName: string);
procedure CmdBindUseItem(Cmd: pTGameCmd; sHumanName, sItem, sType: string);
procedure CmdUnBindUseItem(Cmd: pTGameCmd; sHumanName, sItem, sType: string);
procedure CmdLockLogin(Cmd: pTGameCmd);
procedure CmdViewDiary(sCmd: string; nFlag: Integer);
procedure CmdUserMoveXY(sCmd, sX, sY: string);
procedure CmdSearchHuman(sCmd, sHumanName: string);
procedure CmdGroupRecall(sCmd: string);
procedure CmdAllowGroupReCall(sCmd, sParam: string);
procedure CmdGuildRecall(sCmd, sParam: string);
procedure CmdChangeAttackMode(nMode: Integer; sParam1, sParam2, sParam3, sParam4, sParam5, sParam6, sParam7: string);
procedure CmdChangeSalveStatus();
procedure CmdTakeOnHorse(sCmd, sParam: string);
procedure CmdTakeOffHorse(sCmd, sParam: string);
procedure CmdPrvMsg(sCmd: string; nPermission: Integer; sHumanName: string);
procedure CmdHumanLocal(Cmd: pTGameCmd; sHumanName: string);
procedure CmdMapMove(Cmd: pTGameCmd; sMapName: string);
procedure CmdPositionMove(Cmd: pTGameCmd; sMapName, sX, sY: string);
procedure CmdHumanInfo(Cmd: pTGameCmd; sHumanName: string);
procedure CmdReLoadAdmin(sCmd: string);
procedure CmdReloadNpc(sParam: string);
procedure CmdReloadManage(Cmd: pTGameCmd; sParam: string);
procedure CmdReloadRobotManage;
procedure CmdReloadRobot;
procedure CmdReloadMonItems();
procedure CmdAdjustExp(Human: TPlayObject; nExp: Integer);
procedure CmdAddGuild(Cmd: pTGameCmd; sGuildName, sGuildChief: string);
procedure CmdDelGuild(Cmd: pTGameCmd; sGuildName: string);
procedure CmdGuildWar(sCmd, sGuildName: string);
procedure CmdChangeSabukLord(Cmd: pTGameCmd; sCASTLENAME, sGuildName: string; boFlag: Boolean);
procedure CmdForcedWallconquestWar(Cmd: pTGameCmd; sCASTLENAME: string);
procedure CmdOPTraining(sHumanName, sSkillName: string; nLevel: Integer);
procedure CmdOPDeleteSkill(sHumanName, sSkillName: string);
procedure CmdReloadGuildAll();
procedure CmdReAlive(Cmd: pTGameCmd; sHumanName: string);
procedure CmdAdjuestLevel(Cmd: pTGameCmd; sHumanName: string; nLevel: Integer);
procedure CmdAdjuestExp(Cmd: pTGameCmd; sHumanName, sExp: string);
procedure CmdBackStep(sCmd: string; nType, nCount: Integer);
procedure CmdFreePenalty(Cmd: pTGameCmd; sHumanName: string);
procedure CmdPKpoint(Cmd: pTGameCmd; sHumanName: string);
procedure CmdIncPkPoint(Cmd: pTGameCmd; sHumanName: string; nPoint: Integer);
procedure CmdHunger(sCmd, sHumanName: string; nHungerPoint: Integer);
procedure CmdHair(Cmd: pTGameCmd; sHumanName: string; nHair: Integer);
procedure CmdTrainingSkill(Cmd: pTGameCmd; sHumanName, sSkillName: string; nLevel: Integer);
procedure CmdTrainingMagic(Cmd: pTGameCmd; sHumanName, sSkillName: string; nLevel: Integer);
procedure CmdDelSkill(Cmd: pTGameCmd; sHumanName, sSkillName: string);
procedure CmdDeleteItem(Cmd: pTGameCmd; sHumanName, sItemName: string; nCount: Integer);
procedure CmdClearMission(Cmd: pTGameCmd; sHumanName: string);
procedure CmdTraining(sSkillName: string; nLevel: Integer);
procedure CmdChangeJob(Cmd: pTGameCmd; sHumanName, sJobName: string);
procedure CmdChangeGender(Cmd: pTGameCmd; sHumanName, sSex: string);
procedure CmdMission(Cmd: pTGameCmd; sX, sY: string);
procedure CmdMobPlace(Cmd: pTGameCmd; sX, sY, sMonName, sCount: string);
procedure CmdMobLevel(Cmd: pTGameCmd; Param: string);
procedure CmdMobCount(Cmd: pTGameCmd; sMapName: string);
procedure CmdHumanCount(Cmd: pTGameCmd; sMapName: string);
procedure CmdDisableFilter(sCmd, sParam1: string);
procedure CmdChangeUserFull(sCmd, sUserCount: string);
procedure CmdChangeZenFastStep(sCmd, sFastStep: string);
procedure CmdReconnection(sCmd, sIPaddr, sPort: string);
procedure CmdContestPoint(Cmd: pTGameCmd; sGuildName: string);
procedure CmdStartContest(Cmd: pTGameCmd; sParam1: string);
procedure CmdEndContest(Cmd: pTGameCmd; sParam1: string);
procedure CmdAnnouncement(Cmd: pTGameCmd; sGuildName: string);
procedure CmdKill(Cmd: pTGameCmd; sHumanName: string);
procedure CmdMakeItem(Cmd: pTGameCmd; sItemName: string; nCount: Integer);
procedure CmdSmakeItem(Cmd: pTGameCmd; nWhere, nValueType, nValue: Integer);
procedure CmdBonuPoint(Cmd: pTGameCmd; sHumName: string; nCount: Integer);
procedure CmdDelBonuPoint(Cmd: pTGameCmd; sHumName: string);
procedure CmdRestBonuPoint(Cmd: pTGameCmd; sHumName: string);
procedure CmdFireBurn(nInt, nTime, nN: Integer);
procedure CmdTestFire(sCmd: string; nRange, nType, nTime, nPoint: Integer);
procedure CmdTestStatus(sCmd: string; nType, nTime: Integer);
procedure CmdDelGold(Cmd: pTGameCmd; sHumName: string; nCount: Integer);
procedure CmdAddGold(Cmd: pTGameCmd; sHumName: string; nCount: Integer);
procedure CmdDelGameGold(sCmd, sHumName: string; nPoint: Integer);
procedure CmdAddGameGold(sCmd, sHumName: string; nPoint: Integer);
procedure CmdGameGold(Cmd: pTGameCmd; sHumanName: string; sCtr: string; nGold: Integer);
procedure CmdGamePoint(Cmd: pTGameCmd; sHumanName: string; sCtr: string; nPoint: Integer);
procedure CmdCreditPoint(Cmd: pTGameCmd; sHumanName: string; sCtr: string; nPoint: Integer);
procedure CmdMob(Cmd: pTGameCmd; sMonName: string; nCount, nLevel: Integer);
procedure CmdRefineWeapon(Cmd: pTGameCmd; nDc, nMc, nSc, nHit: Integer);
procedure CmdRecallMob(Cmd: pTGameCmd; sMonName: string; nCount, nLevel, nAutoChangeColor, nFixColor: Integer);
procedure CmdLuckPoint(sCmd: string; nPermission: Integer; sHumanName, sCtr, sPoint: string);
procedure CmdLotteryTicket(sCmd: string; nPermission: Integer; sParam1: string);
procedure CmdReloadGuild(sCmd: string; nPermission: Integer; sParam1: string);
procedure CmdReloadLineNotice(sCmd: string; nPermission: Integer; sParam1: string);
procedure CmdReloadAbuse(sCmd: string; nPermission: Integer; sParam1: string);
procedure CmdMobNpc(sCmd: string; nPermission: Integer; sParam1, sParam2, sParam3, sParam4: string);
procedure CmdNpcScript(sCmd: string; nPermission: Integer; sParam1, sParam2, sParam3: string);
procedure CmdDelNpc(sCmd: string; nPermission: Integer; sParam1: string);
procedure CmdKickHuman(Cmd: pTGameCmd; sHumName: string);
procedure CmdTing(Cmd: pTGameCmd; sHumanName: string);
procedure CmdSuperTing(Cmd: pTGameCmd; sHumanName, sRange: string);
procedure CmdMapMoveHuman(Cmd: pTGameCmd; sSrcMap, sDenMap: string);
procedure CmdShutup(Cmd: pTGameCmd; sHumanName, sTime: string);
procedure CmdShowMapInfo(Cmd: pTGameCmd; sParam1: string);
procedure CmdShutupRelease(Cmd: pTGameCmd; sHumanName: string; boAll: Boolean);
procedure CmdShutupList(Cmd: pTGameCmd; sParam1: string);
procedure CmdShowSbkGold(Cmd: pTGameCmd; sCASTLENAME, sCtr, sGold: string);
procedure CmdRecallHuman(Cmd: pTGameCmd; sHumanName: string);
procedure CmdReGotoHuman(Cmd: pTGameCmd; sHumanName: string);
procedure CmdShowHumanFlag(sCmd: string; nPermission: Integer; sHumanName, sFlag: string);
procedure CmdShowHumanUnitOpen(sCmd: string; nPermission: Integer; sHumanName, sUnit: string);
procedure CmdShowHumanUnit(sCmd: string; nPermission: Integer; sHumanName, sUnit: string);
procedure CmdChangeAdminMode(sCmd: string; nPermission: Integer; sParam1: string; boFlag: Boolean);
procedure CmdChangeObMode(sCmd: string; nPermission: Integer; sParam1: string; boFlag: Boolean);
procedure CmdChangeSuperManMode(sCmd: string; nPermission: Integer; sParam1: string; boFlag: Boolean);
procedure CmdChangeLevel(Cmd: pTGameCmd; sParam1: string);
procedure CmdChangeDearName(Cmd: pTGameCmd; sHumanName: string; sDearName: string);
procedure CmdChangeMasterName(Cmd: pTGameCmd; sHumanName: string; sMasterName, sIsMaster: string);
procedure CmdStartQuest(Cmd: pTGameCmd; sQuestName: string);
procedure CmdSetPermission(Cmd: pTGameCmd; sHumanName, sPermission: string);
procedure CmdClearMapMonster(Cmd: pTGameCmd; sMapName, sMonName, sItems: string);
procedure CmdReNewLevel(Cmd: pTGameCmd; sHumanName, sLevel: string);
procedure CmdDenyIPaddrLogon(Cmd: pTGameCmd; sIPaddr, sFixDeny: string);
procedure CmdDelDenyIPaddrLogon(Cmd: pTGameCmd; sIPaddr, sFixDeny: string);
procedure CmdShowDenyIPaddrLogon(Cmd: pTGameCmd; sIPaddr, sFixDeny: string);
procedure CmdDenyAccountLogon(Cmd: pTGameCmd; sAccount, sFixDeny: string);
procedure CmdDelDenyAccountLogon(Cmd: pTGameCmd; sAccount, sFixDeny: string);
procedure CmdShowDenyAccountLogon(Cmd: pTGameCmd; sAccount, sFixDeny: string);
procedure CmdDenyCharNameLogon(Cmd: pTGameCmd; sCharName, sFixDeny: string);
procedure CmdDelDenyCharNameLogon(Cmd: pTGameCmd; sCharName, sFixDeny: string);
procedure CmdShowDenyCharNameLogon(Cmd: pTGameCmd; sCharName, sFixDeny: string);
procedure CmdViewWhisper(Cmd: pTGameCmd; sCharName, sParam2: string);
procedure CmdSpirtStart(sCmd: string; sParam1: string);
procedure CmdSpirtStop(sCmd: string; sParam1: string);
procedure CmdSetMapMode(sCmd: string; sMapName, sMapMode, sParam1, sParam2: string);
procedure CmdShowMapMode(sCmd: string; sMapName: string);
procedure CmdClearHumanPassword(sCmd: string; nPermission: Integer; sHumanName: string);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?