Jump to content
Alloder.pro  about Allods with love 😱
Search In
  • More options...
Find results that contain...
Find results in...

Servers monitoring and the Addons Editor

We present you two legends. All dreams come true.

Servers monitoring The Addons Editor

Digest April

We talk about what was done and updated in the past month. We help keep abreast of events.

Read more

Game tooltips

Tooltips provide a way for 3rd party fansites and extensions to display detailed information on mouseover.

Read more

Минимальный аддон


Guest KentAVr57
 Share

Recommended Posts

Guest KentAVr57

Доброго вам дня..

У меня просьба пожелание..

сделайте пожалуйста минимальный аддон HelloWord .. например с выводом в чат..

и описанием какие файлы для чего нужны и какие теги функции и почему используются..

в общем и целом с програмированием я знаком)) .. но с луа и аддонами не работал никогда.. дайте основу минимальную пожалуйста..

буду очень благодарен..

Link to comment
Share on other sites

там 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()

--------------------------------------------------------------------------------

и все....

Link to comment
Share on other sites

В папке SampleAddons лежит вроде как 4 аддона которые можно покопать и поковырять, также в документации написана маленькая "статейка" для новичков - как создавать аддоны.

Link to comment
Share on other sites

Guest KentAVr57

ятак понял при заходе в АО должна появится надпись в чате "------ Hi ------------"?

если да то ее не появилось.. почему? заранее спс

Link to comment
Share on other sites

Guest KentAVr57

спс модс.тхт я проверял такого файла нет.. думается мне что в минимальном аддоне всетки 3 файла должно быть..

Link to comment
Share on other sites

Guest KentAVr57

и еще вопрос а можно както переинициализировать аддон? чтобы из игры не выходить и не заходить каждый раз?

Link to comment
Share on other sites

Хавту писать всёравно придётся. Я уже собираю инфу для новой версии статьи "Как написать аддон".

Разработчики обидели нас своим скудным учебником, придётся делать свой.

Link to comment
Share on other sites

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

By using our site you agree to the Terms of Use