Sphereserver / Source-X

Ultima Online server emulator
Apache License 2.0
57 stars 45 forks source link

COMP (Gets the number of components) #1236

Open Steinny opened 5 months ago

Steinny commented 5 months ago

.xshow comp = return like comp.0 SERIAL of object but should return COUNT!

GladieUO commented 5 months ago

I believe itsbecause COMP is the whole multi, so to reduce lag its only 1 item. However if you use .xshow component, then you can see all the dynamic components. If you use .xshow basecomponent, you can see all the static ones. ☺

https://wiki.spherecommunity.net/index.php?title=Special_Items https://wiki.spherecommunity.net/index.php?title=ITEMDEF#Multi_Definitions

Steinny commented 5 months ago

.xshow comp return [UID0] .xshow comp.0 return [UID0] .xshow comp.1 return [UID1] .xshow comp.2 return [INVALID SET]

COMPONENT work good - its return string, but i need SERIAL!

xwerswoodx commented 5 months ago

It changed to COMPS and all variables return as REFERENCE as you can use .XSHOW COMP.0.NAME

Steinny commented 5 months ago

Sorry, thanks for the help

Steinny commented 5 months ago

https://wiki.spherecommunity.net/index.php?title=Special_Items

Can you make changes into wiki or addons for X branches