From no-reply_wiki at metalforge.org Mon Sep 24 18:40:48 2012 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Mon, 24 Sep 2012 18:40:48 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: crossfire_traffic Message-ID: <1348530048.558557.24122.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2012/09/24 18:40 User : leaf Edit Summary: Traffic updates for May 2012 @@ -7,9 +7,36 @@ Unless specified otherwise, changes are in [[trunk]] only. ==== May 2012 ==== - * + * New graphic for Church of Gaea (r18037) + * New graphic for Church of Lythander (r18038) + * New graphic for Church of Devourers (r18040) + * New graphic for Church of Gnarg (r18041) + * New graphic for Church of Ruggilli (r18045) + * New graphic for Church of Mostrai (r18046) + * New graphic for Church of Valkyrie (r18047) + * New quest, Rescue Ben's Daugthers located in Navar (r18075) + * Enlarged lobby area of FOod Shop Warehouse in Scorn to give players more room to move around each other (R18079) + * Replaced generic church graphic with Church of Devourers in Darcap (r18080) + * New map in Darcap, Temple of Valkyrie (r18085) + * Updated graphic for the Alchemy Store (r18088) + * New Quest, Navar Smugglers located in Navar (r18099) + * Design and cosmetic changes to Eternal Reward in Wolfsburg (r18110) + * Cosmetic changes to Fernicious Fenx Family Pet Emporium in Darcap (r18111) + * New graphic faces for ghosts (r18129) + * New graphic faces for Bolt of Fire (r18134) + * New graphic faces for Bolt of Frost (r18135) + * New graphic faces for Bolt of Poison (r18136) + * New graphic faces for Bolt of Lightning (r18137) + * New quest, Heimser's Experiments in Wolfsburg (r18144) + * Additional graphic faces for the lich (r18145) + * Added Pygmy Forest maps to the Quest System (r18159) + * New graphic faces for Bolt of Magic (r18168) + * New graphic faces for arrows and bolts of Slay Dragon (r18170) + * Cosmetic changes to Fisherhouse North in Whaling Outpost (r18176) + * Cosmetic changes to Fisherhouse South in Whaling Outpost (r18178) + * Cosmetic changes to Fisherhouse Southwest in Whaling Outpost (r18179) ==== April 2012 ==== * New map, Emporium of Power, added to Navar (r17781) * Punctuation, grammar and spelling corrections in Wolfsburg maps IP-Address : 65.193.16.100 Old Revision: http://wiki.metalforge.net/doku.php/crossfire_traffic?rev=1340256178 New Revision: http://wiki.metalforge.net/doku.php/crossfire_traffic -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Mon Sep 24 19:16:59 2012 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Mon, 24 Sep 2012 19:16:59 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: crossfire_traffic Message-ID: <1348532219.430543.24267.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2012/09/24 19:16 User : leaf Edit Summary: Traffic updates for June-2012 @@ -5,8 +5,48 @@ ===== Changes to be merged ===== Please put most recent on bottom for month. Unless specified otherwise, changes are in [[trunk]] only. + + ==== June 2012 ==== + * Cosmetic changes to Fisherhouse West in Whaling Outpost (r18180) + * Cosmetic changes to Fisher's Hall, Cellar in Whaling Outpost (r18181) + * Cosmetic and layout changes to Enter at Own Risk in Stoneville (r18183) + * New quest, Cure for Gordon, located in Santo Dominion (r18188) + * Cosmetic and layout changes to Pixie's Delight in Stoneville (r18191) + * Cosmetic and layout changes to Timothius' House in Stoneville (r18193) + * Layout changes to Master's House in Stonville (r18194) + * Layout changes to The Burning Adventurer in Stoneville (r18195) + * Cosmetic changes to Well of Intelligence in Stoneville (r18196) + * Cosmetic changes to Royal Church, Sanctuary in Lake Country (r18197) + * Cosmetic and layout changes to Royal Blacksmith (r18199) + * New Patch (#3432595) - can restrict account creation to specific network addresses or IP range (r18201) + * New quest, Witherspoon's Ghost, located in Scorn (r18202) + * New graphic for Cloak of Acid Proofing (r18208) + * Cosmetic and layout changes to Gemstone Alchemist (r18216) + * Cosmetic changes to White Pigeon Inn in Lake Country (r18217) + * Cosmetic and layout changes to Small Inn in Lake Country (r18218) + * Cosmetic and layout changes to Sunset Inn in Lake Country (r18219) + * Cosmetic and layout changes to Grumm's Inn in Marksel (r18220) + * Change Ability spell now displays a visual effect (r18222) + * Rage spell now displays a visual effect (r18223) + * New quest, Moogley Bill's Treasure, located in Port Joseph (r18227) + * Cosmetic and layout changes to Marksel Keep (r18228) + * Spell effects for protection from fire, electricity and cold (r18229) + * Cosmetic and layout changes to Small House in Navar (r18232) + * Spell effects to fire and cold resistance potions (r18277) + * Cosmetic changes to Bank of Skud, Navar Branch located in Navar (r18288) + * Cosmetic changes to Santo Dominion City Hall (r18291) + * Cosmetic and layout changes to Santo Dominion Sale (r18295) + * Cosmetic and layout changes to Santo Dominion Toll St. (r18297) + * Cosmetic changes to Undead Bungalow in Santo Dominion (r18298) + * Cosmetic changes to Little House of Horrors in Santo Dominion (r18299) + * Cosmetic and layout changes to Goblin Den in Scorn (r18300) + * Cosmetic and layout changes to Mike Miller's house in Scorn (r18303) + * Cosmetic and layout changes to Fun House in Scorn (r18306) + * Cosmetic and layout changes to Tyl's house in Scorn (r18307) + * Cosmetic and layout changes to Castle Kitchen in Scorn (r18309) + * Cosmetic and layout changes to Mercenaries Agency in Scorn (r18311) ==== May 2012 ==== * New graphic for Church of Gaea (r18037) * New graphic for Church of Lythander (r18038) IP-Address : 65.193.16.100 Old Revision: http://wiki.metalforge.net/doku.php/crossfire_traffic?rev=1348530039 New Revision: http://wiki.metalforge.net/doku.php/crossfire_traffic -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sat Sep 29 13:21:37 2012 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sat, 29 Sep 2012 13:21:37 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: faq Message-ID: <1348942897.260205.11977.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2012/09/29 13:21 User : katia Edit Summary: @@ -61,8 +61,9 @@ If you still have problems, try mailing the [[faq#the_crossfire_mailing_lists|Crossfire mailing list]] with your problem, make sure to include what system you are trying to compile on. ===== Chapter 3 - Playing Crossfire ===== + ==== 3.1 Beginner's Questions ==== === 3.1.1 Which initial stats are most important? === @@ -221,9 +222,9 @@ * **skills** A character can learn skills which allows one to identify items and in some cases craft items too (ie, blacksmithing lets one craft armour at a forge.) These skills are either granted to a character due to their race or class. Other skills can be learned by successfully reading a skill scroll. Regardless of how these skills are acquired, the easiest method is to bind all of them to a single key stroke. Here's the list: - use_skill sense curse;use_skill sense magic;use_skill literacy;use_skill alchemy;use_skill smithery;use_skill woodsman;use_skill bowyer;use_skill jeweler;use_skill thaumaturgy + use_skill sense magic;use_skill sense curse;use_skill literacy;use_skill alchemy;use_skill smithery;use_skill woodsman;use_skill bowyer;use_skill jeweler;use_skill thaumaturgy Note: The skills are limited as to what they will identify. For instance, thaumaturgy will ID rods, staffs and wands but will not work on (for instance) bows, armour, books, potions, et al. * **spells** IP-Address : 186.52.123.208 Old Revision: http://wiki.metalforge.net/doku.php/faq?rev=1297809842 New Revision: http://wiki.metalforge.net/doku.php/faq -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sat Sep 29 13:45:52 2012 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sat, 29 Sep 2012 13:45:52 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: player_commands Message-ID: <1348944352.497993.12002.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2012/09/29 13:45 User : Edit Summary: @@ -585,14 +585,31 @@ rotateshoottype - No ranged attack chosen. FIXME - Add documentation here and in the server help. + ==== run ==== - After entry the run command, the character moves continuously in any indicated direction, either until blocked or until the [[player_commands#run_stop|run_stop]] is entered. + "Run" functions in two ways + + 1) When the "run" command without any parameters is entered, the play enters run mode. The player will continually run in any direction pressed. Hitting a wall will not end run mode. To stop this behavior use [[player_commands#run_stop|run_stop]]. + + 2) When the "run" command is entered with a parameter of 1 though 8 (e.g. "run 1") the player will begin running in the corresponding direction. See below. + + 8 1 2 + + 7 . 3 + + 6 5 4 + + "run 1" for example will begin running north. + + When you hit a wall you will stop running. + + Additionally, depending on client implementation, you may stop running if you release the runkey (default "control" key). See [[player_commands#bind|bind]]. - FIXME - Add documentation here and in the server help. + FIXME - Add documentation to the server help. ==== run_stop ==== Stop running. See [[player_commands#run|run]]]. IP-Address : 50.92.173.27 Old Revision: http://wiki.metalforge.net/doku.php/player_commands?rev=1307560506 New Revision: http://wiki.metalforge.net/doku.php/player_commands -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sat Sep 29 13:56:53 2012 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sat, 29 Sep 2012 13:56:53 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: player_commands Message-ID: <1348945013.068455.12016.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2012/09/29 13:56 User : Edit Summary: @@ -585,8 +585,9 @@ rotateshoottype - No ranged attack chosen. FIXME - Add documentation here and in the server help. + ==== run ==== @@ -605,9 +606,9 @@ "run 1" for example will begin running north. When you hit a wall you will stop running. - Additionally, depending on client implementation, you may stop running if you release the runkey (default "control" key). See [[player_commands#bind|bind]]. + Additionally, depending on client implementation, you may stop running if you release the runkey (default "control" key). See [[player_commands#bind|bind]]. At time of writing the Java client seems to stop running when the runkey is released but the GTK client does not. FIXME - Add documentation to the server help. ==== run_stop ==== IP-Address : 50.92.173.27 Old Revision: http://wiki.metalforge.net/doku.php/player_commands?rev=1348944346 New Revision: http://wiki.metalforge.net/doku.php/player_commands -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sat Sep 29 14:09:14 2012 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sat, 29 Sep 2012 14:09:14 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: player_commands Message-ID: <1348945754.471128.12232.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2012/09/29 14:09 User : Edit Summary: @@ -52,19 +52,21 @@ If your character is currently wearing a suit of armor, and you try to equip another suit, both nochoice and always will cause the new suit to get equipped. See Also: [[player_commands#apply]] + ==== bind ==== Syntax: - bind [-nfreg] + bind [-nfregc] Flags (default -nrf): * n - used in normal-mode * f - used in fire-mode * r - used in run-mode * e - leave command in line edit * g - global key (not recommended) + * c - **Java client only:** bind for this character only, this can be convenient if you play multiple characters Multiple commands can be bound to the same key be seperating them with semicolons. == Special bind's: == IP-Address : 50.92.173.27 Old Revision: http://wiki.metalforge.net/doku.php/player_commands?rev=1348945007 New Revision: http://wiki.metalforge.net/doku.php/player_commands -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sat Sep 29 14:15:55 2012 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sat, 29 Sep 2012 14:15:55 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: player_commands Message-ID: <1348946155.132719.12246.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2012/09/29 14:15 User : Edit Summary: @@ -587,8 +587,9 @@ rotateshoottype - No ranged attack chosen. FIXME - Add documentation here and in the server help. + ==== run ==== @@ -598,13 +599,13 @@ 1) When the "run" command without any parameters is entered, the play enters run mode. The player will continually run in any direction pressed. Hitting a wall will not end run mode. To stop this behavior use [[player_commands#run_stop|run_stop]]. 2) When the "run" command is entered with a parameter of 1 though 8 (e.g. "run 1") the player will begin running in the corresponding direction. See below. - 8 1 2 - - 7 . 3 - - 6 5 4 + 8 1 2 + \|/ + 7- -3 + /|\ + 6 5 4 "run 1" for example will begin running north. When you hit a wall you will stop running. IP-Address : 50.92.173.27 Old Revision: http://wiki.metalforge.net/doku.php/player_commands?rev=1348945749 New Revision: http://wiki.metalforge.net/doku.php/player_commands -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sat Sep 29 14:20:02 2012 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sat, 29 Sep 2012 14:20:02 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: player_commands Message-ID: <1348946402.783618.12264.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2012/09/29 14:20 User : Edit Summary: @@ -612,14 +612,15 @@ Additionally, depending on client implementation, you may stop running if you release the runkey (default "control" key). See [[player_commands#bind|bind]]. At time of writing the Java client seems to stop running when the runkey is released but the GTK client does not. FIXME - Add documentation to the server help. + ==== run_stop ==== - Stop running. See [[player_commands#run|run]]]. + Stop running. See [[player_commands#run|run]]. - FIXME - Add documentation here and in the server help. + FIXME - Add documentation in the server help. ==== save ==== No parameters. IP-Address : 50.92.173.27 Old Revision: http://wiki.metalforge.net/doku.php/player_commands?rev=1348946149 New Revision: http://wiki.metalforge.net/doku.php/player_commands -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sat Sep 29 17:47:13 2012 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sat, 29 Sep 2012 17:47:13 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page added: user:katia:showcolors.py Message-ID: <1348958833.241575.13665.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2012/09/29 17:47 User : katia Edit Summary: created Just a simple python script to show you the colors you can print out into the client. #!/usr/bin/python2 from crossfire import draw for i in range(0,13): draw(i, 'Color %d' % i) IP-Address : 186.52.123.208 Old Revision: none New Revision: http://wiki.metalforge.net/doku.php/user:katia:showcolors.py -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sat Sep 29 17:49:58 2012 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sat, 29 Sep 2012 17:49:58 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: user:katia:showcolors.py Message-ID: <1348958998.202062.13670.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2012/09/29 17:49 User : katia Edit Summary: @@ -1,9 +1,11 @@ Just a simple python script to show you the colors you can print out into the client. + + You will need this file too [[user:eadmund:scripts:crossfire.py]] #!/usr/bin/python2 from crossfire import draw for i in range(0,13): draw(i, 'Color %d' % i) IP-Address : 186.52.123.208 Old Revision: http://wiki.metalforge.net/doku.php/user:katia:showcolors.py?rev=1348958830 New Revision: http://wiki.metalforge.net/doku.php/user:katia:showcolors.py -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sun Sep 30 08:46:24 2012 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sun, 30 Sep 2012 08:46:24 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page added: user:katia:chatlog.py Message-ID: <1349012784.498018.15835.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2012/09/30 08:46 User : katia Edit Summary: created ====== Why this script? ====== Did you ever miss conversation messages because you were too bussy in a dungeon, praying or any other activity that puts a lot of messages in your screen? Ok, I know this got solved at newer servers with the critical messages window, but there's still metalforge beeing one of the most active servers and still haven't been updated for that. So this is my attempt to keep an eye on the conversation, it will only work at servers which do not split Critical messages. It also conveniently adds the date (when it changes) and a timestamp (for each message). ====== How does it work? ====== It keeps in mind that messages related to communication are always colored in a certain way. So this script for instance logs every message the server tells the client to print in any of this colors: Red (shout), Sky Blue (chat & me), Yellow (tell), bold Black (say, gsay & emotes). It adds the Orange color to see enter/leave messages. And finally it logs deaths, this means any message you get with the string " killed " in it (notice the surrounding spaces which filter a few unwanted messages), either if a player got killed, or you killed a monster. That is the default behaviour. But you can change it. Lets say you want to log shouts, chat and tell and are not interested in death messages. Then you add as a parameter the color numbers list you are interested. We will avoid the parameter 'deaths' so to avoid loging those. So the command would look like this: /chatLog.py 3 5 4 If you want to also log deaths you must add: /chatLog.py 3 5 4 deaths If any parameters are present, it will only log that for what it's asked. Parameters don't have to be in a particular order, and will be ignored if are not numeric and not equal to 'deaths'. Colors are only available from 0 to 12. Over 12, they are all equivalent to 0. Here's another of my scripts to show you the color numbers available [[user:katia:showColors.py]]. ===== Nobody's perfect ===== This script isn't perfect either. Since It's color based, it will log some kind of messages not related to communication. For instance, since it logs red messages, it will log when you gain or loose a level at some skill or overall (may be good, may be bad, I like it myself :-)). Since it logs Sky Blue messages, it will log when you gain or loose resistances. Since it logs uncolored messages with the string ' killed ' in it, it will log messages as 'You killed goblin with ...' (it may get annoying at some point, but not quite as having the whole bunch of messages telling you hit the monster before killing it). ====== About the Python version ====== It works with python 2. If it's your default python you can change the first line of the script to this: #!/usr/bin/python If you don't know what python version you have installed you can type 'python' at your console and see what it says. It should be something like this: Python 2.7.3 (default, Apr 24 2012, 00:06:13) [GCC 4.7.0 20120414 (prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> Then use Ctrl+d to exit the python console. So, the second line of that output shows you the version. If it says 3 or over you may have to try the command python2 instead, or may need to install it too. Anyway, as is, this script will NOT run with python 3 or over. ===== Note about python ===== If you are new to python you should know it's very important to keep indentation to make a python script work properly. Please make sure it's correctly kept when you copy the contents of my script to your file. ====== Instructions ====== Save this code in a new file call it chatLog.py per say. #!/usr/bin/python2 from crossfire import putline, draw import sys from datetime import datetime logfile = '' # '/chat.log' try: chatlog = open(logfile, 'a', 0) except: draw(10, "Couldn't open %s for log file, please check path and permissions." % logfile) exit(0) def draw_monitor(colors=['1','3','4','5','6'], deaths=True): #default for player communication/in/out colors putline('watch drawinfo') do_write=False last_date = False while True: read = sys.stdin.readline() for l in read.split('\n'): if l != '': timestamp = datetime.now() d = datetime.now().strftime('%d-%m-%Y') t = datetime.now().strftime('%H:%M:%S') if l[:14] == 'watch drawinfo': do_write = (l[15] in colors or (deaths and l[15] == '0' and l[17:].find(' killed ')>0)) if do_write: if not last_date or last_date != d: last_date = d chatlog.write('%s\n' % d) chatlog.write('[%s] %s\n' % (t,l[17:])) elif do_write: if not last_date or last_date != d: last_date = d chatlog.write('%s\n' % d) chatlog.write('[%s] %s\n' % (t,l)) elif l[:5] == 'watch': do_write = False if __name__ == '__main__': draw(10, 'Chat will be loged to %s' % logfile ) if len(sys.argv)>1: colors=[] deaths=False for c in sys.argv[1:]: if c.isdigit(): colors.append(c) elif c=='deaths': deaths = True draw_monitor(colors, deaths) else: draw_monitor() Change the value of the variable logfile (at line 6), to wherever you want the chat log to be saved. Use full path please. Make sure you have write access to the directory. Then give this script execution permission: chmod +x chatLog.py You will need to download this file too [[user:eadmund:scripts:crossfire.py]]. It doesn't need execution permissions, but it must be saved in the same directory as the other script. Run it with: /chatLog.py ===== Useful tip ===== Once you are are running the script you will have the chat loged to a file, so you now would probably like to see the file as it grows continuosly. I use a gnome terminal with a small font and plug it in top of the other windows, size it, and use this command to see the chat: tail -f You are ready now to go praying or identifying huge chests without missing anything of the conversation :-) ====== Final words ====== This code is provided as is, use it/modify it at your own risk, share if you like, just keep in mind each server rules and privacy issues ;-) If you like to call my name/let me know when you re-use it I'll be thankful. Enjoy! IP-Address : 186.52.69.211 Old Revision: none New Revision: http://wiki.metalforge.net/doku.php/user:katia:chatlog.py -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sun Sep 30 09:36:39 2012 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sun, 30 Sep 2012 09:36:39 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page added: user:katia:about_python Message-ID: <1349015799.820314.15990.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2012/09/30 09:36 User : katia Edit Summary: created ====== About Python ====== This section is for python beginners. ===== Indentation ===== If you are new to python you should know it?s very important to keep indentation to make a python script work properly. Please make sure it?s correctly kept when you copy the contents of my script to your file. ===== Version ===== If you don't know what python version you have installed you can type 'python' at your console and see what it says. It should be something like this: Python 2.7.3 (default, Apr 24 2012, 00:06:13) [GCC 4.7.0 20120414 (prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> Then use Ctrl+d to exit the python console. So, the second line of that output shows you the version. If it says 3 or over you may have to try the command 'python2' instead, or may need to install it too. ===== Sheebang ===== The sheebang is the first line of the script. It tells the operating system what interpreter to use to run the code. Specifically it also determines the version of the Python it will use, depending on how you have installed python on your pc. More or less sheebangs have the form #!/bin/bash/ then the file /bin/bash/ should exist in your system and it will define the version that will run. So change your sheebang according to how you have installed python in your system and the version needed for each script. Running /bin/bash/ in your console should tell you the version it would use (see [[#Version]]) IP-Address : 186.52.69.211 Old Revision: none New Revision: http://wiki.metalforge.net/doku.php/user:katia:about_python -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sun Sep 30 09:37:07 2012 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sun, 30 Sep 2012 09:37:07 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: user:katia:chatlog.py Message-ID: <1349015827.683838.15993.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2012/09/30 09:37 User : katia Edit Summary: @@ -28,24 +28,14 @@ Since it logs Sky Blue messages, it will log when you gain or loose resistances. Since it logs uncolored messages with the string ' killed ' in it, it will log messages as 'You killed goblin with ...' (it may get annoying at some point, but not quite as having the whole bunch of messages telling you hit the monster before killing it). + ====== About the Python version ====== - It works with python 2. If it's your default python you can change the first line of the script to this: - #!/usr/bin/python - - If you don't know what python version you have installed you can type 'python' at your console and see what it says. It should be something like this: - - Python 2.7.3 (default, Apr 24 2012, 00:06:13) - [GCC 4.7.0 20120414 (prerelease)] on linux2 - Type "help", "copyright", "credits" or "license" for more information. - >>> - - Then use Ctrl+d to exit the python console. - So, the second line of that output shows you the version. If it says 3 or over you may have to try the command python2 instead, or may need to install it too. + It works with python 2 (2.6 or 2.7 will be fine). It will NOT run with python 3 or over. - Anyway, as is, this script will NOT run with python 3 or over. + see [[user:katia:about_python]] if you need more explanation about this. ===== Note about python ===== If you are new to python you should know it's very important to keep indentation to make a python script work properly. IP-Address : 186.52.69.211 Old Revision: http://wiki.metalforge.net/doku.php/user:katia:chatlog.py?rev=1349012782 New Revision: http://wiki.metalforge.net/doku.php/user:katia:chatlog.py -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sun Sep 30 09:38:37 2012 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sun, 30 Sep 2012 09:38:37 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: user:katia:chatlog.py Message-ID: <1349015917.610654.15996.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2012/09/30 09:38 User : katia Edit Summary: @@ -33,15 +33,9 @@ ====== About the Python version ====== It works with python 2 (2.6 or 2.7 will be fine). It will NOT run with python 3 or over. - see [[user:katia:about_python]] if you need more explanation about this. - - ===== Note about python ===== - If you are new to python you should know it's very important to keep indentation to make a python script work properly. - - Please make sure it's correctly kept when you copy the contents of my script to your file. - + **see [[user:katia:about_python]] if you need more explanation about it or you never used Python before.** ====== Instructions ====== Save this code in a new file call it chatLog.py per say. IP-Address : 186.52.69.211 Old Revision: http://wiki.metalforge.net/doku.php/user:katia:chatlog.py?rev=1349015826 New Revision: http://wiki.metalforge.net/doku.php/user:katia:chatlog.py -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sun Sep 30 09:40:12 2012 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sun, 30 Sep 2012 09:40:12 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: user:katia:chatlog.py Message-ID: <1349016012.186880.16010.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2012/09/30 09:40 User : katia Edit Summary: @@ -28,14 +28,16 @@ Since it logs Sky Blue messages, it will log when you gain or loose resistances. Since it logs uncolored messages with the string ' killed ' in it, it will log messages as 'You killed goblin with ...' (it may get annoying at some point, but not quite as having the whole bunch of messages telling you hit the monster before killing it). + ====== About the Python version ====== It works with python 2 (2.6 or 2.7 will be fine). It will NOT run with python 3 or over. - **see [[user:katia:about_python]] if you need more explanation about it or you never used Python before.** + **see [[user:katia:About python]] if you need more explanation about it or you never used Python before.** + ====== Instructions ====== Save this code in a new file call it chatLog.py per say. IP-Address : 186.52.69.211 Old Revision: http://wiki.metalforge.net/doku.php/user:katia:chatlog.py?rev=1349015915 New Revision: http://wiki.metalforge.net/doku.php/user:katia:chatlog.py -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sun Sep 30 09:41:02 2012 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sun, 30 Sep 2012 09:41:02 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page added: user:katia Message-ID: <1349016062.849499.16013.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2012/09/30 09:41 User : katia Edit Summary: created Some client side scripts I made in python: * [[user:katia:chatLog.py]] * [[user:katia:showColors.py]] If you are new to Python, please check these Python notes: [[user:katia:About Python]] IP-Address : 186.52.69.211 Old Revision: none New Revision: http://wiki.metalforge.net/doku.php/user:katia -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sun Sep 30 09:41:35 2012 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sun, 30 Sep 2012 09:41:35 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: user:katia Message-ID: <1349016095.230995.16016.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2012/09/30 09:41 User : katia Edit Summary: @@ -1,5 +1,7 @@ - Some client side scripts I made in python: + ====== Some client side scripts I made in python: ====== + * [[user:katia:chatLog.py]] * [[user:katia:showColors.py]] If you are new to Python, please check these Python notes: [[user:katia:About Python]] + IP-Address : 186.52.69.211 Old Revision: http://wiki.metalforge.net/doku.php/user:katia?rev=1349016060 New Revision: http://wiki.metalforge.net/doku.php/user:katia -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sun Sep 30 09:47:16 2012 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sun, 30 Sep 2012 09:47:16 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: user:katia Message-ID: <1349016436.216862.16021.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2012/09/30 09:47 User : katia Edit Summary: @@ -4,4 +4,5 @@ * [[user:katia:showColors.py]] If you are new to Python, please check these Python notes: [[user:katia:About Python]] + see [[Client side scripting:]] for a general how to and more scripts. IP-Address : 186.52.69.211 Old Revision: http://wiki.metalforge.net/doku.php/user:katia?rev=1349016094 New Revision: http://wiki.metalforge.net/doku.php/user:katia -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sun Sep 30 09:53:33 2012 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sun, 30 Sep 2012 09:53:33 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: user:katia:about_python Message-ID: <1349016813.252156.16026.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2012/09/30 09:53 User : katia Edit Summary: @@ -13,8 +13,9 @@ >>> Then use Ctrl+d to exit the python console. So, the second line of that output shows you the version. If it says 3 or over you may have to try the command 'python2' instead, or may need to install it too. + ===== Sheebang ===== The sheebang is the first line of the script. It tells the operating system what interpreter to use to run the code. @@ -24,4 +25,5 @@ More or less sheebangs have the form #!/bin/bash/ then the file /bin/bash/ should exist in your system and it will define the version that will run. So change your sheebang according to how you have installed python in your system and the version needed for each script. Running /bin/bash/ in your console should tell you the version it would use (see [[#Version]]) + If a 'script' has no sheebang, it may be a library used by other scripts. In that case the script won't run anything by itself and can only be imported by others to use it's functions. IP-Address : 186.52.69.211 Old Revision: http://wiki.metalforge.net/doku.php/user:katia:about_python?rev=1349015796 New Revision: http://wiki.metalforge.net/doku.php/user:katia:about_python -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sun Sep 30 09:56:09 2012 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sun, 30 Sep 2012 09:56:09 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: client_side_scripting:scripts:python Message-ID: <1349016970.015954.16031.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2012/09/30 09:56 User : katia Edit Summary: @@ -1,6 +1,9 @@ ==== Python Scripts ==== The scripts on this page or linked to from this page are working scripts that players have actually used. Feel free to contribute your own Python script(s) here. If you do not have wiki edit access then send your script to (poof at eracc dot com) for consideration. + + see [[user:katia:About Python]] if you are new to python. === The Scripts === * [[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. IP-Address : 186.52.69.211 Old Revision: http://wiki.metalforge.net/doku.php/client_side_scripting:scripts:python?rev=1241032943 New Revision: http://wiki.metalforge.net/doku.php/client_side_scripting:scripts:python -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sun Sep 30 10:16:58 2012 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sun, 30 Sep 2012 10:16:58 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: people Message-ID: <1349018218.931401.16245.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2012/09/30 10:16 User : katia Edit Summary: @@ -35,8 +35,9 @@ | Craig Kelleher | [[user:skate3241]] | skate3241 | | | | | | Logan Perkins | |Alestan| [[https://sourceforge.net/users/alestan|alestan]] | | | | | Chris Gregory | [[user:neodeno]] | neodeno | [[https://sourceforge.net/users/neodeno|neodeno]] | | | | | Jason Wright | |Tecslicer| [[https://sourceforge.net/users/tecslicer|tecslicer]] | | | | + | Karla Stenger | katia | kstenger | [[https://sourceforge.net/users/kstenger|kstenger]] | | | | ===== Package Maintainers ===== ^ Full Name ^ irc ^ Distribution ^ IP-Address : 186.52.69.211 Old Revision: http://wiki.metalforge.net/doku.php/people?rev=1335577497 New Revision: http://wiki.metalforge.net/doku.php/people -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sun Sep 30 10:33:47 2012 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sun, 30 Sep 2012 10:33:47 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: people Message-ID: <1349019227.482310.16257.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2012/09/30 10:33 User : katia Edit Summary: @@ -35,9 +35,9 @@ | Craig Kelleher | [[user:skate3241]] | skate3241 | | | | | | Logan Perkins | |Alestan| [[https://sourceforge.net/users/alestan|alestan]] | | | | | Chris Gregory | [[user:neodeno]] | neodeno | [[https://sourceforge.net/users/neodeno|neodeno]] | | | | | Jason Wright | |Tecslicer| [[https://sourceforge.net/users/tecslicer|tecslicer]] | | | | - | Karla Stenger | katia | kstenger | [[https://sourceforge.net/users/kstenger|kstenger]] | | | | + | Karla Stenger | [[user:katia]] | kstenger | [[https://sourceforge.net/users/kstenger|kstenger]] | | | | ===== Package Maintainers ===== ^ Full Name ^ irc ^ Distribution ^ IP-Address : 186.52.69.211 Old Revision: http://wiki.metalforge.net/doku.php/people?rev=1349018215 New Revision: http://wiki.metalforge.net/doku.php/people -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sun Sep 30 10:48:13 2012 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sun, 30 Sep 2012 10:48:13 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: user:katia Message-ID: <1349020093.083936.16275.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2012/09/30 10:48 User : katia Edit Summary: @@ -1,8 +1,24 @@ - ====== Some client side scripts I made in python: ====== + Hi! I'm Karla Stenger and I'm an active player of crossfire. + + I'm not a developer of the game but I'm a developer myself and I like helping solving bugs or adding new things when I can. + + I'll share here all I think may be of help. + ====== Some client side scripts ====== * [[user:katia:chatLog.py]] * [[user:katia:showColors.py]] - If you are new to Python, please check these Python notes: [[user:katia:About Python]] + My scripts are made in Python. If you are new to Python, please check these Python notes: [[user:katia:About Python]] + + see [[Client side scripting:]] for a general how to on client side scripting and more scripts. + + ====== Contact me ====== + + in game: + ? at metalforge.net: katia, Katia, Ireth + ? at meflin: Katia + + + + in irc: kstenger - see [[Client side scripting:]] for a general how to and more scripts. IP-Address : 186.52.69.211 Old Revision: http://wiki.metalforge.net/doku.php/user:katia?rev=1349016433 New Revision: http://wiki.metalforge.net/doku.php/user:katia -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sun Sep 30 13:48:36 2012 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sun, 30 Sep 2012 13:48:36 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: player_commands Message-ID: <1349030916.396860.16783.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2012/09/30 13:48 User : katia Edit Summary: @@ -659,8 +659,9 @@ ==== sound ==== Toggles sound support on and off. + ==== take ==== The take commands take object(s) on the space the player is standing on, and inserts them into the players inventory. @@ -668,9 +669,9 @@ If no parameter is given, take will get the top object that can be taken and put it in the players inventory. If no object can be taken, that will be stated. A parameter can be given to take. In this case, all object that have names that match the parameter will be picked up. Thus, if there is a 'sword of WOE', and 'sword +1' and a 'sword -3' on the ground, 'take sword' will pick all of them up. - By default, take is bound to the comma key, with no parameters. To change this, look at the [[player_commmands#bind]] command. + By default, take is bound to the comma key, with no parameters. To change this, look at the [[#bind]] command. ==== throw ==== Throw a marked, or random item in the direction the character is facing. IP-Address : 186.52.69.211 Old Revision: http://wiki.metalforge.net/doku.php/player_commands?rev=1348946399 New Revision: http://wiki.metalforge.net/doku.php/player_commands -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sun Sep 30 13:58:27 2012 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sun, 30 Sep 2012 13:58:27 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: player_commands Message-ID: <1349031507.262842.16790.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2012/09/30 13:58 User : katia Edit Summary: @@ -1032,16 +1032,16 @@ Listen usage:\\ * 'listen 0 - turns off listen and shows **no** messages.\\ * 'listen 10 - default listen level on modern Crossfire servers. This enables seeing messages on the [[player_commands#chat]] channel. + ==== me ==== - The me command acts like /me in IRC. Players all see the character's name followed by some descriptive phrase: + The me command acts like /me in IRC. Players on the same map see the character's name followed by some descriptive phrase: me cries Joe cries - ==== orcknuckle ==== Parameters are ignored when using this command. To use this command successfully, a character must have enough dice in his inventory, or else the command returns: IP-Address : 186.52.69.211 Old Revision: http://wiki.metalforge.net/doku.php/player_commands?rev=1349030912 New Revision: http://wiki.metalforge.net/doku.php/player_commands -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sun Sep 30 14:25:06 2012 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sun, 30 Sep 2012 14:25:06 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: player_commands Message-ID: <1349033106.834710.17009.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2012/09/30 14:25 User : katia Edit Summary: @@ -861,8 +861,16 @@ Current time is: 16:46:56. Path Pl PlM IM TO Dif Reset /HallOfSelection 0 0 2 0 1 17:37:54 + + Path = the map file path on the server. + Pl = players. + PlM = players on map. + IM = in memory. + TO = timeout until the map is saved to disk. + Dif = map difficulty. + Reset = real time on server when the map will reset. FIXME: Add more information about the data columns. ==== motd ==== @@ -1061,10 +1069,19 @@ FIXME - Clarify documentation here and in the server help. ==== say ==== + Players on the same map see the message the character said. - FIXME - Clarify documentation here and in the server help. + Usage: + say + + If player Joe types: + say hi! + Everyone in the same map sees: + Joe says: hi! + + FIXME - Clarify documentation in the server help. ==== shout ==== Usage: @@ -1073,10 +1090,23 @@ Sends a message to all players on the server. ==== tell ==== + Sends a private message to a particular person. - FIXME - Clarify documentation here and in the server help. + Usage: + tell + + is case sensitive + + If Joe types: + tell Jack Hi! + Player Jack sees: + Joe tells you: Hi! + + see also [[#reply]] + + FIXME - Clarify documentation in the server help. ===== Emotives ===== Emotives without a parameter [[player_commands#say]] a canned message related to the command. For example, Jeff types: IP-Address : 186.52.69.211 Old Revision: http://wiki.metalforge.net/doku.php/player_commands?rev=1349031502 New Revision: http://wiki.metalforge.net/doku.php/player_commands -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sun Sep 30 14:44:24 2012 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sun, 30 Sep 2012 14:44:24 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: player_commands Message-ID: <1349034264.869194.17027.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2012/09/30 14:44 User : katia Edit Summary: @@ -19,23 +19,25 @@ Total Players in The World. (2) -- WIZ(0) AFK(1) BOT(0) FIXME - clarify documentation here and in the server help. + ==== apply ==== Apply applies an object. - If no options are given, it applies an object you are standing on. + If no options are given, it applies the first object you are standing on or in the open container (if any). + + Consumable items will be used up (food, potions, balms, etc.) Wearables (armor, weapons, wands, etc.) will toggle between applied/unapplied state. - If an object name is given, it will apply/unapply that object (toggle) + If an object name is given, it will apply that object. If more than one item matches the given name it will apply the first one it encounters. You may want to [[#rename]] your items conveniently. Extra options to apply: - * -a: Always applies the object - * -u: Always unapplies the object. - * -b: Only apply an item on the ground or in an active container. + * -a: Always applies the object (disabling toggle feature). + * -u: Always unapplies the object (disabling toggle feature). Containers are opened if they were applied and closed if they were open. + * -b: Only apply an item on the ground or in the open container. Containers on the ground switch between open and closed. - These two options disable the toggling feature. ==== applymode ==== Applymode controls what happens when you are equipping something that would require something else to be unequipped. IP-Address : 186.52.69.211 Old Revision: http://wiki.metalforge.net/doku.php/player_commands?rev=1349033101 New Revision: http://wiki.metalforge.net/doku.php/player_commands -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sun Sep 30 18:14:09 2012 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sun, 30 Sep 2012 18:14:09 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: user:katia:chatlog.py Message-ID: <1349046849.661684.18608.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2012/09/30 18:14 User : katia Edit Summary: Added filter for resistance messages when loging chat @@ -25,9 +25,9 @@ This script isn't perfect either. Since It's color based, it will log some kind of messages not related to communication. For instance, since it logs red messages, it will log when you gain or loose a level at some skill or overall (may be good, may be bad, I like it myself :-)). - Since it logs Sky Blue messages, it will log when you gain or loose resistances. + Since it logs Sky Blue messages, it will log when you gain or loose resistances. EDIT: this got fixed. Since it logs uncolored messages with the string ' killed ' in it, it will log messages as 'You killed goblin with ...' (it may get annoying at some point, but not quite as having the whole bunch of messages telling you hit the monster before killing it). @@ -55,8 +55,9 @@ def draw_monitor(colors=['1','3','4','5','6'], deaths=True): #default for player communication/in/out colors putline('watch drawinfo') do_write=False last_date = False + filter_resists = ('5' in colors) while True: read = sys.stdin.readline() for l in read.split('\n'): if l != '': @@ -64,8 +65,10 @@ d = datetime.now().strftime('%d-%m-%Y') t = datetime.now().strftime('%H:%M:%S') if l[:14] == 'watch drawinfo': do_write = (l[15] in colors or (deaths and l[15] == '0' and l[17:].find(' killed ')>0)) + if do_write and filter_resists and l[15] == '5': + do_write = (l[17:36]!=('Your resistance to ')) #filter resistance messages if do_write: if not last_date or last_date != d: last_date = d chatlog.write('%s\n' % d) IP-Address : 186.52.69.211 Old Revision: http://wiki.metalforge.net/doku.php/user:katia:chatlog.py?rev=1349016011 New Revision: http://wiki.metalforge.net/doku.php/user:katia:chatlog.py -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sun Sep 30 18:21:03 2012 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sun, 30 Sep 2012 18:21:03 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: user:katia:chatlog.py Message-ID: <1349047263.633082.18618.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2012/09/30 18:21 User : katia Edit Summary: @@ -20,14 +20,15 @@ /chatLog.py 3 5 4 deaths If any parameters are present, it will only log that for what it's asked. Parameters don't have to be in a particular order, and will be ignored if are not numeric and not equal to 'deaths'. Colors are only available from 0 to 12. Over 12, they are all equivalent to 0. Here's another of my scripts to show you the color numbers available [[user:katia:showColors.py]]. + ===== Nobody's perfect ===== This script isn't perfect either. Since It's color based, it will log some kind of messages not related to communication. For instance, since it logs red messages, it will log when you gain or loose a level at some skill or overall (may be good, may be bad, I like it myself :-)). - Since it logs Sky Blue messages, it will log when you gain or loose resistances. EDIT: this got fixed. + Since it logs Sky Blue messages, it will log when you gain or loose resistances. EDIT: this got fixed. Since it logs uncolored messages with the string ' killed ' in it, it will log messages as 'You killed goblin with ...' (it may get annoying at some point, but not quite as having the whole bunch of messages telling you hit the monster before killing it). IP-Address : 186.52.69.211 Old Revision: http://wiki.metalforge.net/doku.php/user:katia:chatlog.py?rev=1349046846 New Revision: http://wiki.metalforge.net/doku.php/user:katia:chatlog.py -- This mail was generated by DokuWiki at http://wiki.metalforge.net/