Guest KentAVr57 Posted March 3, 2010 Share Posted March 3, 2010 Доброго вам дня.. У меня просьба пожелание.. сделайте пожалуйста минимальный аддон HelloWord .. например с выводом в чат.. и описанием какие файлы для чего нужны и какие теги функции и почему используются.. в общем и целом с програмированием я знаком)) .. но с луа и аддонами не работал никогда.. дайте основу минимальную пожалуйста.. буду очень благодарен.. Quote Link to comment Share on other sites More sharing options...
merlok Posted March 3, 2010 Share Posted March 3, 2010 там 2 файла в AddonDesc.(UIAddon).xdb просто описан список скриптов (если без форм) както так: Code: <?xml version="1.0" encoding="UTF-8" ?><UIAddon> <AutoStart>true</AutoStart> <Name>Mob</Name> <ScriptFileRefs> <Item href="ScriptMob.lua" /> </ScriptFileRefs> <author>Merlok</author> <revision>1</revision> <update>2010-02-24 05:15:41</update> <www>http://ui9.ru/forum/Mob</www> </UIAddon> а в скрипте (ScriptMob.lua): Code: function Init() common.LogInfo(common.GetAddonName(), "------ Hi ------------") end -------------------------------------------------------------------------------- Init() -------------------------------------------------------------------------------- и все.... Quote Link to comment Share on other sites More sharing options...
Guest KentAVr57 Posted March 3, 2010 Share Posted March 3, 2010 Спасибо большое буду пробовать) Quote Link to comment Share on other sites More sharing options...
Setras Posted March 3, 2010 Share Posted March 3, 2010 В папке SampleAddons лежит вроде как 4 аддона которые можно покопать и поковырять, также в документации написана маленькая "статейка" для новичков - как создавать аддоны. Quote Link to comment Share on other sites More sharing options...
Guest KentAVr57 Posted March 3, 2010 Share Posted March 3, 2010 ятак понял при заходе в АО должна появится надпись в чате "------ Hi ------------"? если да то ее не появилось.. почему? заранее спс Quote Link to comment Share on other sites More sharing options...
Setras Posted March 3, 2010 Share Posted March 3, 2010 П.С. функция common.LogInfo() выведет строку в файл Allods Online\Personal\Logs\mods.txt Quote Link to comment Share on other sites More sharing options...
Setras Posted March 3, 2010 Share Posted March 3, 2010 Чтобы вывести строку в чат надо использовать group.ChatSay(x) где х это WString Quote Link to comment Share on other sites More sharing options...
Guest KentAVr57 Posted March 3, 2010 Share Posted March 3, 2010 спс модс.тхт я проверял такого файла нет.. думается мне что в минимальном аддоне всетки 3 файла должно быть.. Quote Link to comment Share on other sites More sharing options...
Guest KentAVr57 Posted March 3, 2010 Share Posted March 3, 2010 и еще вопрос а можно както переинициализировать аддон? чтобы из игры не выходить и не заходить каждый раз? Quote Link to comment Share on other sites More sharing options...
Mankubus Posted March 3, 2010 Share Posted March 3, 2010 Есть аддон Quote Link to comment Share on other sites More sharing options...
Guest KentAVr57 Posted March 3, 2010 Share Posted March 3, 2010 спс Quote Link to comment Share on other sites More sharing options...
merlok Posted March 3, 2010 Share Posted March 3, 2010 не в чате, а в логе ч:\Allods Online\Personal\Logs Quote Link to comment Share on other sites More sharing options...
kosh Posted March 3, 2010 Share Posted March 3, 2010 мини "хавту" како-то получился... ленивый народ пошел... Quote Link to comment Share on other sites More sharing options...
SLA Posted March 3, 2010 Share Posted March 3, 2010 Хавту писать всёравно придётся. Я уже собираю инфу для новой версии статьи "Как написать аддон". Разработчики обидели нас своим скудным учебником, придётся делать свой. Quote Link to comment Share on other sites More sharing options...
Recommended Posts