* 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.
14 lines
520 B
Modula-2
14 lines
520 B
Modula-2
// this script gets executed if a player tries to give pseuwow a command but is not allowed to
|
|
|
|
// Arguments:
|
|
// ==========
|
|
// @0 : name of the player who wanted to execute a command
|
|
// @1 : permission level of this user
|
|
// @2 : permission level needed to execute the script
|
|
// @3 : name of the script that should get executed
|
|
|
|
SAY Forget it, ${@0}, you have only permission ${@1} but need ${@2} to run the script '${@3}'
|
|
LOG Player '${@0}' (p:${@1}) wanted to execute '${@3}' (p:${@2})
|
|
|
|
// say NO!
|
|
EMOTE 66 |