588 Commits

Author SHA1 Message Date
gepard1984
f2474de01c * Fixes and improvements related to MVP rewards (bugreport:1259):
- removed obsolete (since r1!) ExpPer column from mob_db
 - official way to drop MVP rewards (always starts from first slot)
 - added MAX_MVP_DROP as define for max possible MVP reward slots
 * Updated mob_db SQL scripts.
 * Removed some renewal only monsters from pre-RE mob_db (were commented out anyway).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15531 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-31 20:06:57 +00:00
brianluau
00367cd7b7 - Removed more trailing tabs.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15527 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-30 20:17:55 +00:00
brianluau
3aede46965 - Removed trailing tabs, and fixed some spacing.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15524 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-30 16:02:55 +00:00
xazax-hun
d4cae50fe1 Minor cleanups, mostly reducing scopes.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15504 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-22 13:49:09 +00:00
gepard1984
bf1c81839f Merged TXT removal branch back to trunk.
* TXT save engine is removed and no longer supported.
* See also tid:53926, tid:57717.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15503 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-20 20:33:32 +00:00
gepard1984
7b975aa4ba Extended @alootid command to support multiple items (default: 10).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15489 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-18 12:08:41 +00:00
gepard1984
54ac5c18de Enabled Mersenne Twister MT19937 as random number generator instead of standard rand() function (follow-up to r14865, r14870).
- It fixes issues caused by RAND_MAX being only 32k in Windows system (bugreport:1927, bugreport:86).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15483 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-17 18:06:34 +00:00
eathenabot
0b4a77d2d2 * Merged changes up to eAthena 15061.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15477 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-17 06:53:19 +00:00
eathenabot
a68054d4ee * Merged changes ONLY eAthena 15002.
[ai4rei]
* Preparation clean up in clif.h
- Synced function declarations and argument names with clif.c including whitespace.
- Removed orphaned function declarations.
- Removed include to storage.h and put it into .c files that need it instead.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15469 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-17 03:25:15 +00:00
shennetsind
54eb42ab7f fixed bug with @homevolution not refreshing homun's skill tree (4th skill missing), bugreport:49
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15448 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-14 10:21:06 +00:00
shennetsind
7e71fb2a97 fixed bug with aliases of the @commands command from working properly; bugfix by xantara. bugreport:5225
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15434 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-12 01:14:19 +00:00
shennetsind
db452bf53d Fixed bug with @commands/@charcommands not displaying aliases
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15433 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-12 01:09:30 +00:00
shennetsind
7fa39f6f68 fix to bug on import of atcommand_athena, bugreport:5207
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15431 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-11 23:40:01 +00:00
gepard1984
8b3a63cf11 Picklog improvements:
- now it is finally possible to log every item players gain or lose
 - added 3 log types: `I` for auctioned items, `B` for buying shop transactions and `X` for all other items transactions that don't fall into another category (for detailed explanation on all log types read `conf/log_athena.conf`)
 - it also fixes items being logged as picked up/gained by player when in fact they were dropped on the ground due to full inventory


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15420 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-11 17:35:28 +00:00
shennetsind
693e77032b Xantara's fix for bugreport:5201, bugreport:5222 and bugreport:5227 (@command related stuff)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15418 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-10 21:07:01 +00:00
Chilly0123
cf229c9c6d *Added 2 new accessory skills.
*Reverted some mob changes from 15387.
*Updated @go list and locations.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15388 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-04 14:44:43 +00:00
shennetsind
21b0b61a99 Fixed atcommand aliases memory leak, bugreport:5200
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15383 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-04 04:50:43 +00:00
shennetsind
22d446d13e fixed @hide from not refreshing users who did not know about the @hide, bugreport:2266
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15376 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-04 01:05:12 +00:00
shennetsind
6d24c58713 Fixed atcommand system not being case insensitive since r15346, thanks to keikun
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15360 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-03 17:27:02 +00:00
shennetsind
66546a794e Follow up r15343, added trimming to each individual aliases, allows the following:
BEFORE: aliases had to be [wat,wut] with no spacing
NOW: spacing is trimmed, you can for example [ wat , wut ]

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15357 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-03 16:45:06 +00:00
shennetsind
7aaf9b5a25 Added new @/# command aliases pattern, all aliases can now be modified/added/removed in the front-end within atcommand_conf (no longer hardcoded). The aliases pattern was defined in this topic: tid:56343 atcommand_conf file rewrite/update belongs to Jguy and BrianL
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15343 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-01 18:00:20 +00:00
shennetsind
9b2e960e64 Fixed "#cmd" nick exploit, bugreport:5188
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15338 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-31 21:35:59 +00:00
shennetsind
e635b713d8 minor @spiritball bugfix, bugreprot:2751
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15285 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-26 11:15:28 +00:00
brianluau
6f01b3d111 * Merged changes up to eAthena 15040 (follow up to r15245, fixed some errors).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15248 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-24 15:02:02 +00:00
eathenabot
9085803c84 * Merged changes up to eAthena 15040.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15245 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-24 14:13:39 +00:00
brianluau
9ebbccacf4 - Replaced tabs with spaces in @go, follow up to r15070. (bugreport:5156)
- BuildBot: enabled the Ubuntu_x64 builder, follow up to r15217.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15226 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-23 13:58:41 +00:00
eathenabot
7b2c38fd24 * Merged changes up to eAthena 15036.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15167 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-19 21:47:34 +00:00
brianluau
e969df2ff8 - Replaced log_config.enable_logs constants with LOG_ enums that existed since r9599.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15150 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-17 06:25:11 +00:00
brianluau
6cae4f1629 - Updated msg_athena.conf to include castle counts up to 34. (bugreport:1522)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15107 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-14 15:48:56 +00:00
epoque11
5d1438cced - Fixed hidden GMs being processed in the PVP ranking timer
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15083 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-13 02:21:13 +00:00
jmanfffreak
1752b766c9 Corrected an event mob being summoned in Endless tower (bugreport:4942)
Added @go locations for new maps (not official, but they're there) (bugreport:4457)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15070 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-12 02:33:14 +00:00
calciumkid
3698180607 Added client feedback to @cash and @points
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15056 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-10 05:05:51 +00:00
shennetsind
9e9872c301 New Battle Config: gm.conf/atcommand_max_stat_bypass for bugreport:3301
-- Allows you to choose whether your gms can bypass your server's max stat limit or not.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15046 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-09 04:11:30 +00:00
shennetsind
f14d12d7d3 @command log bug fix, bugreport:4010
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15036 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-09 02:25:26 +00:00
shennetsind
11d96c3aa8 Fixed @reloadskilldb, bugreport:4412 and in the flow of that mercenary db is now reloaded in @reloadmobdb (like homunculus db already does)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15027 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-08 17:09:06 +00:00
shennetsind
a785b383d7 Merging RREmu into rAthena -- quite a few stuff yet to be renamed, but we'll get it sorted.
Some of the stuff included in RREmu that is now part of rAthena:
- RE Drop Rate Modifier
- RE Experience Rate Modifier
- RE Weapon MATK
- RE Shield ASPD job-specific penalty
- RE Cast Time
- Renewal-specific item DEF
- 3.1 classes.
- All-New Mounts
- Official Magical Reflection
- And other perks, such as fully-functional @mapflag
also merged eAthena 15006 into rAthena.
For Bugs, Comments and Suggestions: http://rathena.org/board/tracker/

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15009 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-05 20:51:58 +00:00
L0ne_W0lf
d25e1c287b * Applied map flag update patch provided by Daegaladh. Will mess with custom restricted items.
- Adds a reset mapflag which is checked when using the Neuralizer.
- Syncronizes the item_noequip_db bitmasks with with skill_nocast_db.
- Updates mapflags, and both skills and items which are restricted.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14961 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-09-20 23:46:48 +00:00
Skotlex
b7ad7aa055 - Commiting a bunch of cleanups piled up from the past few weeks/months/years.
- Updated unitwarp so that an id of "0" causes the script's rid to be warped.
- Updated the Brasilis ontouchNPC warp command to use unitwarp instead.
- Signum Crucis's duration is now specified in the skill_cast_db file
- Updated @warp/@jump commands so that when an invalid tile is specified, a nearby cell is chosen (rather than using a map-wide random value)
- The if(req.weapon) code was broken, since req.weapon is never "0" for a skill. Updated the code so that the requirement of '99' (any weapon) is stored as 0, in order to make the checks effective.
- Cleaned up the code for script command warpparty
- Fixed the define itemdb_canrefine()
- Cleaned up some the status_damage() function
- Fixed map_random_dir(), which at times would pick cells that didn't preserve the required distance.
- Some aesthetic code cleanups.
- Fixed some possible crashes for skills where the code assumes the caster is a player.
- Fixed a bunch of idiotic code-snippets that should have embarrassed whoever was responsible for them.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14929 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-08-10 15:52:59 +00:00
ultramage
edcb998d59 Replaced custom type 'intptr' with standard 'intptr_t'.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14873 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-30 09:14:21 +00:00
ai4rei
d98c0e77cd * Fixed @mobinfo displaying mvp rewards with 'AegisName' although normal drops use 'Name' item db column (bugreport:4981, follow up to r6346).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14868 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-26 15:43:44 +00:00
flaviojs
b02133b422 * Merges from charmerge:
- Added DBMap::exists. (r14090)
- Added sv_parse_next, a stepped version of sv_parse (delim-separated parser). (r14100 r14104)
- Added missing fd check to do_close. (r14145)
- Normalized, refactored and restructured some code (in preparation for shutdown/reconnect code). (r14145 r14150)
- Changed the char select request code to allow the char-server to reject it. (player in map-server trying to go to char select) (r14150)
- Added shutdown support to the servers. (incomplete) (r14152)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14851 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-16 10:22:35 +00:00
Gepard
336680302f * Extracted calculations of the number of status points PC gets when leveling up to a function.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14825 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-15 17:04:46 +00:00
ai4rei
9d505aed9b * Random accumulated bits and pieces.
- Added checks/warnings to pc_paycash and pc_getcash (follow up to r12264).
- Added missing packet_db.txt and packet length table entries for packet 0x0859 (follow up to r14799).
- Added set of map_id2xx wrappers for map_id2bl for most common map objects, which return NULL when the bl-type is not the expected one (also updated map_id2nd to behave this way).
- Fixed missing ',' in mob_skill_db.txt example (follow up to r14270).
- Updated mapcache with recent maps (up to que_lhz).
- Functions 'msg_txt' and 'job_name' now return a const pointer.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14813 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-14 03:15:51 +00:00
ai4rei
a5fb3f66cb * Fixed @makehomun not checking for existing homunculus properly and thus allowing to create a homunculus when one is already present but inactive (bugreport:4879, since r10272).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14806 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-04-28 16:40:47 +00:00
ai4rei
dc6ae732e4 * Some cleanups related to player and monster states.
- Moved user_font and bg_id out of states as they are data, not states.
- Reordered members of state structs so that bitfields are packed together (less memory gets wasted).
- Other insignificant code tweaks.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14795 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-04-16 12:18:24 +00:00
ai4rei
a94aea7582 * Moved duel code into a separate file.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14785 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-04-09 12:07:58 +00:00
ai4rei
bba102a818 * Added separate character state for vending (like for buyingstore), instead of vender_id != 0 (follow up to r14682, related r14713).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14762 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-03-27 18:43:31 +00:00
ai4rei
6aa18784a3 * Random accumulated tweaks and fixes.
- Added a error message to npc_enable, to spot disablenpc/enablenpc/hideoffnpc/hideonnpc on non-existing NPCs (related r14750).
- Replaced inlined npc_name2id code with calls to npc_name2id.
- Open Buying Store skill is now exempted from noskill mapflag like Vending as well (bugreport:4815, follow up to r14713).
- Fixed signed constant being returned as unsigned value in get_percentage (bugreport:4765, since r12679).
- Replaced strlen checks, which checked whether or not a string is empty, with first-byte checks.
- Fixed enabling 'fakename' not clearing party and guild name and cleaned up atcommand 'fakename' code.
- Cleaned up party/guild name code in clif_charnameack (follow up to r14737).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14751 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-03-20 20:19:23 +00:00
ai4rei
015d2ae95c * Fixed @item2 and script command 'getitem2' not taking MAX_REFINE define into consideration (bugreport:4804).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14739 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-03-08 18:55:27 +00:00
ai4rei
ed0711d6a1 * Fixed @str/@agi/@vit/@int/@dex/@luk commands setting a stat to 0 (rather than 1), when exact amount is subtracted (bugreport:4803, since r14493).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14738 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-03-08 14:11:35 +00:00