From no-reply_wiki at metalforge.org Tue Nov 1 11:46:42 2011 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Tue, 01 Nov 2011 11:46:42 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: cfpython Message-ID: <1320166002.678221.27682.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2011/11/01 11:46 User : ryo Edit Summary: update @@ -381,8 +381,9 @@ ==== More ==== next archetype linked to current archetype. Will be ''None'' for last item ==== NewObject() ==== Returns a ''Crossfire.Object'' having this archetype as type. It isn't on any map or in any inventory, so should be inserted somewhere or deleted if not used. + ===== Object ===== FIXME link to dev:objects 's fields? split flag & such info. Make a table with property / mapping to object / Python type @@ -497,9 +498,9 @@ * Subtype: ''Number'' * **Value**: ''Number'', value of the object * ArchName: ''String'', name of this object's archetype * Archetype: ''[[cfpython#Crossfire.Archetype methods and attributes|Crossfire.Archetype]]'' - * **NoSave**: ''Boolean'' + * **NoSave**: ''Boolean'', if set this Object will never be saved to disk, even if map is temporary swapped out * Exists (special meaning, False if cf object has been freed from memory, True otherwise) * Env: ''[[cfpython#Crossfire.Object methods and attributes|Crossfire.Object]]''. Can be ''None''. * MoveType * MoveBlock IP-Address : 82.236.87.204 Old Revision: http://wiki.metalforge.net/doku.php/cfpython?rev=1307655499 New Revision: http://wiki.metalforge.net/doku.php/cfpython -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sun Nov 6 11:04:01 2011 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sun, 06 Nov 2011 11:04:01 -0600 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: server_plugin Message-ID: <1320599041.170590.26291.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2011/11/06 11:03 User : ryo Edit Summary: update @@ -122,16 +122,18 @@ ==== Throw ==== Archetype: event_throw Generated when the object is thrown. The object is still in the thrower's inventory, and can be removed to abort being thrown. + ==== Trigger ==== Archetype: event_trigger Used for various objects, like traps, teleporters or triggers. Generated when those objects are used (for example, when a player passes through a teleporter). * for a scroll/book/tome, generated when player writes into the item. ''op'' is the item, ''activator'' is the player, ''message'' is what player is trying to write. Return non zero to prevent writing. Event is generated before length is checked for overflow. * for a magical scroll, generated when player inscribes a spell in the item. ''op'' is the item, ''activator'' is the player, ''third'' is the spell being inscribed. Return non zero to prevent writing. Event is generated after all checks are done (player can really write the scroll, he didn't read it accidentally) but before sp/gr are decreased. + * for teleporters (type 41), exits (type 66), directors (type 112), check inventory (type 64), swamps (type 138) called when something moves on the spot ; process can be aborted by returning a non zero value ==== Timer ==== Archetype: event_timer IP-Address : 82.236.87.204 Old Revision: http://wiki.metalforge.net/doku.php/server_plugin?rev=1307656111 New Revision: http://wiki.metalforge.net/doku.php/server_plugin -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Fri Nov 11 03:51:16 2011 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Fri, 11 Nov 2011 03:51:16 -0600 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: cfpython Message-ID: <1321005076.398083.14897.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2011/11/11 03:51 User : ryo Edit Summary: update @@ -595,19 +595,20 @@ Arguments: * ''String'' representing the object name to find Will return the first object in inventory that has the specified name. Name must be the raw name, without bonuses and such. + ==== CheckInventory ==== Finds an object in current object's inventory. Arguments: - * ''String'' representing the name of the archetype or item to find + * ''String'' representing what to find - Will return the first object in inventory that has the specified archetype, or the specified name. Matching is done on partial names. + Will return the first object in inventory that has the specified archetype, or the specified name (partial matches are fine), or the specified "slaying" field. IP-Address : 82.236.87.204 Old Revision: http://wiki.metalforge.net/doku.php/cfpython?rev=1320165994 New Revision: http://wiki.metalforge.net/doku.php/cfpython -- This mail was generated by DokuWiki at http://wiki.metalforge.net/