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

Hello folks, I'll reply in English as I can't write in Russian and automatic translation isn't exactly great. Sorry about that.

The basic process would be:

1) Encode an item as described in the previous post and associated thread, with the following data:
- its generic ID
- a fake instance ID (can't be completely null, I've been using 0x0316000300000000 so far, but that includes an identifier (0x16?) to the snowbourn server, which would have to be changed for your server, I've not built a list of those yet)
- Either its level (eg: 85), or its 'real' level

2) Compress that data (with zlib). There are no zlib compression implementations in pure lua out there however. I wrote a crude implementation for my LIP plugin, it does the trick, but I haven't released it yet.

3) Add the size of the resulting zlib data (four bytes) before the compressed data

4) Encode it all using Turbine's UNICODE scheme. I wrote some code to do that and it's available on lotro-interface (TurbineUTF8Binary.Encode() ) https://www.lotrointerface.com/downlo...sDecoding.html

5) Encapsulate the encoded data within "<ExamineItemInstance:ItemInfo:[data]>name<\ExamineItemInstance>"

6) Set it to an alias quickslot to output in a channel (eg: "/say <ExamineItemInstance:ItemInfo:[data]>name<\ExamineItemInstance>". Can't output anything directly with lua, someone has to click a quickslot.

I have *no* idea however if it would work as wanted with scalable items, the level info might well be ignored entirely and the items still display at level 75 or whatever is their base level.

Anyway, it's quite a complex hack, I wrote all the code necessary to link Legendary Items and that works, but I haven't tried scalable items (legendary items are not level scaled). I'll give it a go, but I'm very busy at the moment, so it'll take some time until I can work on pet projects again.
Ответить с цитированием