====== 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++ ===== *[[user:gxc:client_side_scripting:cplusplus-howto]] - HOWTO for using C++ scripts *[[:user:gxc:scripts:food_watch]] -- Monitors your food and eats if it falls below a certain level. *[[client_side_scripting:cfequip.cpp]] -- manages sets of equipment for different roles (fighting, spell casting, shopping :-)), docs. at top of file ===== Perl ===== * [[:user:mrbrklyn:scripts:pray]] -- Pray and Pray and Pray without a fishing weight on the keyboard * [[:user:mhoram:scripts:level_up]] -- Reports which skills are nearing advancement. * [[:client_side_scripting:scripts:perl:travel]] -- Walks a player from one place to another. * [[:user:mhoram:scripts:watch_food]] -- Auto-applies food when you get hungry. * [[:user:mhoram:scripts:protect]] -- Casts an assortment of protection spells. * [[:user:mhoram:scripts:altar_pray]] -- Takes some of the tediousness out of praying at an altar. * [[:user:mhoram:scripts:healup]] -- Bring grace and hit points to maximum. * [[:user:mhoram:scripts:subs.pl]] -- Subroutines used by most of my other scripts. * [[:user:meflin:scripts:charge.pl]] -- Manage the charge/discharging of Power Crystals ===== Python ===== see [[user:katia:About Python]] if you are new to python. * [[client_side_scripting:book.py]] - A script that inscribes a book from a text file. (must have the "inscription" skill, along with something to write on) * [[:user:eadmund:scripts:crossfire.py]] - A library of convenient functions for writing client scripts in Python (a rip-off of [[:user:mhoram:scripts:subs.pl]]) contributed by [[user:eadmund|Eadmund]] * [[:user:eadmund:scripts:altar-pray]] - A port of [[user:mhoram:scripts:altar_pray]] to Python by [[user:eadmund|Eadmund]] * [[user:katia:chatlog.py]] - A chat log for servers without Critical messages support. ===== Tcl ===== * [[:client_side_scripting:scripts:tcl:autopray]] -- Prays to max grace, including optional altar-spamming. * ===== Bash ===== * [[:client_side_scripting:scripts:bash:cf_melt_icecube]] - Loop to mark icecube(s) in inventory and applies flint and steel on these one after another * [[:client_side_scripting:scripts:bash: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" .