summaryrefslogtreecommitdiff
path: root/src/map/battle.c
AgeCommit message (Collapse)AuthorFilesLines
2011-03-24Optimize common objects, and adjust other objects accordingly.Ben Longbons1-16/+10
Major changes still need to be made to each of the servers.
2011-03-16Use makefiles correctly and expand include dirsBen Longbons1-4/+4
2011-03-02Recode from SHIFT-JIS to unicode, then undo the conversion of backslashs and ↵Ben Longbons1-629/+629
tildes.
2010-10-08Added IP address reply packet 0x20C (len 10)MadCamel1-1/+9
This is sent along with char name replies to GMs able to recieve hack notices. Unfortunately,it locks up clients that do not support this packet. Must coordinate to get this added to TMW 0.5 release and mana. Until then, code is commented out in clif.c(grep for MD5_ip) Packet structure: 0x20C (len 2) AccountID of character name was requested for (len 4) IP address of requested char in network byte order (len 4) Config option in battle_athena.conf: gm_mask_ips (boolean) - When set to 1(default) GMs will only see a hashed/masked IP address.
2010-09-16Removed configuration vars for trade and sit spamMadCamel1-66/+0
Guess I forgot to remove them when the actual trade/sit spam code was removed.
2010-04-04Fixed some bad code that was generating compiler warningsMadCamel1-3/+3
2010-04-04Added packet rate limiter and flood prevention system.MadCamel1-1/+27
The idea behind this is to keep abusive clients from flooding the server. Everything from over-voracious auto pick-up to exploitation of NPC vulnerabilities is mitigated by this. It will also eventually reduce server traffic, load, and possibly lag. Config options in battle_athena.conf: packet_spam_flood (default 30) packet_spam_threshold (default 2) packet_spam_kick (default 1) Each packet type has a specified allowed incoming rate in milliseconds, if this rate is exceeded the packet is ignored. If over 'flood' overruns in 'threshold' seconds are detected, a flood is logged and a kick may be triggered depending on the 'kick' config boolean. The packet rates and flood thresholds have been tested and tweaked on a live server, this should only affect abusive clients. Only extremely abusive clients will trigger a log/kick condition. This probably obsoletes the trade and kick spam code.
2009-12-26Used the "indent" C formatting program from GNU to do some clean upsChuck Miller1-4504/+5796
The command options used was: -nbad -bap -sc -bl -blf -bli0 -cli4 -cbi0 -di5 -nbc -bls -ip2 -nut -ts4 -bap -i4 -sob -npsl
2009-09-27Added "Mallard's Eye" skill (45) for ranged weapon users: increaseFate1-7/+17
to-hit, increase range, decrease the malus effect of distance. Also added an up to 31.25% damage bonus for hitting enemies that are farther away (only affects ranged weapons). Fixed a bug that would forget to recompute stats after changing skill focus.
2009-09-26Initial support for skill pools (available via at commands andFate1-7/+41
untested scripting commands.) These changes also affect the format of the skill_db.txt file.
2009-09-20Initial support for skill poolsFate1-0/+15
2009-09-11Added mapserver config option log_file to specify gzipped player action log fileFate1-0/+26
2009-08-29Converted to Mersenne Twister for random.MadCamel1-0/+1
Randomerer! Also: Fixed a security problem. Can you find it?
2009-08-16Adjust auto ban code and add sit spam handlingJared Adams1-3/+32
All three ban types can now either ban or just ingore new packets. Trade and sit spam default to ignore. Chat spam defaults to 1hr ban.
2009-07-07Fixes to socket system to make it cope better with fd depletion.Dennis Friis1-2/+3
Also added timeout for fullconnect, secured map server from stateless connections.
2009-07-06Add a new trade spam systemJared Adams1-6/+34
2009-07-06Revert "Add a new trade spam system"Jared Adams1-666/+638
This reverts commit 2e87e5b65a02d8d9f867a0510f039cc319b3ffcb.
2009-07-06Add a new trade spam systemJared Adams1-638/+666
2009-05-13Fixed all compiler warnings and several small bugs in the processMadCamel1-0/+2
2009-05-03Fixed antispam to use a timer that doesn't wrapMadCamel1-1/+1
2009-04-09New and improved anti-spam systemMadCamel1-25/+27
2009-03-08Strip some more outJared Adams1-14/+2
2009-03-08Remove pet and vending systemsJared Adams1-561/+5
2008-12-01Added mutations to mobs (must change mob_db.txt)Fate1-19/+20
2008-11-03Correct src/map/battle.c to use new clarified macro.Dennis Friis1-6/+6
2008-11-03Convert src/map/battle.c to use RAND macros, should give a more balanced ↵Dennis Friis1-65/+65
gameplay is the theory at least. More to be converted later after some testing.
2008-11-02* Minor cleanup in login serverJared Adams1-2/+4
* Char server now records client version and reports it to map server * Map server will now report all skills (even ones with dangerous indices) for client version 1 and above * Use status change val1 (instead of val2) index for speed potions, so that they can be triggered more easily from within scripts * Item database now also keeps track of the effect that items have on the spower stat * spower is now based on level + int*2 + modifier (see last point) * Minor bugfixes in support functionality for the SLang interpreter - Do not restart the map server without also restarting the char server, as the interserver protocol has changed slightly! (patch by fate)
2008-10-25Commit Mantis 504Jared Adams1-2/+7
2008-10-11Commit magic patch v13Jared Adams1-4/+33
2008-10-04relax dropstealing protection. Mantis #429, patch by fate.Dennis Friis1-0/+2
2008-04-10Add configurable anti spam system, with possible auto ban.Dennis Friis1-1/+32
2008-04-02initial checkinDennis Friis1-0/+5374