-> moved conf loading from core to scripts. *New DefScript call: _leaveworld.def *Fixed crash when calling _leaveworld on ~WorldSession() * some updates to internal variable name handling * added new macro: @n : newline (\n) * cleanups * added a bunch of new scripts + examples
21 lines
412 B
Modula-2
21 lines
412 B
Modula-2
#permission=255
|
|
|
|
// expected args:
|
|
// @def: item id
|
|
// @0: variable name to write into
|
|
// @1 (optional): color (in hex format: 00FF00 = pure green)
|
|
|
|
SET,i ${@def}
|
|
SET,target ${@0}
|
|
SET,color ${@1}
|
|
DEFAULT,i 0
|
|
TOINT,i ${i}
|
|
DEFAULT,target chatitem
|
|
DEFAULT,color 6679FF
|
|
SET,v #${@caller}::${target}
|
|
SET,${v} |cff${color}|Hitem:${i}:0:0:0|h[Item ${i}]|h|r
|
|
|
|
UNSET i
|
|
UNSET v
|
|
UNSET color
|
|
UNSET target |