summaryrefslogtreecommitdiff
path: root/src/map/npc.c
AgeCommit message (Collapse)AuthorFilesLines
2012-08-30Rename files for C++ conversion. Does not compile.Ben Longbons1-2378/+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
2011-09-10Merge commit '2c863c0d99aa3df9ef2eb4ceb112c4d946520f0a'Ben Longbons1-60/+43
2011-09-10Merge commit '723fb5d3431b847526c433a13aa74485cfb564a3'Ben Longbons1-126/+95
2011-08-06Allow pipe as a separator in scripts, so we can eliminate all tabsBen Longbons1-2/+2
Note still that a string of either of the tokens is converted to a single tab internally.
2011-04-03Fix some more compiler warningsBen Longbons1-60/+43
2011-03-24Fix timer bugs in previous versionBen Longbons1-0/+2
The most visible effect of this was that the map-server would never actually connect with the char-server
2011-03-24Optimize common objects, and adjust other objects accordingly.Ben Longbons1-124/+91
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-03Recovery and conversion of Japanese comments that had been lost as "invalid ↵Ben Longbons1-81/+81
UTF-8"
2010-07-23Clean up some memory handlingremoitnane1-8/+15
2010-07-06Add new map flag and condition for mob skillsremoitnane1-1/+5
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
2010-04-11Quick fix for when a moved npc goes out of rangeFreeyorp1-2/+6
2010-04-04Fixed some bad code that was generating compiler warningsMadCamel1-2/+4
2010-01-19fixed a buffer overrun and use of uninitializedHelmut Grohne1-1/+1
The target buffer for the memcpy only takes like 24 chars. strcat on an uninitialized buffer is a bad idea.
2010-01-19fixed a few buffer overrunsHelmut Grohne1-3/+5
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-1582/+1900
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-26Add a no player drop flag for mapsJared Adams1-6/+9
2009-09-26Initial support for skill pools (available via at commands andFate1-4/+0
untested scripting commands.) These changes also affect the format of the skill_db.txt file.
2009-08-21Fix buying itemsJared Adams1-1/+1
2009-08-16Prevent buying more items than you can carryJared Adams1-1/+5
2009-08-13Fix single message NPCsJared Adams1-0/+3
Also have magic effect NPCs talk (they just say "?") to prevent problems when accidentally talking to them.
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-05-03Changed all times to use UTCMadCamel1-1/+1
2009-04-18Fix getting item shop prices from the DBJared Adams1-84/+83
2009-03-09Fix bug in sell systemJared Adams1-3/+0
2009-03-08Remove pet and vending systemsJared Adams1-15/+9
2009-02-28Fix some bugs int he map and char serversJared Adams1-1/+1
2009-02-28Simplify the negative shop price systemJared Adams1-3/+2
Now it just takes the DB price and multiplies it by the absolute value of the sell price (if it's negative).
2009-02-15Allow shop parsing to continue after bad item nameJared Adams1-11/+14
2009-02-07Add ability to use multiples of item base pricesJared Adams1-0/+3
You can now do simple multiples of the base price of items. You cac do base price * n, or base price / n: -1 base price -2 base price -3 base price / 2 -4 base prive * 2 -5 base price / 3 -6 base price * 3 ...
2009-02-06Add ability to specify item name when making shopsJared Adams1-3/+9
2008-12-30Added OnPCDieEvent and OnPCKillEvent label supportFate1-9/+21
2008-12-05Added table of absolute change to ensure that mob stat mutations are ↵Fate1-56/+0
significant before computing XP modifier
2008-12-01Added mutations to mobs (must change mob_db.txt)Fate1-1/+0
2008-10-11Commit magic patch v13Jared Adams1-25/+98
2008-05-08remove an unused var that got left in by mistake.Dennis Friis1-1/+1
2008-05-08When buying from NPC do not stack unstackable items. It might seem like a ↵Dennis Friis1-5/+19
better place to fix it in pc_additem, but this method should be allowed to or breakage may occur.
2008-04-02add commentDennis Friis1-1/+1
2008-04-02Fix so you cant sell/buy from NPC SHOP while in a tradeDennis Friis1-0/+4
2008-04-02initial checkinDennis Friis1-0/+2035