Difference between revisions of "Template:InfoBox UOSound"
BrianFreud (talk | contribs) m |
BrianFreud (talk | contribs) m |
||
Line 3: | Line 3: | ||
|class=titlecell colspan="2"| Sound | |class=titlecell colspan="2"| Sound | ||
|- | |- | ||
− | |colspan="2" style="text-align:center;"|{{#ifeq:{{#arrayindex:sound{{#var:sound}}|0}}|unused|This sound number is not used by the client.|[[File:UO-Sound- | + | |colspan="2" style="text-align:center;"|{{#ifeq:{{#arrayindex:sound{{#var:sound}}|0}}|unused|This sound number is not used by the client.|[[File:UO-Sound-{{#var:sound}}-1.mp3|File:UO-Sound-{{#var:sound}}-1.mp3]] |
{{!}}- | {{!}}- | ||
{{!}} | {{!}} | ||
Line 11: | Line 11: | ||
{{!}}Length{{!!}}{{#arrayindex:sound{{#var:sound}}|1}} seconds | {{!}}Length{{!!}}{{#arrayindex:sound{{#var:sound}}|1}} seconds | ||
{{!}}- | {{!}}- | ||
− | {{!}}Number (decimal)*{{!!}}{{#var:sound}} | + | {{!}}Number (decimal)*{{!!}}{{#expr: {{#var:sound}} - 1 }} |
{{!}}- | {{!}}- | ||
− | {{!}}Number (hex)*{{!!}}{{#ifeq: {{#var:sound}}|1|0x01|{{Dec2hex|{{#var:sound}}}}}} | + | {{!}}Number (hex)*{{!!}}{{#ifeq: {{#var:sound}}|1|0x01|{{Dec2hex|{{#expr: {{#var:sound}} - 1 }}}}}} |
{{!}}- | {{!}}- | ||
{{!}} colspan=2 {{!}} <div>* Note that internally, a sound packet (packet 0x54) uses a<br> [[Wikipedia:Word_(computer_architecture)|word]]-sized index starting from 0, not 1. This means that<br>sound #1 internally has packet ID #0.<div> | {{!}} colspan=2 {{!}} <div>* Note that internally, a sound packet (packet 0x54) uses a<br> [[Wikipedia:Word_(computer_architecture)|word]]-sized index starting from 0, not 1. This means that<br>sound #1 internally has packet ID #0.<div> | ||
{{!}}}[[Category:UO Items Using Specific Sounds]]}}</includeonly> | {{!}}}[[Category:UO Items Using Specific Sounds]]}}</includeonly> |