summaryrefslogtreecommitdiff
path: root/src/map/pc.c
AgeCommit message (Collapse)AuthorFilesLines
2011-03-24Optimize common objects, and adjust other objects accordingly.Ben Longbons1-78/+47
Major changes still need to be made to each of the servers.
2011-03-16Use makefiles correctly and expand include dirsBen Longbons1-5/+5
2011-03-03Recovery and conversion of Japanese comments that had been lost as "invalid ↵Ben Longbons1-447/+451
UTF-8"
2011-01-23rebalancing the ASTRAL_SOUL skillStefan Beller1-5/+3
reviewed by fate
2011-01-19adding the TMW_RAGING skillStefan Beller1-0/+9
reviewed by:
2011-01-05adding the USE_ASTRAL_SOUL_SKILL defineStefan Beller1-3/+6
adding a define, so magic is done another way. I reviewed that stuff which is included by these changes, and it seems as if fate did a good job with that. trivial change.
2010-11-03Fix some crashes in cart system.Andrei Karas1-0/+18
Also limit using carts only to cartoon players.
2010-10-08map-server now stores IP address in session_data when player connectsMadCamel1-0/+6
This is to be used for @ipcheck, sending GMs IP identifiers, and clone blocking.
2010-09-05Clean up NPC string input and minor formattingremoitnane1-2/+2
2010-08-28Prevent players from bypassing a spell's cast timeremoitnane1-1/+16
2010-08-15Kludge-fix double-equipment issue to hopefully prevent new instancesremoitnane1-0/+4
2010-07-23Clean up some memory handlingremoitnane1-1/+4
2010-04-16Fixed entity_warp() in magic, as used by teleporting, to properly update the ↵Fate1-1/+1
map string using pc_setpos() Noted (and solution suggested) by Freeyorp
2010-04-04Removed obsoleted trade and sit spam codeMadCamel1-2/+0
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