summaryrefslogtreecommitdiff
path: root/src/map/clif.c
AgeCommit message (Collapse)AuthorFilesLines
2010-10-02Limit most guild actions to Guild Master position.Andrei Karas1-2/+24
Also allow change guild positions to guild owner even without Guild Master position. Signed-off-by: Chuck Miller <shadowmil@gmail.com>
2010-09-29Prevent spoofing in guild chat messagesremoitnane1-4/+4
Thanks to 4144 for reporting.
2010-09-28Changed drop rate to once every 50ms. This should bring the "spice"MadCamel1-1/+1
back into drop parties, as the former rate of 200ms made them fairly lame.
2010-09-08Simplify party invitation logic and clean up commentsremoitnane1-7/+21
This eliminates part of the client's burden to manage the ID of the player sending the invitation. This also introduces a new response value (3) for the invitation acknowledgement packet (0x00fd) to indicate the party is full. Resolves: TMW Mantis #676
2010-09-05Clean up NPC string input and minor formattingremoitnane1-7/+17
2010-08-15Let players spam spells againremoitnane1-7/+37
Sorry for the inconvenience
2010-08-15Correct cosmetic issues and make use of message configurationremoitnane1-3/+6
Signed-off-by: Chuck Miller <shadowmil@gmail.com>
2010-08-15Centralize chat validation and simplify at-command processingremoitnane1-92/+266
Signed-off-by: Chuck Miller <shadowmil@gmail.com>
2010-08-01Properly fixed disconnect problemMadCamel1-1/+1
2010-08-01Revert "Disable the packet flood prevention"MadCamel1-2/+0
This reverts commit 07ac029ab049cd8fdec5f271a814c2459edeefb8.
2010-08-01Disable the packet flood preventionChuck Miller1-0/+2
It is acting funny and being mean to innocent users
2010-07-27Temporarily removed ChangeDir flood checks until mana1.0 is officialMadCamel1-0/+3
.29.1 has a bug that spams ChangeDir packets like crazy and my checks had some problems with this, causing players to be disconnected while navigating through areas with large amounts of blocked tiles. Hopefully someone remembers to re-enable this code when 1.0 is the officially supported version.
2010-07-23Clean up some memory handlingremoitnane1-8/+3
2010-05-03Tweaked some rate limits for NPCsMadCamel1-4/+4
The limits were interfering with repetative NPCs such as Agostine
2010-05-02ChangeDir packets are now rate limitedMadCamel1-1/+11
Breakdancing is fun. Spinbotting isn't..
2010-05-01Do not relay duplicate direction change packetsMadCamel1-0/+3
Pre-mana clients spam this packet while walking into blocked tiles
2010-04-04Removed obsoleted trade and sit spam codeMadCamel1-4/+0
2010-04-04Added packet rate limiter and flood prevention system.MadCamel1-129/+633
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-02-21Fixed sending player's name when in a guild.Chuck Miller1-51/+32
Also changed up packet 0x0195, the client can now understand this packet
2010-02-20Do not report another player's base level.No Name1-10/+3
Modifies three packets to no longer transmit another player's base level, instead reporting zero.
2010-02-06Fix a memory leakMadCamel1-1/+3
2010-02-05Spellcasting will no longer trigger spam bansMadCamel1-16/+7
I ran this by fate and he had no objections. If there are problems with flooding/resource consumption we can put some rate limits in the packet handlers. (That's on my TODO)
2010-01-19fixed a few buffer overrunsHelmut Grohne1-2/+2
strncpy does not always terminate strings. Unterminated strings (without a length) are bad. So better terminate them.
2009-12-26Used the "indent" C formatting program from GNU to do some clean upsChuck Miller1-5764/+6774
The command options used was: -nbad -bap -sc -bl -blf -bli0 -cli4 -cbi0 -di5 -nbc -bls -ip2 -nut -ts4 -bap -i4 -sob -npsl
2009-12-02Fix map authentication responseJared Adams1-3/+3
This way,t he client will parse the duplicate login packet correctly when logging in.
2009-10-29Allow players to switch characters while aliveJared Adams1-2/+2
2009-10-25Give level 99 character the GM hilight tooJared Adams1-1/+1
2009-10-10report job level as zeroFate1-2/+1
2009-10-10Better logging, initial job experience gathering, naming fixes to the skill ↵Fate1-1/+2
script commands
2009-10-03Make sure the announce packet includes the nickJared Adams1-1/+6
Also remove @kamib, as it's difference doesn't affect our client.
2009-09-26Add a no player drop flag for mapsJared Adams1-1/+1
2009-09-26Initial support for skill pools (available via at commands andFate1-10/+4
untested scripting commands.) These changes also affect the format of the skill_db.txt file.
2009-09-22Prevent attacking while hiddenJared Adams1-1/+1
2009-09-20Initial support for skill poolsFate1-1/+1
2009-09-18Replace basic skill with three new skillsJared Adams1-22/+16
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-14Only report characters as GMs to clients if their GM level is 60Fate1-2/+2
2009-09-12Implemented pDeaf property (70) which makes PCs ignore regular PC chat ↵Fate1-1/+42
(except for GMs)
2009-08-31Merge commit 'taw/master'Jared Adams1-5/+5
2009-08-29Converted to Mersenne Twister for random.MadCamel1-4/+4
Randomerer! Also: Fixed a security problem. Can you find it?
2009-08-26Log /announce callsJared Adams1-1/+6
2009-08-18Revert 3b44872c6d1601abe33115a92cbb8e3e13d2bea5MadCamel1-1/+1
Dead players can talk again
2009-08-16Adjust auto ban code and add sit spam handlingJared Adams1-3/+8
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-4/+2
2009-08-14Revert "Change sending of hair style and color"Jared Adams1-29/+0
This reverts commit 1b7508c510aae8906fdcd7309da47c97b2804184. After talking on IRC, this change is no longer needed.
2009-08-13Change sending of hair style and colorJared Adams1-0/+29
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-07-27prevent dead players from talkingMaximilian Philipps1-1/+1
cause it is annoying when a skull kills them and they keep talking like nothing happend.
2009-07-07Fixes to socket system to make it cope better with fd depletion.Dennis Friis1-3/+12
Also added timeout for fullconnect, secured map server from stateless connections.
2009-07-06Add a new trade spam systemJared Adams1-1/+1
2009-07-06Revert "Add a new trade spam system"Jared Adams1-1/+1
This reverts commit 2e87e5b65a02d8d9f867a0510f039cc319b3ffcb.
2009-07-06Add a new trade spam systemJared Adams1-1/+1