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

Номер слота в инвентаре


Gorin
 Share

Recommended Posts

Можноли узнать номер слота в инвенаре либо ID предмета  - который я начал перетаскивать по нажатию левой кнопки мыши? И если да, то как?

Edited by Gorin
Link to comment
Share on other sites

function test(p)
local name=itemLib.GetItemInfo( p.itemId ).name --WString - название предмета
p.itemId --  id итема
p.slot -- слот, в котором лежит данный итем
p.slotType -- тип контейнера, в слоте которого лежит данный итем
end

common.RegisterEventHandler( test, "EVENT_CONTAINER_ITEM_EFFECT")
получишь инфу, когда отпустишь кнопку перетаскивая предмет

косячный конечно метод, надо проверять по имени предмета, при срабатывании ГКД идет эффект у нескольких итемов, может кто подскажет другой вариант

подумал, наверно лучше использовать EVENT_CONTAINER_ITEM_REMOVED

и проверять isRemovedItem

Link to comment
Share on other sites

Если кто то знает что это в принципе невозможно отпишите плиз чтоб я дальше не мучался. Нада что бы по нажатию и перемещению а не по клику или законченному перемещению. Может через ДНД как то?

Edited by Gorin
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