From 357ca778aa68fdcebe341715337aac493ebacdca Mon Sep 17 00:00:00 2001 From: "False.Genesis" Date: Mon, 29 Jan 2007 15:21:47 +0000 Subject: [PATCH] * forgot to use "log" instead of "out" in scripts (-> logfile) * forgot to add conf option: "NOTIFYPING" * forgot to describe in prev. rev.: added new DefScript load definition: "#onload" & "#/onload". execute parts of scripts when they get loaded (to initialize stuff, for example) --- bin/conf/PseuWoW.conf.default | 4 ++++ bin/scripts/_enterworld.def | 4 ++-- bin/scripts/_nopermission.def | 1 + bin/scripts/_startup.def | 4 ++-- bin/scripts/cleanupvars.def | 4 ++-- bin/scripts/internal_perm.def | 4 ++-- bin/scripts/loadall.def | 4 ++-- bin/scripts/outv.def | 2 +- bin/scripts/whisper.def | 2 +- 9 files changed, 17 insertions(+), 12 deletions(-) diff --git a/bin/conf/PseuWoW.conf.default b/bin/conf/PseuWoW.conf.default index 30af77f..3179968 100644 --- a/bin/conf/PseuWoW.conf.default +++ b/bin/conf/PseuWoW.conf.default @@ -68,3 +68,7 @@ enablecli=1 // like "Hi" and "What do you think of x" etc. enablechatai=1 +// show ping responses & ping time +notifyping=1 + + diff --git a/bin/scripts/_enterworld.def b/bin/scripts/_enterworld.def index 91fef46..0b430a8 100644 --- a/bin/scripts/_enterworld.def +++ b/bin/scripts/_enterworld.def @@ -2,7 +2,7 @@ // PSEUWOW DEF_SCRIPT WORLD-ENTER FILE -OUT * World entered, executing appropriate script... +LOG * World entered, executing appropriate script... // not yet implemented // CASTSPELL 836 @@ -34,4 +34,4 @@ JOINCHANNEL tradee // ... -OUT * finished executing script. \ No newline at end of file +LOG * finished executing script. \ No newline at end of file diff --git a/bin/scripts/_nopermission.def b/bin/scripts/_nopermission.def index d0210a7..aeca5bf 100644 --- a/bin/scripts/_nopermission.def +++ b/bin/scripts/_nopermission.def @@ -10,6 +10,7 @@ // @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 \ No newline at end of file diff --git a/bin/scripts/_startup.def b/bin/scripts/_startup.def index 7fe9347..4663d56 100644 --- a/bin/scripts/_startup.def +++ b/bin/scripts/_startup.def @@ -2,7 +2,7 @@ // PSEUWOW DEF_SCRIPT STARTUP FILE -OUT * DefScript StartUp [${@version_short}]... +LOG * DefScript StartUp [${@version_short}]... // Load required conf files. LOADCONF PseuWoW.conf @@ -29,6 +29,6 @@ INTERNAL_PERM // do more stuff here in future... -OUT * StartUp complete! +LOG * StartUp complete! diff --git a/bin/scripts/cleanupvars.def b/bin/scripts/cleanupvars.def index b71e175..88ac96b 100644 --- a/bin/scripts/cleanupvars.def +++ b/bin/scripts/cleanupvars.def @@ -1,6 +1,6 @@ -OUT * Cleaning up variables... +LOG * Cleaning up variables... UNSET #ACCPASS UNSET #ACCNAME -OUT * Dangerous variables removed. \ No newline at end of file +LOG * Dangerous variables removed. \ No newline at end of file diff --git a/bin/scripts/internal_perm.def b/bin/scripts/internal_perm.def index 23c083a..d90f47a 100644 --- a/bin/scripts/internal_perm.def +++ b/bin/scripts/internal_perm.def @@ -1,5 +1,5 @@ -OUT * Assigning permissions for internal functions... +LOG * Assigning permissions for internal functions... set,p 255 @@ -44,4 +44,4 @@ SETSCRIPTPERMISSION,logdebug ${p} UNSET p -OUT * Permissions set. +LOG * Permissions set. diff --git a/bin/scripts/loadall.def b/bin/scripts/loadall.def index 779e23d..7a17dc4 100644 --- a/bin/scripts/loadall.def +++ b/bin/scripts/loadall.def @@ -1,7 +1,7 @@ // preloads the most important scripts -OUT Loading DefScripts... +LOG Loading DefScripts... RELOADDEF _enterworld RELOADDEF _leaveworld @@ -24,4 +24,4 @@ RELOADDEF sayv RELOADDEF s RELOADDEF y -OUT * DefScripts loaded. \ No newline at end of file +LOG * DefScripts loaded. \ No newline at end of file diff --git a/bin/scripts/outv.def b/bin/scripts/outv.def index f487b3f..58aa1d8 100644 --- a/bin/scripts/outv.def +++ b/bin/scripts/outv.def @@ -2,6 +2,6 @@ SET,vn #${@caller}::${@def} SET,vv,onfail,{} ${${vn}} -OUT * Var '${@def}' = '${vv}' +LOG * Var '${@def}' = '${vv}' UNSET vv UNSET vn \ No newline at end of file diff --git a/bin/scripts/whisper.def b/bin/scripts/whisper.def index 0ecc2c1..c02cd95 100644 --- a/bin/scripts/whisper.def +++ b/bin/scripts/whisper.def @@ -7,7 +7,7 @@ SET,lang ${@1} DEFAULT,lang 0 -OUT * Whisp to '{${player}}' '{${msg}}' in lang '${lang}' +LOGDEBUG * Whisp to '{${player}}' '{${msg}}' in lang '${lang}' SENDCHATMESSAGE,6,{${lang}},{${msg}},{${player}} UNSET lang