<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki-test.cross-fire.org/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://wiki-test.cross-fire.org/feed.php">
        <title>Crossfire Wiki - client_side_scripting</title>
        <description></description>
        <link>https://wiki-test.cross-fire.org/</link>
        <image rdf:resource="https://wiki-test.cross-fire.org/_media/wiki:dokuwiki.svg" />
       <dc:date>2026-04-14T05:35:26+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://wiki-test.cross-fire.org/client_side_scripting:book.py?rev=1744998692&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki-test.cross-fire.org/client_side_scripting:cfequip.cpp?rev=1744998692&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki-test.cross-fire.org/client_side_scripting:client_scripting_interface-basic_howto_staging?rev=1744998691&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki-test.cross-fire.org/client_side_scripting:client_scripting_interface-basic_howto?rev=1744998691&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki-test.cross-fire.org/client_side_scripting:scripts?rev=1744998691&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://wiki-test.cross-fire.org/_media/wiki:dokuwiki.svg">
        <title>Crossfire Wiki</title>
        <link>https://wiki-test.cross-fire.org/</link>
        <url>https://wiki-test.cross-fire.org/_media/wiki:dokuwiki.svg</url>
    </image>
    <item rdf:about="https://wiki-test.cross-fire.org/client_side_scripting:book.py?rev=1744998692&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-04-18T17:51:32+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>book.py</title>
        <link>https://wiki-test.cross-fire.org/client_side_scripting:book.py?rev=1744998692&amp;do=diff</link>
        <description>book.py


#! /usr/bin/env python

import sys

# A simple client-side script to write a book from a text file. 
# It requires that you have a pen, and marked a book 
# or other writable object. 
# Then, issue the command &#039;script PATH/TO/book.py file/to/write/to/book&#039;.

DEFAULT_PATH=&quot;PATH_TO_TXT_FILE_HERE&quot;

path = DEFAULT_PATH 
if len(sys.argv) &gt; 1: 
  path = sys.argv[1]

try: 
  file = open(path, &quot;r&quot;) 

except: print &quot;draw 7 Unable to open &#039;%s&#039;:&quot;, # Don&#039;t end the line yet. 
  if isinstance(str, s…</description>
    </item>
    <item rdf:about="https://wiki-test.cross-fire.org/client_side_scripting:cfequip.cpp?rev=1744998692&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-04-18T17:51:32+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>cfequip.cpp</title>
        <link>https://wiki-test.cross-fire.org/client_side_scripting:cfequip.cpp?rev=1744998692&amp;do=diff</link>
        <description>/* cfequip.cpp
 * $Id: cfequip.cpp,v 1.3 2005/12/01 23:11:02 tbrown Exp $
 * Author: Terry Brown
 * Created: Tue Nov 29 2005
 */

/*

Bugs, contact:

  terry_n_brown@yahoo.com

To compile:

   g++ cfequip.cpp -o cfequip

To run from within the client:

   script /path/to/cfequip

Commands to script from client:

(replace &#039;1&#039; with the number of the script if more than one running,
use client command &#039;scripts&#039; to list)

scripttell 1 cfe file &lt;filename&gt;
  set the file for storing / reading equipmen…</description>
    </item>
    <item rdf:about="https://wiki-test.cross-fire.org/client_side_scripting:client_scripting_interface-basic_howto_staging?rev=1744998691&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-04-18T17:51:31+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>client_scripting_interface-basic_howto_staging</title>
        <link>https://wiki-test.cross-fire.org/client_side_scripting:client_scripting_interface-basic_howto_staging?rev=1744998691&amp;do=diff</link>
        <description>Writing Scripts

The script must be executable (e.g. chmod +x with an appropriate shebang). For some languages, it may be necessary to write a wrapper script to start the program. Additionally, on Windows systems where the shebang is not supported, the player must provide a means of running such a script. For example</description>
    </item>
    <item rdf:about="https://wiki-test.cross-fire.org/client_side_scripting:client_scripting_interface-basic_howto?rev=1744998691&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-04-18T17:51:31+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>client_scripting_interface-basic_howto</title>
        <link>https://wiki-test.cross-fire.org/client_side_scripting:client_scripting_interface-basic_howto?rev=1744998691&amp;do=diff</link>
        <description>Client Scripting Interface

The client scripting interface can be used to control a Crossfire client using an external program (script). This interface can be used to extend the client or automate repetitive tasks (see sample scripts).

The script communicates with the client by reading information from standard input and writing commands to standard output. Scripts can be written in any programming language. The same client scripting interface is used by the GTKv2 client and the JXClient. Any d…</description>
    </item>
    <item rdf:about="https://wiki-test.cross-fire.org/client_side_scripting:scripts?rev=1744998691&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-04-18T17:51:31+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>scripts</title>
        <link>https://wiki-test.cross-fire.org/client_side_scripting:scripts?rev=1744998691&amp;do=diff</link>
        <description>Sample Scripts

The sample scripts on this page are working programs contributed by players. Feel free to submit your own by posting it as an attachment to the Crossfire Discussion Mailing List.

C/C++

	* cplusplus-howto - HOWTO for using C++ scripts 
	* food_watch -- Monitors your food and eats if it falls below a certain level.</description>
    </item>
</rdf:RDF>
