mojo_client/bin/scripts/makechatitem.def
False.Genesis b15aff0b5d *New DefScript API functions: loadconf, applyconf, applypermissions; log, logdebug, logdetail (according to debug level set in conf).
-> 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
2007-01-29 15:09:11 +00:00

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