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

В чём моя ошибка в созданном аддоне?


NeoStyle
 Share

Recommended Posts

Сразу заикнусь, что я практически не понимаю язык lua. Но в примерном сроении я разбираюсь. :83:

Пытался сделать аддон аналог DDView, только, чтобы он выводил лечение, а не урон. Основу скрипта брал с DDView. Почему он не работает? Умелые разработчики, помогите, если можно, подправьте..( Он даже в mods.txt ничего не спамит об ошибках... :31:

HealView.zip

Link to comment
Share on other sites

вместо EVENT_UNIT_HEALING_RECEIVED нужно EVENT_HEALING_RECEIVED

http://alloder.pro/md/LuaApi/EventHealingReceived.html

local ids = params.healerId

local idt = params.unitId

вместо params.ability нужно params.abilityId и получить еще название абилки ( spellLib.GetDescription( params.abilityId ).name ), также предусмотреть params.spellId и params.buffId

вместо params.amount params.heal

и в том же духе

Link to comment
Share on other sites

вместо EVENT_UNIT_HEALING_RECEIVED нужно EVENT_HEALING_RECEIVED

Так у меня и была эта функция.

 

local ids = params.healerId

local idt = params.unitId

Исправил.

 

вместо params.ability нужно params.abilityId и получить еще название абилки ( spellLib.GetDescription( params.abilityId ).name ), также предусмотреть params.spellId и params.buffId

вместо params.amount params.heal

А вот с этим чего-то не очень понимаю..

HealView1.zip

Edited by NeoStyle
Link to comment
Share on other sites

исправлять комментарии бесполезно)

то, что после -- и есть комментарий, нужно в другом месте поменять EVENT_HEALING_RECEIVED

params.ability выдает id абилки

spellLib.GetDescription( params.abilityId ).name выдает имя абилки по id

если не будет params.abilityId, то будет params.spellId или params.buffId хил от абилки или бафа

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