create itemType through revscriptsys #3010
Labels
enhancement
Increase or improvement in quality, value, or extent
feature
New feature or functionality
Milestone
Explanation of what you want to do that is currently impossible
create new itemType through lua and set flags/attributes to it (preferable onStartup)
Desired functionality
Increase itemId variable capacity (uint16_t -> 32) in sources.
Create new items on the fly through lua scripts
Set clientId
Set/get all data that would be loaded from xml/otb otherwise
Available workarounds
xml/otb edit, though I don't even know where to find a working otb editor.
Prior art
TFS 0.4 could do it partially through mods (xml file in mods could override main one in existing item ids).
This is how it could look like in 1.x or 2.0:
Problems to deal with
Loading the values the way they're seen as normal items in sources.
Dealing with items that don't get initialized anymore (set client id to avoid debug).
Dealing with container contents of items that aren't containers yet or anymore.
Deciding which house items should be loaded/saved. Making sure that they won't disappear.
(optional, otclient) fixing NPC trade window different items with same clientId bug or changing the way trade works in otclient and adapting the server for it.
The text was updated successfully, but these errors were encountered: