procedure SetGlobal(GlobalRegion : String;VarName : String;VarValue : String); function GetGlobal(GlobalRegion : String;VarName : String) : String; procedure Connect; procedure Disconnect; procedure SetARStatus(Value : Boolean); function GetARStatus : Boolean; procedure SetPauseScriptOnDisconnectStatus(Value : Boolean); function GetPauseScriptOnDisconnectStatus : Boolean; function Connected : Boolean; function CharName : string; function CharTitle : string; function ShardName : String; function Self : Cardinal; function Sex : Byte; function Gold : Cardinal; function Armor : Word; function Weight : Word; function MaxWeight : Word; function Race : Byte; function WorldNum : Byte; function PetsCurrent : Byte; function PetsMax : Byte; function FireResist : Word; function ColdResist : Word; function PoisonResist : Word; function EnergyResist : Word; function ConnectedTime : TDateTime; function DisconnectedTime : TDateTime; function LastContainer : Cardinal; function LastTarget : Cardinal; function LastAttack : Cardinal; function LastStatus : Cardinal; function Backpack : Cardinal; function Ground : Cardinal; function Hidden : Boolean; function Poisoned : Boolean; function Paralyzed : Boolean; function Dead : Boolean; function WarMode : Boolean; function WarTargetID : Cardinal; procedure SetWarMode(Value : Boolean); procedure Attack(ObjdID : Cardinal); procedure UseSelfPaperdollScroll); procedure UseOtherPaperdollScroll(ID : Cardinal); function Str : Integer; function Int : Integer; function Dex : Integer; function Life : Integer; function HP : Integer; function Mana : Integer; function Stam : Integer; function MaxLife : Integer; function MaxHP : Integer; function MaxMana : Integer; function MaxStam : Integer; function Luck : Integer; function ExtendedInfo : TExtendedInfo; function TargetPresent : boolean; function TargetID : Cardinal; function WaitForTarget(MaxWaitTimeMS : Integer) : Boolean; procedure CancelTarget; procedure TargetToObject(ObjectID : Cardinal); procedure TargetToXYZ(X : Word;Y : Word;Z : ShortInt); procedure TargetToTile(TileModel : Word;X : Integer;Y : Integer;Z : Integer); procedure WaitTargetObject(ObjID : Cardinal); procedure WaitTargetTile(Tile : Word;X : Integer;Y : Integer;Z : Integer); procedure WaitTargetXYZ(X : Integer;Y : Integer;Z : Integer); procedure WaitTargetSelf; procedure WaitTargetType(ObjType : Word); procedure CancelWaitTarget; procedure WaitTargetGround(ObjType : Word); procedure WaitTargetLast; procedure Wait(WaitTimeMS : Integer); procedure UOSay(Text : String); procedure UOSayColor(Text : String;Color : Word); procedure ConsoleEntryReply(Text : String); procedure ConsoleEntryUnicodeReply(Text : String); function UseSkill(SkillName : String) : Boolean; procedure SkillLockState(SkillName : String;statState : Byte); function GetSkillValue(SkillName : String) : Double; function GetSkillCap(SkillName : String) : Double; procedure UseObject(ObjectID : Cardinal); function UseType(ObjType : Word;Color : Word) : Cardinal; function UseFromGround(ObjType : Word;Color : Word) : Cardinal; procedure ClickOnObject(ObjectID : Cardinal); function Cast(SpellName : String) : Boolean; function GetActiveAbility : String; procedure UsePrimaryAbility; procedure ToggleFly; procedure UseSecondaryAbility; function Power(Base : Extended;Exponent : Extended) : Extended; function TimeToStr(D : TDateTime) : string; function DateTimeToStr(D : TDateTime) : string; function StrToTime(consts : string) : TDateTime; function StrToDateTime(consts : string) : TDateTime; function MsToDateTime(TimeMS : Word) : TDateTime; function Timer : Cardinal; function GetTickCount : Cardinal; function LineID : Cardinal; function FoundedParamID : Integer; function LineType : Word; function LineName : String; function LineTime : TDateTime; function LineMsgType : Byte; function LineTextColor : Word; function LineTextFont : Word; function LineIndex : Integer; function LineCount : Integer; procedure AddToSystemJournal(Text : String); procedure AddToJournal(Text : String); function LastJournalMessage : String; function InJournal(Str : String) : Integer; function InJournalBetweenTimes(Str : String;TimeBegin : TDateTime;TimeEnd : TDateTime) : Integer; function Journal(StringIndex : Integer) : String; procedure SetJournalLine(StringIndex : Integer;Text : String); procedure ClearJournal; function LowJournal : Integer; function HighJournal : Integer; function WaitJournalLine(StartTime : TDateTime;Str : String;MaxWaitTimeMS : Integer) : Boolean; function WaitJournalLineSystem(StartTime : TDateTime;Str : String;MaxWaitTimeMS : Integer) : Boolean; procedure ClearJournalIgnore; procedure ClearChatUserIgnore; procedure AddJournalIgnore(Str : String); procedure AddChatUserIgnore(User : String); function FindType(ObjType : Word;Container : Cardinal) : Cardinal; function FindTypeEx(ObjType : Word;Color : Word;Container : Cardinal;InSub : Boolean) : Cardinal; function FindNotoriety(ObjType : Word;Notoriety : Byte) : Cardinal; function FindAtCoord(X : Word;Y : Word) : Cardinal; procedure Ignore(ObjID : Cardinal); procedure IgnoreOff(ObjID : Cardinal); procedure IgnoreReset; function GetIgnoreList(var UserList : TStringList) : Boolean; function GetFindedList(var UserList : TStringList) : Boolean; function FindItem : Cardinal; function FindCount : Integer; function FindQuantity : Integer; function FindFullQuantity : Integer; function PredictedX : Word; function PredictedY : Word; function PredictedZ : ShortInt; function PredictedDirection : Byte; function GetX(ObjID : Cardinal) : Integer; function GetY(ObjID : Cardinal) : Integer; function GetZ(ObjID : Cardinal) : ShortInt; function GetName(ObjID : Cardinal) : String; function GetAltName(ObjID : Cardinal) : String; function GetTitle(ObjID : Cardinal) : String; function GetCliloc(ObjID : Cardinal) : String; function GetType(ObjID : Cardinal) : Word; function GetQuantity(ObjID : Cardinal) : Integer; function GetPrice(ObjID : Cardinal) : Cardinal; function GetDirection(ObjID : Cardinal) : Byte; function GetDistance(ObjID : Cardinal) : Integer; function GetColor(ObjID : Cardinal) : Word; function GetStr(ObjID : Cardinal) : Integer; function GetInt(ObjID : Cardinal) : Integer; function GetDex(ObjID : Cardinal) : Integer; function GetHP(ObjID : Cardinal) : Integer; function GetMaxHP(ObjID : Cardinal) : Integer; function GetMana(ObjID : Cardinal) : Integer; function GetMaxMana(ObjID : Cardinal) : Integer; function GetStam(ObjID : Cardinal) : Integer; function GetMaxStam(ObjID : Cardinal) : Integer; function GetNotoriety(ObjID : Cardinal) : Byte; function GetParent(ObjID : Cardinal) : Cardinal; function IsWarMode(ObjID : Cardinal) : Boolean; function IsNPC(ObjID : Cardinal) : Boolean; function IsDead(ObjID : Cardinal) : Boolean; function IsRunning(ObjID : Cardinal) : Boolean; function IsContainer(ObjID : Cardinal) : Boolean; function IsHidden(ObjID : Cardinal) : Boolean; function IsMovable(ObjID : Cardinal) : Boolean; function IsYellowHits(ObjID : Cardinal) : Boolean; function IsPoisoned(ObjID : Cardinal) : Boolean; function IsParalyzed(ObjID : Cardinal) : Boolean; function IsFemale(ObjID : Cardinal) : Boolean; function DragItem(ItemID : Cardinal;Count : Integer) : Boolean; function DropItem(MoveIntoID : Cardinal;X : Integer;Y : Integer;Z : Integer) : Boolean; function MoveItem(ItemID : Cardinal;Count : Integer;MoveIntoID : Cardinal;X : Integer;Y : Integer;Z : Integer) : Boolean; function Grab(ItemID : Cardinal;Count : Integer) : Boolean; function Drop(ItemID : Cardinal;Count : Integer;X : Integer;Y : Integer;Z : Integer) : Boolean; function DropHere(ItemID : Cardinal) : Boolean; function MoveItems(Container : Cardinal;ItemsType : Word;ItemsColor : Word;MoveIntoID : Cardinal;X : Integer;Y : Integer;Z : Integer;DelayMS : Integer) : Boolean; procedure RequestContextMenu(ID : Cardinal); procedure SetContextMenuHook(MenuID : Cardinal;EntryNumber : Byte); function IsTrade : Boolean); function GetTradeContainer(TradeNum : Byte;Num : Byte) : Cardinal; function TradeCheck(TradeNum : Byte;Num : Byte) : Boolean; function GetTradeOpponent(TradeNum : Byte) : Cardinal; function GetTradeOpponentName(TradeNum : Byte) : String; function TradeCount : Byte; procedure ConfirmTrade(TradeNum : Byte); function CancelTrade(TradeNum : Byte) : Boolean; procedure WaitMenu(UP : String;UC : String); procedure CloseMenu; procedure AutoMenu(UP : String;UC : String); procedure CancelMenu; function MenuHookPresent : Boolean; function MenuPresent : Boolean; procedure WaitGump(Value : String); procedure GumpAutoTextEntry(TextEntryID : Integer;Value : String); procedure GumpAutoRadiobutton(RadiobuttonID : Integer;Value : Integer); procedure GumpAutoCheckBox(CheckBoxID : Integer;Value : Integer); function NumGumpButton(GumpIndex : Word;Value : Integer) : Boolean; function NumGumpTextEntry(GumpIndex : Word;TextEntryID : Integer;Value : String) : Boolean; function NumGumpRadiobutton(GumpIndex : Word;RadiobuttonID : Integer;Value : Integer) : Boolean; function NumGumpCheckBox(GumpIndex : Word;CBID : Integer;Value : Integer) : Boolean; procedure WaitTextEntry(Value : String); function GetGumpsCount : Integer; function IsGump : Boolean; function GetGumpSerial(GumpIndex : Word) : Cardinal; function GetGumpID(GumpIndex : Word) : Cardinal; function IsGumpCanBeClosed(GumpIndex : Word) : Boolean; procedure GetGumpTextLines(GumpIndex : Word;var TL : TStringList); procedure GetGumpFullLines(GumpIndex : Word;var TL : TStringList); procedure GetGumpShortLines(GumpIndex : Word;var TL : TStringList); procedure GetGumpButtonsDescription(GumpIndex : Word;var TL : TStringList); procedure CloseSimpleGump(GumpIndex : Word); procedure AddGumpIgnoreBySerial(Serial : Cardinal); procedure AddGumpIgnoreByID(ID : Cardinal); procedure ClearGumpsIgnore; function RhandLayer : Byte; function LhandLayer : Byte; function ShoesLayer : Byte; function PantsLayer : Byte; function ShirtLayer : Byte; function HatLayer : Byte; function GlovesLayer : Byte; function RingLayer : Byte; function TalismanLayer : Byte; function NeckLayer : Byte; function HairLayer : Byte; function WaistLayer : Byte; function TorsoLayer : Byte; function BraceLayer : Byte; function BeardLayer : Byte; function TorsoHLayer : Byte; function EarLayer : Byte; function ArmsLayer : Byte; function CloakLayer : Byte; function BpackLayer : Byte; function RobeLayer : Byte; function EggsLayer : Byte; function LegsLayer : Byte; function HorseLayer : Byte; function RstkLayer : Byte; function NRstkLayer : Byte; function SellLayer : Byte; function BankLayer : Byte; function ObjAtLayer(LayerType : Byte) : Cardinal; function ObjAtLayerEx(LayerType : Byte;PlayerID : Cardinal) : Cardinal; function GetLayer(Obj : Cardinal) : Byte; function WearItem(Layer : Byte;Obj : Cardinal) : Boolean; function disarm : Boolean; function equip(Layer : Byte;Obj : Cardinal) : Boolean; function equipt(Layer : Byte;ObjType : Word) : Boolean; function unequip(Layer : Byte) : Boolean; function undress : Boolean; function DressSavedSet : Boolean; function EquipDressSet : Boolean; procedure SetDress; function Count(ObjType : Word) : Integer; function CountGround(ObjType : Word) : Integer; function CountEx(ObjType : Word;Color : Word;Container : Cardinal) : Integer; function BP : Word; function BM : Word; function GA : Word; function GS : Word; function MR : Word; function NS : Word; function SA : Word; function SS : Word; function BPCount : Word; function BMCount : Word; function GACount : Word; function GSCount : Word; function MRCount : Word; function NSCount : Word; function SACount : Word; function SSCount : Word; function BMSearch(StartPos : Integer;const S : String;P : String) : Integer; function IsFigureText(s : string) : boolean; function ConvertCharArray2String(arr: array of Char) : String; procedure StrBreakApart(const S : string;Delimeter : string;Parts : TStrings); procedure AutoBuy(ItemType : Word;ItemColor : Word;Quantity : Word); procedure AutoBuyEx(ItemType : Word;ItemColor : Word;Quantity : Word;Price : Cardinal;Name : String); procedure GetShopList(var List : TStringList); procedure ClearShopList; function GetAutoBuyDelay : Word; procedure SetAutoBuyDelay(Value : Word); procedure AutoSell(ItemType : Word;ItemColor : Word;Quantity : Word); function GetAutoSellDelay : Word; procedure SetAutoSellDelay(Value : Word); function GetTileFlags(Group : byte;Tile : Word) : Cardinal; function ConvertIntegerToFlags(group : byte;I : Cardinal) : TTileDataFlagSet; function GetLayerCount(x : word;y : word;WorldNum : byte) : byte; function GetLandTileData(Tile : Word) : TLandTileData; function GetStaticTileData(Tile : Word) : TStaticTileData; function ReadStaticsXY(X : word;Y : word;WorldNum : byte) : TStaticCell; function GetSurfaceZ(X : Word;Y : Word;WorldNum : Byte) : ShortInt; function GetMapCell(X : Word;Y : Word;WorldNum : Byte) : TMapCell; function IsWorldCellPassable(CurrX : Word;CurrY : Word;Z : ShortInt;DestX : Word;DestY : Word;var DestZ : ShortInt;WorldNum : Byte) : Boolean; function GetLandTilesArray(Xmin : Word;Ymin : Word;Xmax : Word;Ymax : Word;WorldNum : byte;TileType : Word;var LandTilesArray : TFoundTilesArray) : Word; function GetStaticTilesArray(Xmin : Word;Ymin : Word;Xmax : Word;Ymax : Word;WorldNum : byte;TileType : Word;var FoundTilesArray : TFoundTilesArray) : Word; function IntToHex(Value : Integer;Digits : Integer) : String; function StrToBool(const S : string) : Boolean; function Random(const ARange : Integer) : Integer; function FloatToStrF(Value : Extended;Format : TFloatFormat;Precision : Integer;Digits : Integer) : string; function RandomRange(const AFrom : Integer;ATo : Integer) : Integer; procedure Randomize; function FileExists(FileName : String) : Boolean; procedure Beep; procedure ShowMessage(const Msg : string); function Sign(const AValue : Integer) : ShortInt; function PlayWav(FileName : String) : Boolean; procedure SetEventProc(Eventname : TPacketEvent;Procname : String); procedure SetCmdPrefix(Value : Char); procedure FillNewWindow(s : String); procedure SetSilentMode(Value : Boolean); procedure Alarm; procedure SetEasyUO(num : Integer;Regvalue : String); function GetEasyUO(num : Integer) : String; function EUO2Type(EUO : String) : Word; function EUO2ID(EUO : String) : Cardinal; procedure RequestStats(ObjID : Cardinal); procedure HelpRequest; procedure QuestRequest; procedure RenameMobile(Mob_ID : Cardinal;NewName : String); procedure OpenDoor; procedure Bow; procedure Salute; procedure HTTP_Get(URL : String); function HTTP_Post(URL : String;PostData : TStringList) : String; function HTTP_Body : String; function HTTP_Header : String; function ICQConnected : Boolean; procedure ICQConnect(UIN : String;password : String); procedure ICQDisconnect; procedure ICQSetXStatus(Num : Byte); procedure ICQSetStatus(Num : Byte); procedure ICQSendText(DestinationUIN : String;Text : String); function AddFigure(const figure : TMapFigure) : Cardinal; function RemoveFigure(id : Cardinal) : boolean; function UpdateFigure(id : Cardinal;const figure : TMapFigure) : boolean; procedure ClearFigures; procedure CheckLagBegin; function CheckLagEnd : Boolean; function CheckLag(timeoutMS : Integer) : Boolean; procedure SetRunUnmountTimer(Value : Word); procedure SetWalkMountTimer(Value : Word); procedure SetRunMountTimer(Value : Word); procedure SetWalkUnmountTimer(Value : Word); function GetRunUnMountTimer : Word; function GetWalkMountTimer : Word; function GetRunMountTimer : Word; function GetWalkUnmountTimer : Word; function GetNextStepZ(CurrX : Word;CurrY : Word;DestX : Word;DestY : Word;WorldNum : byte;Z : ShortInt) : ShortInt; function ABS(X : integer) : cardinal; function Dist(X1 : word;Y1 : word;X2 : word;Y2 : word) : word; function CalcDir(Xfrom : integer;Yfrom : integer;Xto : integer;Yto : integer) : byte; function Raw_Move(Direction : Byte;Running : Boolean) : Boolean; function Step(Direction : Byte;Running : Boolean) : Byte; function StepQ(Direction : Byte;Running : Boolean) : Integer; procedure SetBadLocation(X : Word;Y : Word); procedure ClearBadLocationList; procedure SetBadObject(ObjType : Word;Color : Word;Radius : Byte); procedure ClearBadObjectList; function MoveXY(Xdst : Word;Ydst : Word;Optimized : Boolean;Accuracy : Integer;Running : Boolean) : Boolean; function newMoveXY(Xdst : Word;Ydst : Word;Optimized : Boolean;Accuracy : Integer;Running : Boolean) : Boolean; function MoveXYZ(Xdst : Word;Ydst : Word;Zdst : ShortInt;AccuracyXY : Integer;AccuracyZ : Integer;Running : Boolean) : Boolean; function GetPathArray(DestX : Word;DestY : Word;Optimized : Boolean;Accuracy : integer;var PathArray : TPathArray) : Integer; function GetPathArray3D(StartX : Word;StartY : Word;StartZ : ShortInt;FinishX : Word;FinishY : Word;FinishZ : ShortInt;WorldNum : Byte;AccuracyXY : integer;AccuracyZ : integer;Run : Boolean;var PathArray : TPathArray) : Integer; function MessageBoxTimeOut(Msg : string;DlgType : TMsgDlgType;Buttons : TMsgDlgButtons;TimeOutInterval : Cardinal) : Integer; function GetTooltip(ObjID : Cardinal) : String; function SetCatchBag(ObjID : Cardinal) : Byte; procedure UnsetCatchBag; function EmptyContainer(Container : Cardinal;DestContainer : Cardinal;DelayMS : Word) : Boolean; function UseProxy : Boolean; function ProxyIP : String; function ProxyPort : Word; procedure SetStatState(statNum : Byte;statState : Byte); function ConvertPointer2TByteArr(const Cardinal_Pointer: Cardinal) : TByteArr; function SendMessageToWindow(WindowHandle : Cardinal;CharID : Cardinal;ByteArr: TByteArr) : Integer; function GetSelfHandle : Cardinal; function GetStaticArt(Id : Cardinal;Hue : Word) : TBitmap; function ProfileName : string; function ChangeProfile(Name : String) : Integer; function CheckLOS(xf : Integer;yf : Integer;zf : Integer;xt : Integer;yt : Integer;zt : Integer;WorldNum : Byte) : Boolean; procedure GetContextMenu(var list : TStringList); procedure ClearContextMenu; function StealthInfo : TAboutStealth; var FindDistance : Integer; var FindVertical : Integer; var moveOpenDoor : Boolean; var moveCheckStamina : Word; var moveThroughNPC : Word; var moveBetweenTwoCorners : Boolean; var moveThroughCorner : Boolean; var moveHeuristicMult : Integer; var moveTurnCost : Integer; var DressSpeed : Word; var DropDelay : Cardinal; var DropCheckCoord : Boolean; var LOSOptions : Cardinal; function StealthPath : String; function CurrentScriptPath : String; function MobileCanBeRenamed(Mob_ID : Cardinal) : Boolean; procedure ClientPrint(Text : String); procedure ClientPrintEx(SenderID : Cardinal;Color : Word;Font : Word;Text : String);