<?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 - user:mhoram:scripts</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-14T07:23:58+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://wiki-test.cross-fire.org/user:mhoram:scripts:altar_pray?rev=1744999688&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki-test.cross-fire.org/user:mhoram:scripts:attacktype?rev=1744999689&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki-test.cross-fire.org/user:mhoram:scripts:healup?rev=1744999689&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki-test.cross-fire.org/user:mhoram:scripts:indent_a_file?rev=1744999689&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki-test.cross-fire.org/user:mhoram:scripts:level_up?rev=1744999689&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki-test.cross-fire.org/user:mhoram:scripts:protect?rev=1744999689&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki-test.cross-fire.org/user:mhoram:scripts:subs.pl?rev=1744999689&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki-test.cross-fire.org/user:mhoram:scripts:watch_food?rev=1744999689&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki-test.cross-fire.org/user:mhoram:scripts:wiki_orphans?rev=1744999689&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/user:mhoram:scripts:altar_pray?rev=1744999688&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-04-18T18:08:08+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>altar_pray</title>
        <link>https://wiki-test.cross-fire.org/user:mhoram:scripts:altar_pray?rev=1744999688&amp;do=diff</link>
        <description>Introduction

This is an extremely simple client-side perl script that will pray 600 times over an altar.  It will only send the commands one at a time, so it won&#039;t bog down the server, thanks to the routines in subs.pl.  Yes, this is sort of cheating, but if you&#039;re going to pray until you get something uncursed by pressing the button hundreds of times anyway, you might as well be getting a snack while it does it.</description>
    </item>
    <item rdf:about="https://wiki-test.cross-fire.org/user:mhoram:scripts:attacktype?rev=1744999689&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-04-18T18:08:09+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>attacktype</title>
        <link>https://wiki-test.cross-fire.org/user:mhoram:scripts:attacktype?rev=1744999689&amp;do=diff</link>
        <description>Here&#039;s a very simple script that takes a number as an argument and outputs the attacktypes corresponding to that value.  Requires Perl.


#!/usr/bin/perl
use warnings;
use strict;

die &quot;Usage: attacktype &lt;number&gt;\n&quot; unless $ARGV[0] =~ /^\d+$/;

my @attacktypes = qw( physical      # taken from include/attack.h
		      magic	
		      fire		
		      electricity	
		      cold		
		      confusion	
		      acid		
		      drain	
		      weaponmagic	
		      ghosthit	
		      poison	
		      slow		
		  …</description>
    </item>
    <item rdf:about="https://wiki-test.cross-fire.org/user:mhoram:scripts:healup?rev=1744999689&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-04-18T18:08:09+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>healup</title>
        <link>https://wiki-test.cross-fire.org/user:mhoram:scripts:healup?rev=1744999689&amp;do=diff</link>
        <description>Introduction

This is a simple client-side perl script which will pray and cast a healing spell alternately until your character has maximum grace and hit points.

Requirements

	*  Perl
	*  subs.pl

Code


#!/usr/bin/perl
use warnings;
use strict;
require &quot;./subs.pl&quot;; # get some subs to use
$| = 1;

# check grace
# if less than max
#   bring grace to max
# check hp
# if less than max
#   invoke a healing spell
# start over unless both are max

while(1){
    my @hp = request_line(&#039;stat hp&#039;);
   …</description>
    </item>
    <item rdf:about="https://wiki-test.cross-fire.org/user:mhoram:scripts:indent_a_file?rev=1744999689&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-04-18T18:08:09+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>indent_a_file</title>
        <link>https://wiki-test.cross-fire.org/user:mhoram:scripts:indent_a_file?rev=1744999689&amp;do=diff</link>
        <description>This is a simple lisp function for Emacs (or XEmacs) that indents a file and removes all tabs, according to the Crossfire programming guide.  


;;; Fixes the indentation of a file at 4 spaces per indent,
;;; and replaces all tabs with spaces.
;;; To use on code.c in batch mode, save as indent.el, and run:
;;;
;;; emacs -batch code.c -l indent.el -f indent-a-file -kill
;;;
(defun indent-a-file ()
  (setq c-basic-offset 4)
  (indent-region (point-min) (point-max) nil)
  (untabify (point-min) (poi…</description>
    </item>
    <item rdf:about="https://wiki-test.cross-fire.org/user:mhoram:scripts:level_up?rev=1744999689&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-04-18T18:08:09+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>level_up</title>
        <link>https://wiki-test.cross-fire.org/user:mhoram:scripts:level_up?rev=1744999689&amp;do=diff</link>
        <description>Introduction

This is a client-side perl script for Crossfire, which reports which
skills are nearing the next level.  It reports any (including overall
player level) that are within 10% of the next level, and that
percentage can be changed in the code on line 6.  I thought this would
be handy for determining which skills to concentrate on for fastest
improvement.</description>
    </item>
    <item rdf:about="https://wiki-test.cross-fire.org/user:mhoram:scripts:protect?rev=1744999689&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-04-18T18:08:09+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>protect</title>
        <link>https://wiki-test.cross-fire.org/user:mhoram:scripts:protect?rev=1744999689&amp;do=diff</link>
        <description>Introduction

This is a very simple perl script that casts a series of protection spells on your character, keeping grace at max throughout.  Adjust the list of protection spells to include the ones you want to cast.  

Requirements

	*  Perl
	*  subs.pl

Code</description>
    </item>
    <item rdf:about="https://wiki-test.cross-fire.org/user:mhoram:scripts:subs.pl?rev=1744999689&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-04-18T18:08:09+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>subs.pl</title>
        <link>https://wiki-test.cross-fire.org/user:mhoram:scripts:subs.pl?rev=1744999689&amp;do=diff</link>
        <description>subs.pl

This is a small assortment of subroutines that I call often in client-side scripts, so I put them together here in one place.  To use this file, put it in the same directory as your scripts, and include it like this: 

require &quot;./subs.pl&quot;;

Code</description>
    </item>
    <item rdf:about="https://wiki-test.cross-fire.org/user:mhoram:scripts:watch_food?rev=1744999689&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-04-18T18:08:09+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>watch_food</title>
        <link>https://wiki-test.cross-fire.org/user:mhoram:scripts:watch_food?rev=1744999689&amp;do=diff</link>
        <description>Introduction

This is a client-side perl script for Crossfire, which attempts
to eat a normal food or waybread when the player gets hungry.
WARNING: Special identified foods like a “food of Poison” should
not be used, but unidentified ones may be, so use at your own risk.</description>
    </item>
    <item rdf:about="https://wiki-test.cross-fire.org/user:mhoram:scripts:wiki_orphans?rev=1744999689&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-04-18T18:08:09+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>wiki_orphans</title>
        <link>https://wiki-test.cross-fire.org/user:mhoram:scripts:wiki_orphans?rev=1744999689&amp;do=diff</link>
        <description>Introduction

This is a perl script which walks through the Crossfire Dokuwiki index, parses the links on every page, and reports any orphaned pages -- those that are never linked to from other dokuwiki pages.  (In dokuwiki parlance, they have no backlinks.)  If these pages aren&#039;t under heavy construction, they should probably be linked to from somewhere so they can be found, or deleted if no longer needed.</description>
    </item>
</rdf:RDF>
