Добавлен , опубликован

v1.1.15.218

UjAPI.dll

1. Новые Константы:
	constant frameeventtype				FRAMEEVENT_FRAME_ITEM_CHANGED								= ConvertFrameEventType(10)
	constant controlstyleflag 			CONTROL_STYLE_DRAW											= ConvertControlStyleFlag(32)
2. Новые Нативные Функции:
	native BitwiseShiftLeftLogical							takes integer i, integer bitsToShift returns integer
	native BitwiseShiftRightLogical							takes integer i, integer bitsToShift returns integer
	//
	native CountUnitAbilities								takes unit whichUnit, boolean alsoCountBuffs returns integer
	native CountUnitBuffs									takes unit whichUnit returns integer
	//
	native GetBuffOwningAbility								takes buff whichbuff returns ability // experimental
	native SetBuffOwningAbility								takes buff whichBuff, ability whichAbility returns nothing // experimental
	//
	native SetProjectileSourceAbility						takes projectile whichProjectile, ability whichAbility returns nothing
	//
	native GetFrameChildrenCountEx							takes framehandle whichFrame, integer listId returns integer // listId: CFrames: 0 for default | 1 for layouts (will return CLayer) | CSimpleFrames 0 - 6 | CSimpleRegions any number, as they only have 1 child node.
	native GetFrameChildEx									takes framehandle whichFrame, integer listId, integer index returns framehandle
	native GetFrameTextAlignmentValue						takes framehandle whichFrame, integer id returns real // CSimpleFontString: 0 - x, 1 - y | CTextFrame: 0 - x, 1 - y, 2 - x Shadow, 3 - y Shadow, 4 = FontJustificationOffset
	native SetFrameTextAlignmentValue						takes framehandle whichFrame, integer id, real offset returns nothing
	native GetTriggerFrameTargetFrame						takes nothing returns framehandle
3. Исправлена поддержка отрицательных чисел с сеттерами цифровых полей, ранее они обрабатывались без знака.
4. CListBox API теперь работает с CMenu.
5. CListBox API теперь работает с CPopupMenu.
6. CListBox API теперь работает с CRadioGroup.
7. GetFrameTextColourEx теперь работает с CListBoxItem.
8. SetFrameTextColourEx теперь работает с CListBoxItem.
9. SetFrameFont теперь работает с CTimerTextFrame.
10. SetFrameFont теперь работает с CListBoxItem.
11. SetFrameTextAlignment теперь работает с CTimerTextFrame.
12. SetFrameTextAlignment теперь работает с CListBoxItem.
13. SetFrameTextVerticalAlignment теперь работает с CTimerTextFrame.
14. SetFrameTextVerticalAlignment теперь работает с CListBoxItem.
15. SetFrameTextHorizontalAlignment теперь работает с CTimerTextFrame.
16. SetFrameTextHorizontalAlignment теперь работает с CListBoxItem.
17. FRAMEEVENT_POPUPMENU_ITEM_CHANGED теперь работает с CListBox.
18. AddFrameListItem теперь работает с CRadioGroup.
19. FRAMEEVENT_POPUPMENU_ITEM_CHANGED теперь работает с CRadioGroup.
20. Исправлено SetLightningTargetX устанавливающее x источника, вместо цели.
21. Исправлено SetLightningTargetY устанавливающее y источника, вместо цели.
22. Исправлено SetLightningTargetZ устанавливающее z источника, вместо цели.
23. Исправлено SetLightningTargetPositionLoc устанавливающее позицию источника, вместо цели.
24. Исправлено GroupContainsUnit всегда возвращающее true.
25. Перенесён весь внутренний код jFramea API во FrameAPI. Это пометка для себя, данное изменение не должно повлиять ни на что.
26. Исправлено BlzSetUnitMaxMana устанавливающее максимальное здоровье вместо маны.
27. Исправлено не работающее SetFrameTextHorizontalAlignment.
28. Исправлено SetFrameTextColourEx для CSimpleFontString.

Launcher

1. CLI теперь может обрабатывать эти warcraft 3 комманды: d3d, opengl, swtnl, classic, datadir, gametype, fullscreen.
2. Добавлена опция Dev Mode для AngelScript.
3. Добавлена опция Console для AngelScript.
4. Добавлена опция No Warnings для AngelScript.
5. Добавлена опция "dev" CLI команда для AngelScript.
6. Добавлена опция "console" CLI команда для AngelScript.
7. Добавлена опция "nowarnings" CLI команда для AngelScript.
8. Добавлен модуль FastMenu.dll в Modules.
9. Добавлена опция Fast Menu для Launcher.
10. Добавлена -fastmenu CLI команда для Launcher.
`
ОЖИДАНИЕ РЕКЛАМЫ...
28
  1. а если я таким образом нарочно краш вызывал?
20
  1. а если я таким образом нарочно краш вызывал?
Значит теперь этого сделать не получится, можно всегда просто кикать игрока через RemovePlayer и т.д. Явно абузить дырки - не хорошо. :)
20
Вышла новая версия! Прокрутить к ресурсу

v1.0.1.9

  1. Новые нативные функции:
    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
  1. Исправлена ошибка по которой утекало 20 байт в CScriptEvent ввиду повторного выделения памяти.
  2. Исправлено неверное название нативной функции (SetFrameFront) на SetFrameFont.
  3. Включены эти нативные функции:
    1. TriggerRegisterFrameEvent
    2. GetTriggerFrame
    3. GetTriggerFrameEvent
  4. Исправлена критическая ошибка, если была использована какая-либо нативная функция фреймов, где в аргументах фигурировал string.
  5. Все кейсы HotKey исправлены на Hotkey.
  6. Все новые геттеры и сеттеры связанные с кнопками используют тип oskeytype.
  7. MorphUnitToTypeIdEx расшифрована, теперь все аргументы имеют правильные названия.
  8. Исправлена ошибка, по которой новые нативки работали лишь у хоста в локальной/игре по сети.
  9. Исправлен запуск w3l и прочих сторонних "запускаторов" игры через UjAPI.exe.
    Пометка: сторонние "запускаторы" не поддерживают мульти-окно и War3Lua дебаг режим, для их работы нужно запускать игру через war3.exe и прочее.
  10. Добавлен модуль War3_Lua.dll в папку Modules.
20
Вышла новая версия! Прокрутить к ресурсу

v1.0.2.12

  1. Новые нативные функции:
    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
  1. Весь common.j был отредактирован и "оттабулирован" (это изменение никак не влияет на производительность, только на сменатику и синтаксис).
  2. Нативные функции GroupAddGroupEx и GroupRemoveGroupEx теперь возвращают целочисленное значение, вместо флага (то есть сколько юнитов было добавлено/удалено).
  3. Добавлены новые нативные типы вместе с их конвертаторами и глобальными константами:
    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
  1. Исправлена критическая ошибка от нативной функции CreateFrameByType на патче 1.27a.
  2. Исправлены все нативные функции SpecialEffectAPI, большинство из них не работало/вызывало краш.
20
Вышла новая версия! Прокрутить к ресурсу

v1.0.3.15

  1. Исправлена критическая ошибка от нативных функций имеющих string в аргументах из Item API.
  2. Новые нативные функции:
    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
  1. Внутренние флаги MorphUnitToTypeId isUpdateHealthState, isUpdateManaState и isResetBuildingAnimation теперь являются "истиной", ранее были "ложью".
  2. MorphUnitToTypeId теперь также восстанавливает "белое" значение атаки до оригинального показателя.
  3. SetUnitBaseProperNameById изменена последовательность аргументов на "unit, integer, string" заместо "unit, string, integer".
  4. Исправлены все "сеттеры" для SpecialEffectAPI.
  5. Исправлены эти нативные функции:
    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
20
Вышла новая версия! Прокрутить к ресурсу

v1.0.4.22

  1. Нативная функция IsAbilityShown переименована в IsAbilityVisible.
  2. Все возвращаемые типы сеттеров в AbilityAPI были изменены с "integer" на "nothing", ввиду того, что возвращаемые данные были не валидными.
  3. Новые нативные функции:
    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
  4. Расшифрованы эти нативные функции:
    native SilenceAbility takes ability whicAbility, boolean hide, boolean disable returns nothing
    native UnsilenceAbility takes ability whicAbility, boolean show, boolean enable returns nothing
Теперь аргументы этих функций имеют нормальные названия.
  1. Исправлена нативная функция GetUnitAblity, по каким-то причинам, она не брала заклинания выше 1 уровня.
  2. Пере-пере-исправлены сеттеры x/y/z в SpecialEffectAPI.
  3. Исправлена неправильная проверка флагов в нативной функции IsAbilityOnCooldown.
  4. Исправлена неправильная проверка флагов в нативной функции IsFrameVisible.
  5. Исправлена нативная функция SetUnitCurrentSight.
  6. TriggerRegisterFrameEvent теперь работает верно и полноценно создаёт новый ивент для заданного фрейма.
    Пометка: пока что реализованы не все ивенты, а так же эти ивенты пока что локальные, однако скоро они будут работать и в мультиплеере.
  7. Исправлена критическая ошибка когда Нейтральный Пассивный игрок был подвержен урону.
  8. Исправлена критическая ошибка при запуске карты на 1.28.5.
20
Вышла новая версия! Прокрутить к ресурсу

v1.0.5.31

  1. Новые типы:
    type timetype extends handle
  2. Новые конвертеры:
    constant native ConvertTimeType takes integer i returns timetype
  3. Новые константы:
    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 )
  4. Новые нативные функции:
    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
  5. Улучшение кода и увеличение производительности.
20
Вышла новая версия! Прокрутить к ресурсу

v1.0.6.34

  1. Новые Типы:
type variabletype extends handle
  1. Новые Конверторы:
constant native ConvertVariableType takes integer i returns variabletype
  1. Новые Константы:
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)
  1. Новые Нативные Функции:
native GetSyncedVariableType takes nothing returns variabletype
native 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
  1. Исправлен обработчик Net пакетов синхронизации, теперь он более не сталкивается с оригинальным обработчиком, приводя к потере пакетов.
  2. Исправлена критическая ошибка вызываемая этими нативными функциями:
native SilenceAbility takes ability whichAbility, boolean hide, boolean disable returns nothing
native UnsilenceAbility takes ability whichAbility, boolean show, boolean enable returns nothing
20
Вышла новая версия! Прокрутить к ресурсу

v1.0.7.36

Список изменений:
  1. Добавлен Авто Апдейтер (пока что он работает в "тихом" режиме при нажатии кнопки "Yes").
  2. Исправлены критические ошибки связанные с CreateFrameByType.
  3. Исправлены критические ошибки связанные с SetFrameTexture.
  4. Исправлена нерабочая нативная функция SetFrameVertexColour связанная с CSimpleStatusBar.
20
Вышла новая версия! Прокрутить к ресурсу

v1.0.8.39

  1. Новые Константы:
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)
  1. Новые Нативные Функции:
native GetFramePriority takes framehandle whichFrame returns integer
native 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
  1. Исправлена критическая ошибка, если были слишком быстро/одновременно вызваны новые нативные функции синхронизации (как пример вызов синхронизации по ,01 таймеру).
  2. Все нативные функции связанные с анимациями с раритетом теперь используют тип raritycontrol тип вместо integer.
  3. Исправлена нативная функция SetUnitStunned, она более не перекрывает саму себя и не устанавливает неверные флаги.
20
Вышла новая версия! Прокрутить к ресурсу

v1.0.9.44

  1. Новые Типы:
type mousebuttontype extends handle
  1. Новые Константы:
constant mousebuttontype MOUSE_BUTTON_TYPE_LEFT = ConvertMouseButtonType(1)
constant mousebuttontype MOUSE_BUTTON_TYPE_MIDDLE = ConvertMouseButtonType(2)
constant mousebuttontype MOUSE_BUTTON_TYPE_RIGHT = ConvertMouseButtonType(3)
  1. Новые Конверторы:
constant native ConvertMouseButtonType takes integer i returns mousebuttontype
  1. Новые Нативные Функции:
native GetTriggerPlayerMouseButton takes nothing returns mousebuttontype
native 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
  1. Исправлена критическая ошибка при пинга по миникарте.
  2. Исправлено событие MOUSE_MOVE, которое поглощало все другие действия, приводя как игнорированию других комманд.
  3. Исправлена критическая ошибка от нативной функции SetFrameTooltip.
  4. Исправлена нерабочая нативная функция SetFrameEnabled.
  5. Исправлена нативная функция GetTriggerFrameEvent, ранее возвращала неверные значения.
  6. Исправлена нативная функция GetTriggerPlayerKey, ранее возвращала неверные значения кнопки мышки.
20
Вышла новая версия! Прокрутить к ресурсу

v1.0.10.49

  1. Новые Типы:
type missile extends agent
type playermissileevent extends eventid
  1. Новые Конверторы:
constant native ConvertPlayerMissileEvent takes integer i returns playermissileevent
  1. Новые Константы:
constant playermissileevent EVENT_PLAYER_MISSILE_LAUNCH = ConvertPlayerMissileEvent(600)
constant playermissileevent EVENT_PLAYER_MISSILE_HIT = ConvertPlayerMissileEvent(601)
  1. Новые Нативные Функции:
native KillMissile takes missile whichMissile returns nothing
native 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
  1. Исправлены все получатели/установщики типов атаки/урона/оружия, теперь они используют соответствующие хендлы заместо типа integer.
  2. Все нативные функции связанные с главным аттрибутом героя теперь используют тип heroattribute заместо типа integer.
  3. Исправлена нативная функция GetTriggerFrameReal вызванная при ивенте MOUSE_WHEEL, теперь она возвращает дельту мышки, как на Рефорджеде.
20
Вышла новая версия! Прокрутить к ресурсу

v1.0.11.53

  1. Новые Нативные Функции:
Unit
native 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
Widget
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
  1. Исправлен фриз игры, когда срабатывал ивент FRAMEEVENT_SLIDER_VALUE_CHANGED после использования нативной функции SetFrameValue.
  2. Get/SetUnitArmourType теперь используют тип defensetype заместо типа integer.
  3. Исправлена критическая ошибка от нативных функций: SetUnitFacingEx and SetUnitFacingInstant.
  4. CastAbilityTarget теперь использует тип widget заместо unit.
  5. Нативная функция CastAbilityGround более не использует unit в аргументах вызова.
  6. Обновлена версия War3 lua.
20
Вышла новая версия! Прокрутить к ресурсу

v1.0.12.57

  1. Новые Константы:
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')
  1. Новые Нативные Функции:
utility
native 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
  1. Удалённые Нативные Функции:
native GetAbilityHotkey takes ability whichAbility returns oskeytype
native 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
  1. Добавлено ключевое слово "Base" нативкам, которые изменяли базовые параметры и не имели этого ключевого слова.
  2. Исправлена критическая ошибка от нативных функций CastAbility/CastAbilityGround/CastAbilityTarget связанных с большинтсвом "неподдерживаемых" заклинаний, теперь все заклинания должны работать.
  3. SetFrameAllPoints теперь возвращает булевое значение.
  4. SetFrameFocus теперь возвращает булевое значение.
  5. SetUnitMoveAIType теперь имеет дополнительный аргумент "flag" который управляет режимом "установки/снятия" данных.
  6. Полностью переписан метод общения Лаунчер -> Игра -> Лаунчер, теперь используется система пайпов заместо сигналов.
  7. Исправлена нативная функция GetEventDamageTarget, которая возвращала источник урона заместо цели.
  8. Исправлены все "не срабатывающие" TriggerRegister функции с новыми ивентами, которые были вызваны из потока main функции без какой-либо задержки.
  9. Добавлен практический полный функционал DzAPI, однако некоторые небезопасные нативные функции типа DzSetMemory не поддерживаются и не будут поддерживаться.
20
Вышла новая версия! Прокрутить к ресурсу

v1.0.12.58

  1. Новые Константы:
constant integer CHAT_RECIPIENT_ALL = 0
constant 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')
  1. Новые Нативные Функции:
native DisplayChatMessage takes player whichPlayer, integer recipient, string message returns nothing
native 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
  1. SetFrameSpriteAnimationOffset изменена на SetFrameSpriteAnimationOffsetPercent.
  2. Исправлены все нативные функции связанные с "таблицами", они все были нерабочими.
  3. Исправлена критическая ошибка при выходе/перезагрузке карты когда какой-либо фрейм был создан через нативные функции CreateFrame, CreateSimpleFrame и CreateFrameByType с дублированием contextId.
    Пояснение: это значит, что если Вы создали фрейм вот так: CreateFrame( "SomFrame", gameUI, 0, 0 ) и создадите фрейм ещё раз через CreateFrame( "SomFrame", gameUI, 0, 0 ), то оно на деле "выкинет" предыдущий фрейм, однако этой проблемы больше нет.
20
Вышла новая версия! Прокрутить к ресурсу

v1.0.12.59

  1. Исправлена критическая ошибка на 1.28.5.
Пояснение: данная ошибка была связана с выполнением какого-либо действия, допустим нажатия системных фреймов, выделением юнита и так далее. Обычное движение мышки и камеры не вызывало ошибки.
  1. Исправлены CastAbilityGround и CastAbilityTarget нативные функции.
Дополнение: НЕ ИСПОЛЬЗУЙТЕ эти функции без какой-либо задержки из main функции, так как игра может не успеть подготовить события под этим заклинания и т.д.
  1. Исправлена критическая ошибка при создании фреймов в lua через war3_lua.dll.
20
Вышла новая версия! Прокрутить к ресурсу

v1.0.12.60

  1. Откат изменения нативных функций CreateFrame/CreateFrameByType, так как данное исправление изменяла "ломала" внутреннюю логику позиции фреймов в памяти игры.
    Дополнение: чтобы избежать критической ошибки на выходе из карты/игры, НЕ СОЗДАВАЙТЕ фреймы из main функции без какой-либо задержки с помощью таймера.
  2. Добавлен перехват всех Frames/SimpleFrames/SimpleTextures/SimpleFonts для того, чтобы предотвратить попытку очищения пустой памяти фреймами.
    Дополнение: это исправление "контрмера" для нужды использования таймеров, как было сказано в пункте #1.
20
Вышла новая версия! Прокрутить к ресурсу

v1.0.13.63

  1. Новые Типы:
type buffstringfield extends handle
  1. Новые Конверторы:
constant native ConvertBuffStringField takes integer i returns buffstringfield
  1. Новые Константы:
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')
  1. Новые Нативные Функции:
native GetUjAPIVersion takes nothing returns string
native 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
  1. Исправлена критическая ошибка от всех EX нативных функций, связанных с полями заклинаний.
  2. Исправлена критическая ошибка, связанная с нативной функцией CreateSimpleFrame когда не CSimpleFrame был послан как родительский в аргументах.
  3. FRAMEEVENT_CONTROL_CLICK теперь может быть использован со всеми CSimpleButtons, а точнее:
CSimpleButton
CReplayButton
CTrainableButton
CCommandButton
CHeroBarButton
CSimpleCheckbox
  1. FRAMEEVENT_MOUSE_ENTER и FRAMEEVENT_MOUSE_LEAVE теперь могут быть использованы со всеми CSimpleFrames.
    Пояснение: CSimpleTexture и CSimpleFontString (то бишь CSimpleRegions) не поддерживаются, так как у них нет внутренних событий.
  2. Добавлена поддержка этих JN Нативных Функций:
native BitOr takes integer x,integer y returns integer
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, но они не будет выполнять ничего, но возвращать "пустые", но валидные данные, для превенции крашей.
  1. Немного переделана система события урона, которая иногда посылала неверные данные, которые вызывали краш.
  2. Исправлена неверная обработка цвета для всех CControl фреймов, то бишь CTextFrame и прочих.
  3. Удалены все "эмулированные" табы через пробелы в common.j, что повлияло на снижение веса на 30 КБ.
20
Вышла новая версия! Прокрутить к ресурсу

v1.0.14.65

  1. Новые Нативные Функции:
native CreateImageSimple takes string file, real sizeX, real sizeY, real posX, real posY, real posZ, integer imageType returns image
native 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
  1. Исправлена Критическая Ошибка с событиями OnDamaging/OnDamage, который происходил в очень неоптимизированных картах (проблема связана с плохим кодом Jass в этих картах).
    Пометка: причина была в виду С++ оптимизации, которая просто на просто очищала данные быстрее, чем они до конца были использованы.
  2. Исправлена критическая ощибка связанная с выделением магазинов/улучшения заклинаний героя/спелбуков и т.д.
    Пометка: данная ошибка была добавлена в виду "велосипедного" метода имплементации экспериментальной функции SetAbilityOrderId.
  3. Добавлена псевдо-поддержка этих JN нативных функций:
native JNDailySave takes string MapId, string UserId, string SecretKey, string Character, string DailyType returns string
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
20
Вышла новая версия! Прокрутить к ресурсу

v1.0.15.67

  1. Новые Константы
constant abilityintegerfield ABILITY_IF_BUTTON_HOTKEY_ALL = ConvertAbilityIntegerField('ahtk') Set only
constant 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')
  1. Новые Нативные Функции:
native GetHandleReferenceCount takes handle whichHandle returns integer
native 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
  1. Удалены все "дубликаты" нативных функций типа GetAbilityBaseManaCostById, они теперь заменены API инстанса/полей. Список удалённых нативных функций:
Ability API
native 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
  1. Все SetAbilityField теперь по-настоящему следуют логике инстансирования, что значит, что изменение любых данных, включая UI будут уникальны для этого заклинания, а не изменны для всх.
  2. Прошлая функция SetImageOrigin изменена на SetImageOriginEx.
  3. Исправлена не совсем рабочая нативная функция EXSetAbilityState.
  4. Исправлено сломанное отключение для переключаемых заклинаний.
    Пометка: эта проблема всё так же была связана с новым экспериментальным методом SetAbilityOrderId... :(
  5. Добавлена внутренняя обработка полей:
ABILITY_SLF_CASTER
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
  1. Изменены нативные функции юнитов:
Удалены:
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
  1. Добавлен новый "Dev Mode" режим для UjAPI.
    Пометка: включение этого режима, даст UjAPI возможность выписывать в консоль всевозможные Jass ошибки (если карта имеет синтаксические ошибки в Jass) или же ошибки с файлами.
20
Вышла новая версия! Прокрутить к ресурсу

v1.0.16.69

  1. Изменения Типов:
subanimtype теперь расширяет animtype, чтобы иметь доступ к новой нативной функции GetAnimationName для получения имени анимации по её индексу.
  1. Новые Константы:
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')
  1. Новые Нативные Функции:
native HandleToHandle takes handle h returns handle
native 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
  1. Исправлена ошибка JASS парсера, которая не отображала правильный текст ошибки.
  2. Исправлена ошибка случайно сломанной поддержки патча 1.27а.
  3. Переделана в очередной раз система обработки получения урона, которая ломалась при использовании CastTargetAbility внутри DAMAGING события.
  4. Переделан движок фреймов, который был случайно сломан в одном из предидущих обновлений.
20
Вышла новая версия! Прокрутить к ресурсу

v1.0.17.73

  1. Новые Типы:
    type minimapicon extends handle
    type commandbuttoneffect extends handle
  2. Новые Константы:
    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)
  3. Новые Нативные Функции:
    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
  4. Добавлена упущенная константа UNIT_IF_LUMBER_COST.
  5. Добавлена упущенная константа UNIT_IF_HOTKEY.
  6. Добавлена упущенная константа UNIT_WEAPON_IF_ATTACK_WEAPON_TYPE.
  7. Исправлена критическая ошибка в нативных функциях полей при использовании UNIT_WEAPON_RF_ATTACK_PROJECTILE_ARC или UNIT_WEAPON_RF_ATTACK_PROJECTILE_SPEED на юните ближнего боя.
  8. Исправлено неправильное значение в константе UNIT_WEAPON_SF_ATTACK_PROJECTILE_ART.
  9. GetMouseScreenX и GetMouseScreenY теперь возвращают значения от .0 до 1. заместо .0 до .8 для X и .0 до .6 для Y.
  10. HideOriginFrames теперь ведёт себя почти идентично функции на Рефордже.
  11. UnitUnapplyUpdates и UnitApplyUpdates, слова Updates изменены на Upgrades, это была большая опечатка.
  12. Silence/UnsilenceAbility переименованы в Disable/EnableAbility.
  13. ITEM_IF_TINTING_COLOR значение изменено с icol на iclt.
  14. UNIT_IF_TINTING_COLOR значение изменено с ucol на uclt.
  15. Добавлены Blz нативные функции, часть из них - простые пустышки, но большая часть рабочая. Список рабочих/не пустышек функций:
    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
20
Вышла новая версия! Прокрутить к ресурсу

v1.0.18.74

  1. Новые Константы:
constant originframetype ORIGIN_FRAME_CURSOR_FRAME = ConvertOriginFrameType(44)
  1. Новые Нативные Функции:
native BitwiseGetBit takes integer number, integer bitIndex returns integer
native 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
  1. Добавлены недостающие константы из предыдущей версии.
  2. Версия UjAPI теперь прописывается в главном меню Warcraft.
  3. Добавлена опция "Load Library" в главную секцию. Это включает/выключает подгрузку UjAPI.mpq и нативных функций.
Пометка: эта опция по стандарту включена и смена этой опции на уже запущенном Warctaft не будет работать.
  1. Добавлена опция "Load Library" для секции LUA. Это включает/выключает подгрузку библиотеки war3_lua.dll.
Пометка: эта опция по стандарту выключена и смена этой опции на уже запущенном Warctaft не будет работать.
  1. Добавлена "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) оно также "переопределит" путь игры/редактора основываясь на аргументах поданных в них.
  1. 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 метод запуска карт, путь до карты для игры ВСЕГДА относителен пути игры, однако для редактора нужно указывать ПОЛНЫЙ путь до карты).
  1. Добавлена -loadfile команда для секции World Editor, однако путь до карты НЕ относителен пути игры, нужно указывать полный путь до карты.
  2. Добавлена опция "Load Library" в секции World Editor.
  3. Добавлена опция "Dev Mode" в секции World Editor.
Пометка: #10 и #11 работают точно так же как такие же опции в Warcraft 3.
20
Вышла новая версия! Прокрутить к ресурсу

v1.0.18.75

  1. Исправлены проблемы с полноэкранным режимом запуска игры.
20
Вышла новая версия! Прокрутить к ресурсу

v1.0.19.78

  1. Новые Типы:
    type jassthread extends handle
  2. Новые Константы:
    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
  3. Новые Нативные Функции:
    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
  4. UNIT_IF_INTELLIGENCE теперь возвращает правильное значение.
  5. Добавлены эти поля во внутренний обработчик Get/SetUnitField:
    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
  6. Добавлены эти поля во внутренний обработчик GetUnitField:
    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
  7. Исправлено GetTriggerFrame возвращающее всегда null.
  8. BlzSetSpecialEffectColorByPlayer теперь закрашивает временные(командные) текстуры, как оно и должно было.
  9. Исправлена критическая ошибка со всеми BlzSetField.
  10. ABILITY_ILF_TARGET_TYPE добавлена во внутренний обработчик SetAbilityField.
  11. Исправлена критическая ошибка от ORIGIN_FRAME_BUFF_BAR_INDICATOR, добавлена проверка действительности, так как игра не создаёт сразу все индикаторы.
    Пояснение: игра по стандарту создаёт лишь 1 индикатор, затем, когда у игры нет "свободных" индикаторов, она создаёт ещё 1 вплоть до 7.
  12. Исправлены некоторые "опечатки" среди OSKEY_ переменных, причиной послужила моя мышка, которая устраивает дабл клик, потому при табуляциях, часть букв была удалена/заменена и так далее.
  13. Исправлено Missile API, оно "перестало работать" после поспешных исправлений/переделок.
  14. Исправлены BUFF_SF поля, теперь они возвращают реальное значение, а не "<null>".
  15. Добавлены эти поля Заклинаний во внутренний обработчик Get/SetAbilityField:
    ABILITY_RLF_CASTING_TIME
    ABILITY_RLF_CAST_BACK_SWING
    ABILITY_RLF_CAST_POINT.
Чтобы оставить комментарий, пожалуйста, войдите на сайт.