Jump to content

Digest January-March

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

March February January

Servers monitoring and the Addons Editor

We present you two legends. All dreams come true.

Servers monitoring The Addons Editor

A statistics bot for Telegram

Convenient analytics right on your phone.

Read more

Game tooltips

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

Read more

The Addons Updater

Let us to introduce the addons updating software and to share the details

Read more Download

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


DarkMaster

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

а вы обратно попробуйте: перевести ВСтринг в Стринг, и сравнить со Стрингом

Link to comment
Share on other sites

Guest skillcoder

Подскажи название функции

Link to comment
Share on other sites

FromWs, так же фигня :)

Пробовал через файл, но даже там по различному записывает одно через l"", второе через L""

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

×
×
  • Create New...

Important Information

By using our site you agree to the Terms of Use