Кто-нибудь заменял иконку предмета через мемхак?
Что конкретно хочу сделать - накидать предметов - пустышек в РО и через мемхак им уже наводить красоту.
Да я хейтер РО
В мемхаке 1.5 есть функции по замене базового описания и имени предмета и как я понял в 1.26 ещё нет замены Х для конкретной абилки или конкретного предмета.

function GetItemBaseIconPathById takes integer iid returns string
	return GetItemBaseUIStringParamById( iid, 1, 0x24C )
endfunction

function SetItemBaseIconPathById takes integer iid, string text returns nothing
	call SetItemBaseUIStringParamById( iid, 1, 0x24C, text )
endfunction

function GetItemBaseIconPath takes item it returns string
	return GetItemBaseIconPathById( GetItemTypeId( it ) )
endfunction

function SetItemBaseIconPath takes item it, string text returns nothing
	call SetItemBaseIconPathById( GetItemTypeId( it ), text )
endfunction
"Менять текущую иконку - нельзя, она читается всегда из бд, потому итем нужно будет прятать/пересоздавать и т.д. чтобы вызвать обновление UI структуры."
`
ОЖИДАНИЕ РЕКЛАМЫ...
28
function GetItemBaseIconPathById takes integer iid returns string
	return GetItemBaseUIStringParamById( iid, 1, 0x24C )
endfunction

function SetItemBaseIconPathById takes integer iid, string text returns nothing
	call SetItemBaseUIStringParamById( iid, 1, 0x24C, text )
endfunction

function GetItemBaseIconPath takes item it returns string
	return GetItemBaseIconPathById( GetItemTypeId( it ) )
endfunction

function SetItemBaseIconPath takes item it, string text returns nothing
	call SetItemBaseIconPathById( GetItemTypeId( it ), text )
endfunction
"Менять текущую иконку - нельзя, она читается всегда из бд, потому итем нужно будет прятать/пересоздавать и т.д. чтобы вызвать обновление UI структуры."
Принятый ответ
17
Дополнение: Нужен создать хотябы 1 предмет чтобы зафорсить обновление структуры
пример:
function SetItemVisualsById takes integer itemid, string iconpath, string itemname, string description returns nothing
    call SetItemBaseIconPathById(itemid, iconpath)
    call SetItemBaseNameById(itemid, itemname)
    call SetItemBaseUbertipById(itemid, description)
    call RemoveItem(CreateItem(itemid, 0., 0.))
endfunction
Чтобы оставить комментарий, пожалуйста, войдите на сайт.