[Crossfire-wiki] [Crossfire DokuWiki] page changed: cfpython
no-reply_wiki at metalforge.org
no-reply_wiki at metalforge.org
Thu Nov 8 18:00:39 CST 2007
A page in your DokuWiki was added or changed. Here are the details:
Date : 2007/11/08 18:00
User :
Edit Summary:
@@ -203,19 +203,21 @@
* map width (''Number'')
* map height (''Number'')
Returns an empty map of specified dimensions. Unless map is removed immediately, ''Path'' should be set so the map correctly displays in the ''maps'' output.
+
==== Misc functions ====
=== Log ===
Parameters:
- * level (decimal, must be one of Crossfire.LogError, Crossfire.LogInfo, Crossfire.LogDebug, Crossfire.LogMonster)
+ * level (Crossfire.LogError, Crossfire.LogInfo, Crossfire.LogDebug or Crossfire.LogMonster)
* message (string)
Use the server logging facilities to output script messages in server console. This is the **recommanded** method, instead of using the
- python build-in "print" method.
+ python build-in "print" method. Using this, scripts take advantage of Debug and Monster level which can be hidden at will by server admin (log level), and
+ have access to the error level, mentionning to admin serious troubles.
exemple:
- <code>Crossfire.Log(Crossfire.LogDebug,'Player %s entered guild %s' %obj.Name %guildName</code>
+ <code>Crossfire.Log(Crossfire.LogDebug,'Player %s entered guild %s' %obj.Name %guildName)</code>
=== RegisterCommand ===
Parameters:
* command name (string)
* script (string)
IP-Address : 91.177.197.17
Old Revision: http://wiki.metalforge.net/doku.php/cfpython?rev=1194566208
New Revision: http://wiki.metalforge.net/doku.php/cfpython
--
This mail was generated by DokuWiki at
http://wiki.metalforge.net/
More information about the crossfire-wiki
mailing list