Есть ли в Memory Hack функция GetUnitIconPath( )? Или GetUnitTypeIconPath( )?

Ну, теперь есть
function GetUnitIconPathById takes integer id returns string
	local integer a=GetUnitUIDef(id)
	if a!=0 then
		set a=RMem(a+0x248)
		if(a!=0)then
			set a=RMem(a)
			if(a!=0) then
				return ConvertNullTerminatedStringToString(a)
			endif
		endif
	endif
	return ""
endfunction
`
ОЖИДАНИЕ РЕКЛАМЫ...
16
Принятый ответ
Ну, теперь есть
function GetUnitIconPathById takes integer id returns string
	local integer a=GetUnitUIDef(id)
	if a!=0 then
		set a=RMem(a+0x248)
		if(a!=0)then
			set a=RMem(a)
			if(a!=0) then
				return ConvertNullTerminatedStringToString(a)
			endif
		endif
	endif
	return ""
endfunction
21
DracoL1ch, пишет, что нету функции GetUnitUIDef( ). Использую эту версию мемхака.
21
DracoL1ch, cпасибо, нашёл.
	globals
		constant integer DEF_ADR_UNIT_UI=3
	endglobals

	function GetUnitUIDefAddr takes integer id returns integer
		return GetDefAddrCaching(id,DEF_ADR_UNIT_UI,pUnitUIDefAddr,0x10)
	endfunction
Чтобы оставить комментарий, пожалуйста, войдите на сайт.