TUServerMU
MuOnline => Soporte / Ayudas => Tema comenzado por: BluePh0eniX on November 25, 2023, 09:45:20 PM
-
Hello, I created a new item and I am trying to add it as a new custom item.
I made the model with MilkShape and converted it to .bmd and .ozt files.
I have added it to the item folders and edited item.txt (on server side) item.bmd, itemtooltip.bmd and itemtooltiptext.bmd on server side. I also added it to CustomItem and generated new main.premium.
The item itself looks very similar to Condor Flame (takes 1x2 inventory squares), but when I add it to my inventory the item takes 1x2 spaces but the object is not correctly positioned. It is located in 1 square and I am seeing the top view, not the front.
It looks like this:
(https://i.postimg.cc/ZKPq8THx/Screenshot-2023-11-26-041413.png)
But it should look like this:
(https://i.postimg.cc/3xnJqnPy/Screenshot-2023-11-26-041336.png)
I don't belive that the problem is in the model, because I tested exporting it as a skin for Condor Flame and it works perfectly (the second screenshot is taken that way), also in PentiumTools it looks normal.
I also tried changing the position/scaling the model in Milkshape, but in the invenory I just see it again in 1 square, shrinked.
I am testing it on Louis Emulator Update 15 - Season 6
Do you have any idea how can I change the position and correct it?
-
Take a look at RenderObjectVisual, that function handles the object scale, position and rotation within the inventory.
-
You should config file: "MainInfo/Custom/CustomItemPosition.txt"
This is the configuration and details of what I could understand how it works:
// FILES PREMIUN SYSTEM CUSTOM ITEM POSITION
//===============================================================================================================
// MasterCodex Season 6 - Mu Online
// Developer: MasterCodex
// Last review: 07.03.2020
//===============================================================================================================
// CustomPosition config file
// ItemIndex -> max 1000 Item Position
//===============================================================================================================
//ItemIndex TranslationX TranslationY RotationX RotationY RotationZ Scale Commnet
// Items Reparados
// Index Izq a Der Abajo a Arriba Diagonal Vertical Rota. Vert. Tamaño
2112 -0.04 0.10 180.0 -90.0 000.0 1.0 //Angelic Bow
2114 -0.04 0.10 180.0 -90.0 000.0 1.0 //DarkStinger Bow
2668 0.01 -0.02 -090.0 180.0 001.0 1.5 //Book Of Damage
end
I hope I can help you