mojo_client/bin/scripts/example_onload.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

13 lines
342 B
Modula-2

// EXAMPLE SCRIPT!!!
// purpose: demonstrate the #onload part that gets executed everytime the script is loaded
// result: on the first call the number '1001' will be written, 2nd call '1002', etc.
#permission=255
#onload
out Loading "loadtest.def" --[[
set,mytest 1000
out finished ]]--
#endonload
add,mytest 1
out ${mytest}