Показать сообщение отдельно
  #24  
Старый 29.08.2013, 17:56
Аватар для Equendil
Equendil Equendil вне форума
Путник
 
Регистрация: 23.05.2013
Сообщений: 7
Post Как линковать скалируемые предметы в чат?

Цитата:
Сообщение от bopozhej Посмотреть сообщение
на это:

Код:

-- additional data
out:Put(0);
out:Put(2); -- 3 extra structures
-- extra extra info
out:PutLongLE( 0x100012C5 ); -- header
out:PutLongLE( 0x100012C5 ); -- header repeated
-- number of extra extra structures
local extras = 2;
out:PutLongLE( extras );
-- item level
out:PutLongLE( 0x100000C4 ); -- header
out:PutLongLE( 0x00000043 );
The first 'extra structures' count should always be 3, as it encapsulates three sub arrays: the 'extra extra structures' one, the repeated generic ID and the repeated instance ID. While those repeated generic and instance IDs are probably ignored, that's how all item links are generated by Turbine, so I would leave it that way.

Also please keep an indication that item links are fake for anything potentially going to global channels, I would hate for Turbine to decide that fake item links are to be dealt with and remove the possibility.
Ответить с цитированием