Sphereserver / Source-X

Ultima Online server emulator
Apache License 2.0
53 stars 40 forks source link

ADDCOMP, DELCOMP #1239

Open Steinny opened 2 months ago

Steinny commented 2 months ago

I'm making a door replacement menu for standard type of house (for example) - m_wooden_house

but work ADDCOMP - undocumented command!!! DELCOMP - also doesn't work

Screenshot_3

Steinny commented 2 months ago

I need not only to change the appearance, but also to give out the keys. That's why I'm completely changing one door.

xwerswoodx commented 2 months ago

It's silly, I don't know why it's like that but delete command is DELCOMPONENT instead of DELCOMP and add command is ADDCOMP. I have no idea why it is like that probably a mistake, but DELCOMPONENT and ADDCOMP works well. I will add ADDCOMPONENT as well to make sure both matches with the info in changelog.

Steinny commented 2 months ago

my mistake. Maybe I didn't check DelComponent. at first, I was generally confused between COMP and COMPONENT. and why are the functions different But then I understand.

Steinny commented 2 months ago

This command adds only tag.MultiComponent events like ei_house_component and other link to the house is all this using scripts? it's easier to write a separate function for yourself

Steinny commented 2 months ago

SetOwner - also doesn't work !!!

xwerswoodx commented 2 months ago

What do you mean with SETOWNER? I don't think we have any command like this. In X when you set OWNER it directly set the owner of things, so probably you need to use .xowner uid or .set owner uid

Steinny commented 2 months ago

Screenshot_1

xwerswoodx commented 2 months ago

I see, maybe the person who did this update used SetOwner at first, then changed it and forgot to update changelog, I can update this, but it should be OWNER directly.

https://github.com/Sphereserver/Source-X/blob/49341257dab80698e8d41a914bacf4f603b8a981/src/game/items/CItemMulti.cpp#L2989-L3012