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

Проверка по имени


DarkMaster
 Share

Recommended Posts

Очень нужно проверять что либо по имени - напрмиер если спелл = "СуперСпелл" то .... мои поптыки как либо это реализовать не увенчались успехом. Можно получить имя спелла, но если в условии прописывать его то ничего не происходит. Возможно кто то сталкивался и нашел решение этой проблемы. Такая же ситуация с Баффами\Дебафами. Если увас есть решение поделитесь плиз.

Link to comment
Share on other sites

я не очень много в этом понимаю, но по моему такие вещи надо запихивать в переменные и далее работать именно с переменными, а не названиями

Link to comment
Share on other sites

Не сравнивает потому, что имя спела у тебя в widestring, а то что ты вводишь вручную - простой.

Раньше была возможность их перевести в ws - debugCommon.ToWs( val ) вроде бы, но в ОБТ нивальцы закрыли к ним доступ.

Пока никто новые способы не находил/не делился ими.

Link to comment
Share on other sites

Guest DmitriyMX

может тут вы найдете нужную функцию:

Allods Online\data\Packs\Interface.pak - Interface\Common\Script\ScriptCommonUtility.lua

Link to comment
Share on other sites

Ну вообще-то они там и есть

function ToWs( text )

if common.HasDebugLibs() then

return debugCommon.ToWString( text )

else

return common.GetEmptyWString()

end

end

Только вот у нас дебаг-либы отключены.

Link to comment
Share on other sites

Guest Valltron

Дак зачем что-то кудато переводить? берешь какоето значение, которое в WString, и без изменений его записываешь в файл

а потом также без изменений вытаскиваешь и сравниваешь

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