This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
addons:using_ashitacore [2017/04/22 02:08] atom0s |
addons:using_ashitacore [2017/04/22 02:36] atom0s [Using The AshitaCore Object] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Using The AshitaCore Object ====== | ====== Using The AshitaCore Object ====== | ||
+ | <WRAP important> | ||
+ | This documentation page is subject to change soon. Interfaces will be broken into separate pages to better explain things. | ||
+ | </WRAP> | ||
==== What is the AshitaCore Object? ==== | ==== What is the AshitaCore Object? ==== | ||
Line 54: | Line 57: | ||
* GetDataManager | * GetDataManager | ||
* GetFontManager | * GetFontManager | ||
- | * GetGuiManager | + | * GetGuiManager //(Note: These functions are exposed via the ashita.gui namespace instead. The main interface is exposed to prevent errors but this is not how to access these functions!)// |
* GetInputManager | * GetInputManager | ||
* GetPacketManager | * GetPacketManager | ||
Line 99: | Line 102: | ||
* get_float | * get_float | ||
* get_double | * get_double | ||
+ | |||
+ | ==== IGuiManager ==== | ||
+ | * These functions are exposed via the ashita.gui namespace instead. The main interface is exposed to prevent errors but this is not how to access these functions! | ||
==== IKeyboard ==== | ==== IKeyboard ==== | ||
Line 126: | Line 132: | ||
* Log | * Log | ||
+ | //More information on using the LogManager can be found here: [[addons:using_logmanager]]// | ||
==== IPacketManager ==== | ==== IPacketManager ==== | ||
* //No functions are directly exposed, instead, they are global functions.// | * //No functions are directly exposed, instead, they are global functions.// | ||
Line 138: | Line 145: | ||
====== Data Manager Exposure ====== | ====== Data Manager Exposure ====== | ||
+ | ===== IDataManager ===== | ||
+ | |||
+ | ==== IDataManager ==== | ||
+ | * GetEntity | ||
+ | * GetInventory | ||
+ | * GetParty | ||
+ | * GetPlayer | ||
+ | * GetTarget | ||
+ | |||
+ | ---- | ||
===== IEntity ===== | ===== IEntity ===== | ||
Line 241: | Line 258: | ||
* MonstrosityNameId | * MonstrosityNameId | ||
* MonstrosityName | * MonstrosityName | ||
+ | |||
+ | ==== IEntity ==== | ||
+ | * GetLocalX | ||
+ | * GetLocalY | ||
+ | * GetLocalZ | ||
+ | * GetLocalRoll | ||
+ | * GetLocalYaw | ||
+ | * GetLocalPitch | ||
+ | * GetLastX | ||
+ | * GetLastY | ||
+ | * GetLastZ | ||
+ | * GetLastRoll | ||
+ | * GetLastYaw | ||
+ | * GetLastPitch | ||
+ | * GetMoveX | ||
+ | * GetMoveY | ||
+ | * GetMoveZ | ||
+ | * GetTargetIndex | ||
+ | * GetServerId | ||
+ | * GetName | ||
+ | * GetSpeed | ||
+ | * GetAnimationSpeed | ||
+ | * GetWarpPointer | ||
+ | * GetDistance | ||
+ | * GetHeading | ||
+ | * GetPetOwnerId | ||
+ | * GetHealthPercent | ||
+ | * GetManaPercent | ||
+ | * GetEntityType | ||
+ | * GetRace | ||
+ | * GetModelFade | ||
+ | * GetLookHair | ||
+ | * GetLookHead | ||
+ | * GetLookBody | ||
+ | * GetLookHands | ||
+ | * GetLookLegs | ||
+ | * GetLookFeet | ||
+ | * GetLookMain | ||
+ | * GetLookSub | ||
+ | * GetLookRanged | ||
+ | * GetActionTimer1 | ||
+ | * GetActionTimer2 | ||
+ | * GetRenderFlags0 | ||
+ | * GetRenderFlags1 | ||
+ | * GetRenderFlags2 | ||
+ | * GetRenderFlags3 | ||
+ | * GetRenderFlags4 | ||
+ | * GetNpcSpeechLoop | ||
+ | * GetNpcSpeechFrame | ||
+ | * GetSpeed2 | ||
+ | * GetNpcWalkPosition1 | ||
+ | * GetNpcWalkPosition2 | ||
+ | * GetNpcWalkMode | ||
+ | * GetCostumeId | ||
+ | * GetStatus | ||
+ | * GetStatusServer | ||
+ | * GetStatusNpcChat | ||
+ | * GetClaimServerId | ||
+ | * GetAnimations | ||
+ | * GetAnimationTick | ||
+ | * GetAnimationStep | ||
+ | * GetAnimationPlay | ||
+ | * GetEmoteTargetIndex | ||
+ | * GetEmoteId | ||
+ | * GetEmoteIdString | ||
+ | * GetEmoteTargetWarpPointer | ||
+ | * GetSpawnFlags | ||
+ | * GetLinkshellColor | ||
+ | * GetNameColor | ||
+ | * GetCampaignNameFlag | ||
+ | * GetFishingTimer | ||
+ | * GetFishingCastTimer | ||
+ | * GetFishingUnknown0000 | ||
+ | * GetFishingUnknown0001 | ||
+ | * GetFishingUnknown0002 | ||
+ | * GetTargetedIndex | ||
+ | * GetPetTargetIndex | ||
+ | * GetBallistaScoreFlag | ||
+ | * GetPankrationEnabled | ||
+ | * GetPankrationFlagFlip | ||
+ | * GetModelSize | ||
+ | * GetMonstrosityFlag | ||
+ | * GetMonstrosityNameId | ||
+ | * GetMonstrosityName | ||
+ | * SetLocalX | ||
+ | * SetLocalY | ||
+ | * SetLocalZ | ||
+ | * SetLocalRoll | ||
+ | * SetLocalYaw | ||
+ | * SetLocalPitch | ||
+ | * SetLastX | ||
+ | * SetLastY | ||
+ | * SetLastZ | ||
+ | * SetLastRoll | ||
+ | * SetLastYaw | ||
+ | * SetLastPitch | ||
+ | * SetMoveX | ||
+ | * SetMoveY | ||
+ | * SetMoveZ | ||
+ | * SetTargetIndex | ||
+ | * SetServerId | ||
+ | * SetName | ||
+ | * SetSpeed | ||
+ | * SetAnimationSpeed | ||
+ | * SetWarpPointer | ||
+ | * SetDistance | ||
+ | * SetHeading | ||
+ | * SetPetOwnerId | ||
+ | * SetHealthPercent | ||
+ | * SetManaPercent | ||
+ | * SetEntityType | ||
+ | * SetRace | ||
+ | * SetModelFade | ||
+ | * SetLookHair | ||
+ | * SetLookHead | ||
+ | * SetLookBody | ||
+ | * SetLookHands | ||
+ | * SetLookLegs | ||
+ | * SetLookFeet | ||
+ | * SetLookMain | ||
+ | * SetLookSub | ||
+ | * SetLookRanged | ||
+ | * SetActionTimer1 | ||
+ | * SetActionTimer2 | ||
+ | * SetRenderFlags0 | ||
+ | * SetRenderFlags1 | ||
+ | * SetRenderFlags2 | ||
+ | * SetRenderFlags3 | ||
+ | * SetRenderFlags4 | ||
+ | * SetNpcSpeechLoop | ||
+ | * SetNpcSpeechFrame | ||
+ | * SetSpeed2 | ||
+ | * SetNpcWalkPosition1 | ||
+ | * SetNpcWalkPosition2 | ||
+ | * SetNpcWalkMode | ||
+ | * SetCostumeId | ||
+ | * SetStatus | ||
+ | * SetStatusServer | ||
+ | * SetStatusNpcChat | ||
+ | * SetClaimServerId | ||
+ | * SetAnimations | ||
+ | * SetAnimationTick | ||
+ | * SetAnimationStep | ||
+ | * SetAnimationPlay | ||
+ | * SetEmoteTargetIndex | ||
+ | * SetEmoteId | ||
+ | * SetEmoteIdString | ||
+ | * SetEmoteTargetWarpPointer | ||
+ | * SetSpawnFlags | ||
+ | * SetLinkshellColor | ||
+ | * SetNameColor | ||
+ | * SetCampaignNameFlag | ||
+ | * SetFishingTimer | ||
+ | * SetFishingCastTimer | ||
+ | * SetFishingUnknown0000 | ||
+ | * SetFishingUnknown0001 | ||
+ | * SetFishingUnknown0002 | ||
+ | * SetTargetedIndex | ||
+ | * SetPetTargetIndex | ||
+ | * SetBallistaScoreFlag | ||
+ | * SetPankrationEnabled | ||
+ | * SetPankrationFlagFlip | ||
+ | * SetModelSize | ||
+ | * SetMonstrosityFlag | ||
+ | * SetMonstrosityNameId | ||
+ | * SetMonstrosityName | ||
+ | |||
---- | ---- | ||
Line 280: | Line 464: | ||
* Equipment | * Equipment | ||
* CraftWait | * CraftWait | ||
+ | |||
+ | ==== IInventory ==== | ||
+ | * GetItem | ||
+ | * GetContainerMax | ||
+ | * GetTreasureItem | ||
+ | * GetEquippedItem | ||
+ | * GetCraftWait | ||
+ | |||
+ | ---- | ||
+ | ===== IParty ===== | ||
+ | |||
+ | ==== IParty ==== | ||
+ | * GetAllianceLeaderServerId | ||
+ | * GetAllianceParty0LeaderServerId | ||
+ | * GetAllianceParty1LeaderServerId | ||
+ | * GetAllianceParty2LeaderServerId | ||
+ | * GetAllianceParty0Visible | ||
+ | * GetAllianceParty1Visible | ||
+ | * GetAllianceParty2Visible | ||
+ | * GetAllianceParty0MemberCount | ||
+ | * GetAllianceParty1MemberCount | ||
+ | * GetAllianceParty2MemberCount | ||
+ | * GetAllianceInvited | ||
+ | * GetMemberIndex | ||
+ | * GetMemberNumber | ||
+ | * GetMemberName | ||
+ | * GetMemberServerId | ||
+ | * GetMemberTargetIndex | ||
+ | * GetMemberCurrentHP | ||
+ | * GetMemberCurrentMP | ||
+ | * GetMemberCurrentTP | ||
+ | * GetMemberCurrentHPP | ||
+ | * GetMemberCurrentMPP | ||
+ | * GetMemberZone | ||
+ | * GetMemberFlagMask | ||
+ | * GetMemberMainJob | ||
+ | * GetMemberMainJobLevel | ||
+ | * GetMemberSubJob | ||
+ | * GetMemberSubJobLvl | ||
+ | * GetMemberServerId2 | ||
+ | * GetMemberCurrentHPP2 | ||
+ | * GetMemberCurrentMPP2 | ||
+ | * GetMemberActive | ||
---- | ---- | ||
Line 294: | Line 521: | ||
* GetRank | * GetRank | ||
* IsCapped | * IsCapped | ||
+ | |||
+ | ==== IPlayer ==== | ||
+ | * GetHealthMax | ||
+ | * GetManaMax | ||
+ | * GetMainJob | ||
+ | * GetMainJobLevel | ||
+ | * GetSubJob | ||
+ | * GetSubJobLevel | ||
+ | * GetExpCurrent | ||
+ | * GetExpNeeded | ||
+ | * GetStat | ||
+ | * GetStatsModifiers | ||
+ | * GetAttack | ||
+ | * GetDefense | ||
+ | * GetResist | ||
+ | * GetTitle | ||
+ | * GetRank | ||
+ | * GetRankPoints | ||
+ | * GetNation | ||
+ | * GetResidence | ||
+ | * GetHomepoint | ||
+ | * GetCombatSkill | ||
+ | * GetCraftSkill | ||
+ | * GetAbilityRecast | ||
+ | * GetAbilityRecastTimerId | ||
+ | * GetLimitPoints | ||
+ | * GetMeritPoints | ||
+ | * GetLimitMode | ||
+ | * GetMeritPointsMax | ||
+ | * GetStatusIcons | ||
+ | * GetStatusTimers | ||
+ | * GetBuffs | ||
+ | * HasAbility | ||
+ | * HasKeyItem | ||
+ | * HasPetCommand | ||
+ | * HasSpell | ||
+ | * HasTrait | ||
+ | * HasWeaponSkill | ||
+ | * GetPetTP | ||
+ | * GetPetMP | ||
+ | |||
+ | ---- | ||
+ | ===== ITarget ===== | ||
+ | ==== ITarget ==== | ||
+ | * GetTargetName | ||
+ | * GetTargetHealthPercent | ||
+ | * GetTargetIndex | ||
+ | * GetTargetServerId | ||
+ | * GetTargetEntityPointer | ||
+ | * GetTargetWarpPointer | ||
+ | * GetTargetVisible | ||
+ | * GetTargetMask | ||
+ | * GetTargetCalculatedId | ||
+ | * GetSubTargetIndex | ||
+ | * GetSubTargetServerId | ||
+ | * GetSubTargetEntityPointer | ||
+ | * GetSubTargetWarpPointer | ||
+ | * GetSubTargetVisible | ||
+ | * GetSubTargetMask | ||
+ | * GetSubTargetActive | ||
+ | * GetTargetDeactivate | ||
+ | * GetIsLockedOn | ||
+ | * GetTargetSelectionMask | ||
+ | * GetIsMenuOpen | ||
+ | |||
+ | ---- | ||
+ | ===== Font Manager Exposure ===== | ||
+ | |||
+ | ==== SIZE ==== | ||
+ | * cx | ||
+ | * cy | ||
+ | |||
+ | ==== Ashita::asrect_t ==== | ||
+ | * x | ||
+ | * y | ||
+ | * w | ||
+ | * h | ||
+ | |||
+ | ==== IFontObject ==== | ||
+ | * GetAlias | ||
+ | * GetVisibility | ||
+ | * GetFontFamily | ||
+ | * GetFontHeight | ||
+ | * GetPositionX | ||
+ | * GetPositionY | ||
+ | * GetLocked | ||
+ | * GetPadding | ||
+ | * GetAnchor | ||
+ | * GetAnchorParent | ||
+ | * GetColor | ||
+ | * GetCreateFlags | ||
+ | * GetDrawFlags | ||
+ | * GetBold | ||
+ | * GetItalic | ||
+ | * GetRightJustified | ||
+ | * GetText | ||
+ | * GetDirtyFlag | ||
+ | * GetAutoResize | ||
+ | * GetWindowWidth | ||
+ | * GetWindowHeight | ||
+ | * GetRealPositionX | ||
+ | * GetRealPositionY | ||
+ | * GetParent | ||
+ | * GetBackground | ||
+ | * GetTextSize | ||
+ | * SetAlias | ||
+ | * SetVisibility | ||
+ | * SetFontFamily | ||
+ | * SetFontHeight | ||
+ | * SetPositionX | ||
+ | * SetPositionY | ||
+ | * SetLocked | ||
+ | * SetPadding | ||
+ | * SetAnchor | ||
+ | * SetAnchorParent | ||
+ | * SetColor | ||
+ | * SetCreateFlags | ||
+ | * SetDrawFlags | ||
+ | * SetBold | ||
+ | * SetItalic | ||
+ | * SetRightJustified | ||
+ | * SetText | ||
+ | * SetDirtyFlag | ||
+ | * SetAutoResize | ||
+ | * SetWindowWidth | ||
+ | * SetWindowHeight | ||
+ | * SetParent | ||
+ | |||
+ | ==== IPrimitiveObject ==== | ||
+ | * SetTextureFromFile | ||
+ | * SetTextureFromResource | ||
+ | * HitTest | ||
+ | * GetVisibility | ||
+ | * GetPositionX | ||
+ | * GetPositionY | ||
+ | * GetWidth | ||
+ | * GetHeight | ||
+ | * GetColor | ||
+ | * GetBorderVisibility | ||
+ | * GetBorderColor | ||
+ | * GetBorderFlags | ||
+ | * GetBorderSizes | ||
+ | * SetVisibility | ||
+ | * SetPositionX | ||
+ | * SetPositionY | ||
+ | * SetWidth | ||
+ | * SetHeight | ||
+ | * SetColor | ||
+ | * SetBorderVisibility | ||
+ | * SetBorderColor | ||
+ | * SetBorderFlags | ||
+ | * SetBorderSizes | ||
+ | |||
+ | ==== IFontManager ==== | ||
+ | * Create | ||
+ | * Get | ||
+ | * Delete | ||
+ | * GetHideObjects | ||
+ | * SetHideObjects | ||
---- | ---- |