User Tools

Site Tools


client_side_scripting:scripts

Table of Contents

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.
  • cfequip.cpp – manages sets of equipment for different roles (fighting, spell casting, shopping :-)), docs. at top of file

Perl

  • pray – Pray and Pray and Pray without a fishing weight on the keyboard
  • level_up – Reports which skills are nearing advancement.
  • travel – Walks a player from one place to another.
  • watch_food – Auto-applies food when you get hungry.
  • protect – Casts an assortment of protection spells.
  • altar_pray – Takes some of the tediousness out of praying at an altar.
  • healup – Bring grace and hit points to maximum.
  • subs.pl – Subroutines used by most of my other scripts.
  • charge.pl – Manage the charge/discharging of Power Crystals

Python

see About Python if you are new to python.

  • book.py - A script that inscribes a book from a text file. (must have the “inscription” skill, along with something to write on)
  • crossfire.py - A library of convenient functions for writing client scripts in Python (a rip-off of subs.pl) contributed by Eadmund
  • altar-pray - A port of altar_pray to Python by Eadmund
  • chatlog.py - A chat log for servers without Critical messages support.

Tcl

  • autopray – Prays to max grace, including optional altar-spamming. *

Bash

  • cf_melt_icecube - Loop to mark icecube(s) in inventory and applies flint and steel on these one after another
  • pray_x_times_sh - As the many other praying related scripts also to be used mainly while praying multiple times on an altar to force “god_intervention” .
client_side_scripting/scripts.txt · Last modified: 2018/04/19 08:25 by karl