Лауреат премии 2023 года
Данный ресурс работает ТОЛЬКО с патчами 1.24e/1.26а/1.27a/1.27b/1.28f
Как пользоваться?
- Распакуйте все файлы из архива, желательно в отдельную папку, вот так:
- Запустите UjAPI.exe.
- Если же у вас приложение не запускается, то скачайте и установите: .NET Framework 4.7.2.
- Если же ни в игре, ни в World Editor UjAPI не работает, то скачайте и установите: C++ Redistributable 2012
- Установите путь для Warcraft 3, вот так:
- Можно указать и на Frozen Throne.exe или же на Warcraft III.exe (но рекомендуется использовать именно war3.exe для патчей 1.27б и ниже).
- На патче 1.28.5(f) рекомендуется использовать непосредственно Warcraft III.exe.
- Установите путь для World Editor, вот так:
- Рекомендуется использовать JNGP версии Прометея: скачать
- Пароль от архива: JNGP
- Готово, вы можете теперь смело запускать как игру, так и World Editor через UjAPI Launcher.
- Для использования оконного режима в Warcraft III нажмите галочку на "Additional command line arguments" и в появившееся окно, пропишите -window, вот так:
Полезные файлы
| Для лаунчера | Информационные |
|---|---|
| .NET Framework 4.7.2 | Список всех функций |
| C++ Redistributables 2012 | Новые типы/функции |

UJAPI








Ред. Unryze
Ред. DarkLigthing
Ред. nazarpunk
Ну, думаю тоже сделаю, просто пока такая суматоха с делами, что мысли вылетают одна за другой. :(
Ред. ScorpioT1000
Сначала создаем себе проблему, потом её решаем костылями.
Ред. Волчачка
На всякий случай, по типу gist.xgm.guru
Ред. Unryze
Прокрутить к ресурсу
v1.0.1.9
native ForceHasPlayer takes force whichForce, player whichPlayer returns boolean
native ForceCountPlayers takes force whichForce returns integer
native GetUnitBuff takes unit whichUnit, integer buffId returns buff
native GetUnitBuffLevel takes unit whichUnit, integer buffId returns integer
native GetBuffLevel takes buff whichBuff returns integer
native RefreshBuff takes buff whichBuff returns boolean
native SetBuffDuration takes buff whichBuff, real duration returns boolean
Пометка: сторонние "запускаторы" не поддерживают мульти-окно и War3Lua дебаг режим, для их работы нужно запускать игру через war3.exe и прочее.
Ред. Unryze
Прокрутить к ресурсу
v1.0.2.12
native SaveFrameHandle takes hashtable table, integer parentKey, integer childKey, framehandle whichFrame returns boolean
native LoadFrameHandle takes hashtable table, integer parentKey, integer childKey returns framehandle
native GetEventPreDamage takes nothing returns real
type abilityintegerfield extends handle
type abilityrealfield extends handle
type abilitybooleanfield extends handle
type abilitystringfield extends handle
type abilityintegerlevelfield extends handle
type abilityreallevelfield extends handle
type abilitybooleanlevelfield extends handle
type abilitystringlevelfield extends handle
type abilityintegerlevelarrayfield extends handle
type abilityreallevelarrayfield extends handle
type abilitybooleanlevelarrayfield extends handle
type abilitystringlevelarrayfield extends handle
type unitintegerfield extends handle
type unitrealfield extends handle
type unitbooleanfield extends handle
type unitstringfield extends handle
type unitweaponintegerfield extends handle
type unitweaponrealfield extends handle
type unitweaponbooleanfield extends handle
type unitweaponstringfield extends handle
type itemintegerfield extends handle
type itemrealfield extends handle
type itembooleanfield extends handle
type itemstringfield extends handle
Ред. Unryze
Прокрутить к ресурсу
v1.0.3.15
native BitwiseNOT takes integer i returns integer
native BitwiseAND takes integer bit1, integer bit2 returns integer
native BitwiseOR takes integer bit1, integer bit2 returns integer
native BitwiseXOR takes integer bit1, integer bit2 returns integer
native BitwiseShiftLeft takes integer bit1, integer bitsToShift returns integer
native BitwiseShiftRight takes integer bit1, integer bitsToShift returns integer
native Id2String takes integer i returns string
native String2Id takes string idString returns integer
native GetUnitBaseDescriptionById takes integer unitTypeId returns string
native SetUnitBaseDescriptionById takes integer unitTypeId, string name returns nothing
native GetUnitBaseIconById takes integer unitTypeId returns string
native SetUnitBaseIconById takes integer unitTypeId, string name returns nothing
native GetUnitBaseDescription takes unit whichUnit returns string
native SetUnitBaseDescription takes unit whichUnit, string name returns nothing
native GetUnitBaseIcon takes unit whichUnit returns string
native SetUnitBaseIcon takes unit whichUnit, string name returns nothing
native GetItemBaseDescriptionById takes takes integer itemId returns string
native SetItemBaseDescriptionById takes integer itemId, string name returns nothing
native GetItemBaseDescription takes item whichItem returns string
native SetItemBaseDescription takes item whichItem, string name returns nothing
native GroupGetUnitByIndex takes group whichGroup, integer index returns unit
native GroupForEachUnit takes group whichGroup returns unit
native GroupAddGroupEx takes group destGroup, group sourceGroup returns integer
native GroupRemoveGroupEx takes group destGroup, group sourceGroup returns integer
Ред. Unryze
Прокрутить к ресурсу
v1.0.4.22
- Нативная функция IsAbilityShown переименована в IsAbilityVisible.
- Все возвращаемые типы сеттеров в AbilityAPI были изменены с "integer" на "nothing", ввиду того, что возвращаемые данные были не валидными.
- Новые нативные функции:
- Расшифрованы эти нативные функции:
Теперь аргументы этих функций имеют нормальные названия.native I2C takes integer i returns code
native C2I takes code c returns integer
native MathRound takes real r returns integer
native MathRealRound takes real r returns real
native MathRealFloor takes real r returns real
native MathRealCeil takes real r returns real
native MathRealAbs takes real r returns real
native MathRealLog takes real r returns real
native MathRealLn takes real r returns real
native MathIntegerAbs takes integer i returns integer
native MathIntegerLog takes integer i returns real
native MathIntegerLn takes integer i returns real
native StringContains takes string s, string whichString returns boolean
native StringFind takes string s, string whichString returns integer
native StringFindFirstOf takes string s, string whichString returns integer
native StringFindFirstNotOf takes string s, string whichString returns integer
native StringFindLastOf takes string s, string whichString returns integer
native StringFindLastNotOf takes string s, string whichString returns integer
native IsOperationLimitEnabled takes nothing returns boolean
native EnableOperationLimit takes boolean enable returns nothing
native ExecuteFuncEx takes string funcName returns nothing
native GetUnitDamageReduction takes unit whichUnit returns real
native IsUnitAbilityVisible takes unit whichUnit, integer abilityId returns integer
native ShowUnitAbility takes unit whichUnit, integer abilityId, boolean flag returns nothing
native SilenceAbility takes ability whicAbility, boolean hide, boolean disable returns nothing
native UnsilenceAbility takes ability whicAbility, boolean show, boolean enable returns nothing
Пометка: пока что реализованы не все ивенты, а так же эти ивенты пока что локальные, однако скоро они будут работать и в мультиплеере.
Ред. Unryze
Прокрутить к ресурсу
v1.0.5.31
type timetype extends handle
constant native ConvertTimeType takes integer i returns timetype
constant timetype TIME_TYPE_YEAR = ConvertTimeType( 0 )
constant timetype TIME_TYPE_MONTH = ConvertTimeType( 1 )
constant timetype TIME_TYPE_DAY_OF_WEEK = ConvertTimeType( 2 )
constant timetype TIME_TYPE_DAY = ConvertTimeType( 3 )
constant timetype TIME_TYPE_HOUR = ConvertTimeType( 4 )
constant timetype TIME_TYPE_MINUTE = ConvertTimeType( 5 )
constant timetype TIME_TYPE_SECOND = ConvertTimeType( 6 )
constant timetype TIME_TYPE_MILLISECOND = ConvertTimeType( 7 )
native GetSystemTime takes timetype whichTimeType returns integer
native GetLocalTime takes timetype whichTimeType returns integer
native ExecuteCode takes code c returns nothing
native SyncInteger takes string variableName returns nothing
native SyncReal takes string variableName returns nothing
native SyncBoolean takes string variableName returns nothing
native SyncString takes string variableName returns nothing
native SyncHandle takes string variableName returns nothing
native SyncSavedInteger takes hashtable table, integer parentKey, integer childKey returns nothing
native SyncSavedReal takes hashtable table, integer parentKey, integer childKey returns nothing
native SyncSavedBoolean takes hashtable table, integer parentKey, integer childKey returns nothing
native SyncSavedHandle takes hashtable table, integer parentKey, integer childKey returns nothing
native SyncSavedString takes hashtable table, integer parentKey, integer childKey returns nothing
Ред. ScorpioT1000
Ред. Unryze
Прокрутить к ресурсу
v1.0.6.34
- Новые Типы:
type variabletype extends handle- Новые Конверторы:
constant native ConvertVariableType takes integer i returns variabletype- Новые Константы:
constant variabletype VARIABLE_TYPE_NOTHING = ConvertVariableType(0)constant variabletype VARIABLE_TYPE_UNKNOWN = ConvertVariableType(1)
constant variabletype VARIABLE_TYPE_NULL = ConvertVariableType(2)
constant variabletype VARIABLE_TYPE_CODE = ConvertVariableType(3)
constant variabletype VARIABLE_TYPE_INTEGER = ConvertVariableType(4)
constant variabletype VARIABLE_TYPE_REAL = ConvertVariableType(5)
constant variabletype VARIABLE_TYPE_STRING = ConvertVariableType(6)
constant variabletype VARIABLE_TYPE_HANDLE = ConvertVariableType(7)
constant variabletype VARIABLE_TYPE_BOOLEAN = ConvertVariableType(8)
constant variabletype VARIABLE_TYPE_INTEGER_ARRAY = ConvertVariableType(9)
constant variabletype VARIABLE_TYPE_REAL_ARRAY = ConvertVariableType(10)
constant variabletype VARIABLE_TYPE_STRING_ARRAY = ConvertVariableType(11)
constant variabletype VARIABLE_TYPE_HANDLE_ARRAY = ConvertVariableType(12)
constant variabletype VARIABLE_TYPE_BOOLEAN_ARRAY = ConvertVariableType(13)
- Новые Нативные Функции:
native GetSyncedVariableType takes nothing returns variabletypenative GetSyncedVariableName takes nothing returns string
native GetSyncedInteger takes nothing returns integer
native GetSyncedReal takes nothing returns real
native GetSyncedString takes nothing returns string
native GetSyncedHandle takes nothing returns handle
native GetSyncedBoolean takes nothing returns boolean
native TriggerRegisterPlayerVariableSyncEvent takes trigger whichTrigger, player whichPlayer, string variableName returns event
native GetSyncSavedVariableType takes nothing returns variabletype
native GetSyncSavedHashtable takes nothing returns hashtable
native GetSyncSavedParentKey takes nothing returns integer
native GetSyncSavedChildKey takes nothing returns integer
native TriggerRegisterPlayerHashtableDataSyncEvent takes trigger whichTrigger, player whichPlayer, hashtable whichHashtable returns event
native GetTriggerFrameVariableType takes nothing returns variabletype
native GetTriggerFrameInteger takes nothing returns integer
native GetTriggerFrameReal takes nothing returns real
native GetTriggerFrameBoolean takes nothing returns boolean
native GetTriggerFrameString takes nothing returns string
native GetMouseScreenX takes nothing returns real
native GetMouseScreenY takes nothing returns real
native SetMouseScreenX takes real x returns nothing
native SetMouseScreenY takes real y returns nothing
native SetMouseScreenPosition takes real x, real y returns nothing
native GetMouseScreenPixelX takes nothing returns integer
native GetMouseScreenPixelY takes nothing returns integer
native SetMouseScreenPixelX takes integer x returns nothing
native SetMouseScreenPixelY takes integer y returns nothing
native SetMouseScreenPixelPosition takes integer x, integer y returns nothing
native GetMouseWorldX takes nothing returns real
native GetMouseWorldY takes nothing returns real
native GetMouseWorldZ takes nothing returns real
- Исправлен обработчик Net пакетов синхронизации, теперь он более не сталкивается с оригинальным обработчиком, приводя к потере пакетов.
- Исправлена критическая ошибка вызываемая этими нативными функциями:
native SilenceAbility takes ability whichAbility, boolean hide, boolean disable returns nothingnative UnsilenceAbility takes ability whichAbility, boolean show, boolean enable returns nothing
EugeAl:
Ред. Unryze
Прокрутить к ресурсу
v1.0.7.36
Прокрутить к ресурсу
v1.0.8.39
- Новые Константы:
constant raritycontrol RARITY_QUEUE = ConvertRarityControl(2)constant oskeytype OSKEY_LBUTTON = ConvertOsKeyType(0x01)
constant oskeytype OSKEY_RBUTTON = ConvertOsKeyType(0x02)
constant oskeytype OSKEY_CANCEL = ConvertOsKeyType(0x03)
constant oskeytype OSKEY_MBUTTON = ConvertOsKeyType(0x04)
constant oskeytype OSKEY_XBUTTON1 = ConvertOsKeyType(0x05)
constant oskeytype OSKEY_XBUTTON2 = ConvertOsKeyType(0x06)
constant oskeytype OSKEY_UNDEFINED = ConvertOsKeyType(0x07)
constant integer META_KEY_NONE = 0
constant integer META_KEY_SHIFT = 1
constant integer META_KEY_CONTROL = 2
constant integer META_KEY_ALT = 4
constant integer META_KEY_WINDOWS = 8
constant playerevent EVENT_PLAYER_MOUSE_DOWN = ConvertPlayerEvent(305)
constant playerevent EVENT_PLAYER_MOUSE_UP = ConvertPlayerEvent(306)
constant playerevent EVENT_PLAYER_MOUSE_MOVE = ConvertPlayerEvent(307)
constant playerevent EVENT_PLAYER_SYNC_DATA = ConvertPlayerEvent(309) currently not active
constant playerevent EVENT_PLAYER_KEY = ConvertPlayerEvent(311)
constant playerevent EVENT_PLAYER_KEY_DOWN = ConvertPlayerEvent(312)
constant playerevent EVENT_PLAYER_KEY_UP = ConvertPlayerEvent(313)
- Новые Нативные Функции:
native GetFramePriority takes framehandle whichFrame returns integernative SetFrameSpriteAnimationWithRarityByIndex takes framehandle whichFrame, integer animIndex, integer rarity returns nothing
native SetFrameSpriteAnimationByIndex takes framehandle whichFrame, integer animIndex returns nothing
native QueueFrameSpriteAnimationByIndex takes framehandle whichFrame, integer animIndex returns nothing
native SetFrameSpriteAnimationWithRarity takes framehandle whichFrame, string animationName, integer rarity returns nothing
native SetFrameSpriteAnimation takes framehandle whichFrame, string animationName returns nothing
native QueueFrameSpriteAnimation takes framehandle whichFrame, string animationName returns nothing
native GetTriggerSyncPrefix takes nothing returns string
native GetTriggerSyncData takes nothing returns string
native SendSyncData takes string prefix, string data returns boolean
native TriggerRegisterPlayerSyncEvent takes trigger whichTrigger, player whichPlayer, string prefix, boolean fromServer returns event
native GetTriggerPlayerKey takes nothing returns oskeytype
native GetTriggerPlayerMetaKey takes nothing returns integer
native GetTriggerPlayerIsKeyDown takes nothing returns boolean
native TriggerRegisterPlayerKeyEvent takes trigger whichTrigger, player whichPlayer, oskeytype whichKey, integer whichMetaKey, boolean isKeyDown returns event
native PauseUnitEx takes unit whichUnit, boolean flag returns nothing this is pretty much a copy of SetUnitStunned
native GetTriggerPlayerMouseWorldX takes nothing returns real
native GetTriggerPlayerMouseWorldY takes nothing returns real
native GetTriggerPlayerMouseWorldZ takes nothing returns real
native GetTriggerPlayerMouseScreenX takes nothing returns real
native GetTriggerPlayerMouseScreenY takes nothing returns real
Прокрутить к ресурсу
v1.0.9.44
- Новые Типы:
type mousebuttontype extends handle- Новые Константы:
constant mousebuttontype MOUSE_BUTTON_TYPE_LEFT = ConvertMouseButtonType(1)constant mousebuttontype MOUSE_BUTTON_TYPE_MIDDLE = ConvertMouseButtonType(2)
constant mousebuttontype MOUSE_BUTTON_TYPE_RIGHT = ConvertMouseButtonType(3)
- Новые Конверторы:
constant native ConvertMouseButtonType takes integer i returns mousebuttontype- Новые Нативные Функции:
native GetTriggerPlayerMouseButton takes nothing returns mousebuttontypenative GetFrameSpriteScale takes framehandle whichFrame returns real
native SetFrameSpriteScale takes framehandle whichFrame, real scale returns nothing
native GetFrameSpriteTimeScale takes framehandle whichFrame returns real
native SetFrameSpriteTimeScale takes framehandle whichFrame, real timescale returns nothing
native GetFrameSpriteColour takes framehandle whichFrame returns integer
native SetFrameSpriteColour takes framehandle whichFrame, integer colour returns boolean
native SetFrameSpriteAlpha takes framehandle whichFrame, integer alpha returns boolean
native SetFrameSpriteVertexColour takes framehandle whichFrame, integer red, integer green, integer blue, integer alpha returns boolean
native SetFrameSpriteOrientationEx takes framehandle whichFrame, real yaw, real pitch, real roll, integer eulerOrder returns boolean
native GetFrameSpriteYaw takes framehandle whichFrame returns real
native SetFrameSpriteYaw takes framehandle whichFrame, real yaw returns boolean
native GetFrameSpriteFacing takes framehandle whichFrame returns real
native SetFrameSpriteFacing takes framehandle whichFrame, real facing returns boolean
native GetFrameSpritePitch takes framehandle whichFrame returns real
native SetFrameSpritePitch takes framehandle whichFrame, real pitch returns boolean
native GetFrameSpriteRoll takes framehandle whichFrame returns real
native SetFrameSpriteRoll takes framehandle whichFrame, real roll returns boolean
native SetFrameSpriteOrientation takes framehandle whichFrame, real yaw, real pitch, real roll returns nothing
native SetFrameSpriteModel takes framehandle whichFrame, string modelName returns nothing
native SetFrameSpriteModelEx takes framehandle whichFrame, string modelName, integer playerColour returns nothing
Ред. Unryze
Прокрутить к ресурсу
v1.0.10.49
- Новые Типы:
type missile extends agenttype playermissileevent extends eventid
- Новые Конверторы:
constant native ConvertPlayerMissileEvent takes integer i returns playermissileevent- Новые Константы:
constant playermissileevent EVENT_PLAYER_MISSILE_LAUNCH = ConvertPlayerMissileEvent(600)constant playermissileevent EVENT_PLAYER_MISSILE_HIT = ConvertPlayerMissileEvent(601)
- Новые Нативные Функции:
native KillMissile takes missile whichMissile returns nothingnative IsMissileVisible takes missile whichMissile returns boolean
native SetMissileVisibility takes missile whichMissile, boolean visibility returns nothing
native GetMissileX takes missile whichMissile returns real
native SetMissileX takes missile whichMissile, real x returns nothing
native GetMissileY takes missile whichMissile returns real
native SetMissileY takes missile whichMissile, real y returns nothing
native GetMissileZ takes missile whichMissile returns real
native SetMissileZ takes missile whichMissile, real z returns nothing
native GetMissileHeight takes missile whichMissile returns real
native SetMissileHeight takes missile whichMissile, real height returns nothing
native GetMissilePositionLocation takes missile whichMissile returns location
native SetMissilePositionWithZ takes missile whichMissile, real x, real y, real z returns nothing
native SetMissilePosition takes missile whichMissile, real x, real y returns nothing
native SetMissilePositionLocation takes missile whichMissile, location loc returns nothing
native GetMissileScale takes missile whichMissile returns real
native SetMissileScale takes missile whichMissile, real scale returns nothing
native GetMissileTimeScale takes missile whichMissile returns real
native SetMissileTimeScale takes missile whichMissile, real timescale returns nothing
native GetMissileColour takes missile whichMissile returns integer
native SetMissileColour takes missile whichMissile, integer colour returns boolean
native SetMissileAlpha takes missile whichMissile, integer alpha returns boolean
native SetMissileVertexColour takes missile whichMissile, integer red, integer green, integer blue, integer alpha returns boolean
native SetMissileAnimationWithRarityByIndex takes missile whichMissile, integer animIndex, raritycontrol rarity returns nothing
native SetMissileAnimationWithRarity takes missile whichMissile, string animation, raritycontrol rarity returns nothing
native SetMissileAnimationByIndex takes missile whichMissile, integer animIndex returns nothing
native SetMissileAnimation takes missile whichMissile, string animation returns nothing
native QueueMissileAnimationByIndex takes missile whichMissile, integer animIndex returns nothing
native QueueMissileAnimation takes missile whichMissile, string animation returns nothing
native ResetMissileMatrix takes missile whichMissile returns nothing
native SetMissileOrientationEx takes missile whichMissile, real yaw, real pitch, real roll, integer eulerOrder returns boolean
native GetMissileYaw takes missile whichMissile returns real
native SetMissileYaw takes missile whichMissile, real yaw returns boolean
native GetMissileFacing takes missile whichMissile returns real
native SetMissileFacing takes missile whichMissile, real facing returns boolean
native GetMissilePitch takes missile whichMissile returns real
native SetMissilePitch takes missile whichMissile, real pitch returns boolean
native GetMissileRoll takes missile whichMissile returns real
native SetMissileRoll takes missile whichMissile, real roll returns boolean
native SetMissileOrientation takes missile whichMissile, real yaw, real pitch, real roll returns nothing
native SetMissileModel takes missile whichMissile, string modelName returns nothing
native SetMissileModelEx takes missile whichMissile, string modelName, integer playerColour returns nothing
native GetMissileSource takes missile whichMissile returns unit
native SetMissileSource takes missile whichMissile, unit whichUnit returns nothing
native GetMissileTarget takes missile whichMissile returns widget
native SetMissileTarget takes missile whichMissile, widget whichWidget returns nothing
native GetMissileAttackType takes missile whichMissile returns attacktype
native SetMissileAttackType takes missile whichMissile, attacktype whichAttackType returns nothing
native GetMissileDamage takes missile whichMissile returns real
native SetMissileDamage takes missile whichMissile, real damage returns nothing
native GetMissileSpeed takes missile whichMissile returns real
native SetMissileSpeed takes missile whichMissile, real speed returns nothing
native GetMissileArc takes missile whichMissile returns real
native SetMissileArc takes missile whichMissile, real arc returns nothing
native GetMissileWeaponType takes missile whichMissile returns weapontype
native SetMissileWeaponType takes missile whichMissile, weapontype whichWeaponType returns nothing
native GetMissileDamageType takes missile whichMissile returns damagetype
native SetMissileDamageType takes missile whichMissile, damagetype whichDamageType returns nothing
native GetMissileDamageFlags takes missile whichMissile returns integer
native SetMissileDamageFlags takes missile whichMissile, integer flags returns nothing
native SaveMissileHandle takes hashtable whichHashtable, integer parentKey, integer childKey, missile whichMissile returns boolean
native LoadMissileHandle takes hashtable whichHashtable, integer parentKey, integer childKey returns missile
native GetTriggerMissile takes nothing returns missile
native GetTriggerMissileSource takes nothing returns unit
native GetTriggerMissileTarget takes nothing returns unit
native TriggerRegisterPlayerMissileEvent takes trigger whichTrigger, player whichPlayer, playermissileevent whichMissileEvent returns event
Ред. MpW
Ред. nazarpunk
Ред. Unryze
ScorpioT1000:
Ред. Ev3nt
Ред. Unryze
Прокрутить к ресурсу
v1.0.11.53
- Новые Нативные Функции:
Unitnative IsUnitAlive takes unit whichUnit returns boolean
native SetUnitModelEx takes unit whichUnit, string modelName, integer playercolourId returns nothing
native SetUnitMaterialTexture takes unit whichUnit, string textureName, integer materialId, integer textureIndex returns nothing
native SetUnitTexture takes unit whichUnit, string textureName, integer textureIndex returns nothing
Item
native SetItemModelEx takes item whichItem, string modelFile, integer playerColourId returns nothing
native SetItemMaterialTexture takes item whichItem, string textureName, integer materialId, integer textureIndex returns nothing
native SetItemTexture takes item whichItem, string textureName, integer textureIndex returns nothing
native SetItemReplaceableTexture takes item whichItem, string textureName, integer textureIndex returns nothing
Missile
native GetMissileTargetUnit takes missile whichMissile returns unit
native GetMissileTargetItem takes missile whichMissile returns item
native GetMissileTargetDestructable takes missile whichMissile returns destructable
native GetTriggerMissileTargetUnit takes nothing returns unit
native GetTriggerMissileTargetItem takes nothing returns item
native GetTriggerMissileTargetDestructable takes nothing returns destructable
native IsWidgetVisible takes widget whichWidget returns boolean
native SetWidgetVisible takes widget whichWidget, boolean visible returns nothing
native IsWidgetInvulnerable takes widget whichWidget returns boolean
native SetWidgetInvulnerable takes widget whichWidget, boolean invulnerable returns nothing
native GetWidgetPositionLocation takes widget whichWidget returns location
native SetWidgetPosition takes widget whichWidget, real x, real y returns nothing
native SetWidgetPositionLocation takes widget whichWidget, location whichLocation returns nothing
native SetWidgetX takes widget whichWidget, real x returns nothing
native SetWidgetY takes widget whichWidget, real y returns nothing
native GetWidgetVertexColour takes widget whichWidget returns integer
native SetWidgetVertexColour takes widget whichWidget, integer red, integer green, integer blue, integer alpha returns nothing
native GetWidgetTimeScale takes widget whichWidget returns real
native SetWidgetTimeScale takes widget whichWidget, real timeScale returns nothing
native GetWidgetScale takes widget whichWidget returns real
native SetWidgetScale takes widget whichWidget, real scale returns nothing
native GetWidgetFacing takes widget whichWidget returns real
native SetWidgetFacing takes widget whichWidget, real facing, boolean isInstant returns nothing
native SetWidgetSpaceRotation takes widget whichWidget, real yaw, real pitch, real roll, integer eulerOrder returns nothing
native SetWidgetOrientation takes widget whichWidget, real yaw, real pitch, real roll returns nothing
native GetWidgetYaw takes widget whichWidget returns real
native SetWidgetYaw takes widget whichWidget, real yaw returns nothing
native GetWidgetPitch takes widget whichWidget returns real
native SetWidgetPitch takes widget whichWidget, real pitch returns nothing
native GetWidgetRoll takes widget whichWidget returns real
native SetWidgetRoll takes widget whichWidget, real roll returns nothing
native SetWidgetModel takes widget whichWidget, string modelFile returns nothing
native SetWidgetModelEx takes widget whichWidget, string modelFile, integer playerId returns nothing
native SetWidgetAnimationWithRarityByIndex takes widget whichWidget, integer animIndex, raritycontrol rarity returns nothing
native SetWidgetAnimationWithRarity takes widget whichWidget, string animation, raritycontrol rarity returns nothing
native SetWidgetAnimationByIndex takes widget whichWidget, integer animIndex returns nothing
native SetWidgetAnimation takes widget whichWidget, string animation returns nothing
native QueueWidgetAnimationByIndex takes widget whichWidget, integer animIndex returns nothing
native QueueWidgetAnimation takes widget whichWidget, string animation returns nothing
native SetWidgetMaterialTexture takes widget whichWidget, string textureName, integer materialId, integer textureIndex returns nothing
native SetWidgetTexture takes widget whichWidget, string textureName, integer textureIndex returns nothing
native SetWidgetReplaceableTexture takes widget whichWidget, string textureName, integer textureIndex returns nothing
Destructable
native GetDestructablePositionLocation takes destructable whichDestructable returns location
native SetDestructablePosition takes destructable whichDestructable, real x, real y returns nothing
native SetDestructablePositionLocation takes destructable whichDestructable, location whichLocation returns nothing
native SetDestructableX takes destructable whichDestructable, real x returns nothing
native SetDestructableY takes destructable whichDestructable, real y returns nothing
native SetDestructableModel takes destructable whichDestructable, string modelFile returns nothing
native SetDestructableModelEx takes destructable whichDestructable, string modelFile, integer playerColourId returns nothing
native GetDestructableVertexColour takes destructable whichDestructable returns integer
native SetDestructableVertexColour takes destructable whichDestructable, integer red, integer green, integer blue, integer alpha returns nothing
native GetDestructableTimeScale takes destructable whichDestructable returns real
native SetDestructableTimeScale takes destructable whichDestructable, real timeScale returns nothing
native GetDestructableScale takes destructable whichDestructable returns real
native SetDestructableScale takes destructable whichDestructable, real scale returns nothing
native GetDestructableFacing takes destructable whichDestructable returns real
native SetDestructableFacing takes destructable whichDestructable, real facing, boolean isInstant returns nothing
native SetDestructableSpaceRotation takes destructable whichDestructable, real yaw, real pitch, real roll, integer eulerOrder returns nothing
native SetDestructableOrientation takes destructable whichDestructable, real yaw, real pitch, real roll returns nothing
native GetDestructableYaw takes destructable whichDestructable returns real
native SetDestructableYaw takes destructable whichDestructable, real yaw returns nothing
native GetDestructablePitch takes destructable whichDestructable returns real
native SetDestructablePitch takes destructable whichDestructable, real pitch returns nothing
native GetDestructableRoll takes destructable whichDestructable returns real
native SetDestructableRoll takes destructable whichDestructable, real roll returns nothing
native SetDestructableModel takes destructable whichDestructable, string modelFile returns nothing
native SetDestructableModelEx takes destructable whichDestructable, string modelFile, integer playerId returns nothing
native SetDestructableMaterialTexture takes destructable whichDestructable, string textureName, integer materialId, integer textureIndex returns nothing
native SetDestructableTexture takes destructable whichDestructable, string textureName, integer textureIndex returns nothing
native SetDestructableReplaceableTexture takes destructable whichDestructable, string textureName, integer textureIndex returns nothing
native SetDestructableAnimationWithRarityByIndex takes destructable whichDestructable, integer animIndex, raritycontrol rarity returns nothing
native SetDestructableAnimationWithRarity takes destructable whichDestructable, string animation, raritycontrol rarity returns nothing
native SetDestructableAnimationByIndex takes destructable whichDestructable, integer animIndex returns nothing
native QueueDestructableAnimationByIndex takes destructable whichDestructable, integer animIndex returns nothing
Ред. Unryze
v1.0.12.57
- Новые Константы:
constant abilityintegerfield ABILITY_IF_BUTTON_HOTKEY_NORMAL = ConvertAbilityIntegerField('ahky')constant abilityintegerfield ABILITY_IF_BUTTON_HOTKEY_ACTIVATED = ConvertAbilityIntegerField('auhk')
constant abilityintegerfield ABILITY_IF_BUTTON_HOTKEY_RESEARCH = ConvertAbilityIntegerField('auhk')
constant abilitystringfield ABILITY_SF_ICON_NORMAL = ConvertAbilityStringField('aart')
constant unitintegerfield UNIT_IF_FOOD_USED = ConvertUnitIntegerField('ufoo')
constant unitintegerfield UNIT_IF_FOOD_PRODUCED = ConvertUnitIntegerField('ufma')
constant unitintegerfield UNIT_IF_GOLD_COST = ConvertUnitIntegerField('ugol')
constant unitintegerfield UNIT_IF_LUMBER_COST = ConvertUnitIntegerField('ulum')
constant unitintegerfield UNIT_IF_AGILITY_BASE = ConvertUnitIntegerField('ustr')
constant unitintegerfield UNIT_IF_INTELLIGENCE_BASE = ConvertUnitIntegerField('uagi')
constant unitintegerfield UNIT_IF_STRENGTH_BASE = ConvertUnitIntegerField('uint')
- Новые Нативные Функции:
utilitynative GetHostPlayer takes nothing returns player
native GetHandleCount takes nothing returns integer
native GetNextHandleIndex takes nothing returns integer
native IsKeyPressed takes oskeytype key returns boolean
native IsMouseKeyPressed takes mousebuttontype mouseKey returns boolean
screen
native SetScreenFieldOfView takes real fov returns nothing
native SetWidescreenState takes boolean flag returns nothing
window
native IsWindowActive takes nothing returns boolean
native GetWindowWidth takes nothing returns integer
native GetWindowHeight takes nothing returns integer
native GetClientWidth takes nothing returns integer
native GetClientHeight takes nothing returns integer
native GetWindowX takes nothing returns integer
native GetWindowY takes nothing returns integer
native GetWindowCenterX takes nothing returns integer
native GetWindowCenterY takes nothing returns integer
Frame
native GetCFrameByName takes string frameName, integer createContext returns framehandle
native GetCSimpleFontStringByName takes string frameName, integer createContext returns framehandle
native GetCSimpleTextureByName takes string frameName, integer createContext returns framehandle
native GetCSimpleFrameByName takes string frameName, integer createContext returns framehandle
native GetFrameUnderMouse takes nothing returns framehandle
native SetFrameSpriteAnimationOffset takes framehandle whichFrame, real percent returns boolean
ability
native GetAbilityIntegerField takes ability whichAbility, abilityintegerfield whichField returns integer
native SetAbilityIntegerField takes ability whichAbility, abilityintegerfield whichField, integer value returns boolean
native GetAbilityBooleanField takes ability whichAbility, abilitybooleanfield whichField returns boolean
native SetAbilityBooleanField takes ability whichAbility, abilitybooleanfield whichField, boolean value returns boolean
native GetAbilityRealField takes ability whichAbility, abilityrealfield whichField returns real
native SetAbilityRealField takes ability whichAbility, abilityrealfield whichField, real value returns boolean
native GetAbilityStringField takes ability whichAbility, abilitystringfield whichField returns string
native SetAbilityStringField takes ability whichAbility, abilitystringfield whichField, string value returns boolean
native GetAbilityIntegerLevelField takes ability whichAbility, abilityintegerlevelfield whichField, integer level returns integer
native SetAbilityIntegerLevelField takes ability whichAbility, abilityintegerlevelfield whichField, integer level, integer value returns boolean
native GetAbilityBooleanLevelField takes ability whichAbility, abilitybooleanlevelfield whichField, integer level returns boolean
native SetAbilityBooleanLevelField takes ability whichAbility, abilitybooleanlevelfield whichField, integer level, boolean value returns boolean
native GetAbilityRealLevelField takes ability whichAbility, abilityreallevelfield whichField, integer level returns real
native SetAbilityRealLevelField takes ability whichAbility, abilityreallevelfield whichField, integer level, real value returns boolean
native GetAbilityStringLevelField takes ability whichAbility, abilitystringlevelfield whichField, integer level returns string
native SetAbilityStringLevelField takes ability whichAbility, abilitystringlevelfield whichField, integer level, string value returns boolean
native GetAbilityIntegerLevelArrayField takes ability whichAbility, abilityintegerlevelarrayfield whichField, integer level, integer index returns integer
native SetAbilityIntegerLevelArrayField takes ability whichAbility, abilityintegerlevelarrayfield whichField, integer level, integer index, integer value returns boolean
native AddAbilityIntegerLevelArrayField takes ability whichAbility, abilityintegerlevelarrayfield whichField, integer level, integer value returns boolean
native RemoveAbilityIntegerLevelArrayField takes ability whichAbility, abilityintegerlevelarrayfield whichField, integer level, integer value returns boolean
native GetAbilityBooleanLevelArrayField takes ability whichAbility, abilitybooleanlevelarrayfield whichField, integer level, integer index returns boolean
native SetAbilityBooleanLevelArrayField takes ability whichAbility, abilitybooleanlevelarrayfield whichField, integer level, integer index, boolean value returns boolean
native AddAbilityBooleanLevelArrayField takes ability whichAbility, abilitybooleanlevelarrayfield whichField, integer level, boolean value returns boolean
native RemoveAbilityBooleanLevelArrayField takes ability whichAbility, abilitybooleanlevelarrayfield whichField, integer level, boolean value returns boolean
native GetAbilityRealLevelArrayField takes ability whichAbility, abilityreallevelarrayfield whichField, integer level, integer index returns real
native SetAbilityRealLevelArrayField takes ability whichAbility, abilityreallevelarrayfield whichField, integer level, integer index, real value returns boolean
native AddAbilityRealLevelArrayField takes ability whichAbility, abilityreallevelarrayfield whichField, integer level, real value returns boolean
native RemoveAbilityRealLevelArrayField takes ability whichAbility, abilityreallevelarrayfield whichField, integer level, real value returns boolean
native GetAbilityStringLevelArrayField takes ability whichAbility, abilitystringlevelarrayfield whichField, integer level, integer index returns string
native SetAbilityStringLevelArrayField takes ability whichAbility, abilitystringlevelarrayfield whichField, integer level, integer index, string value returns boolean
native AddAbilityStringLevelArrayField takes ability whichAbility, abilitystringlevelarrayfield whichField, integer level, string value returns boolean
native RemoveAbilityStringLevelArrayField takes ability whichAbility, abilitystringlevelarrayfield whichField, integer level, string value returns boolean
item
native GetItemIntegerField takes item whichItem, itemintegerfield whichField returns integer
native SetItemIntegerField takes item whichItem, itemintegerfield whichField, integer value returns boolean
native GetItemBooleanField takes item whichItem, itembooleanfield whichField returns boolean
native SetItemBooleanField takes item whichItem, itembooleanfield whichField, boolean value returns boolean
native GetItemRealField takes item whichItem, itemrealfield whichField returns real
native SetItemRealField takes item whichItem, itemrealfield whichField, real value returns boolean
native GetItemStringField takes item whichItem, itemstringfield whichField returns string
native SetItemStringField takes item whichItem, itemstringfield whichField, string value returns boolean
unit
native GetUnitMinimumDamageByIndex takes unit whichUnit, integer attackIndex returns integer
native GetUnitMaximumDamageByIndex takes unit whichUnit, integer attackIndex returns integer
native GetUnitBooleanField takes unit whichUnit, unitbooleanfield whichField returns boolean
native GetUnitIntegerField takes unit whichUnit, unitintegerfield whichField returns integer
native GetUnitRealField takes unit whichUnit, unitrealfield whichField returns real
native GetUnitStringField takes unit whichUnit, unitstringfield whichField returns string
native SetUnitBooleanField takes unit whichUnit, unitbooleanfield whichField, boolean value returns boolean
native SetUnitIntegerField takes unit whichUnit, unitintegerfield whichField, integer value returns boolean
native SetUnitRealField takes unit whichUnit, unitrealfield whichField, real value returns boolean
native SetUnitStringField takes unit whichUnit, unitstringfield whichField, string value returns boolean
native GetUnitWeaponBooleanField takes unit whichUnit, unitweaponbooleanfield whichField, integer index returns boolean
native GetUnitWeaponIntegerField takes unit whichUnit, unitweaponintegerfield whichField, integer index returns integer
native GetUnitWeaponRealField takes unit whichUnit, unitweaponrealfield whichField, integer index returns real
native GetUnitWeaponStringField takes unit whichUnit, unitweaponstringfield whichField, integer index returns string
native SetUnitWeaponBooleanField takes unit whichUnit, unitweaponbooleanfield whichField, integer index, boolean value returns boolean
native SetUnitWeaponIntegerField takes unit whichUnit, unitweaponintegerfield whichField, integer index, integer value returns boolean
native SetUnitWeaponRealField takes unit whichUnit, unitweaponrealfield whichField, integer index, real value returns boolean
native SetUnitWeaponStringField takes unit whichUnit, unitweaponstringfield whichField, integer index, string value returns boolean
- Удалённые Нативные Функции:
native GetAbilityHotkey takes ability whichAbility returns oskeytypenative SetAbilityHotkey takes ability whichAbility, oskeytype whichKey returns nothing
native GetAbilityUnHotkey takes ability whichAbility returns oskeytype
native SetAbilityUnHotkey takes ability whichAbility, oskeytype whichKey returns nothing
native GetAbilityResearchHotkey takes ability whichAbility returns oskeytype
native SetAbilityResearchHotkey takes ability whichAbility, oskeytype whichKey returns nothing
native GetAbilityEffectSound takes ability whichAbility returns string
native SetAbilityEffectSound takes ability whichAbility, string text returns nothing
native GetAbilityGlobalMessage takes ability whichAbility returns string
native SetAbilityGlobalMessage takes ability whichAbility, string text returns nothing
native GetAbilityGlobalSound takes ability whichAbility returns string
native SetAbilityGlobalSound takes ability whichAbility, string text returns nothing
native GetAbilityButtonX takes ability whichAbility returns integer
native SetAbilityButtonX takes ability whichAbility, integer positionX returns nothing
native GetAbilityButtonY takes ability whichAbility returns integer
native SetAbilityButtonY takes ability whichAbility, integer positionY returns nothing
native GetAbilityUnButtonX takes ability whichAbility returns integer
native SetAbilityUnButtonX takes ability whichAbility, integer positionX returns nothing
native GetAbilityUnButtonY takes ability whichAbility returns integer
native SetAbilityUnButtonY takes ability whichAbility, integer positionY returns nothing
native GetAbilityResearchButtonX takes ability whichAbility returns integer
native SetAbilityResearchButtonX takes ability whichAbility, integer positionX returns nothing
native GetAbilityResearchButtonY takes ability whichAbility returns integer
native SetAbilityResearchButtonY takes ability whichAbility, integer positionY returns nothing
native GetAbilityMissileSpeed takes ability whichAbility returns real
native SetAbilityMissileSpeed takes ability whichAbility, real missileSpeed returns nothing
native GetAbilityMissileArc takes ability whichAbility returns real
native SetAbilityMissileArc takes ability whichAbility, real missileArc returns nothing
native GetAbilityIsMissileHoming takes ability whichAbility returns boolean
native SetAbilityIsMissileHoming takes ability whichAbility, boolean ishoming returns nothing
native GetAbilityBaseSpellDetails takes ability whichAbility returns integer
native SetAbilityBaseSpellDetails takes ability whichAbility, integer level returns nothing
native GetAbilityBaseTip takes ability whichAbility, integer level returns string
native SetAbilityBaseTip takes ability whichAbility, integer level, string text returns nothing
native GetAbilityBaseUnTip takes ability whichAbility, integer level returns string
native SetAbilityBaseUnTip takes ability whichAbility, integer level, string text returns nothing
native GetAbilityBaseUberTip takes ability whichAbility, integer level returns string
native SetAbilityBaseUberTip takes ability whichAbility, integer level, string text returns nothing
native GetAbilityBaseUnUberTip takes ability whichAbility, integer level returns string
native SetAbilityBaseUnUberTip takes ability whichAbility, integer level, string text returns nothing
native SetAbilityHotkeyEx takes ability whichAbility, oskeytype whichKey returns nothing
native GetItemBaseName takes item whichItem returns string
native SetItemBaseName takes item whichItem, string name returns nothing
native GetItemBaseDescription takes item whichItem returns string
native SetItemBaseDescription takes item whichItem, string name returns nothing
native GetItemBaseIcon takes item whichItem returns string
native SetItemBaseIcon takes item whichItem, string path returns nothing
native GetItemBaseHotkey takes item whichItem returns oskeytype
native SetItemBaseHotkey takes item whichItem, oskeytype whichKey returns nothing
native GetItemBaseTip takes item whichItem returns string
native SetItemBaseTip takes item whichItem, string tip returns nothing
native GetItemBaseUberTip takes item whichItem returns string
native SetItemBaseUberTip takes item whichItem, string tip returns nothing
native GetItemBaseGoldCost takes item whichItem returns integer
native SetItemBaseGoldCost takes item whichItem, integer goldcost returns nothing
native GetItemBaseLumberCost takes item whichItem returns integer
native SetItemBaseLumberCost takes item whichItem, integer lumbercost returns nothing
native GetItemBaseStockMaximum takes item whichItem returns integer
native SetItemBaseStockMaximum takes item whichItem, integer stockMax returns nothing
native GetItemBaseStockReplenishInterval takes item whichItem returns real
native SetItemBaseStockReplenishInterval takes item whichItem, real replenishInterval returns nothing
native GetItemBaseStockStartDelay takes item whichItem returns real
native SetItemBaseStockStartDelay takes item whichItem, real stockStartDelay returns nothing
native GetItemBasePriority takes item whichItem returns integer
native SetItemBasePriority takes item whichItem, integer priority returns nothing
native GetItemBaseLevel takes item whichItem returns integer
native SetItemBaseLevel takes item whichItem, integer level returns nothing
native GetItemBaseOldLevel takes item whichItem returns integer
native SetItemBaseOldLevel takes item whichItem, integer oldlevel returns nothing
native GetItemBaseClassification takes item whichItem returns integer
native SetItemBaseClassification takes item whichItem, integer classifictaionId returns nothing
native GetItemBaseIsMorph takes item whichItem returns boolean
native SetItemBaseIsMorph takes item whichItem, boolean flag returns nothing
native GetItemBaseIsPickRandom takes item whichItem returns boolean
native SetItemBaseIsPickRandom takes item whichItem, boolean flag returns nothing
native GetItemBaseCharges takes item whichItem returns integer
native SetItemBaseCharges takes item whichItem, integer charges returns nothing
native GetItemBaseCooldownId takes item whichItem returns integer
native SetItemBaseCooldownId takes item whichItem, integer cooldownId returns nothing
native GetItemBaseIsIgnoreCooldown takes item whichItem returns boolean
native SetItemBaseIsIgnoreCooldown takes item whichItem, boolean flag returns nothing
native GetItemBaseIsPowerUp takes item whichItem returns boolean
native SetItemBaseIsPowerUp takes item whichItem, boolean flag returns nothing
native GetItemBaseIsPawnable takes item whichItem returns boolean
native SetItemBaseIsPawnable takes item whichItem, boolean flag returns nothing
native GetItemBaseIsUsable takes item whichItem returns boolean
native SetItemBaseIsUsable takes item whichItem, boolean flag returns nothing
native GetItemBaseIsPerishable takes item whichItem returns boolean
native SetItemBaseIsPerishable takes item whichItem, boolean flag returns nothing
native GetItemBaseIsDroppable takes item whichItem returns boolean
native SetItemBaseIsDroppable takes item whichItem, boolean flag returns nothing
native GetItemBaseIsDroppableOnDeath takes item whichItem returns boolean
native SetItemBaseIsDroppableOnDeath takes item whichItem, boolean flag returns nothing
native GetItemBaseIsSellable takes item whichItem returns boolean
native SetItemBaseIsSellable takes item whichItem, boolean flag returns nothing
native GetHeroBasePrimaryStat takes unit whichUnit returns heroattribute
native SetHeroBasePrimaryStat takes unit whichUnit, heroattribute whichHeroAttribute returns nothing
native GetUnitBaseGoldCost takes unit whichUnit returns integer
native SetUnitBaseGoldCost takes unit whichUnit, integer goldCost returns nothing
native GetUnitBaseDaySight takes unit whichUnit returns real
native SetUnitBaseDaySight takes unit whichUnit, real dsight returns nothing
native GetUnitBaseNightSight takes unit whichUnit returns real
native SetUnitBaseNightSight takes unit whichUnit, real nsight returns nothing
native GetUnitBaseColour takes unit whichUnit returns integer
native SetUnitBaseColour takes unit whichUnit, integer colour returns nothing
native GetUnitBaseColourA takes unit whichUnit returns integer
native SetUnitBaseColourA takes unit whichUnit, integer alpha returns nothing
native GetUnitBaseColourR takes unit whichUnit returns integer
native SetUnitBaseColourR takes unit whichUnit, integer red returns nothing
native GetUnitBaseColourG takes unit whichUnit returns integer
native SetUnitBaseColourG takes unit whichUnit, integer green returns nothing
native GetUnitBaseColourB takes unit whichUnit returns integer
native SetUnitBaseColourB takes unit whichUnit, integer blue returns nothing
native GetUnitBaseName takes unit whichUnit returns string
native SetUnitBaseName takes unit whichUnit, string name returns nothing
native GetHeroBaseProperName takes unit whichUnit, integer nameIndex returns string
native SetHeroBaseProperName takes unit whichUnit, integer nameIndex, string properName returns nothing
native GetUnitBaseDescription takes unit whichUnit returns string
native SetUnitBaseDescription takes unit whichUnit, string name returns nothing
native GetUnitBaseModel takes unit whichUnit returns string
native SetUnitBaseModel takes unit whichUnit, string model returns nothing
native GetUnitBasePortrait takes unit whichUnit returns string
native SetUnitBasePortrait takes unit whichUnit, string portrait returns nothing
native GetUnitBaseHotkey takes unit whichUnit returns oskeytype
native SetUnitBaseHotkey takes unit whichUnit, oskeytype whichKey returns nothing
native GetUnitBaseIcon takes unit whichUnit returns string
native SetUnitBaseIcon takes unit whichUnit, string name returns nothing
native GetUnitBaseAwakenTip takes unit whichUnit returns string
native SetUnitBaseAwakenTip takes unit whichUnit, string awakenTip returns nothing
native GetUnitBaseTip takes unit whichUnit returns string
native SetUnitBaseTip takes unit whichUnit, string tip returns nothing
native GetUnitBaseUberTip takes unit whichUnit returns string
native SetUnitBaseUberTip takes unit whichUnit, string ubertip returns nothing
native GetUnitBaseReviveTip takes unit whichUnit returns string
native SetUnitBaseReviveTip takes unit whichUnit, string revivetip returns nothing
native GetUnitBaseShadowTex takes unit whichUnit returns string
native SetUnitBaseShadowTex takes unit whichUnit, string shadowTexture returns nothing
native GetUnitBaseMissileArt takes unit whichUnit, integer attackIndex returns string
native SetUnitBaseMissileArt takes unit whichUnit, integer attackIndex, string missleArt returns nothing
native GetUnitBaseMissileSpeed takes unit whichUnit, integer attackIndex returns real
native SetUnitBaseMissileSpeed takes unit whichUnit, integer attackIndex, real missleSpeed returns nothing
native GetUnitBaseSelectionScale takes unit whichUnit returns real
native SetUnitBaseSelectionScale takes unit whichUnit, real selectionScale returns nothing
Ред. nazarpunk
Ред. EugeAl
Ред. Unryze
v1.0.12.58
- Новые Константы:
constant integer CHAT_RECIPIENT_ALL = 0constant integer CHAT_RECIPIENT_ALLIES = 1
constant integer CHAT_RECIPIENT_REFEREES = 2
constant integer CHAT_RECIPIENT_OBSERVERS = 2
constant integer CHAT_RECIPIENT_PRIVATE = 3
constant unitweaponintegerfield UNIT_WEAPON_IF_ATTACKS_ENABLED = ConvertUnitWeaponIntegerField('uaen')
- Новые Нативные Функции:
native DisplayChatMessage takes player whichPlayer, integer recipient, string message returns nothingnative DisplayTimedChatMessage takes player whichPlayer, integer recipient, string message, real duration returns nothing
native SetSpecialEffectAnimationOffsetPercent takes effect whichEffect, real percent returns boolean
native SetTrackableAnimationOffsetPercent takes trackable whichTrackable, real percent returns boolean
native SetWidgetAnimationOffsetPercent takes widget whichWidget, real percent returns boolean
native SetDestructableAnimationOffsetPercent takes destructable whichDestructable, real percent returns boolean
native SetItemAnimationOffsetPercent takes item whichItem, real percent returns boolean
native SetUnitAnimationOffsetPercent takes unit whichUnit, real percent returns boolean
native SetMissileAnimationOffsetPercent takes missile whichMissile, real percent returns boolean
Пояснение: это значит, что если Вы создали фрейм вот так: CreateFrame( "SomFrame", gameUI, 0, 0 ) и создадите фрейм ещё раз через CreateFrame( "SomFrame", gameUI, 0, 0 ), то оно на деле "выкинет" предыдущий фрейм, однако этой проблемы больше нет.
Ред. ScorpioT1000
v1.0.12.59
- Исправлена критическая ошибка на 1.28.5.
Пояснение: данная ошибка была связана с выполнением какого-либо действия, допустим нажатия системных фреймов, выделением юнита и так далее. Обычное движение мышки и камеры не вызывало ошибки.- Исправлены CastAbilityGround и CastAbilityTarget нативные функции.
Дополнение: НЕ ИСПОЛЬЗУЙТЕ эти функции без какой-либо задержки из main функции, так как игра может не успеть подготовить события под этим заклинания и т.д.Ред. Unryze
Прокрутить к ресурсу
v1.0.12.60
Дополнение: чтобы избежать критической ошибки на выходе из карты/игры, НЕ СОЗДАВАЙТЕ фреймы из main функции без какой-либо задержки с помощью таймера.
Дополнение: это исправление "контрмера" для нужды использования таймеров, как было сказано в пункте #1.
Ред. Unryze
Прокрутить к ресурсу
v1.0.13.63
- Новые Типы:
type buffstringfield extends handle- Новые Конверторы:
constant native ConvertBuffStringField takes integer i returns buffstringfield- Новые Константы:
constant buffstringfield BUFF_SF_ICON_NORMAL = ConvertBuffStringField('fart')constant buffstringfield BUFF_SF_TOOLTIP_NORMAL = ConvertBuffStringField('ftip')
constant buffstringfield BUFF_SF_TOOLTIP_NORMAL_EXTENDED = ConvertBuffStringField('fube')
constant unitstringfield UNIT_SF_HERO_ABILITY_LIST = ConvertUnitStringField('uhab')
constant unitstringfield UNIT_SF_ABILITY_LIST = ConvertUnitStringField('uabi')
- Новые Нативные Функции:
native GetUjAPIVersion takes nothing returns stringnative HideOriginFrames takes boolean flag returns nothing
native EditBlackBorders takes real upperHeight, real bottomHeight returns nothing
Ability
native GetAbilityOrderId takes ability whichAbility returns integer this replaced GetAbilityOrder, used wrong naming
native SetAbilityOrderId takes ability whichAbility, integer orderId returns boolean Highly experimental, may be removed if proven unstable.
native SetAbilityLevel takes ability whichAbility, integer level returns boolean
Ability Base Field API
native GetAbilityBaseIntegerFieldById takes integer aid, abilityintegerfield whichField returns integer
native SetAbilityBaseIntegerFieldById takes integer aid, abilityintegerfield whichField, integer value returns boolean
native GetAbilityBaseBooleanFieldById takes integer aid, abilitybooleanfield whichField returns boolean
native SetAbilityBaseBooleanFieldById takes integer aid, abilitybooleanfield whichField, boolean value returns boolean
native GetAbilityBaseRealFieldById takes integer aid, abilityrealfield whichField returns real
native SetAbilityBaseRealFieldById takes integer aid, abilityrealfield whichField, real value returns boolean
native GetAbilityBaseStringFieldById takes integer aid, abilitystringfield whichField returns string
native SetAbilityBaseStringFieldById takes integer aid, abilitystringfield whichField, string value returns boolean
native GetAbilityBaseIntegerLevelFieldById takes integer aid, abilityintegerlevelfield whichField, integer level returns integer
native SetAbilityBaseIntegerLevelFieldById takes integer aid, abilityintegerlevelfield whichField, integer level, integer value returns boolean
native GetAbilityBaseBooleanLevelFieldById takes integer aid, abilitybooleanlevelfield whichField, integer level returns boolean
native SetAbilityBaseBooleanLevelFieldById takes integer aid, abilitybooleanlevelfield whichField, integer level, boolean value returns boolean
native GetAbilityBaseRealLevelFieldById takes integer aid, abilityreallevelfield whichField, integer level returns real
native SetAbilityBaseRealLevelFieldById takes integer aid, abilityreallevelfield whichField, integer level, real value returns boolean
native GetAbilityBaseStringLevelFieldById takes integer aid, abilitystringlevelfield whichField, integer level returns string
native SetAbilityBaseStringLevelFieldById takes integer aid, abilitystringlevelfield whichField, integer level, string value returns boolean
native GetAbilityBaseIntegerLevelArrayFieldById takes integer aid, abilityintegerlevelarrayfield whichField, integer level, integer index returns integer
native SetAbilityBaseIntegerLevelArrayFieldById takes integer aid, abilityintegerlevelarrayfield whichField, integer level, integer index, integer value returns boolean
native AddAbilityBaseIntegerLevelArrayFieldById takes integer aid, abilityintegerlevelarrayfield whichField, integer level, integer value returns boolean
native RemoveAbilityBaseIntegerLevelArrayFieldById takes integer aid, abilityintegerlevelarrayfield whichField, integer level, integer value returns boolean
native GetAbilityBaseBooleanLevelArrayFieldById takes integer aid, abilitybooleanlevelarrayfield whichField, integer level, integer index returns boolean
native SetAbilityBaseBooleanLevelArrayFieldById takes integer aid, abilitybooleanlevelarrayfield whichField, integer level, integer index, boolean value returns boolean
native AddAbilityBaseBooleanLevelArrayFieldById takes integer aid, abilitybooleanlevelarrayfield whichField, integer level, boolean value returns boolean
native RemoveAbilityBaseBooleanLevelArrayFieldById takes integer aid, abilitybooleanlevelarrayfield whichField, integer level, boolean value returns boolean
native GetAbilityBaseRealLevelArrayFieldById takes integer aid, abilityreallevelarrayfield whichField, integer level, integer index returns real
native SetAbilityBaseRealLevelArrayFieldById takes integer aid, abilityreallevelarrayfield whichField, integer level, integer index, real value returns boolean
native AddAbilityBaseRealLevelArrayFieldById takes integer aid, abilityreallevelarrayfield whichField, integer level, real value returns boolean
native RemoveAbilityBaseRealLevelArrayFieldById takes integer aid, abilityreallevelarrayfield whichField, integer level, real value returns boolean
native GetAbilityBaseStringLevelArrayFieldById takes integer aid, abilitystringlevelarrayfield whichField, integer level, integer index returns string
native SetAbilityBaseStringLevelArrayFieldById takes integer aid, abilitystringlevelarrayfield whichField, integer level, integer index, string value returns boolean
native AddAbilityBaseStringLevelArrayFieldById takes integer aid, abilitystringlevelarrayfield whichField, integer level, string value returns boolean
native RemoveAbilityBaseStringLevelArrayFieldById takes integer aid, abilitystringlevelarrayfield whichField, integer level, string value returns boolean
Buff Base Field API
native GetBuffBaseStringFieldById takes integer aid, buffstringfield whichField returns string
native SetBuffBaseStringFieldById takes integer aid, buffstringfield whichField, string value returns boolean
Buff Field API
native GetBuffStringField takes buff whichBuff, buffstringfield whichField returns string
native SetBuffStringField takes buff whichBuff, buffstringfield whichField, string value returns boolean
Item Base Field API
native GetBaseItemIntegerFieldById takes integer itemId, itemintegerfield whichField returns integer
native SetBaseItemIntegerFieldById takes integer itemId, itemintegerfield whichField, integer value returns boolean
native GetBaseItemBooleanFieldById takes integer itemId, itembooleanfield whichField returns boolean
native SetBaseItemBooleanFieldById takes integer itemId, itembooleanfield whichField, boolean value returns boolean
native GetBaseItemRealFieldById takes integer itemId, itemrealfield whichField returns real
native SetBaseItemRealFieldById takes integer itemId, itemrealfield whichField, real value returns boolean
native GetBaseItemStringFieldById takes integer itemId, itemstringfield whichField returns string
native SetBaseItemStringFieldById takes integer itemId, itemstringfield whichField, string value returns boolean
Unit Base Field API
native GetUnitBaseIntegerFieldById takes integer unitTypeId, unitintegerfield whichField returns integer
native SetUnitBaseIntegerFieldById takes integer unitTypeId, unitintegerfield whichField, integer value returns boolean
native GetUnitBaseBooleanFieldById takes integer unitTypeId, unitbooleanfield whichField returns boolean
native SetUnitBaseBooleanFieldById takes integer unitTypeId, unitbooleanfield whichField, boolean value returns boolean
native GetUnitBaseRealFieldById takes integer unitTypeId, unitrealfield whichField returns real
native SetUnitBaseRealFieldById takes integer unitTypeId, unitrealfield whichField, real value returns boolean
native GetUnitBaseStringFieldById takes integer unitTypeId, unitstringfield whichField returns string
native SetUnitBaseStringFieldById takes integer unitTypeId, unitstringfield whichField, string value returns boolean
native GetUnitBaseWeaponIntegerFieldById takes integer unitTypeId, unitweaponintegerfield whichField, integer index returns integer
native SetUnitBaseWeaponIntegerFieldById takes integer unitTypeId, unitweaponintegerfield whichField, integer index, integer value returns boolean
native GetUnitBaseWeaponBooleanFieldById takes integer unitTypeId, unitweaponbooleanfield whichField, integer index returns boolean
native SetUnitBaseWeaponBooleanFieldById takes integer unitTypeId, unitweaponbooleanfield whichField, integer index, boolean value returns boolean
native GetUnitBaseWeaponRealFieldById takes integer unitTypeId, unitweaponrealfield whichField, integer index returns real
native SetUnitBaseWeaponRealFieldById takes integer unitTypeId, unitweaponrealfield whichField, integer index, real value returns boolean
native GetUnitBaseWeaponStringFieldById takes integer unitTypeId, unitweaponstringfield whichField, integer index returns string
native SetUnitBaseWeaponStringFieldById takes integer unitTypeId, unitweaponstringfield whichField, integer index, string value returns boolean
- Исправлена критическая ошибка от всех EX нативных функций, связанных с полями заклинаний.
- Исправлена критическая ошибка, связанная с нативной функцией CreateSimpleFrame когда не CSimpleFrame был послан как родительский в аргументах.
- FRAMEEVENT_CONTROL_CLICK теперь может быть использован со всеми CSimpleButtons, а точнее:
CSimpleButtonCReplayButton
CTrainableButton
CCommandButton
CHeroBarButton
CSimpleCheckbox
- FRAMEEVENT_MOUSE_ENTER и FRAMEEVENT_MOUSE_LEAVE теперь могут быть использованы со всеми CSimpleFrames.
- Добавлена поддержка этих JN Нативных Функций:
native BitOr takes integer x,integer y returns integerПояснение: CSimpleTexture и CSimpleFontString (то бишь CSimpleRegions) не поддерживаются, так как у них нет внутренних событий.
native BitAnd takes integer x,integer y returns integer
native BitXor takes integer x,integer y returns integer
native BitShiftL takes integer x,integer y returns integer
native BitShiftR takes integer x,integer y returns integer
native JNI2R takes integer i returns real
native JNR2I takes real r returns integer
native JNGetMaxAttackSpeed takes nothing returns real
native IsReplayMode takes nothing returns boolean
native IsHostPlayer takes nothing returns boolean
native JNStringPos takes string str,string sub returns integer
native JNStringReverse takes string str returns string
native JNStringCount takes string str,string sub returns integer
native JNStringContains takes string str,string sub returns boolean
native JNStringReplace takes string str,string old,string newstr returns string
native JNStringInsert takes string str,integer index,string val returns string
native JNStringSub takes string str,integer start,integer length returns string
native JNStringLength takes string str returns integer
Пояснение: остальные нативные функции будут видны для UjAPI, но они не будет выполнять ничего, но возвращать "пустые", но валидные данные, для превенции крашей.
native EnumDestructablesInRange takes real x, real y, real radius, boolexpr filter, code actionFunc returns nothing, чтобы без областей обойтись. Она возможна?
Ред. MpW
Ред. Unryze
Прокрутить к ресурсу
v1.0.14.65
- Новые Нативные Функции:
native CreateImageSimple takes string file, real sizeX, real sizeY, real posX, real posY, real posZ, integer imageType returns imagenative GetImageType takes image whichImage returns integer
native GetImageX takes image whichImage returns real
native SetImageX takes image whichImage, real sizeX returns nothing
native GetImageY takes image whichImage returns real
native SetImageY takes image whichImage, real sizeY returns nothing
native GetImageZ takes image whichImage returns real
native SetImageZ takes image whichImage, real sizeZ returns nothing
native GetImagePositionLocation takes image whichImage returns location
native SetImagePositionLocation takes image whichImage, location whichLocation returns nothing
native GetImageOriginX takes image whichImage returns real
native SetImageOriginX takes image whichImage, real originX returns nothing
native GetImageOriginY takes image whichImage returns real
native SetImageOriginY takes image whichImage, real originY returns nothing
native SetImageOrigin takes image whichImage, real originX, real originY returns nothing
native GetImageSizeX takes image whichImage returns real
native SetImageSizeX takes image whichImage, real sizeX returns nothing
native GetImageSizeY takes image whichImage returns real
native SetImageSizeY takes image whichImage, real sizeY returns nothing
native SetImageSize takes image whichImage, real size returns nothing
native SetImageSizeEx takes image whichImage, real sizeX, real sizeY returns nothing
native GetImageColour takes image whichImage returns integer
native IsImageRendered takes image whichImage returns boolean
native IsImageRenderAlways takes image whichImage returns boolean
native IsImageRenderAboveWater takes image whichImage returns boolean
native IsImageVisible takes image whichImage returns boolean
native GetImageConstantHeight takes image whichImage returns real
native GetImageTexture takes image whichImage returns string
native SetImageTexture takes image whichImage, string imagePath returns nothing
- Исправлена Критическая Ошибка с событиями OnDamaging/OnDamage, который происходил в очень неоптимизированных картах (проблема связана с плохим кодом Jass в этих картах).
- Исправлена критическая ощибка связанная с выделением магазинов/улучшения заклинаний героя/спелбуков и т.д.
- Добавлена псевдо-поддержка этих JN нативных функций:
native JNDailySave takes string MapId, string UserId, string SecretKey, string Character, string DailyType returns stringПометка: причина была в виду С++ оптимизации, которая просто на просто очищала данные быстрее, чем они до конца были использованы.
Пометка: данная ошибка была добавлена в виду "велосипедного" метода имплементации экспериментальной функции SetAbilityOrderId.
native JNDailyCheckToday takes string MapId, string UserId, string SecretKey, string Character, string DailyType returns string
native JNDailyCheckTodayList takes string MapId, string UserId, string SecretKey, string Character, string DailyType returns string
native JNDailyCountWeek takes string MapId, string UserId, string SecretKey, string Character, string DailyType, string WeekDay returns string
native JNDailyCountWeekList takes string MapId, string UserId, string SecretKey, string Character, string DailyType, string WeekDay returns string
native JNDailyCountMonth takes string MapId, string UserId, string SecretKey, string Character, string DailyType returns string
native JNDailyCountMonthList takes string MapId, string UserId, string SecretKey, string Character, string DailyType returns string
EugeAl:
nazarpunk:
Ред. Unryze
Kokomi:
nazarpunk:
nazarpunk:
Ред. Unryze
Ред. Unryze
Прокрутить к ресурсу
v1.0.15.67
- Новые Константы
constant abilityintegerfield ABILITY_IF_BUTTON_HOTKEY_ALL = ConvertAbilityIntegerField('ahtk') Set onlyconstant abilitybooleanfield ABILITY_BF_HOMING = ConvertAbilityBooleanField('amho')
constant itemintegerfield ITEM_IF_TINTING_COLOR = ConvertItemIntegerField('icol')
constant itemintegerfield ITEM_IF_LEVEL_UNCLASSIFIED = ConvertItemIntegerField('ilvo')
constant itemintegerfield ITEM_IF_GOLD_COST = ConvertItemIntegerField('igol')
constant itemintegerfield ITEM_IF_LUMBER_COST = ConvertItemIntegerField('ilum')
constant itemintegerfield ITEM_IF_PRIORITY = ConvertItemIntegerField('ipri')
constant itemintegerfield ITEM_IF_STOCK_REPLENISH_INTERVAL = ConvertItemIntegerField('istr')
constant itemintegerfield ITEM_IF_STOCK_START_DELAY = ConvertItemIntegerField('isst')
constant itembooleanfield ITEM_BF_IGNORE_COOLDOWN = ConvertItemBooleanField('iicd')
constant itembooleanfield ITEM_BF_VALID_FOR_TRANSFORMATION = ConvertItemBooleanField('imor')
constant itemrealfield ITEM_RF_SELECTION_SIZE = ConvertItemRealField('issc')
constant itemstringfield ITEM_SF_NAME = ConvertItemStringField('unam')
constant itemstringfield ITEM_SF_DESCRIPTION = ConvertItemStringField('ides')
constant itemstringfield ITEM_SF_TOOLTIP_NORMAL = ConvertItemStringField('utip')
constant itemstringfield ITEM_SF_TOOLTIP_EXTENDED = ConvertItemStringField('utub')
constant unitintegerfield ITEM_IF_GOLD_COST = ConvertItemIntegerField('igol')
constant unitintegerfield ITEM_IF_LUMBER_COST = ConvertItemIntegerField('ilum')
constant unitintegerfield ITEM_IF_STOCK_MAXIMUM = ConvertItemIntegerField('isto')
constant unitintegerfield UNIT_IF_TINTING_COLOR = ConvertUnitIntegerField('ucol')
constant unitintegerfield UNIT_IF_PROPER_NAMES_COUNT = ConvertUnitIntegerField('upru') Get Only
constant unitrealfield UNIT_RF_SIGHT_RADIUS_DAY = ConvertUnitRealField('usid')
constant unitrealfield UNIT_RF_SIGHT_RADIUS_NIGHT = ConvertUnitRealField('usin')
constant unitstringfield UNIT_SF_TOOLTIP_NORMAL = ConvertUnitStringField('utip')
constant unitstringfield UNIT_SF_TOOLTIP_EXTENDED = ConvertUnitStringField('utub')
constant unitstringfield UNIT_SF_PROPER_NAME = ConvertUnitStringField('uprn')
- Новые Нативные Функции:
native GetHandleReferenceCount takes handle whichHandle returns integernative GetHandleBaseTypeId takes handle whichHandle returns integer this returns '+w3u' from unit, if it was passed as handle, and so on.
native GetHandleBaseTypeName takes handle whichHandle returns string this returns CUnit from unit, if it was passed as handle, and so on.
native GetFilterHandle takes nothing returns handle
native GetEnumHandle takes nothing returns handle
native EnumHandlesOfType takes integer handleBaseTypeId, boolexpr filter, code handlerFunc returns nothing
native SetImageOrigin takes image whichImage, real origin returns nothing
native SetAbilityRemainingCooldown takes ability whichAbility, real cooldown returns boolean
native SetUnitPointValueByType takes integer unitType, integer newPointValue returns nothing
native EnumDestructablesInRange takes real x, real y, real radius, boolexpr filter, code handlerFunc returns nothing
native EnumItemsInRange takes real x, real y, real radius, boolexpr filter, code handlerFunc returns nothing
native GetTriggerSpecialEffect takes nothing returns effect
native GetFilterSpecialEffect takes nothing returns effect
native GetEnumSpecialEffect takes nothing returns effect
native EnumSpecialEffectsInRange takes real x, real y, real radius, boolexpr filter, code handlerFunc returns nothing
native GetTriggerTrackable takes nothing returns trackable
native GetFilterTrackable takes nothing returns trackable
native GetEnumTrackable takes nothing returns trackable
native EnumTrackablesInRange takes real x, real y, real radius, boolexpr filter, code handlerFunc returns nothing
native IsMissileAlive takes missile whichMissile returns boolean
native GetFilterMissile takes nothing returns missile
native GetEnumMissile takes nothing returns missile
native EnumMissilesInRange takes real x, real y, real radius, boolexpr filter, code handlerFunc returns nothing
native ResetAbilityFieldData takes ability whichAbility returns boolean Restores original ability data, meaning it reverts any and all changes made by Field API. Returns true if reset was needed.
native GetUnitAttackRemainingDamagePoint takes unit whichUnit returns real
native SetUnitAttackRemainingDamagePoint takes unit whichUnit real time returns nothing
native GetUnitAttackRemainingBackswing takes unit whichUnit returns real
native SetUnitAttackRemainingBackswing takes unit whichUnit real time returns nothing
- Удалены все "дубликаты" нативных функций типа GetAbilityBaseManaCostById, они теперь заменены API инстанса/полей. Список удалённых нативных функций:
Ability APInative GetAbilityBaseManaCostById takes integer aid, integer level returns integer
native SetAbilityBaseManaCostById takes integer aid, integer level, integer manaCost returns nothing
native GetAbilityBaseCooldownById takes integer aid, integer level returns real
native SetAbilityBaseCooldownById takes integer aid, integer level, real cooldown returns nothing
native GetAbilityBaseHotkeyById takes integer aid returns oskeytype
native SetAbilityBaseHotkeyById takes integer aid, oskeytype whichKey returns nothing
native GetAbilityBaseUnHotkeyById takes integer aid returns oskeytype
native SetAbilityBaseUnHotkeyById takes integer aid, oskeytype whichKey returns nothing
native GetAbilityBaseResearchHotkeyById takes integer aid returns oskeytype
native SetAbilityBaseResearchHotkeyById takes integer aid, oskeytype whichKey returns nothing
native GetAbilityBaseEffectSoundById takes integer aid returns string
native SetAbilityBaseEffectSoundById takes integer aid, string text returns nothing
native GetAbilityBaseGlobalMessageById takes integer aid returns string
native SetAbilityBaseGlobalMessageById takes integer aid, string text returns nothing
native GetAbilityBaseGlobalSoundById takes integer aid returns string
native SetAbilityBaseGlobalSoundById takes integer aid, string text returns nothing
native GetAbilityBaseButtonXById takes integer aid returns integer
native SetAbilityBaseButtonXById takes integer aid, integer positionX returns nothing
native GetAbilityBaseButtonYById takes integer aid returns integer
native SetAbilityBaseButtonYById takes integer aid, integer positionY returns nothing
native GetAbilityBaseUnButtonXById takes integer aid returns integer
native SetAbilityBaseUnButtonXById takes integer aid, integer positionX returns nothing
native GetAbilityBaseUnButtonYById takes integer aid returns integer
native SetAbilityBaseUnButtonYById takes integer aid, integer positionY returns nothing
native GetAbilityBaseResearchButtonXById takes integer aid returns integer
native SetAbilityBaseResearchButtonXById takes integer aid, integer positionX returns nothing
native GetAbilityBaseResearchButtonYById takes integer aid returns integer
native SetAbilityBaseResearchButtonYById takes integer aid, integer positionY returns nothing
native GetAbilityBaseMissileSpeedById takes integer aid returns real
native SetAbilityBaseMissileSpeedById takes integer aid, real missileSpeed returns nothing
native GetAbilityBaseMissileArcById takes integer aid returns real
native SetAbilityBaseMissileArcById takes integer aid, real missileArc returns nothing
native GetAbilityBaseIsMissileHomingById takes integer aid returns boolean
native SetAbilityBaseIsMissileHomingById takes integer aid, boolean ishoming returns nothing
native GetAbilityBaseSpellDetailsById takes integer aid returns integer
native SetAbilityBaseSpellDetailsById takes integer aid, integer level returns nothing
native GetAbilityBaseTipById takes integer aid, integer level returns string
native SetAbilityBaseTipById takes integer aid, integer level, string text returns nothing
native GetAbilityBaseUnTipById takes integer aid, integer level returns string
native SetAbilityBaseUnTipById takes integer aid, integer level, string text returns nothing
native GetAbilityBaseUberTipById takes integer aid, integer level returns string
native SetAbilityBaseUberTipById takes integer aid, integer level, string text returns nothing
native GetAbilityBaseUnUberTipById takes integer aid, integer level returns string
native SetAbilityBaseUnUberTipById takes integer aid, integer level, string text returns nothing
native SetAbilityBaseHotkeyByIdEx takes integer aid, oskeytype whichKey returns nothing
Item API
native GetItemBaseNameById takes integer itemId returns string
native SetItemBaseNameById takes integer itemId, string name returns nothing
native GetItemBaseDescriptionById takes integer itemId returns string
native SetItemBaseDescriptionById takes integer itemId, string name returns nothing
native GetItemBaseIconById takes integer itemId returns string
native SetItemBaseIconById takes integer itemId, string path returns nothing
native GetItemBaseHotkeyById takes integer itemId returns oskeytype
native SetItemBaseHotkeyById takes integer itemId, oskeytype whichKey returns nothing
native GetItemBaseTipById takes integer itemId returns string
native SetItemBaseTipById takes integer itemId, string tip returns nothing
native GetItemBaseUberTipById takes integer itemId returns string
native SetItemBaseUberTipById takes integer itemId, string tip returns nothing
native GetItemBaseGoldCostById takes integer itemId returns integer
native SetItemBaseGoldCostById takes integer itemId, integer goldcost returns nothing
native GetItemBaseLumberCostById takes integer itemId returns integer
native SetItemBaseLumberCostById takes integer itemId, integer lumbercost returns nothing
native GetItemBaseStockMaximumById takes integer itemId returns integer
native SetItemBaseStockMaximumById takes integer itemId, integer stockMax returns nothing
native GetItemBaseStockReplenishIntervalById takes integer itemId returns real
native SetItemBaseStockReplenishIntervalById takes integer itemId, real replenishInterval returns nothing
native GetItemBaseStockStartDelayById takes integer itemId returns real
native SetItemBaseStockStartDelayById takes integer itemId, real stockStartDelay returns nothing
native GetItemBasePriorityById takes integer itemId returns integer
native SetItemBasePriorityById takes integer itemId, integer priority returns nothing
native GetItemBaseLevelById takes integer itemId returns integer
native SetItemBaseLevelById takes integer itemId, integer level returns nothing
native GetItemBaseOldLevelById takes integer itemId returns integer
native SetItemBaseOldLevelById takes integer itemId, integer oldlevel returns nothing
native GetItemBaseClassificationById takes integer itemId returns integer
native SetItemBaseClassificationById takes integer itemId, integer classifictaionId returns nothing
native GetItemBaseIsMorphById takes integer itemId returns boolean
native SetItemBaseIsMorphById takes integer itemId, boolean flag returns nothing
native GetItemBaseIsPickRandomById takes integer itemId returns boolean
native SetItemBaseIsPickRandomById takes integer itemId, boolean flag returns nothing
native GetItemBaseChargesById takes integer itemId returns integer
native SetItemBaseChargesById takes integer itemId, integer charges returns nothing
native GetItemBaseCooldownIdById takes integer itemId returns integer
native SetItemBaseCooldownIdById takes integer itemId, integer cooldownId returns nothing
native GetItemBaseIsIgnoreCooldownById takes integer itemId returns boolean
native SetItemBaseIsIgnoreCooldownById takes integer itemId, boolean flag returns nothing
native GetItemBaseIsPowerUpById takes integer itemId returns boolean
native SetItemBaseIsPowerUpById takes integer itemId, boolean flag returns nothing
native GetItemBaseIsPawnableById takes integer itemId returns boolean
native SetItemBaseIsPawnableById takes integer itemId, boolean flag returns nothing
native GetItemBaseIsUsableById takes integer itemId returns boolean
native SetItemBaseIsUsableById takes integer itemId, boolean flag returns nothing
native GetItemBaseIsPerishableById takes integer itemId returns boolean
native SetItemBaseIsPerishableById takes integer itemId, boolean flag returns nothing
native GetItemBaseIsDroppableById takes integer itemId returns boolean
native SetItemBaseIsDroppableById takes integer itemId, boolean flag returns nothing
native GetItemBaseIsDroppableOnDeathById takes integer itemId returns boolean
native SetItemBaseIsDroppableOnDeathById takes integer itemId, boolean flag returns nothing
native GetItemBaseIsSellableById takes integer itemId returns boolean
native SetItemBaseIsSellableById takes integer itemId, boolean flag returns nothing
Unit API
native GetUnitBasePrimaryStatById takes integer unitTypeId returns heroattribute
native SetUnitBasePrimaryStatById takes integer unitTypeId, heroattribute whichHeroAttribute returns nothing
native GetUnitBaseGoldCostById takes integer unitTypeId returns integer
native SetUnitBaseGoldCostById takes integer unitTypeId, integer goldCost returns nothing
native GetUnitBaseDaySightById takes integer unitTypeId returns real
native SetUnitBaseDaySightById takes integer unitTypeId, real daySight returns nothing
native GetUnitBaseNightSightById takes integer unitTypeId returns real
native SetUnitBaseNightSightById takes integer unitTypeId, real nightSight returns nothing
native GetUnitBaseColourById takes integer unitTypeId returns integer
native SetUnitBaseColourById takes integer unitTypeId, integer colour returns nothing
native GetUnitBaseColourAById takes integer unitTypeId returns integer
native SetUnitBaseColourAById takes integer unitTypeId, integer colourA returns nothing
native GetUnitBaseColourRById takes integer unitTypeId returns integer
native SetUnitBaseColourRById takes integer unitTypeId, integer colourR returns nothing
native GetUnitBaseColourGById takes integer unitTypeId returns integer
native SetUnitBaseColourGById takes integer unitTypeId, integer colourG returns nothing
native GetUnitBaseColourBById takes integer unitTypeId returns integer
native SetUnitBaseColourBById takes integer unitTypeId, integer colourB returns nothing
native GetUnitBaseNameById takes integer unitTypeId returns string
native SetUnitBaseNameById takes integer unitTypeId, string name returns nothing
native GetUnitBaseProperNameById takes integer unitTypeId, integer properNameIndex returns string
native SetUnitBaseProperNameById takes integer unitTypeId, integer properNameIndex, string properName returns nothing
native GetUnitBaseDescriptionById takes integer unitTypeId returns string
native SetUnitBaseDescriptionById takes integer unitTypeId, string name returns nothing
native GetUnitBaseModelById takes integer unitTypeId returns string
native SetUnitBaseModelById takes integer unitTypeId, string modelName returns nothing
native GetUnitBasePortraitById takes integer unitTypeId returns string
native SetUnitBasePortraitById takes integer unitTypeId, string portraitName returns nothing
native GetUnitBaseHotkeyById takes integer unitTypeId returns oskeytype
native SetUnitBaseHotkeyById takes integer unitTypeId, oskeytype whichKey returns nothing
native GetUnitBaseIconById takes integer unitTypeId returns string
native SetUnitBaseIconById takes integer unitTypeId, string name returns nothing
native GetUnitBaseAwakenTipById takes integer unitTypeId returns string
native SetUnitBaseAwakenTipById takes integer unitTypeId, string awakenTip returns nothing
native GetUnitBaseTipById takes integer unitTypeId returns string
native SetUnitBaseTipById takes integer unitTypeId, string tip returns nothing
native GetUnitBaseUberTipById takes integer unitTypeId returns string
native SetUnitBaseUberTipById takes integer unitTypeId, string uberTip returns nothing
native GetUnitBaseReviveTipById takes integer unitTypeId returns string
native SetUnitBaseReviveTipById takes integer unitTypeId, string reviveTip returns nothing
native GetUnitBaseShadowTexById takes integer unitTypeId returns string
native SetUnitBaseShadowTexById takes integer unitTypeId, string shadowTexture returns nothing
native GetUnitBaseMissileArtById takes integer unitTypeId, integer attackIndex returns string
native SetUnitBaseMissileArtById takes integer unitTypeId, integer attackIndex, string missleArt returns nothing
native GetUnitBaseMissileSpeedById takes integer unitTypeId, integer attackIndex returns real
native SetUnitBaseMissileSpeedById takes integer unitTypeId, integer attackIndex, real realValue returns nothing
native GetUnitBaseMissileArcById takes integer unitTypeId, integer attackIndex returns real
native SetUnitBaseMissileArcById takes integer unitTypeId, integer attackIndex, real realValue returns nothing
native GetUnitBaseSelectionScaleById takes integer unitTypeId returns real
native SetUnitBaseSelectionScaleById takes integer unitTypeId, real realValue returns nothing
- Все SetAbilityField теперь по-настоящему следуют логике инстансирования, что значит, что изменение любых данных, включая UI будут уникальны для этого заклинания, а не изменны для всх.
- Прошлая функция SetImageOrigin изменена на SetImageOriginEx.
- Исправлена не совсем рабочая нативная функция EXSetAbilityState.
- Исправлено сломанное отключение для переключаемых заклинаний.
- Добавлена внутренняя обработка полей:
ABILITY_SLF_CASTERПометка: эта проблема всё так же была связана с новым экспериментальным методом SetAbilityOrderId... :(
ABILITY_SLF_TARGET
ABILITY_SLF_SPECIAL
ABILITY_SLF_EFFECT
ABILITY_SLF_AREA_EFFECT
ABILITY_SLF_LIGHTNING_EFFECTS
ABILITY_SLF_MISSILE_ART
ABILITY_SLF_TOOLTIP_LEARN
ABILITY_SLF_TOOLTIP_LEARN_EXTENDED
ABILITY_SLF_TOOLTIP_NORMAL
ABILITY_SLF_TOOLTIP_TURN_OFF
ABILITY_SLF_TOOLTIP_NORMAL_EXTENDED
ABILITY_SLF_TOOLTIP_TURN_OFF_EXTENDED
- Изменены нативные функции юнитов:
Удалены:SetUnitAttackState
UnitCancelCurrentAttackByIndex
Изменены:
GetUnitNextAttackTimeStampByIndex -> GetUnitAttackRemainingCooldown | Now it returns actual remaining time.
SetUnitNextAttackTimeStampByIndex -> SetUnitAttackRemainingCooldown | Now it sets actual remaining time.
UnitResetAttackCooldownByIndex -> UnitResetAttack
UnitAddExtraAttackByIndex -> UnitFinishAttack
Добавлены:
native GetUnitAttackRemainingDamagePoint takes unit whichUnit returns real
native SetUnitAttackRemainingDamagePoint takes unit whichUnit real time returns nothing
native GetUnitAttackRemainingBackswing takes unit whichUnit returns real
native SetUnitAttackRemainingBackswing takes unit whichUnit real time returns nothing
Пометка: включение этого режима, даст UjAPI возможность выписывать в консоль всевозможные Jass ошибки (если карта имеет синтаксические ошибки в Jass) или же ошибки с файлами.
native GetArrayIndex takes string ArrayName, handle Object, integer IndexMin, integer IndexMax returns integer,
С помощью которой можно получить индекс объекта, записанного в массив ArrayName в диапазоне min-max при его наличии там? Например, для использования этого индекса, если в карте есть подобие базы данных, с несколькими массивами, или для определения номера игрока, итд, итп.
Ред. Unryze
Ред. nazarpunk
nazarpunk, можно конечно, у себя так и сделал, но определять индекс всё равно требуется. А несколько массивов просто для примера описал.
Получать элемент за О(n) всяко лучше чем за O(1)
Ред. nazarpunk
Ред. Unryze
Прокрутить к ресурсу
v1.0.15.67
- Изменения Типов:
subanimtype теперь расширяет animtype, чтобы иметь доступ к новой нативной функции GetAnimationName для получения имени анимации по её индексу.- Новые Константы:
constant itemstringfield ITEM_SF_ABILITY_LIST = ConvertItemStringField('iabi')constant itemstringfield ITEM_SF_ICON = ConvertItemStringField('iico')
constant unitstringfield UNIT_SF_ICON_NORMAL = ConvertUnitStringField('uico')
constant unitstringfield UNIT_SF_ICON_SCORE_SCREEN = ConvertUnitStringField('ussi')
constant unitstringfield UNIT_SF_MODEL = ConvertUnitStringField('umdl')
constant unitstringfield UNIT_SF_PORTRAIT = ConvertUnitStringField('upor')
constant unitstringfield UNIT_SF_SPECIAL = ConvertUnitStringField('uspa')
constant unitstringfield UNIT_SF_TOOLTIP_AWAKEN = ConvertUnitStringField('uawt')
constant unitstringfield UNIT_SF_TOOLTIP_REVIVE = ConvertUnitStringField('utpr')
- Новые Нативные Функции:
native HandleToHandle takes handle h returns handlenative SaveHandle takes hashtable table, integer parentKey, integer childKey, handle whichHandle returns boolean
native SaveAttackTypeHandle takes hashtable table, integer parentKey, integer childKey, attacktype whichAttackType returns boolean
native SaveDamageTypeHandle takes hashtable table, integer parentKey, integer childKey, damagetype whichDamageType returns boolean
native SaveWeaponTypeHandle takes hashtable table, integer parentKey, integer childKey, weapontype whichWeaponType returns boolean
native LoadHandle takes hashtable table, integer parentKey, integer childKey returns handle
native LoadAttackTypeHandle takes hashtable table, integer parentKey, integer childKey returns attacktype
native LoadDamageTypeHandle takes hashtable table, integer parentKey, integer childKey returns damagetype
native LoadWeaponTypeHandle takes hashtable table, integer parentKey, integer childKey returns weapontype
native GetAnimationName takes animtype whichAnim returns string
native QueueImmediateOrderById takes unit whichUnit, integer order returns boolean
native QueuePointOrderById takes unit whichUnit, integer order, real x, real y returns boolean
native QueueTargetOrderById takes unit whichUnit, integer order, widget targetWidget returns boolean
native QueueInstantPointOrderById takes unit whichUnit, integer order, real x, real y, widget instantTargetWidget returns boolean
native QueueInstantTargetOrderById takes unit whichUnit, integer order, widget targetWidget, widget instantTargetWidget returns boolean
native QueueBuildOrderById takes unit whichPeon, integer unitId, real x, real y returns boolean
native QueueNeutralImmediateOrderById takes player forWhichPlayer, unit neutralStructure, integer unitId returns boolean
native QueueNeutralPointOrderById takes player forWhichPlayer, unit neutralStructure, integer unitId, real x, real y returns boolean
native QueueNeutralTargetOrderById takes player forWhichPlayer, unit neutralStructure, integer unitId, widget target returns boolean
native GetUnitOrderCount takes unit whichUnit returns integer
native GetUnitOrderIdByIndex takes unit whichUnit, integer index returns integer
native UnitClearOrders takes unit whichUnit, boolean onlyQueued returns nothing
native UnitForceStopOrder takes unit whichUnit, boolean clearQueue returns nothing
Ред. Borodach
/ /! loaddata "data.slk"
Карты с UJApi могут запускаться на айкапе или ирине?
Ред. Unryze
Прокрутить к ресурсу
v1.0.17.73
type minimapicon extends handle
type commandbuttoneffect extends handle
constant unitrealfield UNIT_RF_COLLISION_SIZE = ConvertUnitRealField('ucol')
constant originframetype ORIGIN_FRAME_CONSOLE_UI = ConvertOriginFrameType(18)
constant originframetype ORIGIN_FRAME_PORTRAIT_TEXT = ConvertOriginFrameType(19)
constant originframetype ORIGIN_FRAME_BUFF_BAR = ConvertOriginFrameType(20)
constant originframetype ORIGIN_FRAME_BUFF_BAR_TEXT = ConvertOriginFrameType(21)
constant originframetype ORIGIN_FRAME_BUFF_BAR_INDICATOR = ConvertOriginFrameType(22)
constant originframetype ORIGIN_FRAME_TIME_OF_DAY_INDICATOR = ConvertOriginFrameType(23)
constant originframetype ORIGIN_FRAME_LEADERBOARD = ConvertOriginFrameType(24)
constant originframetype ORIGIN_FRAME_MULTIBOARD = ConvertOriginFrameType(25)
constant originframetype ORIGIN_FRAME_INFO_BAR = ConvertOriginFrameType(26)
constant originframetype ORIGIN_FRAME_COMMAND_BAR = ConvertOriginFrameType(27)
constant originframetype ORIGIN_FRAME_RESOURCE_BAR = ConvertOriginFrameType(28)
constant originframetype ORIGIN_FRAME_RESOURCE_BAR_TEXTURE = ConvertOriginFrameType(29)
constant originframetype ORIGIN_FRAME_RESOURCE_BAR_TEXT = ConvertOriginFrameType(30)
constant originframetype ORIGIN_FRAME_UPPERBUTTON_BAR = ConvertOriginFrameType(31)
constant originframetype ORIGIN_FRAME_UPPERBUTTON_BAR_BUTTON = ConvertOriginFrameType(32)
constant originframetype ORIGIN_FRAME_PEON_BAR = ConvertOriginFrameType(33)
constant originframetype ORIGIN_FRAME_PLAYER_MESSAGE = ConvertOriginFrameType(34)
constant originframetype ORIGIN_FRAME_UNIT_MESSAGE = ConvertOriginFrameType(35)
constant originframetype ORIGIN_FRAME_CHAT_MESSAGE = ConvertOriginFrameType(36)
constant originframetype ORIGIN_FRAME_TOP_MESSAGE = ConvertOriginFrameType(37)
constant originframetype ORIGIN_FRAME_CHAT_EDITBAR = ConvertOriginFrameType(38)
constant originframetype ORIGIN_FRAME_CINEMATIC_PANEL = ConvertOriginFrameType(39)
constant originframetype ORIGIN_FRAME_COMMAND_BUTTON_COOLDOWN_INDICATOR = ConvertOriginFrameType(40)
constant originframetype ORIGIN_FRAME_COMMAND_BUTTON_AUTOCAST_FRAME = ConvertOriginFrameType(41)
constant originframetype ORIGIN_FRAME_COMMAND_BUTTON_CHARGES_FRAME = ConvertOriginFrameType(42)
constant originframetype ORIGIN_FRAME_COMMAND_BUTTON_CHARGES_TEXT = ConvertOriginFrameType(43)
native MathRealMin takes real a, real b returns real
native MathRealMax takes real a, real b returns real
native MathRealSign takes real r returns integer
native MathIntegerMin takes integer a, integer b returns integer
native MathIntegerMax takes integer a, integer b returns integer
native MathIntegerSign takes integer i returns integer
native MathPointProjectionX takes real x, real angle, real distance returns real
native MathPointProjectionY takes real y, real angle, real distance returns real
native MathAngleBetweenPoints takes real fromX, real fromY, real toX, real toY returns real
native MathDistanceBetweenPoints takes real fromX, real fromY, real toX, real toY returns real
native MathAngleBetweenLocations takes location fromLoc, location toLoc returns real
native MathDistanceBetweenLocations takes location fromLoc, location toLoc returns real
native GetUnitZ takes unit whichUnit returns real
native DisableUnitAbility takes unit whichUnit, integer abilityId, boolean hide, boolean disable returns nothing
native EnableUnitAbility takes unit whichUnit, integer abilityId, boolean show, boolean enable returns nothing
native GetUnitBuffByIndex takes unit whichUnit, integer index returns buff
native SetSpecialEffectMatrixScale takes effect whichEffect, real x, real y, real z returns nothing\
native SetMiniMapTexture takes string texturePath returns boolean
native IsFrameRegion takes framehandle whichFrame returns boolean
native IsFrameSimple takes framehandle whichFrame returns boolean
native IsFrameComplex takes framehandle whichFrame returns boolean
BlzGroupAddGroupFast
BlzGroupRemoveGroupFast
BlzGroupGetSize
BlzGroupUnitAt
BlzForceHasPlayer
BlzGetTriggerPlayerMouseX
BlzGetTriggerPlayerMouseY
BlzGetTriggerPlayerMousePosition
BlzGetTriggerPlayerMouseButton
BlzSetAbilityTooltip
BlzSetAbilityActivatedTooltip
BlzSetAbilityExtendedTooltip
BlzSetAbilityActivatedExtendedTooltip
BlzSetAbilityResearchTooltip
BlzSetAbilityResearchExtendedTooltip
BlzGetAbilityTooltip
BlzGetAbilityActivatedTooltip
BlzGetAbilityExtendedTooltip
BlzGetAbilityActivatedExtendedTooltip
BlzGetAbilityResearchTooltip
BlzGetAbilityResearchExtendedTooltip
BlzSetAbilityIcon
BlzGetAbilityIcon
BlzSetAbilityActivatedIcon
BlzGetAbilityActivatedIcon
BlzGetAbilityPosX
BlzGetAbilityPosY
BlzSetAbilityPosX
BlzSetAbilityPosY
BlzGetAbilityActivatedPosX
BlzGetAbilityActivatedPosY
BlzSetAbilityActivatedPosX
BlzSetAbilityActivatedPosY
BlzGetUnitMaxHP
BlzSetUnitMaxHP
BlzGetUnitMaxMana
BlzSetUnitMaxMana
BlzSetItemName
BlzSetItemDescription
BlzGetItemDescription
BlzSetItemTooltip
BlzGetItemTooltip
BlzSetItemExtendedTooltip
BlzGetItemExtendedTooltip
BlzSetItemIconPath
BlzGetItemIconPath
BlzSetUnitName
BlzSetHeroProperName
BlzGetUnitBaseDamage
BlzSetUnitBaseDamage
BlzGetUnitDiceNumber
BlzSetUnitDiceNumber
BlzGetUnitDiceSides
BlzSetUnitDiceSides
BlzGetUnitAttackCooldown
BlzSetUnitAttackCooldown
BlzSetSpecialEffectColorByPlayer
BlzSetSpecialEffectColor
BlzSetSpecialEffectAlpha
BlzSetSpecialEffectScale
BlzSetSpecialEffectPosition
BlzSetSpecialEffectHeight
BlzSetSpecialEffectTimeScale
BlzSetSpecialEffectTime
BlzSetSpecialEffectOrientation
BlzSetSpecialEffectYaw
BlzSetSpecialEffectPitch
BlzSetSpecialEffectRoll
BlzSetSpecialEffectX
BlzSetSpecialEffectY
BlzSetSpecialEffectZ
BlzSetSpecialEffectPositionLoc
BlzGetLocalSpecialEffectX
BlzGetLocalSpecialEffectY
BlzGetLocalSpecialEffectZ
BlzPlaySpecialEffect
BlzPlaySpecialEffectWithTimeScale
BlzGetAnimName
BlzGetUnitArmor
BlzSetUnitArmor
BlzUnitHideAbility
BlzUnitDisableAbility
BlzIsUnitSelectable
BlzIsUnitInvulnerable
BlzUnitInterruptAttack
BlzGetUnitCollisionSize
BlzGetAbilityManaCost
BlzGetAbilityCooldown
BlzSetUnitAbilityCooldown
BlzGetUnitAbilityCooldown
BlzGetUnitAbilityCooldownRemaining
BlzEndUnitAbilityCooldown
BlzStartUnitAbilityCooldown
BlzGetUnitAbilityManaCost
BlzSetUnitAbilityManaCost
BlzGetLocalUnitZ
BlzSetEventDamage
BlzGetEventDamageTarget
BlzGetEventAttackType
BlzGetEventDamageType
BlzGetEventWeaponType
BlzSetEventAttackType
BlzSetEventDamageType
BlzSetEventWeaponType
BlzGetEventIsAttack
BlzGetUnitZ
BlzGetOriginFrame
BlzHideOriginFrames
BlzConvertColor
BlzLoadTOCFile
BlzCreateFrame
BlzCreateSimpleFrame
BlzCreateFrameByType
BlzDestroyFrame
BlzFrameSetPoint
BlzFrameSetAbsPoint
BlzFrameClearAllPoints
BlzFrameSetAllPoints
BlzFrameSetVisible
BlzFrameIsVisible
BlzGetFrameByName
BlzFrameGetName
BlzFrameClick
BlzFrameSetText
BlzFrameGetText
BlzFrameAddText
BlzFrameSetTextSizeLimit
BlzFrameGetTextSizeLimit
BlzFrameSetTextColor
BlzFrameSetFocus
BlzFrameSetModel
BlzFrameSetEnable
BlzFrameGetEnable
BlzFrameSetAlpha
BlzFrameGetAlpha
BlzFrameSetSpriteAnimate
BlzFrameSetTexture
BlzFrameSetScale
BlzFrameSetTooltip
BlzFrameCageMouse
BlzFrameSetValue
BlzFrameGetValue
BlzFrameSetMinMaxValue
BlzFrameSetStepSize
BlzFrameSetSize
BlzFrameSetVertexColor
BlzFrameSetLevel
BlzFrameSetParent
BlzFrameGetParent
BlzFrameGetHeight
BlzFrameGetWidth
BlzFrameSetFont
BlzFrameSetTextAlignment
BlzFrameGetChildrenCount
BlzFrameGetChild
BlzTriggerRegisterFrameEvent
BlzGetTriggerFrame
BlzGetTriggerFrameEvent
BlzGetTriggerFrameValue
BlzGetTriggerFrameText
BlzTriggerRegisterPlayerSyncEvent
BlzSendSyncData
BlzGetTriggerSyncPrefix
BlzGetTriggerSyncData
BlzTriggerRegisterPlayerKeyEvent
BlzGetTriggerPlayerKey
BlzGetTriggerPlayerMetaKey
BlzGetTriggerPlayerIsKeyDown
BlzSetMousePos
BlzGetLocalClientWidth
BlzGetLocalClientHeight
BlzIsLocalClientActive
BlzGetMouseFocusUnit
BlzChangeMinimapTerrainTex
BlzGetSpecialEffectScale
BlzSetSpecialEffectMatrixScale
BlzResetSpecialEffectMatrix
BlzGetUnitAbility
BlzGetUnitAbilityByIndex
BlzGetAbilityId
BlzDisplayChatMessage
BlzPauseUnitEx
BlzFourCC2S
BlzS2FourCC
BlzSetUnitFacingEx
BlzBitOr
BlzBitAnd
BlzBitXor
BlzGetAbilityBooleanField
BlzGetAbilityIntegerField
BlzGetAbilityRealField
BlzGetAbilityStringField
BlzGetAbilityBooleanLevelField
BlzGetAbilityIntegerLevelField
BlzGetAbilityRealLevelField
BlzGetAbilityStringLevelField
BlzGetAbilityBooleanLevelArrayField
BlzGetAbilityIntegerLevelArrayField
BlzGetAbilityRealLevelArrayField
BlzGetAbilityStringLevelArrayField
BlzSetAbilityBooleanField
BlzSetAbilityIntegerField
BlzSetAbilityRealField
BlzSetAbilityStringField
BlzSetAbilityBooleanLevelField
BlzSetAbilityIntegerLevelField
BlzSetAbilityRealLevelField
BlzSetAbilityStringLevelField
BlzSetAbilityBooleanLevelArrayField
BlzSetAbilityIntegerLevelArrayField
BlzSetAbilityRealLevelArrayField
BlzSetAbilityStringLevelArrayField
BlzAddAbilityBooleanLevelArrayField
BlzAddAbilityIntegerLevelArrayField
BlzAddAbilityRealLevelArrayField
BlzAddAbilityStringLevelArrayField
BlzRemoveAbilityBooleanLevelArrayField
BlzRemoveAbilityIntegerLevelArrayField
BlzRemoveAbilityRealLevelArrayField
BlzRemoveAbilityStringLevelArrayField
BlzGetItemBooleanField
BlzGetItemIntegerField
BlzGetItemRealField
BlzGetItemStringField
BlzSetItemBooleanField
BlzSetItemIntegerField
BlzSetItemRealField
BlzSetItemStringField
BlzGetUnitBooleanField
BlzGetUnitIntegerField
BlzGetUnitRealField
BlzGetUnitStringField
BlzSetUnitBooleanField
BlzSetUnitIntegerField
BlzSetUnitRealField
BlzSetUnitStringField
BlzGetUnitWeaponBooleanField
BlzGetUnitWeaponIntegerField
BlzGetUnitWeaponRealField
BlzGetUnitWeaponStringField
BlzSetUnitWeaponBooleanField
BlzSetUnitWeaponIntegerField
BlzSetUnitWeaponRealField
BlzSetUnitWeaponStringField
BlzQueueImmediateOrderById
BlzQueuePointOrderById
BlzQueueTargetOrderById
BlzQueueInstantPointOrderById
BlzQueueInstantTargetOrderById
BlzQueueBuildOrderById
BlzQueueNeutralImmediateOrderById
BlzQueueNeutralPointOrderById
BlzQueueNeutralTargetOrderById
BlzGetUnitOrderCount
BlzUnitClearOrders
BlzUnitForceStopOrder
Ред. nazarpunk
Ред. nazarpunk
Ред. EugeAl
Unryze, Да, здесь тяжело как то решить технически. Может быть у игровых студий есть какие то решения?
Ред. Волчачка
Прокрутить к ресурсу
v1.0.18.74
- Новые Константы:
constant originframetype ORIGIN_FRAME_CURSOR_FRAME = ConvertOriginFrameType(44)- Новые Нативные Функции:
native BitwiseGetBit takes integer number, integer bitIndex returns integernative BitwiseGetByte takes integer number, integer byteIndex returns integer
native StringCount takes string s, string whichString, boolean caseSensitive returns integer
native StringTrimLeft takes string s, boolean caseSensitive returns string
native StringTrimRight takes string s, boolean caseSensitive returns string
native StringTrim takes string s, boolean caseSensitive returns string
native StringReverse takes string s, boolean caseSensitive returns string
native StringReplace takes string s, string whichString, string replaceWith, boolean caseSensitive returns string
native StringInsert takes string s, string whichString, integer whichPosition, boolean caseSensitive returns string
native GetTriggerSyncPlayer takes nothing returns player this is simply mimicking GetTriggerPlayer, added for simplicity.
native IsTextTagVisible takes texttag whichTextTag returns boolean
native IsTextTagSuspended takes texttag whichTextTag returns boolean
native IsTextTagPermanent takes texttag whichTextTag returns real
native GetTextTagX takes texttag whichTextTag returns real
native SetTextTagX takes texttag whichTextTag, real x returns nothing
native GetTextTagY takes texttag whichTextTag returns real
native SetTextTagY takes texttag whichTextTag, real y returns nothing
native GetTextTagZ takes texttag whichTextTag returns real
native SetTextTagZ takes texttag whichTextTag, real z returns nothing
native GetTextTagHeight takes texttag whichTextTag returns real
native SetTextTagHeight takes texttag whichTextTag, real height returns nothing
native GetTextTagLocation takes texttag whichTextTag returns location
native SetTextTagPositionLocation takes texttag whichTextTag, location whichLocation returns nothing
native GetTextTagColour takes texttag whichTextTag returns integer
native GetTextTagAlpha takes texttag whichTextTag returns integer
native SetTextTagAlpha takes texttag whichTextTag, integer alpha returns nothing
native GetTextTagVelocityX takes texttag whichTextTag returns real
native SetTextTagVelocityX takes texttag whichTextTag, real velX returns nothing
native GetTextTagVelocityY takes texttag whichTextTag returns real
native SetTextTagVelocityY takes texttag whichTextTag, real velY returns nothing
native GetTextTagVelocityZ takes texttag whichTextTag returns real
native SetTextTagVelocityZ takes texttag whichTextTag, real velZ returns nothing
native GetTextTagAge takes texttag whichTextTag returns real
native GetTextTagLifespan takes texttag whichTextTag returns real
native GetTextTagFadepoint takes texttag whichTextTag returns real
native GetTextTagShadowColour takes texttag whichTextTag returns integer
native SetTextTagShadowColour takes texttag whichTextTag, integer colour returns nothing
native GetTextTagShadowAlpha takes texttag whichTextTag returns integer
native SetTextTagShadowAlpha takes texttag whichTextTag, integer alpha returns nothing
native GetTextTagText takes texttag whichTextTag returns string
- Добавлены недостающие константы из предыдущей версии.
- Версия UjAPI теперь прописывается в главном меню Warcraft.
- Добавлена опция "Load Library" в главную секцию. Это включает/выключает подгрузку UjAPI.mpq и нативных функций.
Пометка: эта опция по стандарту включена и смена этой опции на уже запущенном Warctaft не будет работать.- Добавлена опция "Load Library" для секции LUA. Это включает/выключает подгрузку библиотеки war3_lua.dll.
Пометка: эта опция по стандарту выключена и смена этой опции на уже запущенном Warctaft не будет работать.- Добавлена "CLI" обработка в UjAPI, теперь каждый последующий запуск приложения UjAPI будет просто на просто отправлять аргументы запуска в уже запущенное приложение.
Пример 1: "D:\Files\Work Files\Programming\uJAPI\Release\UjAPILauncher.exe" -ujapi "dev" -lua "dev console nowarnings" -multiwindow -window -loadfile "Maps\Test\WorldEditTestMap.w3x"Пометка 1: Это выполнит UjAPI и включит его режим разработчика, а так же включит луа с заданными к ней параметрами, игра будет в мультиоконном режиме и в режиме окна. Затем будет запущена карта заданная в loadfile аргументе.
Пример 2 (полный): "D:\Files\Work Files\Programming\uJAPI\Release\UjAPILauncher.exe" -ujapi "dev" -lua "dev console nowarnings" -multiwindow -window -launch "Warcraft" -gamepath "D:\Games\Warcraft III TFT\war3.exe" -loadfile "Maps\Test\WorldEditTestMap.w3x"
Пометка 2: Это выполнит всё, что описано в Примере 1, однако если присутствуют (-gamepath или -editorpath) оно также "переопределит" путь игры/редактора основываясь на аргументах поданных в них.
- CLI команды:
Пометка: пояснения команд будут в скобочках, вот так - (информация).-justdoupdate (просто на просто выполнит форсированное скачивание последней версии и выполнит автообновление UjAPI, остальные команды будут проигнорированы).
-ujapi (даёт возможность переопределения некоторых базовых настроек UjAPI, пример: -ujapi "dev"), "" (кавычки) обязательны!
noload (отключает подгрузку UjAPI.mpq и UjAPI нативных функций).
dev (включает режим разработчика, который также включит консоль).
-lua (даёт возможность переопределения некоторых базовых настроек war3_lua.dll, пример: -lua "dev console nowarnings"), "" (кавычки) обязательны!
dev (включает режим разработчика).
console (включает консоль для луа ошибок и так далее).
nowarnings (отключает некоторые внутренние ошибки типов).
-multiwindow (включает режим Multi-Window и загружает необходимый модуль).
-window (запустит приложение в оконном режиме).
-launch (даёт возможность переопределения/указания пути для запуска игры или редактора, по стандарту будет запускаться игра, пример: -launch "Editor"), "" (кавычки) обязательны!
-gamepath (переопределяет и использует путь игры заданный в UjAPI Launcher, пример: -gamepath "D:\Games\Warcraft III TFT\war3.exe"), "" (кавычки) обязательны!
-editorpath (переопределяет и использует путь редактора заданный в UjAPI Launcher, пример: -editorpath "D:\Programs\WC3 Tools\JNPG-R1.4-Prometheus-Edition\NewGen WE.exe"), "" (кавычки) обязательны!
-loadfile (повторяет 1 в 1 метод запуска карт, путь до карты для игры ВСЕГДА относителен пути игры, однако для редактора нужно указывать ПОЛНЫЙ путь до карты).
- Добавлена -loadfile команда для секции World Editor, однако путь до карты НЕ относителен пути игры, нужно указывать полный путь до карты.
- Добавлена опция "Load Library" в секции World Editor.
- Добавлена опция "Dev Mode" в секции World Editor.
Пометка: #10 и #11 работают точно так же как такие же опции в Warcraft 3.Ред. Unryze
Прокрутить к ресурсу
v1.0.18.75
Ред. Unryze
Прокрутить к ресурсу
v1.0.19.78
type jassthread extends handle
constant widgetevent EVENT_WIDGET_DAMAGING = ConvertWidgetEvent(400)
constant widgetevent EVENT_WIDGET_DAMAGED = ConvertWidgetEvent(401)
constant abilityreallevelfield ABILITY_RLF_CAST_BACK_SWING = ConvertAbilityRealLevelField('acbs')
constant abilityreallevelfield ABILITY_RLF_CAST_POINT = ConvertAbilityRealLevelField('acpt')
constant unitintegerfield UNIT_IF_AGILITY_BONUS = ConvertUnitIntegerField('uag+') Get Only
constant unitintegerfield UNIT_IF_INTELLIGENCE_BONUS = ConvertUnitIntegerField('uin+') Get Only
constant unitintegerfield UNIT_IF_STRENGTH_BONUS = ConvertUnitIntegerField('ust+') Get Only
constant unitrealfield UNIT_RF_HEALTH_FROM_BONUS_STRENGTH = ConvertUnitRealField('uhs+') Get Only
constant unitrealfield UNIT_RF_MANA_FROM_BONUS_INTELLIGENCE = ConvertUnitRealField('umi+') Get Only
constant unitrealfield UNIT_RF_DEFENSE_BONUS = ConvertUnitRealField('udf+') Get Only
constant unitrealfield UNIT_RF_SPEED_BONUS = ConvertUnitRealField('umv+') Get Only
constant unitweaponintegerfield UNIT_WEAPON_IF_ATTACK_DAMAGE_BONUS = ConvertUnitWeaponIntegerField('ud1+') Get Only | this is the + (Green) or - (Red) value next to attack.
constant unitweaponrealfield UNIT_WEAPON_RF_ATTACK_SPEED_BONUS = ConvertUnitWeaponRealField('us1+') Get Only
Jass VM Natives
native GetJassMainThread takes nothing returns jassthread
native GetJassCurrentThread takes nothing returns jassthread
native RunJassScriptEx takes string parentScriptFile, string helperScriptFile, string jassScriptFile returns jassthread
native RunJassScript takes string helperScriptFile, string jassScriptFile returns jassthread
native RunJassScriptSimple takes string jassScriptFile returns jassthread
native StopJassThread takes jassthread thread returns boolean
native GetJassGlobalInteger takes jassthread thread, string variableName returns integer
native GetJassGlobalReal takes jassthread thread, string variableName returns real
native GetJassGlobalString takes jassthread thread, string variableName returns string
native GetJassGlobalHandle takes jassthread thread, string variableName returns handle
native GetJassGlobalBoolean takes jassthread thread, string variableName returns boolean
native SetJassGlobalInteger takes jassthread thread, string variableName, integer value returns boolean
native SetJassGlobalReal takes jassthread thread, string variableName, real value returns boolean
native SetJassGlobalString takes jassthread thread, string variableName, string value returns boolean
native SetJassGlobalHandle takes jassthread thread, string variableName, handle value returns boolean
native SetJassGlobalBoolean takes jassthread thread, string variableName, boolean value returns boolean
native GetWidgetModel takes widget whichWidget returns string
native TriggerRegisterWidgetEvent takes trigger whichTrigger, widget whichWidget, widgetevent whichWidgetEvent returns event
native SetSpecialEffectPlayerColour takes effect whichEffect, playercolor color returns nothing
native SetSpecialEffectMaterialTexture takes effect whichEffect, string textureName, integer materialId, integer textureIndex returns nothing
native SetSpecialEffectTexture takes effect whichEffect, string textureName, integer textureIndex returns nothing
native SetSpecialEffectReplaceableTexture takes effect whichEffect, string textureName, integer textureIndex returns nothing
native SetTrackablePlayerColour takes trackable whichTrackable, playercolor color returns nothing
native SetMissilePlayerColour takes missile whichMissile, playercolor color returns nothing
native SetMissileMaterialTexture takes missile whichMissile, string textureName, integer materialId, integer textureIndex returns nothing
native SetMissileTexture takes missile whichMissile, string textureName, integer textureIndex returns nothing
native SetMissileReplaceableTexture takes missile whichMissile, string textureName, integer textureIndex returns nothing
native SetFrameSpritePlayerColour takes framehandle whichFrame, playercolor color returns nothing
native GetFrameSpriteAlpha takes framehandle whichFrame returns integer
native SetFrameSpriteMaterialTexture takes framehandle whichFrame, string textureName, integer materialId, integer textureIndex returns nothing
native SetFrameSpriteTexture takes framehandle whichFrame, string textureName, integer textureIndex returns nothing
native SetFrameSpriteReplaceableTexture takes framehandle whichFrame, string textureName, integer textureIndex returns nothing
native GetUnitInSelectionByIndex takes player whichPlayer, integer index returns unit
native GetLastUnitInSelection takes player whichPlayer returns unit
UNIT_IF_AGILITY_PERMANENT
UNIT_IF_INTELLIGENCE_PERMANENT
UNIT_IF_STRENGTH_PERMANENT
UNIT_IF_AGILITY_WITH_BONUS
UNIT_IF_INTELLIGENCE_WITH_BONUS
UNIT_IF_STRENGTH_WITH_BONUS
UNIT_IF_AGILITY_BONUS
UNIT_IF_INTELLIGENCE_BONUS
UNIT_IF_STRENGTH_BONUS
UNIT_RF_HEALTH_FROM_BONUS_STRENGTH
UNIT_RF_MANA_FROM_BONUS_INTELLIGENCE
UNIT_RF_DEFENSE_BONUS
UNIT_RF_SPEED_BONUS
UNIT_WEAPON_IF_ATTACK_DAMAGE_BONUS
UNIT_WEAPON_RF_ATTACK_SPEED_BONUS
Пояснение: игра по стандарту создаёт лишь 1 индикатор, затем, когда у игры нет "свободных" индикаторов, она создаёт ещё 1 вплоть до 7.
ABILITY_RLF_CASTING_TIME
ABILITY_RLF_CAST_BACK_SWING
ABILITY_RLF_CAST_POINT.
EugeAl:
OSKEY_LEFT и RIGHT, UP, DOWN не работают, но так понимаю в 1.19.78 работает.Обновление в дискорде и гитхабе нет, а с сайта блочит вирус( отключал антивирус и брандмауэр). Windows 7
Если не стоит, то карта не открывается с одной глобальной
Ред. Borodach
Ред. Unryze
Borodach:
ОШИБКА
Ред. host_pi
Планируется ли поддержка карт, для которых требуется JN Loader ?
Например карты от корейца z1z1z1 (скачка карт ниже) - он делает уникальные интересные карты, при этом всегда они многопользовательские. т.е. заточены на командную работу. и т.к. ирина их не поддерживает - остается только один вариант RadminVPN, но там пинг очень плохой (если много игроков). Поэтому идеальным вариантом была бы поддержка JN карт на ирине.
Также есть и другие игроки, так называемые "игроки в корейские RPG", которые тоже играют через JN loader в корейские карты
Ред. host_pi
ну нет так нет, шо
Ред. Unryze
Ред. Unryze
Прокрутить к ресурсу
v1.0.20.84
native GetAbilityCooldownEx takes ability whichAbility returns real
native TriggerRegisterPlayerProjectileEvent takes trigger whichTrigger, player whichPlayer, playermissileevent whichEvent returns event
Пометка: события теперь регистрируются через определённых игроков/юнитов используя TriggerRegisterPlayerUnitEvent and TriggerRegisterUnitEvent.
type doodad extends agent
constant native ConvertProjectileType takes integer i returns projectiletype
constant playerunitevent EVENT_PLAYER_UNIT_BUFF_RECEIVED = ConvertPlayerUnitEvent(500)
constant playerunitevent EVENT_PLAYER_UNIT_BUFF_REFRESHED = ConvertPlayerUnitEvent(501)
constant playerunitevent EVENT_PLAYER_UNIT_BUFF_ENDED = ConvertPlayerUnitEvent(502)
constant playerunitevent EVENT_PLAYER_UNIT_PROJECTILE_LAUNCH = ConvertPlayerUnitEvent(600)
constant playerunitevent EVENT_PLAYER_UNIT_PROJECTILE_HIT = ConvertPlayerUnitEvent(601)
constant unitevent EVENT_UNIT_BUFF_RECEIVED = ConvertUnitEvent(510)
constant unitevent EVENT_UNIT_BUFF_REFRESHED = ConvertUnitEvent(511)
constant unitevent EVENT_UNIT_BUFF_ENDED = ConvertUnitEvent(512)
constant unitevent EVENT_UNIT_PROJECTILE_LAUNCH = ConvertUnitEvent(610)
constant unitevent EVENT_UNIT_PROJECTILE_HIT = ConvertUnitEvent(611)
constant projectiletype PROJECTILE_TYPE_BULLET = ConvertProjectileType(0)
constant projectiletype PROJECTILE_TYPE_MISSILE = ConvertProjectileType(1)
constant projectiletype PROJECTILE_TYPE_ARTILLERY = ConvertProjectileType(2)
constant projectiletype PROJECTILE_TYPE_VISIBLE = ConvertProjectileType(4)
constant projectiletype PROJECTILE_TYPE_DEAD = ConvertProjectileType(5)
native IsProjectileType takes projectile whichProjectile, projectiletype whichType returns boolean
native GetProjectileTargetPointX takes projectile whichProjectile returns real
native GetProjectileTargetPointY takes projectile whichProjectile returns real
native GetProjectileTargetPointZ takes projectile whichProjectile returns real
native GetProjectileTargetPoint takes projectile whichProjectile returns location
native GetProjectileAreaOfEffectFullDamage takes projectile whichProjectile returns real
native SetProjectileAreaOfEffectFullDamage takes projectile whichProjectile, real area returns nothing
native GetProjectileAreaOfEffectMediumDamage takes projectile whichProjectile returns real
native SetProjectileAreaOfEffectMediumDamage takes projectile whichProjectile, real area returns nothing
native GetProjectileAreaOfEffectSmallDamage takes projectile whichProjectile returns real
native SetProjectileAreaOfEffectSmallDamage takes projectile whichProjectile, real area returns nothing
native GetProjectileAreaOfEffectMediumDamageFactor takes projectile whichProjectile returns real
native SetProjectileAreaOfEffectMediumDamageFactor takes projectile whichProjectile, real factor returns nothing
native GetProjectileAreaOfEffectSmallDamageFactor takes projectile whichProjectile returns real
native SetProjectileAreaOfEffectSmallDamageFactor takes projectile whichProjectile, real factor returns nothing
native EnumProjectilesInRect takes rect whichRect, boolexpr filter, code handlerFunc returns nothing
native GetUnitRallyPointX takes unit whichUnit returns real
native GetUnitRallyPointY takes unit whichUnit returns real
native SetUnitKiller takes unit whichUnit, unit killer returns nothing
native KillUnitEx takes unit whichUnit, unit killer returns nothing
native GetAbilityOwner takes ability whichAbility returns unit
native GetFilterAbility takes nothing returns ability
native GetEnumAbility takes nothing returns ability
native EnumUnitAbilities takes unit whichUnit, boolexpr whichBoolexpr, code whichCode returns boolean
native GetBuffTypeId takes buff whichBuff returns integer
native GetBuffBaseTypeId takes buff whichBuff returns integer
native GetBuffOwner takes buff whichbuff returns unit
native SetBuffLevel takes buff whichBuff, integer level returns nothing
native GetFilterBuff takes nothing returns buff
native GetEnumBuff takes nothing returns buff
native EnumUnitBuffs takes unit whichUnit, boolexpr whichBoolexpr, code whichCode returns boolean
native GetTriggerBuff takes nothing returns buff
native GetTriggerBuffSourceAbility takes nothing returns ability
native GetTriggerBuffSourceUnit takes nothing returns unit
native GetTriggerBuffTarget takes nothing returns unit
Doodad API
native GetDoodadCount takes nothing returns integer
native GetDoodadByIndex takes integer index returns doodad
native GetDoodadIndex takes doodad whichDoodad returns integer
native SetDoodadAnimationWithRarityByIndex takes doodad whichDoodad, integer animIndex, raritycontrol rarity returns nothing
native SetDoodadAnimationWithRarity takes doodad whichDoodad, string animationName, raritycontrol rarity returns nothing
native SetDoodadAnimationByIndex takes doodad whichDoodad, integer animIndex returns nothing
native SetDoodadAnimationEx takes doodad whichDoodad, string animationName returns nothing
native QueueDoodadAnimationByIndex takes doodad whichDoodad, integer animIndex returns nothing
native QueueDoodadAnimation takes doodad whichDoodad, string animationName returns nothing
native SetDoodadAnimationOffsetPercent takes doodad whichDoodad, real percent returns nothing
native GetFilterDoodad takes nothing returns doodad
native GetEnumDoodad takes nothing returns doodad
native EnumDoodadsInRange takes real x, real y, real radius, boolexpr filter, code handlerFunc returns nothing
native EnumDoodadsInRangeEx takes real x, real y, real radius, integer typeId, boolean nearestOnly, boolexpr filter, code handlerFunc returns nothing
native EnumDoodadsInRect takes rect whichRect, boolexpr filter, code handlerFunc returns nothing
native EnumDoodadsInRectEx takes rect whichRect, integer typeId, boolean nearestOnly, boolexpr filter, code handlerFunc returns nothing
Handle List API
native HandleListCreate takes nothing returns handlelist
native HandleListDestroy takes handlelist whichHandleList returns nothing
native HandleListAddHandle takes handlelist whichHandleList, handle whichHandle returns nothing
native HandleListRemoveHandle takes handlelist whichHandleList, handle whichHandle returns nothing
native HandleListAddList takes handlelist destHandleList, handlelist sourceHandleList returns integer
native HandleListRemoveList takes handlelist destHandleList, handlelist sourceHandleList returns integer
native HandleListClear takes handlelist whichHandleList returns nothing
native HandleListContainsHandle takes handlelist whichHandleList, handle whichHandle returns boolean
native HandleListGetCount takes handlelist whichHandleList returns integer
native HandleListGetCountEx takes handlelist whichHandleList, integer handleTypeId returns integer
native HandleListGetAgentCount takes handlelist whichHandleList returns integer
native HandleListGetWidgetCount takes handlelist whichHandleList returns integer
native HandleListGetUnitCount takes handlelist whichHandleList returns integer
native HandleListGetItemCount takes handlelist whichHandleList returns integer
native HandleListGetDestructableCount takes handlelist whichHandleList returns integer
native HandleListGetAbilityCount takes handlelist whichHandleList returns integer
native HandleListGetBuffCount takes handlelist whichHandleList returns integer
native HandleListGetEffectCount takes handlelist whichHandleList returns integer
native HandleListGetMissileCount takes handlelist whichHandleList returns integer
native HandleListGetFrameCount takes handlelist whichHandleList returns integer
native HandleListGetHandleByIndex takes handlelist whichHandleList, integer index returns handle
native HandleListGetHandleByIndexEx takes handlelist whichHandleList, integer handleTypeId, integer index returns handle
native HandleListGetAgentByIndex takes handlelist whichHandleList, integer index returns agent
native HandleListGetWidgetByIndex takes handlelist whichHandleList, integer index returns widget
native HandleListGetUnitByIndex takes handlelist whichHandleList, integer index returns unit
native HandleListGetItemByIndex takes handlelist whichHandleList, integer index returns item
native HandleListGetDestructableByIndex takes handlelist whichHandleList, integer index returns destructable
native HandleListGetAbilityByIndex takes handlelist whichHandleList, integer index returns ability
native HandleListGetBuffByIndex takes handlelist whichHandleList, integer index returns buff
native HandleListGetEffectByIndex takes handlelist whichHandleList, integer index returns effect
native HandleListGetMissileByIndex takes handlelist whichHandleList, integer index returns missile
native HandleListGetFrameByIndex takes handlelist whichHandleList, integer index returns framehandle
native HandleListGetFilterHandle takes nothing returns handle
native HandleListGetFilterAgent takes nothing returns agent
native HandleListGetFilterWidget takes nothing returns widget
native HandleListGetFilterUnit takes nothing returns unit
native HandleListGetFilterItem takes nothing returns item
native HandleListGetFilterDestructable takes nothing returns destructable
native HandleListGetFilterAbility takes nothing returns ability
native HandleListGetFilterBuff takes nothing returns buff
native HandleListGetFilterEffect takes nothing returns effect
native HandleListGetFilterMissile takes nothing returns missile
native HandleListGetFilterFrame takes nothing returns framehandle
native HandleListGetEnumHandle takes nothing returns handle
native HandleListGetEnumAgent takes nothing returns agent
native HandleListGetEnumWidget takes nothing returns widget
native HandleListGetEnumUnit takes nothing returns unit
native HandleListGetEnumItem takes nothing returns item
native HandleListGetEnumDestructable takes nothing returns destructable
native HandleListGetEnumAbility takes nothing returns ability
native HandleListGetEnumBuff takes nothing returns buff
native HandleListGetEnumEffect takes nothing returns effect
native HandleListGetEnumMissile takes nothing returns missile
native HandleListGetEnumFrame takes nothing returns framehandle
native HandleListEnumInRange takes handlelist whichHandleList, real x, real y, real radius, boolexpr filter returns nothing
native HandleListEnumInRangeEx takes handlelist whichHandleList, real x, real y, real radius, integer handleTypeId, boolexpr filter returns nothing
native HandleListEnumAgentsInRange takes handlelist whichHandleList, real x, real y, real radius, boolexpr filter returns nothing
native HandleListEnumWidgetsInRange takes handlelist whichHandleList, real x, real y, real radius, boolexpr filter returns nothing
native HandleListEnumUnitsInRange takes handlelist whichHandleList, real x, real y, real radius, boolexpr filter returns nothing
native HandleListEnumItemsInRange takes handlelist whichHandleList, real x, real y, real radius, boolexpr filter returns nothing
native HandleListEnumDestructablesInRange takes handlelist whichHandleList, real x, real y, real radius, boolexpr filter returns nothing
native HandleListEnumEffectsInRange takes handlelist whichHandleList, real x, real y, real radius, boolexpr filter returns nothing
native HandleListEnumMissilesInRange takes handlelist whichHandleList, real x, real y, real radius, boolexpr filter returns nothing
native HandleListEnumInRangeOfLoc takes handlelist whichHandleList, location whichLocation, real radius, boolexpr filter returns nothing
native HandleListEnumInRangeOfLocEx takes handlelist whichHandleList, location whichLocation, real radius, integer handleTypeId, boolexpr filter returns nothing
native HandleListEnumAgentsInRangeOfLoc takes handlelist whichHandleList, location whichLocation, real radius, boolexpr filter returns nothing
native HandleListEnumWidgetsInRangeOfLoc takes handlelist whichHandleList, location whichLocation, real radius, boolexpr filter returns nothing
native HandleListEnumUnitsInRangeOfLoc takes handlelist whichHandleList, location whichLocation, real radius, boolexpr filter returns nothing
native HandleListEnumItemsInRangeOfLoc takes handlelist whichHandleList, location whichLocation, real radius, boolexpr filter returns nothing
native HandleListEnumDestructablesInRangeOfLoc takes handlelist whichHandleList, location whichLocation, real radius, boolexpr filter returns nothing
native HandleListEnumEffectsInRangeOfLoc takes handlelist whichHandleList, location whichLocation, real radius, boolexpr filter returns nothing
native HandleListEnumMissilesInRangeOfLoc takes handlelist whichHandleList, location whichLocation, real radius, boolexpr filter returns nothing
native HandleListEnumInRect takes handlelist whichHandleList, rect whichRect, boolexpr filter returns nothing
native HandleListEnumInRectEx takes handlelist whichHandleList, rect whichRect, integer handleTypeId, boolexpr filter returns nothing
native HandleListEnumAgentsInRect takes handlelist whichHandleList, rect whichRect, boolexpr filter returns nothing
native HandleListEnumWidgetsInRect takes handlelist whichHandleList, rect whichRect, boolexpr filter returns nothing
native HandleListEnumUnitsInRect takes handlelist whichHandleList, rect whichRect, boolexpr filter returns nothing
native HandleListEnumItemsInRect takes handlelist whichHandleList, rect whichRect, boolexpr filter returns nothing
native HandleListEnumDestructablesInRect takes handlelist whichHandleList, rect whichRect, boolexpr filter returns nothing
native HandleListEnumEffectsInRect takes handlelist whichHandleList, rect whichRect, boolexpr filter returns nothing
native HandleListEnumMissilesInRect takes handlelist whichHandleList, rect whichRect, boolexpr filter returns nothing
native HandleListEnumByTypeId takes handlelist whichHandleList, integer typeId, boolexpr filter returns nothing
native HandleListEnumByTypeIdEx takes handlelist whichHandleList, integer handleTypeId, integer typeId, boolexpr filter returns nothing
native HandleListForEach takes handlelist whichHandleList, code c returns nothing
native HandleListForEachByType takes handlelist whichHandleList, integer typeId, code c returns nothing
native HandleListForEachByTypeEx takes handlelist whichHandleList, integer handleTypeId, integer typeId, code c returns nothing
Ред. Borodach
Разве у объектов типа agent существуют координаты х и у, чтобы находить их в радиусе или в области? Они конечно есть где то в памяти, но не на карте же...
Будет ли аналог функции first of group, чтобы делать ручные переборы объектов в handle list?
Что тогда делать с предыдущими нативками по перебору предметов/эффектов/итд в радиусе, имеют ли они теперь смысл?
Ред. Unryze
Ред. Алексей Андреич
выбираешь нужную группу, к примеру через HandleListEnumUnitsInRect
у тебя на руках будет группа HandleList
first of group - это первый элемент листа по индексу [0]
и просто прогоняешь цикл от индекса [0] до [размер HandleList (наверняка есть метод получения размера группы) - 1]
или вон нативка есть.
native HandleListForEach takes handlelist whichHandleList, code c returns nothing
ну это как я понял...
Ред. Unryze
Ред. Unryze
Ред. Unryze
Прокрутить к ресурсу
v1.0.21.85
constant targetflag TARGET_FLAG_SELF = ConvertTargetFlag(4096)
constant targetflag TARGET_FLAG_PLAYER_UNITS = ConvertTargetFlag(8192)
constant targetflag TARGET_FLAG_ALLIED = ConvertTargetFlag(16384)
constant targetflag TARGET_FLAG_FRIEND = ConvertTargetFlag(24576) ALLIED | PLAYER_UNITS
constant targetflag TARGET_FLAG_NEUTRAL = ConvertTargetFlag(32768)
constant targetflag TARGET_FLAG_ENEMY = ConvertTargetFlag(65536)
constant targetflag TARGET_FLAG_NOT_SELF = ConvertTargetFlag(122880) ENEMY | NEUTRAL | FRIEND
constant targetflag TARGET_FLAG_VULNERABLE = ConvertTargetFlag(1048576)
constant targetflag TARGET_FLAG_INVULNERABLE = ConvertTargetFlag(2097152)
constant targetflag TARGET_FLAG_HERO = ConvertTargetFlag(4194304)
constant targetflag TARGET_FLAG_NON_HERO = ConvertTargetFlag(8388608)
constant targetflag TARGET_FLAG_ALIVE = ConvertTargetFlag(16777216)
constant targetflag TARGET_FLAG_DEAD = ConvertTargetFlag(33554432)
constant targetflag TARGET_FLAG_ORGANIC = ConvertTargetFlag(67108864)
constant targetflag TARGET_FLAG_MECHANICAL = ConvertTargetFlag(134217728)
constant targetflag TARGET_FLAG_NON_SUICIDAL = ConvertTargetFlag(268435456)
constant targetflag TARGET_FLAG_SUICIDAL = ConvertTargetFlag(536870912)
constant targetflag TARGET_FLAG_NON_ANCIENT = ConvertTargetFlag(1073741824)
constant targetflag TARGET_FLAG_ANCIENT = ConvertTargetFlag(2147483648)
constant targetflag TARGET_FLAG_EMPTY = ConvertTargetFlag(4294967295)
constant abilityrealfield ABILITY_RF_AURA_REFRESH_TIME = ConvertAbilityRealField('artm')
constant abilityintegerlevelfield ABILITY_ILF_TARGETS_ALLOWED = ConvertAbilityIntegerLevelField('atar')
constant playerunitevent EVENT_PLAYER_UNIT_ATTACK_FINISHED = ConvertPlayerUnitEvent(317)
constant unitevent EVENT_UNIT_ATTACK_FINISHED = ConvertUnitEvent(316)
native IsAbilityTargetAllowed takes ability whichAbility, widget whichWidget returns boolean
native GetSpecialEffectModelObjectPositionX takes effect whichEffect, string whichObject returns real
native GetSpecialEffectModelObjectPositionY takes effect whichEffect, string whichObject returns real
native GetSpecialEffectModelObjectPositionZ takes effect whichEffect, string whichObject returns real
native GetSpecialEffectModelObjectPositionLoc takes effect whichEffect, string whichObject returns location
native GetTrackableModelObjectPositionX takes trackable whichTrackable, string whichObject returns real
native GetTrackableModelObjectPositionY takes trackable whichTrackable, string whichObject returns real
native GetTrackableModelObjectPositionZ takes trackable whichTrackable, string whichObject returns real
native GetTrackableModelObjectPositionLoc takes trackable whichTrackable, string whichObject returns location
native GetWidgetModelObjectPositionX takes widget whichWidget, string whichObject returns real
native GetWidgetModelObjectPositionY takes widget whichWidget, string whichObject returns real
native GetWidgetModelObjectPositionZ takes widget whichWidget, string whichObject returns real
native GetWidgetModelObjectPositionLoc takes widget whichWidget, string whichObject returns location
native GetDestructableModelObjectPositionX takes destructable whichDestructable, string whichObject returns real
native GetDestructableModelObjectPositionY takes destructable whichDestructable, string whichObject returns real
native GetDestructableModelObjectPositionZ takes destructable whichDestructable, string whichObject returns real
native GetDestructableModelObjectPositionLoc takes destructable whichDestructable, string whichObject returns location
native GetItemModelObjectPositionX takes item whichItem, string whichObject returns real
native GetItemModelObjectPositionY takes item whichItem, string whichObject returns real
native GetItemModelObjectPositionZ takes item whichItem, string whichObject returns real
native GetItemModelObjectPositionLoc takes item whichItem, string whichObject returns location
native GetUnitModelObjectPositionX takes unit whichUnit, string whichObject returns real
native GetUnitModelObjectPositionY takes unit whichUnit, string whichObject returns real
native GetUnitModelObjectPositionZ takes unit whichUnit, string whichObject returns real
native GetUnitModelObjectPositionLoc takes unit whichUnit, string whichObject returns location
native GetProjectileModelObjectPositionX takes projectile whichProjectile, string whichObject returns real
native GetProjectileModelObjectPositionY takes projectile whichProjectile, string whichObject returns real
native GetProjectileModelObjectPositionZ takes projectile whichProjectile, string whichObject returns real
native GetProjectileModelObjectPositionLoc takes projectile whichProjectile, string whichObject returns location
Frame API
native GetFrameCheckState takes fremehandle whichFrame returns boolean
native SetFrameCheckState takes framehandle whichFrame, boolean isCheck returns nothing
native GetTriggerFrameMouseButton takes nothing returns mousebuttontype
native RegisterFrameMouseButton takes framehandle whichFrame, mousebuttontype whichButton, boolean isAdd returns nothing
Устанавливать чекстатус.
Ред. Unryze
Прокрутить к ресурсу
v1.0.22.88
- Новые Типы:
type pathingaitype extends handletype collisiontype extends handle
type textfilehandle extends handle
- Новые Конвертеры:
constant native ConvertPathingAIType takes integer i returns pathingaitypeconstant native ConvertCollisionType takes integer i returns collisiontype
- Новые Константы:
constant pathingaitype PATHING_AI_TYPE_FOOT = ConvertPathingAIType(0)constant pathingaitype PATHING_AI_TYPE_AMPHIBIOUS = ConvertPathingAIType(64)
constant pathingaitype PATHING_AI_TYPE_FLOAT = ConvertPathingAIType(128)
constant pathingaitype PATHING_AI_TYPE_FLY = ConvertPathingAIType(192) MOVE_TYPE_AMPHIBIOUS | MOVE_TYPE_FLOAT
constant collisiontype COLLISION_TYPE_NONE = ConvertCollisionType(0)
constant collisiontype COLLISION_TYPE_ANY = ConvertCollisionType(1)
constant collisiontype COLLISION_TYPE_FOOT = ConvertCollisionType(2)
constant collisiontype COLLISION_TYPE_AIR = ConvertCollisionType(4)
constant collisiontype COLLISION_TYPE_BUILDING = ConvertCollisionType(8)
constant collisiontype COLLISION_TYPE_HARVESTER = ConvertCollisionType(16)
constant collisiontype COLLISION_TYPE_BLIGHTED = ConvertCollisionType(32)
constant collisiontype COLLISION_TYPE_FLOAT = ConvertCollisionType(64)
constant collisiontype COLLISION_TYPE_AMPHIBIOUS = ConvertCollisionType(128)
constant collisiontype COLLISION_TYPE_GROUND = ConvertCollisionType(202) COLLISION_TYPE_FOOT | COLLISION_TYPE_BUILDING | COLLISION_TYPE_FLOAT | COLLISION_TYPE_AMPHIBIOUS
constant originframetype ORIGIN_FRAME_INVENTORY_COVER_FRAME = ConvertOriginFrameType(45)
constant originframetype ORIGIN_FRAME_UNIT_TIP = ConvertOriginFrameType(46)
constant unitevent EVENT_UNIT_DECAY_FINISHED = ConvertUnitEvent(318)
constant playerunitevent EVENT_PLAYER_UNIT_DECAY_FINISHED = ConvertPlayerUnitEvent(319)
constant frameeventtype FRAMEEVENT_CHECKBOX_CHANGED = ConvertFrameEventType(17)
constant frameeventtype FRAMEEVENT_CONTROL_RELEASE = ConvertFrameEventType(18)
constant frameeventtype FRAMEEVENT_CONTROL_DRAG = ConvertFrameEventType(19)
constant unitintegerfield UNIT_IF_COLLISION_TYPE = ConvertUnitIntegerField('ucot')
constant unitintegerfield UNIT_IF_PATHING_AI = ConvertUnitIntegerField('upai')
constant unitintegerfield UNIT_IF_PATHING_TYPE = ConvertUnitIntegerField('upat')
- Удалённые Нативные Функции:
native SetUnitMoveTypeByIndex takes unit whichUnit, integer moveIndex returns nothing- Новые Нативные Функции:
native IntToChar takes integer i returns stringnative BitwiseSetBit takes integer i, integer bitIndex, integer bitValue returns integer
native BitwiseSetByte takes integer i, integer byteIndex, integer byteValue returns integer
native BitwiseToInteger takes integer byte1, integer byte2, integer byte3, integer byte4 returns integer
native GetTimeStamp takes boolean isLocalTime, integer isMiliseconds returns string
native ConsoleEnable takes boolean flag returns nothing
native ConsolePrint takes string s returns nothing
native TextFileOpen takes string filePath returns textfilehandle
native TextFileGetPath takes textfilehandle whichTextFile returns string
native TextFileClose takes textfilehandle whichTextFile returns nothing
native TextFileClear takes textfilehandle whichTextFile returns nothing
native TextFileErase takes textfilehandle whichTextFile returns nothing
native TextFileCountLines takes textfilehandle whichTextFile returns integer
native TextFileReadLine takes textfilehandle whichTextFile, integer lineNumber returns string
native TextFileReadAll takes textfilehandle whichTextFile returns string
native TextFileWriteLine takes textfilehandle whichTextFile, string text returns nothing
native IsCursorEnabled takes nothing returns boolean
native SetCursorEnabled takes boolean enable returns nothing
native IsCursorAnimationLocked takes nothing returns boolean
native SetCursorAnimationLocked takes boolean isLock returns nothing
native IsFrameDraggable takes framehandle whichFrame returns boolean
native SetFrameDraggable takes framehandle whichFrame, boolean enabled returns nothing
native GetFrameModel takes framehandle whichFrame returns string
native SetFrameSpriteMaterialScale takes framehandle whichFrame, real sizeX, real sizeY, real sizeZ returns nothing
native IsWidgetTipEnabled takes nothing returns boolean
native SetWidgetTipEnabled takes boolean enable returns nothing
native IsAbilityBaseTargetAllowed takes integer abilityId, widget source, widget target returns boolean source can be null
native IsWidgetTargetAllowed takes widget source, widget target, targetflag whichFlags returns boolean
native GetUnitCollisionType takes unit whichUnit returns collisiontype
native SetUnitCollisionType takes unit whichUnit, collisiontype collisionType returns nothing
- Изменение Констант:
JASS_MAX_ARRAY_SIZE increased from 8192 to 262144.- Исправлена IsSpecialEffectVisible, ранее возвращала инверсное значение.
- Исправлена ShowFrame, теперь она полноценно работает с CSimpleRegion/CSimpleTexture/CSimpleFrame и со всеми их дочерними типами.
- SetFrameTexture изменено имя аргумента "flag" на "textureId".
- SetFrameTexture теперь работает на CConsoleUI.
Пример: call SetFrameTexture( frm, "UI\\Console\\Orc\\OrcUITile01.blp", 0, false )Пояснение: Консоль имеет 4 "части" потому индексы 0-3.
- Исправлена IsAbilityTargetAllowed, теперь она правильно определяет все флаги целей.
- Тип хендла targetflag type теперь работает по принципу CDataFieldWar3, чтобы избежать критической ошибки на флагах выше 0x100000 конвертируемые через ConvertTargetFlag.
- Исправлено поле ITEM_SF_ABILITY_LIST возвращающая "<null>".
- Исправлена критическая ошибка вызванная ABILITY_SLF_SPELL_LIST.
- ABILITY_SLF_SPELL_LIST опция теперь так же работает и на базовом заклинании и на интстанцируемом (Get и Set).
Примечание: данное поле игнорирует минимальное/максимальное количество заклинании, потому что мне было лень это делать.Пример использования: call SetAbilityStringLevelField( GetUnitAbility( u, 'Aspb' ), ABILITY_SLF_SPELL_LIST, 0, "AHad,AHhb,AHbz,AUau" )
- SetFrameTexture теперь автоматически будет проверять расширения .tga/.blp (в этом порядке) если в пути файла отсутствует расширение файла.
Пример: call SetFrameTexture( frm, "UI\\Console\\Orc\\OrcUITile01", 0, false ), автоматически добавит .blp в конец пути.- Исправлено по-большей части сломанное API синхронизации, пометка для себя попытка инстансирования CGameWar3 - была ужасно тупой затеей.
- Исправлен очень-очень старый баг со спеллбуком, когда он был частью предмета и этот предмет был переложен из одного слота в другой, тем самым применение предмета не прорисовывало эти заклинания.
Пометка: старый метод "исправления" этой ошибки являлся банальным выбрасыванием и подбором предмета.- Значительно улучшено Frame API для CCursor фрейма.
- Удалён (или по крайней мере сильно увеличен) лимит RCString (Джасс строки).
Пометка: оригинальный лимит был 4097 (4096 + 1 для нуль-терминирования).- Отладчик Jass ошибок, теперь печатает ошибки сгруппировано.
- Исправлена ошибка ввиду которой функция GetFrameChildByIndex не выдавала фрейм на 0 индексе.
- Исправлена критическая ошибка с SetFrameEnabled и BlzSetFrameEnable на Backdrop фреймах.
- Исправлен нерабочий внутренний обработчик ITEM_IF полей. (одним из этих полей являлся ITEM_IF_GOLD_COST).
- Переделаны GetFrameChild и GetFrameChildrenCount.
- FRAMEEVENT_MOUSE_ENTER и FRAMEEVENT_MOUSE_LEAVE теперь могут быть применены с IconDamage, IconHero, IconArmor, и т.д..
- Исправлены некоторые "неподдерживаемые" клавиши, такие как OSKEY_TAB, VK_SHIFT, и т.д..
- Потенциально полностью исправлена ошибка "паузы игры", которая ломала одиночный режим при альт-табе, если какой-либо KeyEvent был зарегистрирован.
Пояснение: этот баг только "преследовал" режим одиночной игры и никак не мог произойти в локальной/мультиплеерном режиме.Ред. ScorpioT1000
Ред. ScorpioT1000
Если ответ был без заголовка или с пустым - дропаем всю игру. Если таймаут или 502 - запрещаем слать запросы на 1-5 минут. Серверы не всегда могут быть доступны.
Ред. Unryze
Ред. Unryze
Прокрутить к ресурсу
v1.0.23.91
- Новые Нативные Функции:
native MathRealClamp takes real value, real min, real max returns realnative MathRealLerp takes real a, real b, real t returns real
native MathIntegerClamp takes integer value, integer min, integer max returns integer
native SetFrameWidth takes framehandle whichFrame, real width returns nothing
native SetFrameHeight takes framehandle whichFrame, real height returns nothing
native SetFrameTextVerticalAlignment takes framehandle whichFrame, textaligntype verticalAlign returns nothing
native SetFrameTextHorizontalAlignment takes framehandle whichFrame, textaligntype horizontalAlign returns nothing
native GetFrameTexture takes framehandle whichFrame, integer textureId returns string
native GetFrameTrackState takes framehandle whichFrame returns boolean
native SetFrameTrackState takes framehandle whichFrame, integer trackState returns nothing 0 - NONE | 1 - Track | 2 - Ignore Track
native SetFrameTextureEx takes framehandle whichFrame, string backgroundTextureFile, string borderTextureFile, integer textureId, boolean blend returns nothing
Спасибо пользователю Radioactive за то, что он заметил и сообщил об этой серьёзной проблеме.
Пометка: это была новая ошибка, которая "всплыла" в виду снятия лимита RCString (джасс строк).
Пример: ADD real -> -2816.000000 + 512.000000 = -2304.000000.
Note: there are a total of 43 different types of operations (opcodes).
Пример: "-jass dev".
Пример: "-jass logactions".
Прокрутить к ресурсу
v1.0.24.92
native RemoveSound takes sound whichSound returns nothing
native ReplaceSound takes sound whichSound, string fileName, boolean looping, boolean is3D, boolean stopwhenoutofrange, integer fadeInRate, integer fadeOutRate, string eaxSetting returns sound
native ReplaceSoundWithLabel takes sound whichSound, string fileName, boolean looping, boolean is3D, boolean stopwhenoutofrange, integer fadeInRate, integer fadeOutRate, string SLKEntryName returns sound
native ReplaceSoundFromLabel takes sound whichSound, string soundLabel, boolean looping, boolean is3D, boolean stopwhenoutofrange, integer fadeInRate, integer fadeOutRate returns sound
native ReplaceMIDISound takes sound whichSound, string soundLabel, integer fadeInRate, integer fadeOutRate returns sound
native TextFileExists takes string filePath returns boolean
Пометка: HandleListGetHandleByIndex и HandleListGetAgentByIndex работали без каких-либо проблем.
Ред. Unryze
Прокрутить к ресурсу
v1.0.25.94
native ConsolePause takes string s returns nothing
native GetTickCount takes nothing returns integer
native GetSpecialEffectCurrentAnimationId takes effect whichEffect returns integer
native GetTrackableCurrentAnimationId takes trackable whichTrackable returns integer
native GetWidgetCurrentAnimationId takes widget whichWidget returns integer
native GetDestructableCurrentAnimationId takes destructable whichDestructable returns integer
native GetItemCurrentAnimationId takes item whichItem returns integer
native GetUnitCurrentAnimationId takes unit whichUnit returns integer
native GetProjectileCurrentAnimationId takes projectile whichProjectile returns integer
native GetFrameSpriteCurrentAnimationId takes framehandle whichFrame returns integer
native GetFrameColourEx takes framehandle whichFrame, integer textureId returns integer
native SetFrameColourEx takes framehandle whichFrame, integer textureId, integer colour returns nothing
native GetFrameColour takes framehandle whichFrame returns integer
native SetFrameColour takes framehandle whichFrame, integer colour returns nothing
native GetFrameAlphaEx takes framehandle whichFrame, integer textureId returns integer
native SetFrameAlphaEx takes framehandle whichFrame, integer textureId, integer alpha returns nothing
Ред. Unryze
Прокрутить к ресурсу
v1.0.26.97
type mappedfield extends handle
type mappedtype extends handle
type attachmenttype extends mappedtype
type bonetype extends attachmenttype
type cursoranimtype extends mappedtype
constant native ConvertMappedField takes integer i returns mappedfield
constant native ConvertAttachmentType takes integer i returns attachmenttype
constant native ConvertBoneType takes integer i returns bonetype
constant native ConvertCursorAnimType takes integer i returns cursoranimtype
constant mappedfield MAPPED_FIELD_ATTACHMENT = ConvertMappedField(0)
constant mappedfield MAPPED_FIELD_BONE = ConvertMappedField(1)
constant mappedfield MAPPED_FIELD_ANIMATION = ConvertMappedField(2)
constant mappedfield MAPPED_FIELD_SUB_ANIMATION = ConvertMappedField(3)
constant mappedfield MAPPED_CURSOR_SUB_ANIMATION = ConvertMappedField(4)
constant attachmenttype ATTACHMENT_TYPE_CHEST = ConvertAttachmentType('ches')
constant attachmenttype ATTACHMENT_TYPE_FEET = ConvertAttachmentType('feet')
constant attachmenttype ATTACHMENT_TYPE_FOOT = ConvertAttachmentType('foot')
constant attachmenttype ATTACHMENT_TYPE_HAND = ConvertAttachmentType('hand')
constant attachmenttype ATTACHMENT_TYPE_HEAD = ConvertAttachmentType('head')
constant attachmenttype ATTACHMENT_TYPE_ORIGIN = ConvertAttachmentType('orig')
constant attachmenttype ATTACHMENT_TYPE_OVERHEAD = ConvertAttachmentType('over')
constant attachmenttype ATTACHMENT_TYPE_SPRITE = ConvertAttachmentType('spri')
constant attachmenttype ATTACHMENT_TYPE_WEAPON = ConvertAttachmentType('weap')
constant attachmenttype ATTACHMENT_TYPE_ALTERNATE = ConvertAttachmentType('alte')
constant attachmenttype ATTACHMENT_TYPE_LEFT = ConvertAttachmentType('left')
constant attachmenttype ATTACHMENT_TYPE_RIGHT = ConvertAttachmentType('righ')
constant attachmenttype ATTACHMENT_TYPE_MOUNT = ConvertAttachmentType('moun')
constant attachmenttype ATTACHMENT_TYPE_REAR = ConvertAttachmentType('rear')
constant attachmenttype ATTACHMENT_TYPE_SMART = ConvertAttachmentType('smar')
constant attachmenttype ATTACHMENT_TYPE_FIRST = ConvertAttachmentType('firs')
constant attachmenttype ATTACHMENT_TYPE_SECOND = ConvertAttachmentType('seco')
constant attachmenttype ATTACHMENT_TYPE_THIRD = ConvertAttachmentType('thir')
constant attachmenttype ATTACHMENT_TYPE_FOURTH = ConvertAttachmentType('four')
constant attachmenttype ATTACHMENT_TYPE_FIFTH = ConvertAttachmentType('fift')
constant attachmenttype ATTACHMENT_TYPE_SIXTH = ConvertAttachmentType('sixt')
constant attachmenttype ATTACHMENT_TYPE_SMALL = ConvertAttachmentType('smal')
constant attachmenttype ATTACHMENT_TYPE_MEDIUM = ConvertAttachmentType('medi')
constant attachmenttype ATTACHMENT_TYPE_LARGE = ConvertAttachmentType('larg')
constant attachmenttype ATTACHMENT_TYPE_GOLD = ConvertAttachmentType('gold')
constant attachmenttype ATTACHMENT_TYPE_RALLYPOINT = ConvertAttachmentType('rall')
constant attachmenttype ATTACHMENT_TYPE_EAT_TREE = ConvertAttachmentType('eatt')
constant bonetype BONE_TYPE_CHEST = ConvertBoneType('ches')
constant bonetype BONE_TYPE_FOOT = ConvertBoneType('foot')
constant bonetype BONE_TYPE_HAND = ConvertBoneType('hand')
constant bonetype BONE_TYPE_HEAD = ConvertBoneType('head')
constant bonetype BONE_TYPE_TURRET = ConvertBoneType('turr')
constant bonetype BONE_TYPE_ALTERNATE = ConvertBoneType('alte')
constant bonetype BONE_TYPE_LEFT = ConvertBoneType('left')
constant bonetype BONE_TYPE_RIGHT = ConvertBoneType('righ')
constant bonetype BONE_TYPE_MOUNT = ConvertBoneType('moun')
constant bonetype BONE_TYPE_SMART = ConvertBoneType('smar')
constant cursoranimtype CURSORANIM_TYPE_NORMAL = ConvertCursorAnimType(0)
constant cursoranimtype CURSORANIM_TYPE_SELECT = ConvertCursorAnimType(1)
constant cursoranimtype CURSORANIM_TYPE_TARGET = ConvertCursorAnimType(2)
constant cursoranimtype CURSORANIM_TYPE_TARGET_SELECT = ConvertCursorAnimType(3)
constant cursoranimtype CURSORANIM_TYPE_INVALID_TARGET = ConvertCursorAnimType(4)
constant cursoranimtype CURSORANIM_TYPE_HOLD_ITEM = ConvertCursorAnimType(5)
constant cursoranimtype CURSORANIM_TYPE_SCROLL = ConvertCursorAnimType(6)
constant cursoranimtype CURSORANIM_TYPE_LEFT = ConvertCursorAnimType(7)
constant cursoranimtype CURSORANIM_TYPE_RIGHT = ConvertCursorAnimType(8)
constant cursoranimtype CURSORANIM_TYPE_UP = ConvertCursorAnimType(9)
constant cursoranimtype CURSORANIM_TYPE_DOWN = ConvertCursorAnimType(10)
native GetAnimationName takes animtype whichAnim returns string
native GetMiscDataString takes string sectionName, string optionName, integer index returns string
native SetMiscDataString takes string sectionName, string optionName, integer index, string value returns nothing
native GetSkinDataString takes string raceName, string sectionName, string optionName, integer index returns string raceName can be null
native SetSkinDataString takes string raceName, string sectionName, string optionName, integer index, string value returns nothing raceName can be null
native GetFDFDataString takes string sectionName, string optionName returns string
native SetFDFDataString takes string sectionName, string optionName, string value returns nothing
native GetMappedTypeName takes mappedfield whichField, mappedtype whichMapType returns string
native TriggerCountEvents takes trigger whichTrigger returns integer
native TriggerCountConditions takes trigger whichTrigger returns integer
native TriggerCountActions takes trigger whichTrigger returns integer
native TriggerRemoveEvent takes trigger whichTrigger, event whichEvent returns nothing
native TriggerRemoveEventId takes trigger whichTrigger, eventid whichEventId, boolean removeAllOccurences returns nothing
native TriggerClearEvents takes trigger whichTrigger returns nothing
native TriggerClear takes trigger whichTrigger returns nothing
native GetSpecialEffectCurrentAnimationName takes effect whichEffect returns string
native GetTrackableCurrentAnimationName takes trackable whichTrackable returns string
native GetWidgetCurrentAnimationName takes widget whichWidget returns string
native GetDestructableCurrentAnimationName takes destructable whichDestructable returns string
native GetItemCurrentAnimationName takes item whichItem returns string
native GetUnitCurrentAnimationName takes unit whichUnit returns string
native GetProjectileCurrentAnimationName takes projectile whichProjectile returns string
native GetFrameSpriteCurrentAnimationName takes framehandle whichFrame returns string
native CreateSimpleGlueFrame takes framehandle whichSimpleParent, framehandle whichSpriteFrame returns framehandle
native SetFrameName takes framehandle whichFrame, string contextName returns nothing
native GetFrameContext takes framehandle whichFrame returns integer
native SetFrameContext takes framehandle whichFrame, integer createContext returns nothing
native SetFrameContextName takes framehandle whichFrame, string contextName, integer createContext returns nothing
Пометка: карты написанные на "чистом" луа всё ещё не будут работать, пока Ev3nt не исправит его war3_lua.dll.
Пометка 2: это "маленькое" изменение потребовало более 1000 строк кода, что же я делаю со своей жизнью...
Пометка: хотя ранее не было ошибок/проблем связанных с этой структурой, это было либо в виду везения, либо в виду малой популярности.
Ред. Unryze
Прокрутить к ресурсу
v1.0.27.100
- Новые Константы
constant playercolor PLAYER_COLOR_MAROON = ConvertPlayerColor(12)constant playercolor PLAYER_COLOR_NAVY = ConvertPlayerColor(13)
constant playercolor PLAYER_COLOR_TURQUOISE = ConvertPlayerColor(14)
constant playercolor PLAYER_COLOR_VIOLET = ConvertPlayerColor(15)
constant playercolor PLAYER_COLOR_WHEAT = ConvertPlayerColor(16)
constant playercolor PLAYER_COLOR_PEACH = ConvertPlayerColor(17)
constant playercolor PLAYER_COLOR_MINT = ConvertPlayerColor(18)
constant playercolor PLAYER_COLOR_LAVENDER = ConvertPlayerColor(19)
constant playercolor PLAYER_COLOR_COAL = ConvertPlayerColor(20)
constant playercolor PLAYER_COLOR_SNOW = ConvertPlayerColor(21)
constant playercolor PLAYER_COLOR_EMERALD = ConvertPlayerColor(22)
constant playercolor PLAYER_COLOR_PEANUT = ConvertPlayerColor(23)
constant integer CORNER_FLAG_UPPER_LEFT = 1
constant integer CORNER_FLAG_UPPER_RIGHT = 2
constant integer CORNER_FLAG_BOTTOM_LEFT = 4
constant integer CORNER_FLAG_BOTTOM_RIGHT = 8
constant integer CORNER_FLAG_TOP = 16
constant integer CORNER_FLAG_LEFT = 32
constant integer CORNER_FLAG_BOTTOM = 64
constant integer CORNER_FLAG_RIGHT = 128
constant integer CORNER_FLAG_ALL = 255
- Новые Нативные Функции:
constant native GetBJMaxPlayers takes nothing returns integerconstant native GetBJPlayerNeutralVictim takes nothing returns integer
constant native GetBJPlayerNeutralExtra takes nothing returns integer
constant native GetBJMaxPlayerSlots takes nothing returns integer
constant native GetPlayerNeutralPassive takes nothing returns integer
constant native GetPlayerNeutralAggressive takes nothing returns integer
native SaveCode takes hashtable table, integer parentKey, integer childKey, code whichCode returns boolean
native SaveHandleList takes hashtable table, integer parentKey, integer childKey, handlelist whichHandleList returns boolean
native LoadCode takes hashtable table, integer parentKey, integer childKey returns code
native LoadHandleList takes hashtable table, integer parentKey, integer childKey returns handlelist
native GetFrameTypeName takes framehandle whichFrame returns string
native GetFrameCornerFlags takes framehandle whichFrame, integer backdropId returns integer
native SetFrameCornerFlags takes framehandle whichFrame, integer backdropId, integer cornerFlag returns nothing
native GetFrameCornerSize takes framehandle whichFrame, integer backdropId returns real
native SetFrameCornerSize takes framehandle whichFrame, integer backdropId, real value returns nothing
native GetFrameBackgroundSize takes framehandle whichFrame, integer backdropId returns real
native SetFrameBackgroundSize takes framehandle whichFrame, integer backdropId, real value returns nothing
native GetFrameBackgroundInsetById takes framehandle whichFrame, integer backdropId, integer insetId returns real
native SetFrameBackgroundInsets takes framehandle whichFrame, integer backdropId, real minX, real minY, real maxX, real maxY returns nothing
native SetFrameBackgroundInsetById takes framehandle whichFrame, integer backdropId, integer insetId, real value returns nothing
native SetFrameBackdropTexture takes framehandle whichFrame, integer textureId, string backgroundTextureFile, boolean allowTransparency, boolean blend, string borderTextureFile, integer borderFlags, boolean isControlBackdrop returns nothing
- Изменена последовательность аргументов SetFrameTextureEx.
- Исправлен анализатор опкодов Jass секции, а точнее: GREATER/LESSER/GREATEROREQUAL/LESSEROREQUAL, числовые сравнения изменены с uint32_t на int32_t.
Пометка: это была очень глупая ошибка, которую заметил N1ghtSiren.- Исправлена неверное возвращаемо значение нативной функцией I2C.
Пометка: Оказывается хоть сама переменная code хранит индекс функции, в неё нельзя посылать его напрямую, а нужно посылать адрес Opcode...Спасибо N1ghtSiren за то, что заметил эту проблему.
- Исправлена критическая ошибка от SetWidgetModel и SetWidgetModelEx.
Пометка: Юниты/Предметы/Разрушаемые имели эту же проблему.Спасибо PinkieNecro за то, что заметил эту проблему.
Прокрутить к ресурсу
v1.0.28.102
constant integer TEXT_TAG_MAX_SIZE = GetTextTagLimit( ) Original 100 limit raised to 1024, this is subject to change if needed.
constant native GetJassArrayLimit takes nothing returns integer
constant native GetTextTagLimit takes nothing returns integer
native GetCodeByName takes string funcName returns code
native TimerIsPaused takes timer whichTimer returns boolean
native TimerRestart takes timer whichTimer returns nothing
native TimerIsPeriodic takes timer whichTimer returns boolean
native TimerSetPeriodic takes timer whichTimer, boolean isPeriodic returns nothing
native TimerSetRemaining takes timer whichTimer, real remaining returns nothing
native TimerSetTimeout takes timer whichTimer, real timeout returns nothing
native TimerGetCallback takes timer whichTimer returns code
native TimerSetCallback takes timer whichTimer, code whichFunction returns nothing
native GetDoodadModel takes doodad whichDoodad returns string
native SetDoodadModel takes doodad whichDoodad, string whichModel returns nothing
native IsDoodadVisible takes doodad whichDoodad returns boolean
native ShowDoodad takes doodad whichDoodad, boolean isShow returns nothing
native GetLightningSourceX takes lightning whichBolt returns real
native SetLightningSourceX takes lightning whichBolt, real value returns nothing
native GetLightningSourceY takes lightning whichBolt returns real
native SetLightningSourceY takes lightning whichBolt, real value returns nothing
native GetLightningSourceZ takes lightning whichBolt returns real
native SetLightningSourceZ takes lightning whichBolt, real value returns nothing
native GetLightningSourcePositionLocation takes lightning whichBolt returns location
native SetLightningSourcePositionLocation takes lightning whichBolt, location whichLocation returns nothing
native GetLightningTargetX takes lightning whichBolt returns real
native SetLightningTargetX takes lightning whichBolt, real value returns nothing
native GetLightningTargetY takes lightning whichBolt returns real
native SetLightningTargetY takes lightning whichBolt, real value returns nothing
native GetLightningTargetZ takes lightning whichBolt returns real
native SetLightningTargetZ takes lightning whichBolt, real value returns nothing
native GetLightningTargetPositionLocation takes lightning whichBolt returns location
native SetLightningTargetPositionLocation takes lightning whichBolt, location whichLocation returns nothing
native GetLightningScreenX takes lightning whichBolt returns real
native GetLightningScreenY takes lightning whichBolt returns real
native GetLightningColour takes lightning whichBolt returns integer
native GetLightningLength takes lightning whichBolt returns real
native SetLightningLength takes lightning whichBolt, real value returns nothing
native GetLightningNoiseScaling takes lightning whichBolt returns real
native SetLightningNoiseScaling takes lightning whichBolt, real value returns nothing
native GetLightningTextureCoordinates takes lightning whichBolt returns real
native SetLightningTextureCoordinates takes lightning whichBolt, real value returns nothing
native GetLightningDuration takes lightning whichBolt returns real
native SetLightningDuration takes lightning whichBolt, real value returns nothing
native GetLightningTexture takes lightning whichBolt returns string
native SetLightningTexture takes lightning whichBolt, string textureName returns nothing
native GetTextTagScreenX takes texttag whichTextTag returns real
native GetTextTagScreenY takes texttag whichTextTag returns real
native GetImageScreenX takes image whichImage returns real
native GetImageScreenY takes image whichImage returns real
native GetSpecialEffectScreenX takes effect whichEffect returns real
native GetSpecialEffectScreenY takes effect whichEffect returns real
native GetTrackableScreenX takes trackable whichTrackable returns real
native GetTrackableScreenY takes trackable whichTrackable returns real
native GetWidgetScreenX takes widget whichWidget returns real
native GetWidgetScreenY takes widget whichWidget returns real
native GetDestructableScreenX takes destructable whichDestructable returns real
native GetDestructableScreenY takes destructable whichDestructable returns real
native GetItemScreenX takes item whichItem returns real
native GetItemScreenY takes item whichItem returns real
native GetUnitScreenX takes unit whichUnit returns real
native GetUnitScreenY takes unit whichUnit returns real
native GetProjectileScreenX takes projectile whichProjectile returns real
native GetProjectileScreenY takes projectile whichProjectile returns real
native HandleListContainsTypeId takes handlelist whichHandleList, integer typeId returns boolean
native HandleListGetHandleByTypeId takes handlelist whichHandleList, integer typeId, integer index returns handle
native HandleListRemoveEmpty takes handlelist whichHandleList returns integer
Пометка: использование 512 тексттагов никак не повлияло на фпс, однако тесты проведённые на 8192 увенчались 20 средними фпс, потому лимит был установлен в 1024, так как при этом лимите фпс тоже не пострадал.
Пометка: такой проблемы не было на "ванилле".
Пометка: ошибка происходила потому, что UjAPI пытался получать доступ к CGlueManager для перезаписи "версии" и добавлении текста версии UjAPI, но это по итогу происходило на "чёрном" экране.
Установил патч 1.27а
Сделал как всему описание
Запустил
Выхожу - выкидывает ошибка что варкрафт перестал
Запускаю и на карту китайскую нажимаю и происходит вылет
Теперь при запуске игры не видит ужапи
После этого ужапи перестал запускаться
Ред. Unryze
Прокрутить к ресурсу
v1.0.29.104
native GetLightningColourA takes lightning whichBolt returns integer
native GetLightningColourR takes lightning whichBolt returns integer
native GetLightningColourG takes lightning whichBolt returns integer
native GetLightningColourB takes lightning whichBolt returns integer
native SetLightningColour takes lightning whichBolt, integer r, integer g, integer b, integer a returns boolean
native GetLocale takes nothing returns string
native DisplayWarningMessage takes player toPlayer, string message returns nothing
native DisplayTimedWarningMessage takes player toPlayer, real duration, string message returns nothing
native DisplayTopMessage takes player toPlayer, string message returns nothing
native DisplayTimedTopMessage takes player toPlayer, real duration, string message returns nothing
native TextFileGetSizeByPath takes string filePath returns integer
native TextFileGetSize takes textfilehandle whichTextFile returns integer
native CreateDoodad takes integer objectid, real x, real y, real face, real scale, integer variation returns doodad
native CreateDoodadZ takes integer objectid, real x, real y, real z, real face, real scale, integer variation returns doodad
native RemoveDoodad takes doodad whichDoodad returns nothing
native GetDoodadColour takes doodad whichDoodad returns integer
native SetDoodadColour takes doodad whichDoodad, integer colour returns nothing
native SetDoodadVertexColour takes doodad whichDoodad, integer red, integer green, integer blue, integer alpha returns nothing
native GetDoodadScale takes doodad whichDoodad returns real
native SetDoodadScale takes doodad whichDoodad, real facing returns nothing
native GetDoodadX takes doodad whichDoodad returns real
native SetDoodadX takes doodad whichDoodad, real x returns nothing
native GetDoodadY takes doodad whichDoodad returns real
native SetDoodadY takes doodad whichDoodad, real y returns nothing
native GetDoodadZ takes doodad whichDoodad returns real
native SetDoodadZ takes doodad whichDoodad, real z returns nothing
native SetDoodadPosition takes doodad whichDoodad, real x, real y returns nothing
native SetDoodadPositionEx takes doodad whichDoodad, real x, real y, real z returns nothing
native GetDoodadPositionLocation takes doodad whichDoodad returns location
native SetDoodadPositionLocation takes doodad whichDoodad, location whichLocation returns nothing
native GetDoodadScreenX takes doodad whichDoodad returns real
native GetDoodadScreenY takes doodad whichDoodad returns real
native SetDoodadMatrixScale takes doodad whichDoodad, real x, real y, real z returns nothing
native ResetDoodadMatrix takes doodad whichDoodad returns nothing
native SetDoodadOrientationEx takes doodad whichDoodad, real yaw, real pitch, real roll, integer eulerOrder returns nothing
native GetDoodadYaw takes doodad whichDoodad returns real
native SetDoodadYaw takes doodad whichDoodad, real yaw returns nothing
native GetDoodadFacing takes doodad whichDoodad returns real
native SetDoodadFacing takes doodad whichDoodad, real facing returns nothing
native GetDoodadPitch takes doodad whichDoodad returns real
native SetDoodadPitch takes doodad whichDoodad, real pitch returns nothing
native GetDoodadRoll takes doodad whichDoodad returns real
native SetDoodadRoll takes doodad whichDoodad, real roll returns nothing
native SetDoodadOrientation takes doodad whichDoodad, real yaw, real pitch, real roll returns nothing
native GetDoodadModel takes doodad whichDoodad returns string
native SetDoodadModel takes doodad whichDoodad, string whichModel returns nothing
native GetWidgetTypeId takes widget whichWidget returns integer
native GetUnitTarget takes unit whichUnit returns widget
native GetUnitTargetUnit takes unit whichUnit returns unit
native GetUnitTargetItem takes unit whichUnit returns item
native GetUnitTargetDestructable takes unit whichUnit returns destructable
native UnitAttackTarget takes unit whichUnit, widget whichTarget, bool ignoreDistance, boolean isInstant returns nothing ignoreDistance only works if isInstant is set to true.
native UnitAttackTargetPointZ takes unit whichUnit, real x, real y, real z, boolean ignoreDistance, boolean isInstant returns nothing
native UnitAttackTargetPoint takes unit whichUnit, real x, real y, boolean ignoreDistance, boolean isInstant returns nothing
native UnitAttackTargetPointLoc takes unit whichUnit, location whichLocation, boolean ignoreDistance, boolean isInstant returns nothing
native UnitAttackCancel takes unit whichUnit returns boolean
native UnitCancelTimedLife takes unit whichUnit returns nothing
native GetUnitRemainingTimedLife takes unit whichUnit returns real
native SetUnitRemainingTimedLife takes unit whichUnit, real duration returns nothing
native CreateIllusion takes player whichPlayer, integer unitTypeId, real x, real y, real facing returns unit
native CreateIllusionAtLoc takes player whichPlayer, integer unitTypeId, location whichLocation, real facing returns unit
native CreateIllusionFromUnit takes unit whichUnit returns unit
native GetIllusionDamageDealt takes unit whichUnit returns real
native SetIllusionDamageDealt takes unit whichUnit, real multiplier returns nothing
native GetIllusionDamageReceived takes unit whichUnit returns real
native SetIllusionDamageReceived takes unit whichUnit, real multiplier returns nothing
native SetFrameValueEx takes framehandle whichFrame, real value, boolean isFireEvent returns nothing
native GetFrameStepSize takes framehandle whichFrame returns real
Пометка: когда TextFile API работает только в режиме чтения с этими файлами.
Пометка: это возможно исправит авто апдейтер для последующих версий.
Прокрутить к ресурсу
v1.0.29.105
v1.0.29.106
Прокрутить к ресурсу
v1.0.29.107
Пометка: это происходило потому что UjAPI имело свой код, который позволял включать/выключать быстрое меню, этот код был временно отключён.
Пометка: всё ещё рекомендовано запускать игру через War3.exe для патчей ниже 1.28.
Ред. Unryze
Прокрутить к ресурсу
v1.0.30.110
type agentdatafield extends handle
type buffstringfield extends agentdatafield
constant native ConvertBuffStringField takes integer i returns buffstringfield
native EnableUnitInventory takes unit whichUnit, boolean enable returns nothing
native IsUnitInventoryEnabledEx takes unit whichUnit returns boolean
native EnableUnitInventoryEx takes unit whichUnit, boolean enable returns nothing
native EnableUnitMovement takes unit whichUnit, boolean enable returns nothing
native IsUnitMovementEnabledEx takes unit whichUnit returns boolean
native EnableUnitMovementEx takes unit whichUnit, boolean enable returns nothing
native EnableUnitAttack takes unit whichUnit, boolean enable returns nothing
native IsUnitAttackEnabledEx takes unit whichUnit returns boolean
native EnableUnitAttackEx takes unit whichUnit, boolean enable returns nothing
native SetUnitControl takes unit whichUnit, integer flagValue, boolean isSetFlagValue, boolean ismove, boolean isattack, boolean isinventory returns nothing
native SetUnitLocustFlag takes unit whichUnit, integer flag, integer mode returns nothing
native CreateAbility takes integer abilityId returns ability
native SetAbilityOwner takes ability whichAbility, unit whichUnit returns nothing
native GetBuffIntegerField takes buff whichBuff, abilityintegerfield whichField returns integer
native SetBuffIntegerField takes buff whichBuff, abilityintegerfield whichField, integer value returns boolean
native GetBuffBooleanField takes buff whichBuff, abilittybooleanfield whichField returns boolean
native SetBuffBooleanField takes buff whichBuff, abilittybooleanfield whichField, boolean value returns boolean
native GetBuffRealField takes buff whichBuff, abilityrealfield whichField returns real
native SetBuffRealField takes buff whichBuff, abilityrealfield whichField, real value returns boolean
native CreateBuff takes integer buffId returns buff
native SetBuffOwner takes buff whichBuff, unit whichUnit returns nothing
native ResetBuffFieldData takes buff whichBuff returns boolean Acts same as ResetAbilityFieldData, but for buffs.
In very early stages of development, may be unstable for now.
native UnitAddBuff takes unit whichUnit, buff whichBuff returns boolean Does not add duplicates!
native UnitAddBuffEx takes unit whichUnit, buff whichBuff, boolean checkForDuplicates returns boolean
native UnitAddBuffById takes unit whichUnit, integer buffId returns boolean Does not add duplicates!
native UnitAddBuffByIdEx takes unit whichUnit, integer buffId, boolean checkForDuplicates returns boolean
native UnitEnableInventory takes unit whichUnit, boolean enable, boolean ignoreErrorMessages returns nothing
native UnitEnableMovement takes unit whichUnit, boolean enable, boolean ignoreErrorMessages returns nothing
native UnitEnableAttack takes unit whichUnit, boolean enable, boolean ignoreErrorMessages returns nothing
native IsUnitTruesightImmune takes unit whichUnit returns boolean
native CreateBuilding takes player whichPlayer, integer unitTypeId, real x, real y, real facing returns unit
native CreateBuildingEx takes player whichPlayer, integer unitTypeId, real x, real y, real facing, boolean isAutoBuild, boolean workersCanAssist returns unit
native UnitGetConstructionProgress takes unit whichUnit returns real
native UnitGetConstructionRemainingTime takes unit whichUnit returns real
native UnitSetConstructionRemainingTime takes unit whichUnit, real time returns nothing
native UnitGetUpgradeProgress takes unit whichUnit returns real
native UnitGetUpgradeRemainingTime takes unit whichUnit returns real
native UnitSetUpgradeRemainingTime takes unit whichUnit, real time returns nothing
native HandleListGetDoodadCount takes handlelist whichHandleList returns integer
native HandleListGetDoodadByIndex takes handlelist whichHandleList, integer index returns doodad
native HandleListGetFilterDoodad takes nothing returns doodad
native HandleListGetEnumDoodad takes nothing returns doodad
native HandleListEnumDoodadsInRange takes handlelist whichHandleList, real x, real y, real radius, boolexpr filter returns nothing
native HandleListEnumDoodadsInRangeOfLoc takes handlelist whichHandleList, location whichLocation, real radius, boolexpr filter returns nothing
native HandleListEnumDoodadsInRect takes handlelist whichHandleList, rect whichRect, boolexpr filter returns nothing
native HandleListEnumUnitAbilities takes handlelist whichHandleList, unit whichUnit, boolexpr filter returns nothing
native HandleListEnumUnitBuffs takes handlelist whichHandleList, unit whichUnit, boolexpr filter returns nothing
Пометка: это происходило по причине того, что я использовал метод игры "воскрешения" героя, который банально "восстанавливал" пассивные способности, что и вызывало умножение на 2.
Ред. Unryze
Прокрутить к ресурсу
v1.0.30.111
v1.0.30.112
Пометка: данный метод был использован для теста некоторых баффов, которые требуют кастера, например баффы аур.
Прокрутить к ресурсу
v1.0.31.114
constant unitrealfield UNIT_RF_DEFENSE_BASE = ConvertUnitRealField('udfb') Get Only
constant unitweaponintegerfield UNIT_WEAPON_IF_ATTACK_DAMAGE_BASE_MINIMUM = ConvertUnitWeaponIntegerField('udm1') Get Only
constant unitweaponintegerfield UNIT_WEAPON_IF_ATTACK_DAMAGE_BASE_MAXIMUM = ConvertUnitWeaponIntegerField('udh1') Get Only
Прокрутить к ресурсу
v1.0.31.115
- Новые Константы:
constant unitweaponintegerfield UNIT_WEAPON_IF_ATTACK_DAMAGE_BONUS_FROM_STATS = ConvertUnitWeaponIntegerField('udbs')Прокрутить к ресурсу
v1.0.31.116
Прокрутить к ресурсу
v1.0.32.118
native CreateIllusionFromUnitEx takes unit whichUnit, boolean copyPassives returns unit
native GetAbilityOwningItem takes ability whichAbility returns item
native ShowUnitAbilityEx takes unit whichUnit, integer abilityId, boolean show, boolean checkDuplicates returns nothing
native DisableUnitAbilityEx takes unit whichUnit, integer abilityId, boolean hide, boolean disable, boolean checkDuplicates returns nothing
native EnableUnitAbilityEx takes unit whichUnit, integer abilityId, boolean show, boolean enable, boolean checkDuplicates returns nothing
Прокрутить к ресурсу
v1.0.33.121
constant originframetype ORIGIN_FRAME_ITEM_BUTTON_COOLDOWN_INDICATOR = ConvertOriginFrameType(47)
constant originframetype ORIGIN_FRAME_ITEM_BUTTON_AUTOCAST_FRAME = ConvertOriginFrameType(48)
constant originframetype ORIGIN_FRAME_ITEM_BUTTON_CHARGES_FRAME = ConvertOriginFrameType(49)
constant originframetype ORIGIN_FRAME_ITEM_BUTTON_CHARGES_TEXT = ConvertOriginFrameType(50)
native SetProjectileMatrixScale takes projectile whichProjectile, real x, real y, real z returns nothing
native SetWidgetMatrixScale takes widget whichWidget, real x, real y, real z returns nothing
native ResetWidgetMatrix takes widget whichWidget returns nothing
native SetDestructableMatrixScale takes destructable whichDestructable, real x, real y, real z returns nothing
native ResetDestructableMatrix takes destructable whichDestructable returns nothing
native SetItemMatrixScale takes item whichItem, real x, real y, real z returns nothing
native ResetItemMatrix takes item whichItem returns nothing
native IsUnitAutoOrientationEnabled takes unit whichUnit returns boolean
native UnitEnableAutoOrientation takes unit whichUnit, boolean enable returns nothing
native GetUnitYaw takes unit whichUnit returns real
native SetUnitYaw takes unit whichUnit, real yaw returns boolean
native GetUnitPitch takes unit whichUnit returns real
native SetUnitPitch takes unit whichUnit, real pitch returns boolean
native GetUnitRoll takes unit whichUnit returns real
native SetUnitRoll takes unit whichUnit, real roll returns boolean
native SetUnitMatrixScale takes unit whichUnit, real x, real y, real z returns nothing
native ResetUnitMatrix takes unit whichUnit returns nothing
native SetUnitOrientation takes unit whichUnit, real yaw, real pitch, real roll returns nothing
native SetUnitOrientationEx takes unit whichUnit, real yaw, real pitch, real roll, integer eulerOrder returns nothing
native ResetFrameSpriteMatrix takes framehandle whichFrame returns nothing
Пометка: эта ошибка была "представлена" когда был оптимизирован метод запуска 1.28f.
Прокрутить к ресурсу
v1.0.33.122
Пометка 1: Дополнительные проверки наверное были перебором и скорее всего не нужны.
Пометка 2: Возможно эти проверки в будущем будут возвращены как настраиваемые.
Прокрутить к ресурсу
v1.0.34.124
native AntiHackEnableEx takes boolean enable, boolean isModuleCheck, boolean isProcessCheck returns nothing
native AntiHackEnableModuleCheck takes boolean enable returns nothing
native AntiHackEnableProcessCheck takes boolean enable returns nothing
Прокрутить к ресурсу
v1.0.35.127
constant originframetype ORIGIN_FRAME_TRAINABLE_BUTTON = ConvertOriginFrameType(51)
constant originframetype ORIGIN_FRAME_CARGO_BUTTON = ConvertOriginFrameType(52)
constant originframetype ORIGIN_FRAME_GROUP_BUTTON = ConvertOriginFrameType(53)
native RemoveProjectile takes projectile whichProjectile returns nothing
Пометка: это событие происходит каждое обновление экрана для фрейма, я НЕ советую использовать это событие, если только оно именно необходимо.
Пометка: эта система банально ищет схожие/идентичные события и удаляет их из цикла посылаемых пакетов.
Прокрутить к ресурсу
v1.0.35.128
Пометка: IsEventAttack теперь работает правильно, UnitDamageTarget всегда считается "магической" атакой, однако если установлен буль isAttack, то добавится 0x100 флаг - "урон при попадании" (то бишь старая проверка на атаку).
Прокрутить к ресурсу
v1.0.35.129
Прокрутить к ресурсу
v1.0.36.132
native GetStringCount takes nothing returns integer
native IsUnitTargetable takes unit whichUnit returns boolean
native SetUnitTargetable takes unit whichUnit, boolean targetable returns nothing
native GetFrameTextColourEx takes framehandle whichFrame, integer stateId returns integer 0 = font | 1 = highlighted | 2 = disabled | 3 = shadow
native GetFrameTextColour takes framehandle whichFrame returns integer
native SetFrameTextColourEx takes framehandle whichFrame, integer stateId, integer colour returns nothing
Пометка: это очень старая критическая ошибка самой игры.
Пометка 1: другие игроки МОГУТ контролировать юнитов этого игрока, так что ошибка локальная.
Пометка 2: эта ошибка оказалась не связанной с выдачей контролей игроков.
Прокрутить к ресурсу
v1.0.36.133
Apos - фаталит если кастер не докастовал способность и жертва разложилась.
Прокрутить к ресурсу
v1.0.36.134
Прокрутить к ресурсу
v1.0.37.137
type sprite extends agent
constant camerafield CAMERA_FIELD_NEARZ = ConvertCameraField(7)
constant camerafield CAMERA_FIELD_LOCAL_PITCH = ConvertCameraField(8)
constant camerafield CAMERA_FIELD_LOCAL_YAW = ConvertCameraField(9)
constant camerafield CAMERA_FIELD_LOCAL_ROLL = ConvertCameraField(10) Not implemented yet
native GetDoodadAnimationOffsetPercent takes doodad whichDoodad returns real
native GetSpecialEffectSprite takes effect whichEffect returns sprite
native GetSpecialEffectAnimationOffsetPercent takes effect whichEffect returns real
native GetTrackableSprite takes trackable whichTrackable returns sprite
native GetTrackableAnimationOffsetPercent takes trackable whichTrackable returns real
native GetWidgetSprite takes widget whichWidget returns sprite
native GetWidgetAnimationOffsetPercent takes widget whichWidget returns real
native GetDestructableSprite takes destructable whichDestructable returns sprite
native GetDestructableAnimationOffsetPercent takes destructable whichDestructable returns real
native GetItemSprite takes item whichItem returns sprite
native GetItemAnimationOffsetPercent takes item whichItem returns real
native GetUnitSprite takes unit whichUnit returns sprite
native GetUnitAnimationOffsetPercent takes unit whichUnit returns real
native LaunchProjectileAt takes projectile whichProjectile, real x, real y, real z returns nothing
native GetProjectileSprite takes projectile whichProjectile returns sprite
native GetProjectileAnimationOffsetPercent takes projectile whichProjectile returns real
native SetProjectileTargetPointX takes projectile whichProjectile, real x returns nothing
native SetProjectileTargetPointY takes projectile whichProjectile, real y returns nothing
native SetProjectileTargetPointZ takes projectile whichProjectile, real z returns nothing
native SetProjectileTargetPositionLoc takes projectile whichProjectile, location loc returns nothing
native GetFrameSprite takes framehandle whichFrame returns sprite
native GetFrameSpriteAnimationOffsetPercent takes framehandle whichFrame returns real
native CreateSprite takes boolean isUber returns sprite
native AttachSpriteToTarget takes sprite whichSprite, sprite targetSprite, string attachPointName returns sprite
native AddSpriteToTarget takes string modelName, sprite targetSprite, string attachPointName returns sprite
native GetSpriteChildrenCount takes sprite whichSprite returns integer
native GetSpriteChildById takes sprite whichSprite, integer index returns sprite
native RemoveSprite takes sprite whichSprite returns nothing
native IsSpriteUber takes sprite whichSprite returns boolean
native GetSpriteX takes sprite whichSprite returns real
native GetSpriteY takes sprite whichSprite returns real
native GetSpriteZ takes sprite whichSprite returns real
native GetSpriteHeight takes sprite whichSprite returns real
native GetSpritePositionLoc takes sprite whichSprite returns location
native SetSpritePositionEx takes sprite whichSprite, real x, real y, real z returns nothing
native SetSpritePosition takes sprite whichSprite, real x, real y returns nothing
native SetSpritePositionLoc takes sprite whichSprite, location loc returns nothing
native SetSpriteX takes sprite whichSprite, real x returns nothing
native SetSpriteY takes sprite whichSprite, real y returns nothing
native SetSpriteZ takes sprite whichSprite, real z returns nothing
native SetSpriteHeight takes sprite whichSprite, real height returns nothing
native GetSpriteScreenX takes sprite whichSprite returns real
native GetSpriteScreenY takes sprite whichSprite returns real
native GetSpriteScale takes sprite whichSprite returns real
native SetSpriteScale takes sprite whichSprite, real scale returns nothing
native GetSpriteTimeScale takes sprite whichSprite returns real
native SetSpriteTimeScale takes sprite whichSprite, real timescale returns nothing
native SetSpritePlayerColour takes sprite whichSprite, playercolor color returns nothing
native GetSpriteColour takes sprite whichSprite returns integer
native SetSpriteColour takes sprite whichSprite, integer colour returns nothing
native SetSpriteAlpha takes sprite whichSprite, integer alpha returns nothing
native SetSpriteVertexColour takes sprite whichSprite, integer red, integer green, integer blue, integer alpha returns nothing
native SetSpriteMatrixScale takes sprite whichSprite, real x, real y, real z returns nothing
native ResetSpriteMatrix takes sprite whichSprite returns nothing
native SetSpriteOrientationEx takes sprite whichSprite, real yaw, real pitch, real roll, integer eulerOrder returns nothing
native GetSpriteYaw takes sprite whichSprite returns real
native SetSpriteYaw takes sprite whichSprite, real yaw returns nothing
native GetSpriteFacing takes sprite whichSprite returns real
native SetSpriteFacing takes sprite whichSprite, real facing returns nothing
native GetSpritePitch takes sprite whichSprite returns real
native SetSpritePitch takes sprite whichSprite, real pitch returns nothing
native GetSpriteRoll takes sprite whichSprite returns real
native SetSpriteRoll takes sprite whichSprite, real roll returns nothing
native SetSpriteOrientation takes sprite whichSprite, real yaw, real pitch, real roll returns nothing
native SetSpriteMaterialTexture takes sprite whichSprite, string textureName, integer materialId, integer textureIndex returns nothing
native SetSpriteTexture takes sprite whichSprite, string textureName, integer textureIndex returns nothing
native SetSpriteReplaceableTexture takes sprite whichSprite, string textureName, integer textureIndex returns nothing
native SetSpriteModel takes sprite whichSprite, string modelName returns nothing
native SetSpriteModelEx takes sprite whichSprite, string modelName, integer playerColour returns nothing
native GetSpriteModelObjectPositionX takes sprite whichSprite, string whichObject returns real
native GetSpriteModelObjectPositionY takes sprite whichSprite, string whichObject returns real
native GetSpriteModelObjectPositionZ takes sprite whichSprite, string whichObject returns real
native GetSpriteModelObjectPositionLoc takes sprite whichSprite, string whichObject returns location
native GetSpriteCurrentAnimationId takes sprite whichSprite returns integer
native GetSpriteCurrentAnimationName takes sprite whichSprite returns string
native SetSpriteAnimationWithRarityByIndex takes sprite whichSprite, integer animIndex, raritycontrol rarity returns nothing
native SetSpriteAnimationWithRarity takes sprite whichSprite, string animationName, raritycontrol rarity returns nothing
native SetSpriteAnimationByIndex takes sprite whichSprite, integer animIndex returns nothing
native SetSpriteAnimation takes sprite whichSprite, string animationName returns nothing
native QueueSpriteAnimationByIndex takes sprite whichSprite, integer animIndex returns nothing
native QueueSpriteAnimation takes sprite whichSprite, string animationName returns nothing
native GetSpriteAnimationOffsetPercent takes sprite whichSprite returns real
native SetSpriteAnimationOffsetPercent takes sprite whichSprite, real percent returns nothing
Пометка: приоритет: CSimpleFrame, CLayer (под курсором), CLayer (подсвеченный/в фокусе).
Пометка: эта информация больше для меня, так как эти изменения никак не должны отразиться на игре.
Пометка: чтобы пользоваться этим изменением в JNGP нужно как-то обновить pjass, чтобы он позволял писать более 1024 символов в строке.
Прокрутить к ресурсу
v1.0.37.138
Пометка: ошибка происходила из-за обрезания старого кода, новый метод не был идеален для более простых типов агентов.
Пометка: эта ошибка происходила случайно на определённых картах.
Прокрутить к ресурсу
v1.0.38.140
native MathRealModulo takes real dividend, real divisor returns real
native MathIntegerModulo takes integer dividend, integer divisor returns integer
Note: I actually registered these natives long time ago, but forgot to add them to common.j.
native GetSpriteModel takes sprite whichSprite returns string
native GetSpecialEffectModel takes effect whichEffect returns string
native GetTrackableModel takes trackable whichTrackable returns string
native GetDestructableVariation takes destructable whichDestructable returns integer
native SetDestructableVariation takes destructable whichDestructable, integer variation returns nothing
native SetDestructableVariationEx takes destructable whichDestructable, integer variation, boolean ignoreStateCheck returns nothing ignoreStateCheck will skip checking for dead/alive variations of the model.
native IsDestructableBlighted takes destructable whichDestructable returns boolean
native SetDestructableBlighted takes destructable whichDestructable, boolean flag returns nothing
native SetDestructablePositionWithZ takes destructable whichDestructable, real x, real y, real z returns nothing
native SetDestructableZ takes destructable whichDestructable, real z returns nothing
native GetDestructableModel takes destructable whichDestructable returns string
native GetItemModel takes item whichItem returns string
native SetUnitVisibleByPlayer takes unit whichUnit, player whichPlayer, boolean flag returns nothing
native SetUnitDetectableByPlayer takes unit whichUnit, player whichPlayer, boolean flag returns nothing
native GetUnitModel takes unit whichUnit returns string
native GetProjectileModel takes projectile whichProjectile returns string
native GetFrameSpriteModel takes framehandle whichFrame returns string
native GetUnitLocustFlag takes unit whichUnit returns integer
Прокрутить к ресурсу
v1.0.39.142
type renderstage extends handle
constant native ConvertRenderStage takes integer i returns renderstage
constant renderstage RENDER_STAGE_SKYBOX = ConvertRenderStage(0)
constant renderstage RENDER_STAGE_TERRAIN = ConvertRenderStage(1)
constant renderstage RENDER_STAGE_FOG_OF_WAR = ConvertRenderStage(2)
constant renderstage RENDER_STAGE_TERRAIN_SHADOW = ConvertRenderStage(3)
constant renderstage RENDER_STAGE_WATER_SHADOW = ConvertRenderStage(4)
constant renderstage RENDER_STAGE_BLIGHT = ConvertRenderStage(5)
constant renderstage RENDER_STAGE_WEATHER = ConvertRenderStage(6)
constant renderstage RENDER_STAGE_SELECTION_CIRCLE = ConvertRenderStage(7)
constant renderstage RENDER_STAGE_INDICATOR = ConvertRenderStage(8)
constant renderstage RENDER_STAGE_FOOTPRINT = ConvertRenderStage(9)
constant renderstage RENDER_STAGE_DOODAD = ConvertRenderStage(10)
constant renderstage RENDER_STAGE_SPRITE = ConvertRenderStage(11)
constant renderstage RENDER_STAGE_SELECTION_SPRITE = ConvertRenderStage(12)
constant renderstage RENDER_STAGE_DECORATION = ConvertRenderStage(13)
constant renderstage RENDER_STAGE_WATER = ConvertRenderStage(14)
constant renderstage RENDER_STAGE_SELECTION_BOX = ConvertRenderStage(15)
constant renderstage RENDER_STAGE_TEXTURE = ConvertRenderStage(16)
constant renderstage RENDER_STAGE_OCCLUSION_MASK = ConvertRenderStage(17)
constant renderstage RENDER_STAGE_BUILDING = ConvertRenderStage(18)
constant renderstage RENDER_STAGE_UBERSPLAT = ConvertRenderStage(19)
constant renderstage RENDER_STAGE_LIGHTNING = ConvertRenderStage(20)
constant renderstage RENDER_STAGE_TEXTTAG = ConvertRenderStage(21)
native GetFPS takes nothing returns real
native GetAttackSpeedMinBonus takes nothing returns real
native SetAttackSpeedMinBonus takes real value returns nothing
native GetAttackSpeedMaxBonus takes nothing returns real
native SetAttackSpeedMaxBonus takes real value returns nothing
native GetMoveSpeedMinAllowed takes nothing returns real
native SetMoveSpeedMinAllowed takes real value returns nothing
native GetMoveSpeedMaxAllowed takes nothing returns real
native SetMoveSpeedMaxAllowed takes real value returns nothing
native IsSelectionEnabled takes nothing returns boolean
native EnableSelection takes boolean enable returns nothing
native IsSelectionCircleEnabled takes nothing returns boolean
native EnableSelectionCircle takes boolean enable returns nothing
native IsTargetIndicatorEnabled takes nothing returns boolean
native EnableTargetIndicator takes boolean enable returns nothing
native IsRenderStage takes renderstage renderStage returns boolean
native EnableRenderStage takes renderstage renderStage, boolean enable returns nothing
native IsStatbarEnabled takes nothing returns boolean
native EnableStatbar takes boolean enable returns nothing
native HandleListGetSpriteCount takes handlelist whichHandleList returns integer
native HandleListGetSpriteByIndex takes handlelist whichHandleList, integer index returns sprite
native HandleListGetFilterSprite takes nothing returns sprite
native HandleListGetEnumSprite takes nothing returns sprite
native SaveSpriteHandle takes hashtable table, integer parentKey, integer childKey, sprite whichsprite returns boolean
native SaveDoodadHandle takes hashtable table, integer parentKey, integer childKey, doodad whichDoodad returns boolean
native SaveTextFileHandle takes hashtable table, integer parentKey, integer childKey, textfilehandle whichFile returns boolean
native LoadSpriteHandle takes hashtable table, integer parentKey, integer childKey returns sprite
native LoadDoodadHandle takes hashtable table, integer parentKey, integer childKey returns doodad
native LoadTextFileHandle takes hashtable table, integer parentKey, integer childKey returns textfilehandle
Попробовал запустить на предыдущей, 1.0.38.140, крита не словил...
Теперь искать, где фаталит...
Ред. Unryze
Прокрутить к ресурсу
v1.0.39.143
Сама моделька остается в месте где изначально юнит и был и не двигается дальше вместе с юнитом. Сам юнит теперь отображается только в виде тени с кругом выделения.
Ред. Unryze
Прокрутить к ресурсу
v1.0.39.144
Прокрутить к ресурсу
v1.0.39.145
Ред. Unryze
Прокрутить к ресурсу
v1.0.40.147
native GetWheelDelta takes nothing returns integer
native GetVisionMax takes nothing returns real
native SetVisionMax takes real value returns nothing
Пометка: эта проблема связана с SLK оптимизацией.
Пример: "Ubertip=text", это значит, что заклинание на всех уровнях разделяет "text" как подсказку, однако внутри движка выделяется лишь 1 индекс.
Прокрутить к ресурсу
v1.1.0.152
- Новые Типы:
type destructablestringfield extends agentdatafield- Новые Конверторы:
constant native ConvertDestructableStringField takes integer i returns destructablestringfield- Новые Константы:
constant destructablestringfield DESTRUCTABLE_SF_NAME = ConvertDestructableStringField('bnam')constant destructablestringfield DESTRUCTABLE_SF_MODEL = ConvertDestructableStringField('bfil')
- Удалённые Нативные Функции:
native GetEventDamageAbilityId takes nothing returns integer- Новые Нативные Функции:
native GetGameVersion takes nothing returns stringnative GetDestructableStringField takes destructable whichDestructable, destructablestringfield whichField returns string
native SetDestructableStringField takes destructable whichDestructable, destructablestringfield whichField, string value returns boolean
native ItemAddAbility takes item whichItem, ability whichAbility returns boolean
native ItemRemoveAbility takes item whichItem, ability whichAbility returns boolean
native ItemAddAbilityId takes item whichItem, integer abilCode returns boolean
native ItemRemoveAbilityId takes item whichItem, integer abilCode returns boolean
native GetProjectileSourceAbility takes projectile whichProjectile returns ability
- Проведён большой рефакторинг кода, полностью переписаны все методы логирования на утилизацию нового std::format для полного отброса строк C-стиля.
Пометка: это изменение повлекло увеличение веса на 200кб, так как std::format достаточно увесистый.Прокрутить к ресурсу
v1.1.0.153
Прокрутить к ресурсу
v1.1.0.154
Прокрутить к ресурсу
v1.1.0.155
Пометка: это произошло из-за внутренней рекурсии, которую я же и создал, если получаемый текст был пустой или равен nullptr.
Прокрутить к ресурсу
v1.1.0.156
Пометка: это было связано с предыдущим исправлением 0-левого урона.
Прокрутить к ресурсу
v1.1.1.158
constant playerunitevent EVENT_PLAYER_UNIT_ABILITY_ADDED = ConvertPlayerUnitEvent(503)
constant playerunitevent EVENT_PLAYER_UNIT_ABILITY_REMOVED = ConvertPlayerUnitEvent(504)
constant playerunitevent EVENT_PLAYER_UNIT_ABILITY_AUTOCAST_ON = ConvertPlayerUnitEvent(505)
constant playerunitevent EVENT_PLAYER_UNIT_ABILITY_AUTOCAST_OFF = ConvertPlayerUnitEvent(506)
constant unitevent EVENT_UNIT_ABILITY_ADDED = ConvertUnitEvent(513)
constant unitevent EVENT_UNIT_ABILITY_REMOVED = ConvertUnitEvent(514)
constant unitevent EVENT_UNIT_ABILITY_AUTOCAST_ON = ConvertUnitEvent(515)
constant unitevent EVENT_UNIT_ABILITY_AUTOCAST_OFF = ConvertUnitEvent(516)
constant originframetype ORIGIN_FRAME_FPS_TEXT = ConvertOriginFrameType(54)
constant originframetype ORIGIN_FRAME_MEMORY_TEXT = ConvertOriginFrameType(55)
native GetMapFogZ takes nothing returns real
native SetMapFogZ takes real z returns nothing
native GetMapFogColour takes nothing returns integer
native SetMapFogColour takes integer colour returns nothing
native IsAbilityAutocastEnabled takes ability whichAbility returns boolean
Прокрутить к ресурсу
v1.1.1.159
Ред. Unryze
Прокрутить к ресурсу
v1.1.1.160
Пометка: это в целом плохой подход, когда юнит спрятан вы не должны ничего с ним делать, отобразите его в начале, а потом уже делайте что нужно!
Прокрутить к ресурсу
v1.1.2.163
native TextFileRead takes textfilehandle whichTextFile returns string
native UnitAddItemToSlot takes unit whichUnit, item whichItem, integer itemSlot returns boolean
native ReviveUnit takes unit whichUnit, real x, real y returns boolean
native ReviveUnitLoc takes unit whichUnit, location loc returns boolean
Пометка: это изменение по большей части затрагивает новое АПИ юнитов, которое было через-чур строгое к скрытым/убитым/удалённым юнитам.
Ред. ScorpioT1000
Прокрутить к ресурсу
v1.1.3.165
type connectiontype extends handle
constant native ConvertConnectionType takes integer i returns connectiontype
constant connectiontype CONNECTION_TYPE_SINGLE_PLAYER = ConvertConnectionType(0)
constant connectiontype CONNECTION_TYPE_LOCAL_GAME = ConvertConnectionType(1)
constant connectiontype CONNECTION_TYPE_BATTLE_NET = ConvertConnectionType(2)
constant connectiontype CONNECTION_TYPE_REPLAY = ConvertConnectionType(3)
native GetConnectionType takes nothing returns connectiontype
Пометка: эти имена отвечают за кнопки заклинаний. Пример: GetFrameByName( "CommandButton_0", 0 ).
Пометка: эти имена отвечают за кнопки предметов. Пример: GetFrameByName( "CommandButton_0", 1 ).
Ред. Unryze
Прокрутить к ресурсу
v1.1.4.167
Ред. Unryze
Прокрутить к ресурсу
v1.1.5.168
Прокрутить к ресурсу
v1.1.6.169
Ред. Unryze
Прокрутить к ресурсу
v1.1.7.171
v1.1.7.172 (Хотфикс):
Прокрутить к ресурсу
v1.1.7.173 (Хотфикс)
Прокрутить к ресурсу
v1.1.7.174 (Хотфикс)
Ред. Unryze
Прокрутить к ресурсу
v1.1.8.178
Ред. Unryze
Прокрутить к ресурсу
v1.1.9.181
v1.1.9.182 (Хотфикс)
v1.1.9.183 (Хотфикс)
v1.1.9.184 (Хотфикс)
v1.1.9.185 (Хотфикс)
v1.1.9.186 (Хотфикс)
v1.1.9.187 (Хотфикс)
Прокрутить к ресурсу
v1.1.10.190
Ред. Unryze
Прокрутить к ресурсу
v1.1.10.191
v1.1.10.192
Прокрутить к ресурсу
v1.1.11.199
Прокрутить к ресурсу
v1.1.11.202
Прокрутить к ресурсу
v1.1.12.205
Прокрутить к ресурсу
v1.1.13.208
Прокрутить к ресурсу
v1.1.13.209
Ред. DarkLigthing
Ред. DarkLigthing
А wine это предшественник современной эмуляции, который называется Proton.
На моей деке, которой я уже пользуюсь как единственным пк стоит Windows 11 и батарейка это откровенно не проблема. Вот для портативного устройства x86 архитектура процессора это проблема для батарейки, лучше был бы ARM, но тогда игры с пк не запустились бы... А в целом это просто офигенная штука, для многих игр клавиатура и мышь по моему опыту это избыточность.
Прокрутить к ресурсу
v1.1.13.210
Прокрутить к ресурсу
v1.1.14.214
Прокрутить к ресурсу
v1.1.14.215
Ред. nazarpunk
Ред. Borodach
Unryze, это для нас проще некуда. Для модмейкера проще некуда. Но обычный игрок совершенно другая категория. Его не заботят технические детали, да и не должны заботиться, его смысл потреблять продукт. Допустим, распаковать в папку с игрой и пользоваться - годится, равно как и установка в 1 клик, но не более. Иначе игрофирмы не делали бы никаких простых установок )
Ред. PT153
Значение level <= 1 - возвращает 0.
level = 2 - возвращает 200 или другое значение из таблицы в константах.
level = 3 - 500 или другое значение по формуле/из таблицы.
level = 4 - 900 или другое значение по формуле/из таблицы.
И так далее.
Ред. Unryze
GetHeroExperienceNeeded - внутри движка требует юнита, чтобы проверить данные и провести пересчёты, ибо юнит может иметь флаг RoC и просчёт опыта будет по-другому.
Ред. Unryze
Прокрутить к ресурсу
v1.1.15.218
UjAPI.dll
Launcher
Проект может решить проблему ванильного варкрафта с недостающим функционалом.
Надеюсь у автора не опустятся руки.
Ред. Svintus
Я не знаю, всегда ли ты так пишешь\писал - но твои сообщения очень странные.
Если это так, то на это я уже ответил, вот тут "Для развития проекта неплохо бы сделать подробную документацию по функциям. Так как отсутствие таковой отталкивает новичков, а старички рано или поздно закончатся.".
- Я новичок, который 3 дня тыкается в документацию и у него с трудом получается что-либо.
Я тот, кому нужна помощь, а не тот, кто может оказать её (по крайней мере в оформлении документации я точно не могу помочь).