@Ninlin maybe it's protected by admin rights?
@MagicWall I believe this mod will cause heavy lag/delayed loading of otclient because it unnecessarily loads spr/items.xml on startup
View attachment 49941
or just read clientid from items.xml
What do you mean item.srv?Any guidance on how to make it compatible with item.srv and not use item.otb? Even if it takes work, I will do it.
What do you mean item.srv?
Where you found this?
u solved?what u meant with this "classic" notifications?
I got on config
monsterLootMessage = 3
monsterLootMessageType = 22
Should I change it? Because there is nothing on Loot Stat box.
Thanks
is there a way to get client id items?
findItemByName = g_things.findItemTypeByName(ITEM_NAME)
local itemClientId = findItemByName:getClientId()
I mean to get the item icons on screen, cuz it'd be very lazy to edit my items.srv, and edit an otb file always, It would be awesome to load .dat and .spr filesDo you mean change item name from stored data to client item id?
You can get item name, then change it to item object, and then get client item id. To use it, you need to load item.otb and item.xml (module default load these files).
Lua:findItemByName = g_things.findItemTypeByName(ITEM_NAME) local itemClientId = findItemByName:getClientId()
Example in code:
Github Loot stats example
This module is based on .dat and .spr files, but it need to change item names (loot informations) to id, so it's need additional items.xml file to parse names to server id, and then to client id, to get images from .spr file.I mean to get the item icons on screen, cuz it'd be very lazy to edit my items.srv, and edit an otb file always, It would be awesome to load .dat and .spr files
This module is based on .dat and .spr files, but it need to change item names (loot informations) to id, so it's need additional items.xml file to parse names to server id, and then to client id, to get images from .spr file.
Of course it's possible to create a module with a server script, who will send data using opcodes to client, who will change directly server id to client id, without search server id by item names.
Have you resolve it? I have the same issueFirst time I ever add a module.
I did not get the GP icon, but I do find "Loot Stats" under options:
View attachment 69780
Cant click anything though, what is wrong?