; TextPad syntax definitions for Skunkworks ; Started by Therkyn (MT) - 28 Jun 02 ; Put this file into \program files\text pad 4\system ; Then you'll need to "Configure" "New Document Class" ; and probably have to go into "Configure" "Preferences" ; "Document Classes" "Skunkworks" "Syntax" and add "." ; to your "words contain" list. C=1 [Syntax] Namespace1 = 6 IgnoreCase = No KeyWordLength = BracketChars = {[()]} OperatorChars = -+*/<>!~%^&|= PreprocStart = # SyntaxStart = SyntaxEnd = HexPrefix = 0x CommentStart = /* CommentEnd = */ CommentStartAlt = CommentEndAlt = SingleComment = // SingleCommentCol = SingleCommentAlt = SingleCommentColAlt = SingleCommentEsc = StringsSpanLines = Yes StringStart = " StringEnd = " StringAlt = StringEsc = \ CharStart = ' CharEnd = ' CharEsc = \ [Keywords 1] ;Command Loops continue do else false for if new null return true while function break switch [Keywords 2] ;JScript & SW Standard Functions Array Date Math.floor Math.ceil .match Object skapi AcoFindInInv AcoFromEqm AcoFromIpackIitem AcoFromOid AcoFromSz ActivateAC AddHandler CastSpell CitemOfKindInInv ClickLobbyPlay CoacoFromEqm CoacoFromOcm Keys MaplocFromArray MaplocFromLatLng MaplocFromSz MouseButton MouseMove OutputLine OutputSz PasteSz PxtNew RemoveControls RemoveHandler SelectAco SetAcoSelPrev SetControlProperty ShowControls SklvlDefaultFromSkid SklvlUnbuffedFromSkid Sleep TimerNew WaitEvent WavNew acoChar acoChar acoSelPrev acoSelected arc burdenCur cchar chop clrPixel coordinationUnbuffed cpack cpyCash dxpRes dxpWindow dypRes dypWindow enduranceUnbuffed eqmEquipped expTotal expUnspent fCombatMode fInChatBuffer fRunningOnNT focusUnbuffed healthCur healthMaxUnbuffed lvl manaCur manaMaxUnbuffed maplocCur plig quicknessUnbuffed rank rgspellid rgszChar selfUnbuffed skpUnspent staminaCur staminaMaxUnbuffed strengthUnbuffed szArgs szDirAC szDirDecal szDirSkunkWorks szGender szName szProfession szRace szVersion szVersionAC szWorld [Keywords 3] ;Skunkworks Constants maploc arcSuccess arcCombatMode arcChargedTooFar arcTooBusy arcCantMoveToObject arcCanceled arcFatigued arcOutOfAmmo arcMissleMisfire arcImpossibleSpell arcDontKnowSpell arcIncorrectTarget arcOutOfComps arcNotEnoughMana arcFizzle arcNoTarget arcSpellMisfire attrNil attrStrength attrEndurance attrQuickness attrCoordination attrFocus attrSelf attrMax bpartHead bpartChest bpartAbdomen bpartUpperArm bpartLowerArm bpartHand bpartUpperLeg bpartLowerLeg bpartFoot chopAutoShortcut chopRepeatAttacks chopAcceptAllegiance chopAcceptFellowship chopInvertMouseLook chopUnknown chopAcceptGifts chopKeepTargetInView chopTooltips chopDeceive chopRunAsDefault chopStayInChat chopAdvancedCombat chopAutoTarget chopRClickMouseLook chopVividTargeting chopDisableWeather chopIgnoreTrade chopShareXP chopAcceptCorpsePerm chopShareLoot chopStretchUI chopShowCoords chopSpellDurations chopMuteWhenInactive chopDisableHouseFX chopDragStartsTrade cmcGreen cmcWhite cmcDarkYellow cmcRed cmcLightBlue cmcDimWhite cmcCyan cmcBlue cmidAllegiancePanel cmidAttributesPanel cmidAutoRun cmidAutosortSelected cmidCameraCloser cmidCameraFarther cmidCameraLeftRotate cmidCameraLower cmidCameraRaise cmidCameraRightRotate cmidCaptureScreenshotToFile cmidCheer cmidClosestCompassItem cmidClosestItem cmidClosestMonster cmidClosestPlayer cmidCrouch cmidCry cmidDecreasePowerSetting cmidDropSelected cmidExamineSelected cmidFellowshipPanel cmidFirstPersonView cmidFloorView cmidGiveSelected cmidHighAttack cmidHoldRun cmidHoldSidestep cmidIncreasePowerSetting cmidInventoryPanel cmidJump cmidLastAttacker cmidLaugh cmidLowAttack cmidMapPanel cmidMapView cmidMediumAttack cmidNextCompassItem cmidNextFellow cmidNextItem cmidNextMonster cmidNextPlayer cmidOptionsPanel cmidPointState cmidPreviousCompassItem cmidPreviousFellow cmidPreviousItem cmidPreviousMonster cmidPreviousPlayer cmidPreviousSelection cmidReady cmidResetView cmidShiftView cmidSideStepLeft cmidSideStepRight cmidSitting cmidSkillsPanel cmidSleeping cmidSpellbookPanel cmidSpellComponentsPanel cmidSpellResearchPanel cmidSplitSelected cmidToggleCombat cmidTurnLeft cmidTurnRight cmidUseSelected cmidWalkBackwards cmidWalkForward cmidWave dmtySlashing dmtyPiercing dmtyBludgeoning dmtyCold dmtyFire dmtyAcid dmtyElectrical eqmNil eqmHead eqmChestUnder eqmAbdomenUnder eqmUpperArmsUnder eqmLowerArmsUnder eqmHands eqmUpperLegsUnder eqmLowerLegsUnder eqmFeet eqmChestOuter eqmAbdomenOuter eqmUpperArmsOuter eqmLowerArmsOuter eqmUpperLegsOuter eqmLowerLegsOuter eqmNecklace eqmRBracelet eqmLBracelet eqmBracelets eqmRRing eqmLRing eqmRings eqmWeapon eqmShield eqmRangedWeapon eqmAmmo eqmFocusWeapon eqmAll evidNil evidOnVitals evidOnLocChangeSelf evidOnLocChangeOther evidOnStatTotalBurden evidOnStatTotalExp evidOnStatUnspentExp evidOnObjectCreatePlayer evidOnStatSkillExp evidOnAdjustStack evidOnChatLocal evidOnChatSpell evidOnDeathSelf evidOnMyPlayerKill evidOnDeathOther evidOnEnd3D evidOnStart3D evidOnStartPortalSelf evidOnEndPortalSelf evidOnEndPortalOther evidOnCombatMode evidOnAnimationSelf evidOnTargetHealth evidOnAddToInventory evidOnRemoveFromInventory evidOnAssessCreature evidOnAssessItem evidOnSpellFailSelf evidOnMeleeEvadeSelf evidOnMeleeEvadeOther evidOnMeleeDamageSelf evidOnMeleeDamageOther evidOnLogon evidOnTellServer evidOnTell evidOnTellMelee evidOnTellMisc evidOnTellFellowship evidOnTellPatron evidOnTellVassal evidOnTellFollower evidOnDeathMessage evidOnSpellCastSelf evidOnTradeStart evidOnTradeEnd evidOnTradeAdd evidOnTradeReset evidOnSetFlagSelf evidOnSetFlagOther evidOnApproachVendor evidOnChatBroadcast evidOnTradeAccept evidOnObjectCreate evidOnChatServer evidOnSpellExpire evidOnSpellExpireSilent evidOnStatTotalPyreals evidOnStatLevel evidOnChatEmoteStandard evidOnChatEmoteCustom evidOnOpenContainer evidOnPortalStormWarning evidOnPortalStormed evidOnCommand evidOnControlEvent evidOnItemManaBar evidOnActionComplete evidOnObjectDestroy evidMax kmoDown kmoUp kmoClick mcmNil mcmWeaponsMelee mcmArmor mcmClothing mcmJewelry mcmCreature mcmFood mcmPyreal mcmMisc mcmWeaponsMissile mcmContainers mcmMiscFletching mcmGems mcmSpellComponents mcmBooksPaper mcmKeysTools mcmMagicItems mcmPortal mcmLockable mcmTradeNotes mcmManaStones mcmServices mcmPlants mcmCookingItems1 mcmAlchemicalItems1 mcmFletchingItems1 mcmCookingItems2 mcmAlchemicalItems2 mcmFletchingItems2 oidNil ipackMain iitemNil clrNil ibuttonLeft ibuttonRight ibuttonMiddle ocmPlayer ocmMonster ocmPlayerCorpse ocmMonsterCorpse ocmLifestone ocmPortal ocmMerchant ocmEquipment ocmAll otyContainer otyInscribable otyNoPickup otyPlayer otySelectable otyReadable otyMerchant otyDoor otyCorpse otyLifestone otyFood otyHealingKit otyLockpick otyPortal opmDebugLog opmConsole opmChatWnd pligNotRunning pligAtLogin pligInPortal pligInWorld pswStormEnded pswMildStorm pswHeavyStorm skidNil skidAxe skidBow skidCrossbow skidDagger skidMace skidMeleeDefense skidMissileDefense skidSpear skidStaff skidSword skidThrownWeapons skidUnarmedCombat skidArcaneLore skidMagicDefense skidManaConversion skidAppraiseItem skidAssessPerson skidDeception skidHealing skidJump skidLockpick skidRun skidAssessCreature skidAppraiseWeapon skidAppraiseArmor skidAppraiseMagicItem skidCreatureEnchantment skidItemEnchantment skidLifeMagic skidWarMagic skidLeadership skidLoyalty skidFletching skidAlchemy skidCooking skidMax wemNormal wemSingle wemSpecific wemFullTimeout ; identifying items constants chi.szFellowship chi.szGender chi.szMonarch chi.szPatron chi.szProfession chi.szRace iai.al iai.protAcid iai.protBludgeoning iai.protCold iai.protElectrical iai.protFire iai.protPiercing iai.protSlashing ibi.burden ibi.cpageTotal ibi.cpageUsed ibi.cpyValue ibi.fOpen ibi.fractEfficiency ibi.manaCur ibi.oty ibi.szComment ibi.szDescDetailed ibi.szDescSimple ibi.szInscriber ibi.szInscription iei.csecPerMana iei.difficulty iei.fractEfficiency iei.manaCur iei.manaMax iei.rankReq iei.skidReq iei.sklvlReq iei.spellcraft iei.szRaceReq iei.szSpellDesc iei.szSpellNames ipi.lvlMax ipi.lvlMin ipi.szDest iwi.dhealth iwi.dmty iwi.dwHighlights iwi.scaleAttackBonus iwi.scaleDamageBonus iwi.scaleDamageRange iwi.scaleDefenseBonus iwi.skid iwi.speed [Keywords 4] ; SkunkNav, SW, & ACScript Lib Functions ;SkunkNav Functions DebugPosition DheadToMaploc Dist3DMaplocToMaploc Dist3DToMaploc DistMaplocToMaploc DistToMaploc GetXEWCur GetYNSCur GoToLatLng GoToMaploc HeadMaplocToMaploc HeadToMaploc HeadingCurrent HeadingTurn Loc2Coords LocXY2Coords MaplocOfSel PointToHeading RouteFromFile RouteFromMaploc RunTowardsEastNorth RunTowardsXY_Ex RunTowardsxEWyNS SmallJump StepForward TurnToHead TurnToHeading TurnTowardMaploc UsePortalSel dec ;ACScriptLib functions: fClick fDoubleClick fCastSpell fDebugGetFlags fDebugLogToFile fDebugOut fDebugSetFlags fDebugSetLocation fExamine fGetDebugFileName fGotoAbdomen fGotoAmmo fGotoBracelet fGotoChatBar fGotoChest fGotoCorpseSlot fGotoCreateSpellButtons fGotoCreateSpellComponents fGotoCreateSpellFormula fGotoCreateSpellScrollBar fGotoFeet fGotoHands fGotoHead fGotoInscription fGotoLowerArms fGotoLowerLegs fGotoMerchantBuySellAllButton fGotoMerchantBuySellButton fGotoMerchantCloseWindow fGotoMerchantItems fGotoMerchantList fGotoMerchantThreeTabs fGotoMerchantTriangle fGotoNecklace fGotoPack fGotoPackSlot fGotoPackSlotAbs fGotoPeaceMode fGotoRaiseChatWindow fGotoRing fGotoScrollCompsDown fGotoScrollCompsUp fGotoScrollCorpsePackLeft fGotoScrollCorpsePackRight fGotoScrollPackDown fGotoScrollPackUp fGotoSecureTradeAccept fGotoSecureTradeButton fGotoSecureTradeCancel fGotoSecureTradeClearAll fGotoSecureTradeMyScrollLeft fGotoSecureTradeMyScrollRight fGotoSecureTradeMySlot fGotoSecureTradePartnerScrollLeft fGotoSecureTradePartnerScrollRight fGotoSecureTradePartnerSlot fGotoSecureTradeTab fGotoSendButton fGotoShield fGotoShortcut fGotoSpell fGotoSpellbookTabs fGotoSpellComp fGotoSpellSlot fGotoSpellTab fGotoUpperArms fGotoUpperLegs fGotoWeapon fInitializeDebugFile fIsDebugInitialized fLoginCharacter fLogoutCharacter fMakeShortCut fMiddleClick fMouseMoveTo fMoveToPack fOpenAttributes fOpenInventory fOpenMap fOpenPack fOpenSkills fOpenSocialPanel fPause fPutInPack fPutXinPack fResetCreateSpellPage fResetSleep fRightClick fSay fScriptLibDebug fScrollCompsDown fScrollCompsUp fScrollPackDown fScrollPackUp fSleep fSleepSeconds fSleepUntil fSuicide fUseShortcut hex [Keywords 5] ;SW Events OnActionComplete OnAddToInventory OnAdjustStack OnAnimationSelf OnApproachVendor OnAssessCreature OnAssessItem OnChatBroadcast OnChatEmoteCustom OnChatEmoteStandard OnChatLocal OnChatServer OnChatSpell OnCombatMode OnCommand OnControlEvent OnDeathMessage OnDeathOther OnDeathSelf OnEnd3D OnEndPortalOther OnEndPortalSelf OnItemManaBar OnLocChangeOther OnLocChangeSelf OnLogon OnMeleeDamageOther OnMeleeDamageSelf OnMeleeEvadeOther OnMeleeEvadeSelf OnMyPlayerKill OnObjectCreate OnObjectCreatePlayer OnObjectDestroy OnOpenContainer OnPortalStormed OnPortalStormWarning OnRemoveFromInventory OnSetFlagOther OnSetFlagSelf OnSpellCastSelf OnSpellExpire OnSpellExpireSilent OnSpellFailSelf OnStart3D OnStartPortalSelf OnStatLevel OnStatSkillExp OnStatTotalBurden OnStatTotalExp OnStatTotalPyreals OnStatUnspentExp OnTargetHealth OnTell OnTellFellowship OnTellFollower OnTellMelee OnTellMisc OnTellPatron OnTellServer OnTellVassal OnTradeAccept OnTradeAdd OnTradeEnd OnTradeReset OnTradeStart OnVitals [Keywords 6] ;SW Objects ; Aco.XXXX Objects .AcoFromIitem .Count .Item .MoveToContainer .MoveToPack .Use .UseOnAco .acoContainer .acoWearer .citemContents .citemMax .citemMaxStack .citemStack .coacoContents .cpyValue .cuseLeft .cuseMax .eqm .eqmWearer .fContainer .fInInventory .iitem .maploc .mcm .oid .oidMonarch .oidNoteSeller .oty .spellid .szMcm .szName .szPlural ; maploc.XXX objects .dungid .fInDungeon .head .headRad .landblock .lat .lng .rgv .sz .x .y .y .z ; pxt.XXX .FCheck .FCheckXyp .FWait .FWaitXyp .clrAfter .clrBefore .clrCheck .clrCur .pxtReverse .xp .yp ; wav.XXX objects .Play .szFile ; timer.XXX objects .cmsec [Preprocessor keywords] ;leftover from java.syn, dunno what these are for ;#define ;#elif ;#else ;#endif ;#error ;#if ;#undef ;#warning