summaryrefslogtreecommitdiff
path: root/src/map/pc.c
AgeCommit message (Collapse)AuthorFilesLines
2010-04-04Added packet rate limiter and flood prevention system.MadCamel1-0/+3
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.
2010-03-24Revert "Add new death penalty type (3) which takes a percentage of the ↵Chuck Miller1-8/+0
player's zeny" This reverts commit bf400032e3e3699c71cf4dc73a22a230a27cf837.
2010-03-24Add new death penalty type (3) which takes a percentage of the player's zenyChuck Miller1-0/+8
2010-02-21Cancel active trade if an item is removed from inventory.No Name1-3/+3
Modifies the previous fix to now cancel if an item is deleted from a player's inventory, including items that are used/consumed.
2010-02-11Re-calculate player stats when an equipped item is removed.MadCamel1-1/+1
This fixes the issue where a player could drop/trade/store an equipped item and still retain it's attack/def/etc buffs.
2010-01-19fixed a few buffer overrunsHelmut Grohne1-1/+2
strncpy does not always terminate strings. Unterminated strings (without a length) are bad. So better terminate them.
2010-01-02Temporarily enclose astral soul modifications with ifdefsFreeyorp1-0/+6
Until the quests for this skill are available, this needs to be disabled on the server
2010-01-02Remove conflict markersFreeyorp1-36/+6
2009-12-29Fixed "maximum skill points" computationFate1-5/+33
2009-12-28Also pass a variable @itemId when running equip scriptsFreeyorp1-24/+36
2009-12-28Pass a variable @slotId when running equip scripts.Freeyorp1-13/+34
2009-12-26Used the "indent" C formatting program from GNU to do some clean upsChuck Miller1-6205/+7356
The command options used was: -nbad -bap -sc -bl -blf -bli0 -cli4 -cbi0 -di5 -nbc -bls -ip2 -nut -ts4 -bap -i4 -sob -npsl
2009-10-25Prevent auto bans from multiplyingJared Adams1-0/+2
2009-10-10Better logging, initial job experience gathering, naming fixes to the skill ↵Fate1-22/+49
script commands
2009-10-08Merge branch 'master' of gitorious.org:tmw-eathena/mainlineFate1-26/+23
2009-10-03Make failed skill ups respond with right valueJared Adams1-26/+23
2009-09-27Added astral soul skill, affecting all magic users: without this skill, ↵Fate1-0/+13
antimagic equipment carries a heavier penalty and spellpower beyond 200 is curved down.
2009-09-27Added "Mallard's Eye" skill (45) for ranged weapon users: increaseFate1-4/+6
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-42/+30
untested scripting commands.) These changes also affect the format of the skill_db.txt file.
2009-09-20Initial support for skill poolsFate1-11/+5
2009-09-18Replace basic skill with three new skillsJared Adams1-6/+8
We want to handle skills differently that eAthena was made too. All new skills are leveled by NPCs instead of using the job sysetm. Also fixes some bugs.
2009-09-15Logging fix and extension to include trade informaitonFate1-5/+8
2009-09-13When a player walks, make sure they stand upFate1-0/+3
2009-09-12Implemented pDeaf property (70) which makes PCs ignore regular PC chat ↵Fate1-0/+3
(except for GMs)
2009-09-11Added mapserver config option log_file to specify gzipped player action log fileFate1-0/+44
2009-08-29Converted to Mersenne Twister for random.MadCamel1-11/+11
Randomerer! Also: Fixed a security problem. Can you find it?
2009-08-26Autobans are now logged, more chat spam improvementsMadCamel1-1/+2
Added a timeout to the total repeat counter. 5 minutes by default.
2009-08-23Improved chat spam detectionMadCamel1-3/+1
Repeats are now checked only to the length of the shortest line (last line, current line) so "SPAM!!" and "SPAM!!!!!" would be considered a repeat. Total repeats are now counted and a ban is triggered if they exceed battle_config.chat_spam_flood repeats, regardless of time frame.
2009-08-16Adjust auto ban code and add sit spam handlingJared Adams1-0/+2
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-08-16Send GM flag to clientsJared Adams1-0/+3
2009-08-14Revert "Change sending of hair style and color"Jared Adams1-5/+1
This reverts commit 1b7508c510aae8906fdcd7309da47c97b2804184. After talking on IRC, this change is no longer needed.
2009-08-13Change sending of hair style and colorJared Adams1-1/+5
Send them together in overloaded change looks packets (twice for older clients). This lets newer clients be more flexible with their handling of hair.
2009-08-12Fix adding equiped items to tradeJared Adams1-7/+17
2009-07-19Add some sanity checks.Dennis Friis1-1/+4
2009-07-07Fixes to socket system to make it cope better with fd depletion.Dennis Friis1-20/+20
Also added timeout for fullconnect, secured map server from stateless connections.
2009-07-06Add a new trade spam systemJared Adams1-0/+2
2009-07-06Revert "Add a new trade spam system"Jared Adams1-2/+0
This reverts commit 2e87e5b65a02d8d9f867a0510f039cc319b3ffcb.
2009-07-06Add a new trade spam systemJared Adams1-0/+2
2009-06-25Some fixing on storage saving on map change. derived from ea stable.Dennis Friis1-5/+2
2009-06-25More fixes to storage derived from ea stable.Dennis Friis1-3/+4
2009-06-25Redo storage, derived from ea stable.Dennis Friis1-3/+10
2009-06-19Auto-disconnect from trade partner when removing itemsFate1-0/+3
2009-06-16Removed unnecessary am-healing flag, incorporated healing packets with ↵Fate1-14/+3
regular opt status flags. This, together with the clientdata update, should fix the stuck healing state.
2009-05-31Made sure that healing items work while poison is slowedFate1-1/+1
2009-05-30Added documentation for several eAthena extensions. Moved OnPCKillEvent ↵Fate1-4/+9
magic label to OnPCKilledEvent, added complementary OnPCKillEvent that is the same, except invoked on a killer RID context.
2009-05-21Makes sure we tell the client to remove the healing effectChuck Miller1-0/+6
2009-05-14Added pc_logout() hook to process players who are logging outFate1-0/+11
When poisoned and logging out, set hp to 1 to avoid cheap poison cure exploit
2009-05-14Fine-tuned poison: lower HP further and slow down health item regenerationFate1-2/+4
2009-05-13Fixed all compiler warnings and several small bugs in the processMadCamel1-1/+1
2009-05-11Don't spam healing changesJared Adams1-3/+7