Script types
List of all available internal pascal script types for Stealth version 10.1.1.
For Python its partially same, if any doubt - looks into wrapper methods.py
TPacketEvent = (evItemInfo=0, evItemDeleted=1, evSpeech=2, evDrawGamePlayer=3,
evMoveRejection=4, evDrawContainer=5, evAddItemToContainer=6,
evAddMultipleItemsInCont = 7, evRejectMoveItem = 8, evUpdateChar = 9,
evDrawObject = 10, evMenu = 11, evMapMessage = 12, evAllow_RefuseAttack = 13,
evClilocSpeech = 14, evClilocSpeechAffix = 15, evUnicodeSpeech = 16,
evBuff_DebuffSystem = 17, evClientSendResync = 18, evCharAnimation = 19,
evUnused1 = 20, evUnused2 = 21, evUnused3 = 22, evUnused4 = 23,
evIncomingGump = 24, evTimer1 = 25, evTimer2 = 26,
evWindowsMessage = 27, evSound = 28, evDeath = 29,
evQuestArrow = 30, evPartyInvite = 31, evMapPin = 32, evGumpTextEntry = 33,
evGraphicalEffect = 34, evIRCIncomingText = 35, evMessengerEvent = 36,
evSetGlobalVar = 37, evUpdateObjStats = 38, evGlobalChat = 39,
evWarDamage = 40);
TMoverStepCallBack = function(PresentX : Word; PresentY : Word; PresentZ : ShortInt) : Boolean;
TAboutStealth = record
StealthVersion : String;
Build : String;
BuildDate : String;
GITRevNumber : Word;
end;
TPoint = record
X: Integer;
Y: Integer;
end;
TScriptState = (st_Unknown, st_Started, st_Paused);
TTileDataFlags = (tsfBackground, tsfWeapon, tsfTransparent, tsfTranslucent, tsfWall, tsfDamaging, tsfImpassable, tsfWet, tsfUnknown, tsfSurface, tsfBridge, tsfGeneric, tsfWindow, tsfNoShoot, tsfPrefixA, tsfPrefixAn, tsfInternal, tsfFoliage, tsfPartialHue, tsfUnknown1, tsfMap, tsfContainer, tsfWearable, tsfLightSource, tsfAnimated, tsfNoDiagonal, tsfUnknown2, tsfArmor, tsfRoof, tsfDoor, tsfStairBack, tsfStairRight, tlfTranslucent, tlfWall, tlfDamaging, tlfImpassable, tlfWet, tlfSurface, tlfBridge, tlfPrefixA, tlfPrefixAn, tlfInternal, tlfMap, tlfUnknown3);
TTileDataFlagSet = set of TTileDataFlags;
TFigureCoord = (fcWorld, fcScreen);
TFigureKind = (fkLine, fkEllipse, fkRectangle, fkDirection, fkText);
TMapFigure = record
kind : TFigureKind;
coord : TFigureCoord;
x1 : Integer;
y1 : Integer;
x2 : Integer;
y2 : Integer;
brushColor : TColor;
brushStyle : TBrushStyle;
color : TColor;
worldNum : Byte;
text : String;
end;
**PS ONLY!**
TTileName = array [ 0 .. 19] of AnsiChar;
**DWS**
TLandTileData = record
Flags : Cardinal;
Flags2 : Cardinal;
TextureID : Word;
Name : String;
end;
**PS**
TLandTileData = record
Flags : Cardinal;
Flags2 : Cardinal;
TextureID : Word;
Name : TTileName;
end;
**DWS**
TStaticTileData = record
Flags : Int64;
Weight : Integer;
Height : Integer;
RadarColorRGBA : Cardinal;
Name : TTileName;
end;
**PS**
TStaticTileData = record
Flags : Int64;
Weight : Integer;
Height : Integer;
RadarColorRGBA : Cardinal;
Name : TTileName;
end;
TStaticItem = record
Tile : Word;
X : Word;
Y : Word;
Z : ShortInt;
Color : Word;
end;
TStaticCell = record
Statics : array of TStaticItem;
StaticCount : Byte;
end;
TMapCell = record
Tile : Word;
Z : ShortInt;
end;
TMyPoint = record
X : Word;
Y : Word;
Z : ShortInt;
end;
**DWS**
TPathArray = TArray<TMyPoint>; //dynamic array
**PS**
TPathArray = array [0..999] of TMyPoint;
TFoundTile = record
Tile : Word;
X : SmallInt;
Y : SmallInt;
Z : ShortInt;
end;
**DWS**
TFoundTilesArray = TArray<TFoundTile>; //dynamic array
**PS**
TFoundTilesArray = array [0..999] of TFoundTile;
TBrushStyle=( bsSolid, bsClear, bsHorizontal, bsVertical, bsFDiagonal, bsBDiagonal, bsCross, bsDiagCross );
TColor = integer;
TFigureCoord = (fcWorld, fcScreen);
TFigureKind = (fkLine, fkEllipse, fkRectangle, fkDirection, fkText);
TMapFigure = record
kind : TFigureKind;
coord : TFigureCoord;
x1 : Integer;
y1 : Integer;
x2 : Integer;
y2 : Integer;
brushColor : TColor;
brushStyle : TBrushStyle;
color : TColor;
worldNum : Byte;
text : String;
end;
TTargetInfo = record
ID : Cardinal;
Tile : Word;
X : Word;
Y : Word;
Z : ShortInt;
end;
TExtendedInfo = record
MaxWeight : Word;
Race : Byte;
StatCap : Word;
PetsCurrent : Byte;
PetsMax : Byte;
FireResist : Word;
ColdResist : Word;
PoisonResist : Word;
EnergyResist : Word;
Luck : SmallInt;
DamageMin : Word;
DamageMax : Word;
Tithing_points : Cardinal;
ArmorMax : Word;
fireresistMax : Word;
coldresistMax : Word;
poisonresistMax : Word;
energyresistMax : Word;
DefenseChance : Word;
DefensceChanceMax : Word;
Hit_Chance_Incr : Word;
Damage_Incr : Word;
Swing_Speed_Incr : Word;
Lower_Reagent_Cost : Word;
Spell_Damage_Incr : Word;
Faster_Cast_Recovery : Word;
Faster_Casting : Word;
Lower_Mana_Cost : Word;
HP_Regen : Word;
Stam_Regen : Word;
Mana_Regen : Word;
Reflect_Phys_Damage : Word;
Enhance_Potions : Word;
Strength_Incr : Word;
Dext_Incr : Word;
Int_Incr : Word;
HP_Incr : Word;
Stam_Incr : Word;
Mana_Incr : Word;
end;
TClilocItemRec = record
ClilocID : Cardinal;
Params : array of String;
end;
TClilocRec = record
Count : Cardinal;
Items : array of TClilocItemRec;
end;
TGroup = record
groupnumber : Integer;
Page : Integer;
ElemNum : Integer;
end;
TEndGroup = record
groupnumber : Integer;
Page : Integer;
ElemNum : Integer;
end;
TPage = record
Page : Integer;
ElemNum : Integer;
end;
TMasterGump = record
ID : Cardinal;
ElemNum : Integer;
end;
TGumpButton = record
x : Integer;
y : Integer;
released_id : Integer;
pressed_id : Integer;
quit : Integer;
page_id : Integer;
return_value : Integer;
Page : Integer;
ElemNum : Integer;
end;
TButtonTileArt = record
x : Integer;
y : Integer;
released_id : Integer;
pressed_id : Integer;
quit : Integer;
page_id : Integer;
return_value : Integer;
art_id : Integer;
Hue : Integer;
art_x : Integer;
art_y : Integer;
ElemNum : Integer;
end;
TCheckerTrans = record
x : Integer;
y : Integer;
width : Integer;
height : Integer;
Page : Integer;
ElemNum : Integer;
end;
TCroppedText = record
x : Integer;
y : Integer;
width : Integer;
height : Integer;
color : Integer;
text_id : Integer;
Page : Integer;
ElemNum : Integer;
end;
TGumpPic = record
x : Integer;
y : Integer;
id : Integer;
Hue : Integer;
Page : Integer;
ElemNum : Integer;
end;
TGumpPicTiled = record
x : Integer;
y : Integer;
width : Integer;
height : Integer;
gump_id : Integer;
Page : Integer;
ElemNum : Integer;
end;
TRadio = record
x : Integer;
y : Integer;
released_id : Integer;
pressed_id : Integer;
status : Integer;
return_value : Integer;
Page : Integer;
ElemNum : Integer;
end;
TCheckBox = record
x : Integer;
y : Integer;
released_id : Integer;
pressed_id : Integer;
status : Integer;
return_value : Integer;
Page : Integer;
ElemNum : Integer;
end;
TResizePic = record
x : Integer;
y : Integer;
gump_id : Integer;
width : Integer;
height : Integer;
Page : Integer;
ElemNum : Integer;
end;
TGumpText = record
x : Integer;
y : Integer;
color : Integer;
text_id : Integer;
Page : Integer;
ElemNum : Integer;
end;
TTextEntry = record
x : Integer;
y : Integer;
width : Integer;
height : Integer;
color : Integer;
return_value : Integer;
default_text_id : Integer;
Value : String;
Page : Integer;
ElemNum : Integer;
end;
TTilePic = record
x : Integer;
y : Integer;
id : Integer;
Page : Integer;
ElemNum : Integer;
end;
TTilePicHue = record
x : Integer;
y : Integer;
id : Integer;
color : Integer;
Page : Integer;
ElemNum : Integer;
end;
TTooltip = record
Cliloc_ID : Cardinal;
Arguments : String;
Page : Integer;
ElemNum : Integer;
end;
THtmlGump = record
x : Integer;
y : Integer;
width : Integer;
height : Integer;
text_id : Integer;
background : Integer;
scrollbar : Integer;
Page : Integer;
ElemNum : Integer;
end;
TXmfHTMLGump = record
x : Integer;
y : Integer;
width : Integer;
height : Integer;
Cliloc_id : Cardinal;
background : Integer;
scrollbar : Integer;
Page : Integer;
ElemNum : Integer;
end;
TXmfHTMLGumpColor = record
x : Integer;
y : Integer;
width : Integer;
height : Integer;
Cliloc_id : Cardinal;
background : Integer;
scrollbar : Integer;
Hue : Integer;
Page : Integer;
ElemNum : Integer;
end;
TXmfHTMLTok = record
x : Integer;
y : Integer;
width : Integer;
height : Integer;
background : Integer;
scrollbar : Integer;
Color : Integer;
Cliloc_id : Cardinal;
Arguments : String;
Page : Integer;
ElemNum : Integer;
end;
TItemProperty = record
Prop : Cardinal;
ElemNum : Integer;
end;
TPicInPic = record
x : Integer;
y : Integer;
graphic : Integer;
startX : Integer;
startY : Integer;
width : Integer;
height : Integer;
ElemNum : Integer;
end;
TTilePicAsGumpPic = record
x : Integer;
y : Integer;
graphic : Integer;
color : Integer;
race : Integer;
bodyid : Integer;
ElemNum : Integer;
end;
TToggleUpperWordCase = record
Arguments : String;
ElemNum : Integer;
end;
TGumpPicHued = record
x : Integer;
y : Integer;
graphic : Integer;
color : Integer;
ElemNum : Integer;
end;
TUnknownItem = record
CmdName : String;
Arguments : String;
ElemNum : Integer;
end;
TGumpInfo = record
Serial : Cardinal;
GumpID : Cardinal;
X : SmallInt;
Y : SmallInt;
Pages : Integer;
NoMove : Boolean;
NoResize : Boolean;
NoDispose : Boolean;
NoClose : Boolean;
Groups : TArray<TGroup>;
EndGroups : TArray<TEndGroup>;
GumpButtons : TArray<TGumpButton>;
ButtonTileArts : TArray<TButtonTileArt>;
CheckBoxes : TArray<TCheckBox>;
CheckerTrans : TArray<TCheckerTrans>;
CroppedText : TArray<TCroppedText>;
GumpPics : TArray<TGumpPic>;
GumpPicTiled : TArray<TGumpPicTiled>;
RadioButtons : TArray<TRadio>;
ResizePics : TArray<TResizePic>;
GumpText : TArray<TGumpText>;
TextEntries : TArray<TTextEntry>;
Text : TArray<String>;
TextEntriesLimited : TArray<TTextEntry>;
TilePics : TArray<TTilePic>;
TilePicHue : TArray<TTilePicHue>;
Tooltips : TArray<TTooltip>;
HtmlGump : TArray<THtmlGump>;
XmfHtmlGump : TArray<TXmfHtmlGump>;
XmfHTMLGumpColor : TArray<TXmfHTMLGumpColor>;
XmfHTMLTok : TArray<TXmfHTMLTok>;
ItemProperties : TArray<TItemProperty>;
fPicInPics : TArray<TPicInPic>;
fTilePicAsGumpPics : TArray<TTilePicAsGumpPic>;
fToggleUpperWordCases : TArray<TToggleUpperWordCase>;
fGumpPicsHued : TArray<TGumpPicHued>;
end;
TBuffIcon = record
Attribute_ID : Word;
TimeStart : TDateTime;
Seconds : Word;
ClilocID1 : Cardinal;
ClilocID2 : Cardinal;
end;
TBuffBarInfo = record
Count : Byte;
Buffs : array of TBuffIcon;
end;
TMultiItem = packed record
ID : Cardinal;
X : Word;
Y : Word;
Z : ShortInt;
XMin : Word;
XMax : Word;
YMin : Word;
YMax : Word;
Width : Word;
Height : Word;
end;
TMultiItems = array of TMultiItem;
TMenuResponse = packed record
Model : Word;
Color : Word;
Text : String;
end;
TMenuResponses = TArray<TMenuResponse>;
TMultiPart = packed record
Graphic : Word;
X : Word;
Y : Word;
Z : ShortInt;
Flag : Cardinal;
end;
TMultiParts = TArray<TMultiPart>;
TScriptItemInfo = packed record
ScriptIndex : Integer;
ScriptName : String;
ScriptState : TScriptState;
end;
TScriptItemInfoArray = array of TScriptItemInfo;