Ezzz
Developer of Nostalrius and The Violet Project
It's a pain in the butt to map and code your RPG map within Remere and OTServ itself when you have many teleports, and switches lying around and it's even worse when they all connect each other as a big quest.
I wonder, if it'd seem a bad or good idea to you people out there to implement LUA code functionality inside OTBM files, along RME, so when editing an item in the map editor, can change within the properties dialog if the item has an action or a movement, and then, the coding text area (with highlighting), so the server can just boot up and use this code for each of the actions (setting them into the item as a variable), instead of having all those lua lying around for things that we're only using in the map.
This can also, I think, increase performance when the server is searching for a movement ID/action ID (although, extremely minimal), instead of doing so, the code can just interpret the existing LUA code for the given item.
Does it seem like bad practice to you?
What else can you suggest?
This is only something I came up with while doing a big quest, and the pain it is to me to manage all the actions, having to re-open many other scripts just to check where is set what and what for.
I wonder, if it'd seem a bad or good idea to you people out there to implement LUA code functionality inside OTBM files, along RME, so when editing an item in the map editor, can change within the properties dialog if the item has an action or a movement, and then, the coding text area (with highlighting), so the server can just boot up and use this code for each of the actions (setting them into the item as a variable), instead of having all those lua lying around for things that we're only using in the map.
This can also, I think, increase performance when the server is searching for a movement ID/action ID (although, extremely minimal), instead of doing so, the code can just interpret the existing LUA code for the given item.
Does it seem like bad practice to you?
What else can you suggest?
This is only something I came up with while doing a big quest, and the pain it is to me to manage all the actions, having to re-open many other scripts just to check where is set what and what for.