Лауреат премии 2023 года
Данный ресурс работает ТОЛЬКО с патчами 1.24e/1.26а/1.27a/1.27b/1.28f
Как пользоваться?
- Распакуйте все файлы из архива, желательно в отдельную папку, вот так:
- Запустите UjAPI.exe.
- Если же у вас приложение не запускается, то скачайте и установите: .NET Framework 4.7.2.
- Если же ни в игре, ни в World Editor UjAPI не работает, то скачайте и установите: C++ Redistributable 2012
- Установите путь для Warcraft 3, вот так:
- Можно указать и на Frozen Throne.exe или же на Warcraft III.exe (но рекомендуется использовать именно war3.exe для патчей 1.27б и ниже).
- На патче 1.28.5(f) рекомендуется использовать непосредственно Warcraft III.exe.
- Установите путь для World Editor, вот так:
- Рекомендуется использовать JNGP версии Прометея: скачать
- Пароль от архива: JNGP
- Готово, вы можете теперь смело запускать как игру, так и World Editor через UjAPI Launcher.
- Для использования оконного режима в Warcraft III нажмите галочку на "Additional command line arguments" и в появившееся окно, пропишите -window, вот так:
Полезные файлы
Для лаунчера | Информационные |
---|---|
.NET Framework 4.7.2 | Список всех функций |
C++ Redistributables 2012 | Новые типы/функции |
Ред. Unryze
Ред. Unryze
v1.0.21.85
constant targetflag TARGET_FLAG_SELF = ConvertTargetFlag(4096)
constant targetflag TARGET_FLAG_PLAYER_UNITS = ConvertTargetFlag(8192)
constant targetflag TARGET_FLAG_ALLIED = ConvertTargetFlag(16384)
constant targetflag TARGET_FLAG_FRIEND = ConvertTargetFlag(24576) ALLIED | PLAYER_UNITS
constant targetflag TARGET_FLAG_NEUTRAL = ConvertTargetFlag(32768)
constant targetflag TARGET_FLAG_ENEMY = ConvertTargetFlag(65536)
constant targetflag TARGET_FLAG_NOT_SELF = ConvertTargetFlag(122880) ENEMY | NEUTRAL | FRIEND
constant targetflag TARGET_FLAG_VULNERABLE = ConvertTargetFlag(1048576)
constant targetflag TARGET_FLAG_INVULNERABLE = ConvertTargetFlag(2097152)
constant targetflag TARGET_FLAG_HERO = ConvertTargetFlag(4194304)
constant targetflag TARGET_FLAG_NON_HERO = ConvertTargetFlag(8388608)
constant targetflag TARGET_FLAG_ALIVE = ConvertTargetFlag(16777216)
constant targetflag TARGET_FLAG_DEAD = ConvertTargetFlag(33554432)
constant targetflag TARGET_FLAG_ORGANIC = ConvertTargetFlag(67108864)
constant targetflag TARGET_FLAG_MECHANICAL = ConvertTargetFlag(134217728)
constant targetflag TARGET_FLAG_NON_SUICIDAL = ConvertTargetFlag(268435456)
constant targetflag TARGET_FLAG_SUICIDAL = ConvertTargetFlag(536870912)
constant targetflag TARGET_FLAG_NON_ANCIENT = ConvertTargetFlag(1073741824)
constant targetflag TARGET_FLAG_ANCIENT = ConvertTargetFlag(2147483648)
constant targetflag TARGET_FLAG_EMPTY = ConvertTargetFlag(4294967295)
constant abilityrealfield ABILITY_RF_AURA_REFRESH_TIME = ConvertAbilityRealField('artm')
constant abilityintegerlevelfield ABILITY_ILF_TARGETS_ALLOWED = ConvertAbilityIntegerLevelField('atar')
constant playerunitevent EVENT_PLAYER_UNIT_ATTACK_FINISHED = ConvertPlayerUnitEvent(317)
constant unitevent EVENT_UNIT_ATTACK_FINISHED = ConvertUnitEvent(316)
native IsAbilityTargetAllowed takes ability whichAbility, widget whichWidget returns boolean
native GetSpecialEffectModelObjectPositionX takes effect whichEffect, string whichObject returns real
native GetSpecialEffectModelObjectPositionY takes effect whichEffect, string whichObject returns real
native GetSpecialEffectModelObjectPositionZ takes effect whichEffect, string whichObject returns real
native GetSpecialEffectModelObjectPositionLoc takes effect whichEffect, string whichObject returns location
native GetTrackableModelObjectPositionX takes trackable whichTrackable, string whichObject returns real
native GetTrackableModelObjectPositionY takes trackable whichTrackable, string whichObject returns real
native GetTrackableModelObjectPositionZ takes trackable whichTrackable, string whichObject returns real
native GetTrackableModelObjectPositionLoc takes trackable whichTrackable, string whichObject returns location
native GetWidgetModelObjectPositionX takes widget whichWidget, string whichObject returns real
native GetWidgetModelObjectPositionY takes widget whichWidget, string whichObject returns real
native GetWidgetModelObjectPositionZ takes widget whichWidget, string whichObject returns real
native GetWidgetModelObjectPositionLoc takes widget whichWidget, string whichObject returns location
native GetDestructableModelObjectPositionX takes destructable whichDestructable, string whichObject returns real
native GetDestructableModelObjectPositionY takes destructable whichDestructable, string whichObject returns real
native GetDestructableModelObjectPositionZ takes destructable whichDestructable, string whichObject returns real
native GetDestructableModelObjectPositionLoc takes destructable whichDestructable, string whichObject returns location
native GetItemModelObjectPositionX takes item whichItem, string whichObject returns real
native GetItemModelObjectPositionY takes item whichItem, string whichObject returns real
native GetItemModelObjectPositionZ takes item whichItem, string whichObject returns real
native GetItemModelObjectPositionLoc takes item whichItem, string whichObject returns location
native GetUnitModelObjectPositionX takes unit whichUnit, string whichObject returns real
native GetUnitModelObjectPositionY takes unit whichUnit, string whichObject returns real
native GetUnitModelObjectPositionZ takes unit whichUnit, string whichObject returns real
native GetUnitModelObjectPositionLoc takes unit whichUnit, string whichObject returns location
native GetProjectileModelObjectPositionX takes projectile whichProjectile, string whichObject returns real
native GetProjectileModelObjectPositionY takes projectile whichProjectile, string whichObject returns real
native GetProjectileModelObjectPositionZ takes projectile whichProjectile, string whichObject returns real
native GetProjectileModelObjectPositionLoc takes projectile whichProjectile, string whichObject returns location
Frame API
native GetFrameCheckState takes fremehandle whichFrame returns boolean
native SetFrameCheckState takes framehandle whichFrame, boolean isCheck returns nothing
native GetTriggerFrameMouseButton takes nothing returns mousebuttontype
native RegisterFrameMouseButton takes framehandle whichFrame, mousebuttontype whichButton, boolean isAdd returns nothing
Устанавливать чекстатус.
Ред. Unryze
v1.0.22.88
type collisiontype extends handle
type textfilehandle extends handle
constant native ConvertCollisionType takes integer i returns collisiontype
constant pathingaitype PATHING_AI_TYPE_AMPHIBIOUS = ConvertPathingAIType(64)
constant pathingaitype PATHING_AI_TYPE_FLOAT = ConvertPathingAIType(128)
constant pathingaitype PATHING_AI_TYPE_FLY = ConvertPathingAIType(192) MOVE_TYPE_AMPHIBIOUS | MOVE_TYPE_FLOAT
constant collisiontype COLLISION_TYPE_NONE = ConvertCollisionType(0)
constant collisiontype COLLISION_TYPE_ANY = ConvertCollisionType(1)
constant collisiontype COLLISION_TYPE_FOOT = ConvertCollisionType(2)
constant collisiontype COLLISION_TYPE_AIR = ConvertCollisionType(4)
constant collisiontype COLLISION_TYPE_BUILDING = ConvertCollisionType(8)
constant collisiontype COLLISION_TYPE_HARVESTER = ConvertCollisionType(16)
constant collisiontype COLLISION_TYPE_BLIGHTED = ConvertCollisionType(32)
constant collisiontype COLLISION_TYPE_FLOAT = ConvertCollisionType(64)
constant collisiontype COLLISION_TYPE_AMPHIBIOUS = ConvertCollisionType(128)
constant collisiontype COLLISION_TYPE_GROUND = ConvertCollisionType(202) COLLISION_TYPE_FOOT | COLLISION_TYPE_BUILDING | COLLISION_TYPE_FLOAT | COLLISION_TYPE_AMPHIBIOUS
constant originframetype ORIGIN_FRAME_INVENTORY_COVER_FRAME = ConvertOriginFrameType(45)
constant originframetype ORIGIN_FRAME_UNIT_TIP = ConvertOriginFrameType(46)
constant unitevent EVENT_UNIT_DECAY_FINISHED = ConvertUnitEvent(318)
constant playerunitevent EVENT_PLAYER_UNIT_DECAY_FINISHED = ConvertPlayerUnitEvent(319)
constant frameeventtype FRAMEEVENT_CHECKBOX_CHANGED = ConvertFrameEventType(17)
constant frameeventtype FRAMEEVENT_CONTROL_RELEASE = ConvertFrameEventType(18)
constant frameeventtype FRAMEEVENT_CONTROL_DRAG = ConvertFrameEventType(19)
constant unitintegerfield UNIT_IF_COLLISION_TYPE = ConvertUnitIntegerField('ucot')
constant unitintegerfield UNIT_IF_PATHING_AI = ConvertUnitIntegerField('upai')
constant unitintegerfield UNIT_IF_PATHING_TYPE = ConvertUnitIntegerField('upat')
native BitwiseSetBit takes integer i, integer bitIndex, integer bitValue returns integer
native BitwiseSetByte takes integer i, integer byteIndex, integer byteValue returns integer
native BitwiseToInteger takes integer byte1, integer byte2, integer byte3, integer byte4 returns integer
native GetTimeStamp takes boolean isLocalTime, integer isMiliseconds returns string
native ConsoleEnable takes boolean flag returns nothing
native ConsolePrint takes string s returns nothing
native TextFileOpen takes string filePath returns textfilehandle
native TextFileGetPath takes textfilehandle whichTextFile returns string
native TextFileClose takes textfilehandle whichTextFile returns nothing
native TextFileClear takes textfilehandle whichTextFile returns nothing
native TextFileErase takes textfilehandle whichTextFile returns nothing
native TextFileCountLines takes textfilehandle whichTextFile returns integer
native TextFileReadLine takes textfilehandle whichTextFile, integer lineNumber returns string
native TextFileReadAll takes textfilehandle whichTextFile returns string
native TextFileWriteLine takes textfilehandle whichTextFile, string text returns nothing
native IsCursorEnabled takes nothing returns boolean
native SetCursorEnabled takes boolean enable returns nothing
native IsCursorAnimationLocked takes nothing returns boolean
native SetCursorAnimationLocked takes boolean isLock returns nothing
native IsFrameDraggable takes framehandle whichFrame returns boolean
native SetFrameDraggable takes framehandle whichFrame, boolean enabled returns nothing
native GetFrameModel takes framehandle whichFrame returns string
native SetFrameSpriteMaterialScale takes framehandle whichFrame, real sizeX, real sizeY, real sizeZ returns nothing
native IsWidgetTipEnabled takes nothing returns boolean
native SetWidgetTipEnabled takes boolean enable returns nothing
native IsAbilityBaseTargetAllowed takes integer abilityId, widget source, widget target returns boolean source can be null
native IsWidgetTargetAllowed takes widget source, widget target, targetflag whichFlags returns boolean
native GetUnitCollisionType takes unit whichUnit returns collisiontype
native SetUnitCollisionType takes unit whichUnit, collisiontype collisionType returns nothing
Пояснение: Консоль имеет 4 "части" потому индексы 0-3.
Пример использования: call SetAbilityStringLevelField( GetUnitAbility( u, 'Aspb' ), ABILITY_SLF_SPELL_LIST, 0, "AHad,AHhb,AHbz,AUau" )
Ред. ScorpioT1000
Ред. ScorpioT1000
Если ответ был без заголовка или с пустым - дропаем всю игру. Если таймаут или 502 - запрещаем слать запросы на 1-5 минут. Серверы не всегда могут быть доступны.