flaviojs
f4d8ec2ff0
* Added common/random and 3rdparty/mt19937ar to project files, makefiles and configure script.
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14870 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-27 01:47:06 +00:00
ai4rei
2ca000132b
* Fixed a signed literal being assigned to an unsigned variable and other minor cleanups in malloc (bugreport:4765).
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14869 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-26 16:05:07 +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
ultramage
d480c27293
Fixed quest index memory corruption when adding new quests (since r14039, bugreport:4982).
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14867 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-26 15:04:47 +00:00
ultramage
e69f094b30
Slightly cleaned up some ancient Brandish Spear code:
...
* remove helper 'struct square' from common/mmo.h
* moved skill_castend_nodamage_id's case ML_BRANDISH to separate function
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14866 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-25 23:21:24 +00:00
flaviojs
161a499c76
* Added Mersenne Twister MT19937 as a random number generator.
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14865 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-25 22:09:35 +00:00
flaviojs
762dcdc316
* Made chrif_save always call pc_makesavestatus. (no reason to prevent the call, and was interfering with multi map-server; fixes bugreport:1400)
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14863 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-23 19:49:17 +00:00
ultramage
d4a24e017e
Plagiarized skills are now removed on jobchange (bugreport:4973).
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14862 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-22 21:02:46 +00:00
ultramage
8229284b40
Added enum e_skill_flag to represent the values of struct s_skill's complicated 'flag' field.
...
Reordered the enum values so SKILL_FLAG_REPLACED_LV_0 goes last and arithmetic can be done on it safely (for storing skill level values). This also adds support for skill levels higher than 10.
Fixed several places where SKILL_FLAG_TEMPORARY was not handled properly, and instead was considered as one of the saved skill level values (resulting in skill level -1).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14861 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-22 20:11:48 +00:00
ultramage
b39ddf66ff
Fixed the order of mapindex and md5calc files in visual studio projects (mistake in r13728 and r13729).
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14860 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-21 17:41:30 +00:00
ai4rei
d3d2003fea
* Fixed various sorts of issues with VS6 project files (since r6929, follow up to r14466 and r14638).
...
- Debug configuration was missing and release had _DEBUG defined (indicates debug configuration).
- Login-server (SQL) defined PACKETVER=6 (overrides mmo.h).
- Warning Level was 2, which hides a lot of actual errors.
- Added projects for mapcache and TXT converter.
- Removed references unneeded/obsolete libraries/source files.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14858 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-19 13:44:52 +00:00
ai4rei
cdd5ade6f0
* Fixed using @refresh while having vending or buyingstore open would stuck the character (bugreport:156 , since r1307).
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14857 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-18 16:08:50 +00:00
ai4rei
81c8c18b57
* Fixed missing strlib.h include for compilers without own 'strnlen' implementation (since r14853).
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14855 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-18 10:13:19 +00:00
ultramage
170e322ccc
Moved DBMap's string maxlen parameter translation (0 -> UINT16_MAX) to its initialization phase, so that it runs once instead of on every hash and compare step. This will slightly speed up most strdb operations.
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14854 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-16 17:36:53 +00:00
ultramage
7861584d59
Fixed DBMap's db_dup_key to allocate only as much as necessary (bugreport:4969).
...
This reduces default eA's memory usage by about 400kB.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14853 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-16 17:01:09 +00:00
flaviojs
ccb0bdde68
Fixed char-converter not being able to compile due to both char.h being included. (caused by last commit)
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14852 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-16 14:02:37 +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
80f7d00f7b
* Fixed 3rd classes not being able to level up after Base Level reset.
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14848 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-13 21:17:23 +00:00
ai4rei
dd1cc7c836
* Fixed pet's equip would visually disappear when it's walk speed was changed while it was standing (related r14838).
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14847 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-13 15:31:47 +00:00
L0ne_W0lf
8581de1255
Corrected improperly converted spawns, and instance timers for sealed shine and Orc Dungeon.
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14846 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-12 00:26:47 +00:00
ai4rei
36fd8bcf19
* Added support for new skill usage notification packet 0x7fb (ZC_USESKILL_ACK2).
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14845 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-11 18:23:06 +00:00
ai4rei
bb48f685e7
* Fixed party invite packet 0xfe (ZC_REQ_JOIN_GROUP) using account id of the inviter rather than party id.
...
- Added support for new party invite packet 0x2c6 (ZC_PARTY_JOIN_REQ), introduction date guessed.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14844 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-11 16:08:44 +00:00
ai4rei
0eb61f5a95
* Fixed a crash in clif_parse_FriendsListAdd, when a player is added that is not online (bugreport:4947, since r14835).
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14843 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-03 03:18:30 +00:00
Inkfish
213ff7ff38
Fixed a typo in buyingstore_create.
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14842 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-31 11:43:19 +00:00
ai4rei
9e4d7a1beb
* Fixed script command 'warpguild' looking for an attached player even when it is not needed (bugreport:4941, since r2674, related r14840).
...
- Documented special map names recognized by the command.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14841 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-30 19:24:02 +00:00
ai4rei
ce70d39dbc
* Fixed script command 'warpparty' looking for an attached player even when it is not needed (bugreport:4359, since r14311, related r2674 and r5592).
...
- This also resolves an issue, where the command fails when the attached player is on a map that has noreturn or nowarpto mapflags set.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14840 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-30 19:00:43 +00:00
ultramage
dd22261936
Renamed clif_parse_ReqFeel to clif_feel_req (since r4352).
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14839 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-29 18:30:23 +00:00
ai4rei
982ce2323c
* Fixed pets' speed would not get updated to normal, after they finished running to their owner (bugreport:1304).
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14838 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-29 16:07:22 +00:00
ai4rei
4356e5fdbc
* Fixed NULL pointer in status_change_timer (SC_BERSERK), when the HP subtraction causes the HP drop below 100, but does not exceed remaining HP (bugreport:1150, related r8705, r11786 and r12061).
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14837 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-29 13:43:51 +00:00
ai4rei
aa0bf03f74
* Updated script commands 'npcshopitem', 'npcshopadditem' and 'npcshopdelitem' to support cashshops as well (bugreport:4928).
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14836 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-29 12:41:16 +00:00
ai4rei
8325f3518f
* Fixed players could add themselves to their friendslist through their clones or WPE (bugreport:4909).
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14835 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-29 12:31:12 +00:00
ai4rei
0bbca2a6aa
* Fixed bonus 'bHPDrainValue' on left hand would work as right hand bonus, when specified with 'bonus' rather than 'bonus2' (bugreport:4939, since r6221).
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14834 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-29 12:09:02 +00:00
brianluau
946e9bd0af
- Fixed a possible exploit in guild castle investment. (bugreport:4929, topic:272783)
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14833 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-24 07:59:43 +00:00
brianluau
1c0abe84ef
- Fixed a possible exploit in guild castle investment. (bugreport:4929, topic:272783)
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14833 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-24 07:59:43 +00:00
brianluau
177342ad2b
- Fixed some bugs in Cursed Spirit quest. (bugreport:4926)
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14832 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-24 04:55:02 +00:00
ai4rei
bfbac60c74
* Changed enumerating defines into enumerations (related topic:264007).
...
- Minor fixups on few macros.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14831 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-23 07:12:02 +00:00
brianluau
d3d4504d7f
- Fixed a typo in eA Job System documentation.
...
- Fixed some bugs in Cursed Spirit quest. (bugreport:4914, bugreport:4917)
- Changed <dir> in movenpc to wrap around if the number is < 0 or > 7.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14830 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-22 18:05:23 +00:00
ultramage
1370e74073
Quick fix to Venom Splasher's Poison React bonus, 30% -> 20%, based on aegis (bugreport:230).
...
Initially eA used 20%, then it got removed in r10907 due to incorrect info, and was added back in r11494 as 30% (no idea where I got that number from >.>).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14829 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-18 20:34:13 +00:00
ai4rei
e769080fca
* Fixed Super Novices could not be adopted (bugreport:4907, since r12389).
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14828 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-17 15:46:30 +00:00
ai4rei
c5c6d83877
* Improved error reporting during monster database and spawn data reading.
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14827 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-17 05:59:49 +00:00
Gepard
69948858c4
* Merged changes from trunk [14824:14825/trunk].
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14826 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-15 17:39:46 +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
Gepard
5d8e2e76bb
* Removed status point calculations (duplicate) from pc_resetstate
function. It is now handled by pc_need_status_point
.
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14824 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-15 15:09:52 +00:00
Gepard
2e3209566f
* Added support for increased max statistics (parameters) for 3rd classes (regular and baby).
...
* Updated amounts of status points given at Base Level up for levels over 99.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14823 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-15 09:20:53 +00:00
Gepard
44a2936f02
* Fixes to Job Level stat bonuses table.
...
- Added missing bonuses: Warlock's INT, Minstrel's INT & AGI, Genetic's VIT.
- Official Royal Guard's bonuses.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14822 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-15 08:17:21 +00:00
ai4rei
38725ab312
* Merged changes from trunk [14784:14819/trunk].
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14821 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-15 05:30:25 +00:00
ai4rei
5179a206ba
* Merged pcdb_checkid update from renewal [14810/branches/renewal].
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14820 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-15 05:14:29 +00:00
Gepard
ab5c7c3c16
* Added Job Level stat bonuses for baby third classes.
...
- Fixed Genetic High's VIT bonus being given at different level than Genetic's (since r14557).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14819 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-14 21:37:57 +00:00
ai4rei
600e9e8320
* Moved bitfield 'boss' inside 'spawn_data' and 'mob_data' into the respective state struct (from r13813, follow up to r14795).
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14818 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-14 12:07:33 +00:00
ai4rei
aaab80fb80
* Some NPC event related cleaning.
...
- Made event label deprecation message a warning rather than an error, as the scripts still work regardless of whether '::On' is used or not (since r6592).
- Introduced constant EVENT_NAME_LENGTH (51) for all event name struct fields to eliminate size inconsistency across all objects (was 50 and 51).
- Fixed event names, that are considered special attributes, were not wiped when the value was 0 (since r5707).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14817 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-14 11:04:30 +00:00