summaryrefslogtreecommitdiff
path: root/src/map/clif.c
AgeCommit message (Collapse)AuthorFilesLines
2012-08-30Rename files for C++ conversion. Does not compile.Ben Longbons1-10332/+0
After updating, you can remove these files, as shown in 'git status': Untracked files: (use "git add <file>..." to include in what will be committed) src/map/magic-interpreter-lexer.c src/map/magic-interpreter-parser.c src/map/magic-interpreter-parser.h
2012-08-04Give a warning when unable to drop an item.Ben Longbons1-1/+9
2012-04-04Make chat range the same as vision range.Ben Longbons1-4/+4
Thanks to Derpella for nagging me enough to realize this.
2011-09-10Merge commit '2c863c0d99aa3df9ef2eb4ceb112c4d946520f0a'Ben Longbons1-99/+90
2011-09-10Merge commit '723fb5d3431b847526c433a13aa74485cfb564a3'Ben Longbons1-38/+28
2011-08-31Gloves now appear if you weren't wearing boots when you equipped themBen Longbons1-1/+1
2011-04-03Fix some more compiler warningsBen Longbons1-99/+90
2011-03-24Optimize common objects, and adjust other objects accordingly.Ben Longbons1-33/+23
Major changes still need to be made to each of the servers.
2011-03-16Use makefiles correctly and expand include dirsBen Longbons1-6/+6
2011-03-03Optional - restore Japanese comments where there are already english ↵Ben Longbons1-0/+14
comments, or where the code has changed
2011-03-03Recovery and conversion of Japanese comments that had been lost as "invalid ↵Ben Longbons1-303/+304
UTF-8"
2010-12-01Fixed off-by-one error in IP packet level calculation.v2010.12.25MadCamel1-1/+1
2010-11-27Enabled IP metainformation packet.MadCamel1-2/+0
Now that mainline, pre-0.5, and 4144 clients support this packet it shouldn't really be a problem.
2010-11-12Hide char_id in guilds packets.Andrei Karas1-5/+4
2010-10-08Added IP address reply packet 0x20C (len 10)MadCamel1-1/+18
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-10-03Do not allow empty/whitespace-only party/guild namesremoitnane1-6/+34
Also makes minor style adjustments and cleans up comments.
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