* various .def scripts updates * added cmd.def & getchatitem.def * fixed: correctly check variable names in function "isset" * fixed problems with loading scripts that cosist captalized IF/ENDIF/LOOP/ENDLOOP statments. now upper, lower and mixedcase work as they should.
18 lines
335 B
Modula-2
18 lines
335 B
Modula-2
#permission=255
|
|
|
|
// expected args:
|
|
// @def: item id
|
|
// @0 (optional): color (in RGB hex format: 00FF00 = pure green)
|
|
// returns: clickable item link
|
|
|
|
SET,i ${@def}
|
|
SET,color ${@0}
|
|
DEFAULT,i 0
|
|
TOINT,i ${i}
|
|
DEFAULT,color 6679FF
|
|
SET,link |cff${color}|Hitem:${i}:0:0:0|h[Item ${i}]|h|r
|
|
|
|
UNSET i
|
|
UNSET color
|
|
|
|
RETURN ${link} |