summaryrefslogtreecommitdiff
path: root/src/map/npc.c
AgeCommit message (Collapse)AuthorFilesLines
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