* added script to support /me-like emotes (scriptname is "me")
* changed the permission system: now a script cant be used as game command f no permission is explicitly set
* implemented threadsafe CLI queue to solve crashes with short-intervalled events that ran on 2 threads
* fixed name return at "getitemprotovalue" script
* iplemented DrawObject class and a Mgr for those objects; they will ease object drawing once implemented. the Mgr works under control of the GUI thread and is threadsafe.
* implemented auto-loading of SCP files if a name-tag is present somewhere in the file ("#dbname=...") and no explicit db name was passed to "loadscp" script.
* changed internal ObjMgr storage to std::map (instead of list) for faster access
* fixed call of "_enterworld" script
* fixed handling of MyCharacter(), which could cause crashes after newly changes
* fixed GetFileList() func in tools.cpp (this fixes also related "lgetfiles" script func). now it will only parse files, not directories. might still need some fixing for linux.
41 lines
1.1 KiB
Modula-2
41 lines
1.1 KiB
Modula-2
// example file. wrap a few functions together.
|
|
|
|
//------------------------------------------------
|
|
#script=gc
|
|
#permission=0
|
|
//------------------------------------------------
|
|
// example script to write into channel "generalchat"
|
|
// usage: "gc bla bla..."
|
|
chan,generalchat ${@def}
|
|
|
|
|
|
//------------------------------------------------
|
|
#script=gcl
|
|
#permission=0
|
|
//------------------------------------------------
|
|
// write leetspeak to channel generalchat (see "gc" script)
|
|
// usage: "gcl moo, cow syndrome!"
|
|
gc ?{toleet ${@def}}
|
|
|
|
|
|
//------------------------------------------------
|
|
#script=selfheal
|
|
#permission=0
|
|
//------------------------------------------------
|
|
// purpose: heal self with full hp. GM-ONLY!!
|
|
// be sure you have this spell in your spellbook!
|
|
// DO NOT USE THIS SCRIPT IF YOU ARE NO GM!
|
|
|
|
// target self (the name we used to login)
|
|
TARGET ${#CHARNAME}
|
|
// 23965 = instant heal
|
|
CASTSPELL 23965
|
|
|
|
//------------------------------------------------
|
|
#script=sl
|
|
#permission=0
|
|
//------------------------------------------------
|
|
// say leetspeak text. gm-commands can't be executed this way
|
|
s,{${@0}} ?{toleet ${@def}}
|
|
|