Вопросы и ответы
В форуме 892 темы
-
- 5 ответов
- 2 тыс просмотров
правильно ли делать слежку за событиями, в ответ на действия аддона так, чтобы такие же события от пользователя не обрабатывались: объявляем слежку common.RegisterEventHandler( OnEvetMY, "EVENT_1" ) а в вызываемой процедуре сразу обрубаем: function OnEvetMY ( pars ) common.UnRegisterEvent( "EVENT_1" ) ...
Последний ответ от SLA, -
- 9 ответов
- 1,9 тыс просмотров
Хочу выводить расстояние и направление на таргет, для этого нужны его координаты. Вроде все проще некуда: Code: local unitId = avatar.GetTarget() if unitId then local pos = object.GetPos(unitId) ... но происходит ошибка: Quote: Error: addon StatsInfo: Game::LuaObjectGetPos: cannot get position for interacive object (id=3009). Access denied, details: int __cdecl Game::LuaObjectGetPos(struct lua_State *) Почему "доступ запрещен"?
-
Русский язык на евро АО возможен 100%
от Гость Malena- 8 ответов
- 2,2 тыс просмотр
Еще со тех времен у меня в Allods Online\data\Packs лежит файлик !AO-Russian.pak он сто лет не работал, я о нем и забыла, и тут О чудо! после обновления игра стала русской но есть сложность не работают новшества, те что добавили с того времени, календарь, окно друзей и ги, над аватаром игроков нет имени надеюсь это исправимо, пожалуйста, если кто умеет, доработайте русик ЗЫ: если нужны скрины, предоставлю
Последний ответ от SLA, -
How do I access certain currency values
от Гость neFAST- 6 ответов
- 1,3 тыс просмотров
Hello, I would like to display remaining food for mount, but this currency has no ID. I ran that code to discover it Code: -- testlocal ids = avatar.GetCurrencies() if ids then for i = 0, 10 do local info = avatar.GetCurrencyInfo( ids ) if info then LogInfo( "sysName = " .. info.sysName .. ", value = " .. info.value) end end end and got this (mount feed is the first value = 14 : Code: Info: addon DeathinSurance: sysName = , value = 14Info: addon DeathinSurance: sysName = world_chat, value = 0 Info: addon DeathinSurance: sysName = , value = 1 Info: addon DeathinSurance: sysName = RubyCallOption, value = 1 Info: addon DeathinSurance: sy…
Последний ответ от SLA, -
- 2 ответа
- 932 просмотра
есть "12345.6789" строка как из нее получить число? common.GetIntFromWString( str ) - дает только целое
Последний ответ от icreator, -
Кто может написать аддон???
от Гость Ligrush- 4 ответа
- 992 просмотра
Если кто может, то напишите плиз аддон мессенджер наподобие того что есть в WoW под названием Wim... Ну очень он необходим... З.Ы.: заранее спасибо!!!
Последний ответ от Setras, -
- 15 ответов
- 3,7 тыс просмотров
Патч 2.0.01 - Ремонтируем Drag&Drop Итак, в патче 2.0.01, во всех аддонах поломалось перетаскивание окон (Drag&Drop). Все заметили, да? Не найдя никаких изменений в документации API 2.0.01, я пытался выяснить, что же случилось, экспериментируя с LibDnD. Но так и не разобрался. И наверное, пришлось бы декомпилировать пару-тройку LUAC-файлов, если бы не нашёлся доброжелатель, который передал от разработчиков игры, что же именно случилось с Drag&Drop. Оказывается, они просто поменяли формулу, по которой вычисляется ID для функции mission.DNDRegister(). Поскольку, старый код Drag&Drop гарантированно вызывает конфликты с перетаскиванием иконок в АО 2.0.01, т…
Последний ответ от SLA, -
Loclaes.xdb-Generator
от Гость Carnifex- 2 ответа
- 1,1 тыс просмотра
I've updated my Locale.(UIRelatedTexts).xdb-Generator to the new method with the textsGroups. To run this you must have installed Python 2.7.1 or a similar version (upwards-compatibility to 3+ not guaranteed) Feel free to use it for generating your Locale.xdb's How to use: -open AOLocEdit.py in the IDLE -edit the lists locales and strings depending on your needs -run the script (F5) Update: for quicker use the input is changes to string, which are automaticly converted to lists, with the separator space (" ") File: AOLocGen.zip
-
- 3 ответа
- 1,7 тыс просмотров
Приаттачил виджеты к объектам-игрокам, но при выделении объекта к которому приаттачен виджет виджет перестает быть приаттаченым к объекту и остается в том месте экрана в котором был во время выбора объекта в таргет. Кто-нибудь: Сталкивался/Решения/Обходные пути? Пока придумал только проверять таргет каждый раз при смене таргета...
-
Как узнать ObjectId предмета? 1 2 3
от Гость Urjin- 56 ответов
- 10,2 тыс просмотра
Полазил по форуму, но не нашел темы. Как узнать ObjectId вещи, на которую наведен курсор? Думал вытянуть, через событие, которое обрабатывает описание вещи, которое появляется при наведении курсора на предмет (в инвентаре, у вендора, или в аукционе), в API нашел только EVENT_SHOW_ITEMS_INFO, но ни разу не удалось вызвать с ним переменную. написано, что работает только в UIstate, может в этом дело, но я не знаю, что это такое :-( В AucCenter, вроде как это событие обрабатывается SCRIPT_REQUEST_CONTEXT_TOOLTIP, но он сейчас вообще не работает.
-
Retrieve web content from an addon
от Гость neFAST- 1 ответ
- 934 просмотра
I would like to know if it is possible to retrieve web content from an addon. I've seen a method to open an URL in an external browser, but I would like to retrieve some text from a server (like a daily guild message) and display this in my addon. Thanks a lot
-
LUA C API available?
от Гость Carnifex- 0 ответов
- 1,1 тыс просмотра
Does anyone have tested, if the C API of LUA ( http://www.lua.org/manual/5.1/manual.html#3 ) is available for us? If yes, did it work?
-
[ControlCountdown] English strings for spells 1 2
от Гость neFAST- 26 ответов
- 4,5 тыс просмотров
Hi folks, I would like to use this plugin on our recently updated European servers. I need to translate buff strings in the lua. Could someone help me with this task by pointing me which spells are referenced using http://allodsbase.com/ru/talents? THanks a lot
-
Changing UI aspect ratio
от Гость neFAST- 8 ответов
- 3 тыс просмотр
Hi folks, I was condering if there is any way to change the aspect ratio of all UI. I mean when you resizing allods window, you can see that the user interface is scaled independently from the game 3D rendering in background. But when in full screen I think the UI takes to much screen real estate. I looked in all game's .cfg, (found a way to change the fov BTW) but nothing regarding ui ratio. Any clue ?
-
Распаковка текстур и моделей
от Гость sralker- 5 ответов
- 367,6 тыс просмотров
Т.к. выхода эмулятора сервера аллодов не ожидается, а людей, всей душой полюбивших аллоды, но не готовых платить десятки тысяч своих кровных рублей, всё больше и больше, мы решили пойти другим путём: пересобрать аллоды, тоесть на другом движке создать другую игру(да, именно так!) но с миром аллодов. Для начала нам нужны текстуры и модели, всё это как известно лежит в папке с аллодами(файлы .pak открываются обычным 7z) но в формате .bin, соответственно нужно как то эти текстуры и модели оттуда повынимать. Я знаю что найдутся люди готовые помоч умеющие чего либо или же нет, рад буду всем!(icq 471958914 скайп sralkerok1) но на многое не расчитывайте!!! максимум который мы …
Последний ответ от Setras, -
Developing AOChatExtension 1 2
от Гость Carnifex- 34 ответа
- 7,3 тыс просмотров
Rightclicking on a name in the chat opens a context menu with some option... Problems: 1. How to add a player to a group/raid/guild by only knowing his name (not the id :-( )? 2. Why is the lvlTELL-Widget not shown? o.O 3. Same Problems with getting lvl and class by temporary adding player to friendslist as in GuildGui1b. --> fixed (not it is shown corectly after 3 sec) 4. Some little bugfixes --> included BTW: Can somebody translate the russian and french locales?
-
- 1 ответ
- 1 тыс просмотров
It doesn't resize the bars appropriately they all stay full except the first bar. What am I doing wrong? EDITED: Im done with my addon thanx for helping.
-
- 6 ответов
- 2,4 тыс просмотров
I am a student and don't have much money, but I will pay 50 euros through clickandbuy.com or Western Union (I can't use paypal from my country Serbia). The addon: - Shows health and wound complexity of all visible player enemies - Color coded classes - Name of enemy players - When clicked on a name from the list it will target that enemy Thank you in advance.
Последний ответ от Setras, -
I have almost finished my addon but when I tried to add bars to display health of enemies my addon stopped working correctly. Can someone please help me? EDITED: I'm done with my addon thanx for helping
-
- 7 ответов
- 1,3 тыс просмотров
I'm almost done with my addon but for some reason it doesn't show in percentage the wound complexity. Instead of percentage it shows wear number like 127.5 which is not a real wound complexity. Can anyone help me fix this. Thank you. Also how can I add bars to represent health like in RealAgro the bars represent aggro? EDITED: Im done with my addon thanx for helping
-
Цель цели
от Гость puchevo- 3 ответа
- 1,8 тыс просмотров
можно ли сделать чтобы никто не мог увидеть твою цель? ну очень надо
Последний ответ от Setras, -
- 2 ответа
- 1,2 тыс просмотров
I'd like to make a PvP addon which will show all visible enemies health and also when clicked in the addon the name of enemy to target it. Can anyone suggest me which code will help me. Thank you in advance.
-
Developing CT_Total 1 2
от SLA- 41 ответ
- 7,8 тыс просмотров
Ciuine sent me a PM: Ciuine wrote: I don't know if any of the people of this site know but I've created a couple of add-ons, but I've never exactly had a RU client tester.Do you think it would be possible for you to test out one of my add-ons on the RU client? It's an add-on that just replaces the damage visualizer with a cleaner scrolling combat text type deal. I think, this discussion deserves a separate forum topic So, you are the author of CT_Total addon, great! Nice to meet you! When you told "Hey, I'm an NA add-on author/modifier.", my first thought was - Is this the guy who have created CT_Total? Yes, about 1-2 months ago somebody told there is a cool addo…
-
- 27 ответов
- 12,8 тыс просмотров
А именно: как вставить перенос строки? Пробовал \r\n, но не работает. Пробовал <br> - тоже не работает) Кусок кода примерно такой: Code: desc = userMods.ToWString("News\r\n<br>" .. userMods.FromWString(news) .. "Description\n" .. userMods.FromWString(desc)) Это модификация к GuildGui1b, файл ScriptGuildGui1b.lua, после строки 552. Хочу сделать тултип, в котором было бы описание гильдии и новость дня(т.к. сейчас новость вообще никаким способом нельзя посмотреть - она обрезается даже в офф. гилд-манагере).
-
Code designed to hide widget on ALT+Z not working anymore
от Гость neFAST- 6 ответов
- 997 просмотров
Here on EU servers, this code does not the job anymore. All tested plugins (guildGui, darkdps, etc) are still displayed when hiding UI. Is is a well known problem? If yes what is the workaround?