[Crossfire-wiki] [Crossfire DokuWiki] page changed: cfpython

no-reply_wiki at metalforge.org no-reply_wiki at metalforge.org
Thu Nov 8 17:51:33 CST 2007


A page in your DokuWiki was added or changed. Here are the details:

Date        : 2007/11/08 17:51
User        : 
Edit Summary: 

@@ -199,9 +199,19 @@
    * 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)
+   * 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.
+ exemple:
+ <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=1190923123
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