HugoOlivera Posted November 14, 2014 Share Posted November 14, 2014 При выполнении следующей функции: local id = avatar.GetTarget() if id and unit.IsPlayer( id ) then local scanedid = id if scanedid then local i=ITEM_CONT_EQUIPMENT for v, t in unit.GetEquipmentItemIds(scanedid,ITEM_CONT_EQUIPMENT) do ... Пишет почему-то вот такую ошибку.. Причем странная особенность когда в таргете свой аватар ошибки нет. Стоит взять в цель любого другого аватара выдает следующее: Error: addon AOPackTheAllods: Game::LuaUnitGetEquipmentItemIds: equipment not found for unit 38132, details: int __cdecl Game::LuaUnitGetEquipmentItemIds(struct lua_State *) Error: addon AOPackTheAllods: Game::LuaUnitGetEquipmentItemIds: equipment not found for unit 38132, details: int __cdecl Game::LuaUnitGetEquipmentItemIds(struct lua_State *) Кто подскажет почему такое получается? Quote Link to comment Share on other sites More sharing options...
LEM Posted November 14, 2014 Share Posted November 14, 2014 Для получения экипировки игрока (не аватара) необходимо инспектирование: http://alloder.pro/md/LuaApi/CategoryInspect.html Quote Link to comment Share on other sites More sharing options...
logg Posted November 14, 2014 Share Posted November 14, 2014 Чтобы получить экипировку нужно запустить инспектирование цели Смотри LibGS https://alloder.pro/files/file/274-libgs/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts