by
HolyCrusader
» 02 Nov 2015, 18:27
Are named items no longer possible w/ server-side only changes? I created a new weapon in the objects_type database by inserting it into the dump.sql file (copied the original weapon row & then set a new unique ID). Then I went in GM mode in the server and added it to my inventory. Upon doing that my client crashes. (Everytime you connect to the server and load items in your inventory it crashes). The item is in the 'item's table of the database and in my character's root container. Character will continue to crash at load-in until item is deleted from items table.
Also tried to create named containers. (Chests)
First, I created three new named chest items with unique object_type IDs by inserting the rows into the dump.sql file.
I created 3 chests in-game, then replaced the chest object_type ID in the containers table, the movable_objects table and in-game the chests still appear as "chest". Then I updated the object_type ID in the final table, objects_patch and when I went in the server the chests were completely invisible (but actually still there - trying to walk into them resulted in not being able to walk thru/over)
On the server side, I also cloned the "chesT" entry in the cm_objects.xml file and changed the object_typeID to the new values for each new named Chest
I also cloned the original weapon/tool IDs in the cm_equipTypes.xml file and changed the object_typeIDs to the new values for each named weapon/tool
Any help / tips are appreciated
Thank you!
edit: more info:
I want the clients to be able to see the name of the items (Chest should have a new name ie, SPEAR CHEST when the client hovers over it in-game) and when they open the chest I want them to be able to see the named weapon inside of it - ie. GOLD SPEAR.
I don't want the client to be able to take the spear out of the chest - so I set the container capacity to 800 and made the spear weigh 800
I do want the client to be able to move around the chest to another point