9284 Commits

Author SHA1 Message Date
ai4rei
ddd5609af3 * Changed function-like macros into inline functions where it seemed appropriate (topic:264007).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14976 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-10-16 06:46:57 +00:00
ai4rei
256fd34dab * Fixed public/guild chat message packets sending strings without zero-termination causing recent clients to display trailing junk on such messages (bugreport:5068).
- Changed memcpy to safestrncpy in message packets where overlong messages are truncated (thus loose zero-termination).
- Replaced dynamic allocation in clif_guild_message with buffer from stack.
- Fixed clif_disp_message not checking whether the message fits into provided buffer.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14975 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-10-16 06:26:40 +00:00
brianluau
b6e6bec3c6 - Fixed .@GID not being set in Gld_Trea_Spawn, since r13559. (bugreport:5067)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14974 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-10-15 22:40:00 +00:00
ai4rei
d86eaff5e6 * Some readme clean-ups (related r14711).
- Normalized whitespace and made the html files validate properly.
- Moved faq-content content to faq.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14973 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-10-15 12:48:11 +00:00
ai4rei
255d0be211 * Updated misleading comment in conf/mapflag/partylock.txt (bugreport:4930, since r14092).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14972 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-10-15 09:59:57 +00:00
flaviojs
c5832ca11e * Add correct reply when player invited to party isn't found.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14970 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-10-10 17:25:15 +00:00
ai4rei
1ccf4e3dc3 * Fixed a merge mistake in brasilis guide (since r14967).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14969 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-10-10 16:58:10 +00:00
flaviojs
7b1ca6d8b3 * Rework some party code.
- add leader argument to party_fill_member
- add party_getmemberid
- add requester char_id to packets 0x3021 and 0x3821 (party info)
- diff members when replacing party info
- remove fixup all-player-iteration when receiving a party for the first time
- send 'party info' before 'party created'
- send 'party info' before 'party member added'
- update empty party_id when checking the player of a party

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14968 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-10-09 13:19:06 +00:00
ai4rei
6a6aa10721 * Merged changes from trunk [14895:14966/trunk].
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14967 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-10-07 21:35:12 +00:00
flaviojs
dd51e5d71a * Remove fds from the shortlist before processing.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14966 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-10-07 11:09:12 +00:00
L0ne_W0lf
4ac7586ed4 Forgot to increase MAX_ITEMDELAYs to 18.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14965 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-09-30 20:18:17 +00:00
L0ne_W0lf
961cb1ba1b * Fixed skill_calc_heal applying heal bonuses only to AL_HEAL.
* Still working on updating the status window to display properly.
* Refine bonuses on armor now apply properly. (+1 additional bonus for every 4 refines.) Refining in general now goes up to 20.
* Criticals will now no longer ignore defense, but will still always hit.
* Converted m/def2 to a short, for testing status window update, will eventually need to surpass 32k. Good like this for now while we work on it.
* Cleaned up some minor things relating tot he arch bishop skill update.
* Applied some of the 30/08/2011 kRO updates to arch bishop skills.
* Added more SI_ Constants from newer clients to status.h.

* Added constants to the database for future updates.
* Updated Runestones and creation items.
* Added Runestone delays to item_delay.
* Added Runestones receipies to produce_db.
* Added dummy rates to refine_db.
* Added Rune Knight skills to skill_cast_db
* Updated Rune Knight skills, and Arch Bishop skills.
* Updated SP requirements in skill_require_db.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14964 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-09-30 19:54:58 +00:00
ai4rei
155a869499 * Updated item_noequip.txt examples to reflect recent changes (follow up to r14961).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14963 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-09-27 16:12:06 +00:00
L0ne_W0lf
76277a427f Fixed a typo (1013,2048 -> 2)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14962 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-09-21 00:01:14 +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
brianluau
558b08bfe7 - Updated strnpcinfo documentation, following r14929.
- Fixed some script typos. (bugreport:5047, bugreport:5049, bugreport:5056)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14960 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-09-20 07:20:19 +00:00
ai4rei
38210eebbd * Fixed CR_SLIMPITCHER passing item requirement index to itemdb_search when used by a monster (bugreport:5021, since r6791).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14959 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-09-18 15:12:05 +00:00
ai4rei
2a28207ffd * Rental items no longer expire in cart and storage. The packet does not support this and rentals cannot be put in on official either (since r14082, related r14083).
- Corrected packet 0x299 (ZC_CASH_ITEM_DELETE) missing inventory index field (since r13370).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14958 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-09-17 12:44:33 +00:00
ai4rei
61395a6003 * Fixed missing edits for cash shop support for clients 2007-07-10aSakexe and older (follow up to r14932).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14957 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-09-17 11:02:00 +00:00
brianluau
f6152933d5 - Fixed some typos in item_db.txt (bugreport:5048)
- Updated SQL item/mob databases to latest.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14956 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-09-10 08:44:57 +00:00
flaviojs
9703374f8a * Fix C++ compilation issues.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14955 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-09-08 19:47:26 +00:00
flaviojs
36bac9f797 * Restrict intif_quest_save to sql only. txt char-server doesn't support the packet and disconnects the map-server.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14954 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-09-06 03:45:03 +00:00
flaviojs
967eaaa7a5 * Add consistency checks to the shortlist.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14953 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-09-05 16:18:27 +00:00
brianluau
df757a04ed - Fixed a typo in Nidhoggr's Nest. (bugreport:5041)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14952 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-09-03 21:49:18 +00:00
Skotlex
1a369e2eb5 - Fixed @reloadmobdb wiping out monster spawn information
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14951 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-09-02 07:31:33 +00:00
ultramage
225a4b2ce2 Fixed 'getitem' documentation typo (stating the optional 3rd argument is char id instead of account id).
Initial documentation mistakes from r2402, propagated to code documentation in r9599, only partially fixed in r12648.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14950 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-09-01 21:19:10 +00:00
Skotlex
4fed311425 - Updated mmo_char_tosql and memitemdata_to_sql to keep a count of errors while saving a character. If there are any errors, the in-memory copy (cp) will not be updated. Should fix dupes that can happen when a intermediary save fails because of sql access being down.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14949 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-08-30 20:16:23 +00:00
L0ne_W0lf
1e6fffed3c *Fixed Blessing crashing the server when used on monsters, monster weapon attack mechanics are currently unknown. * Updated conditions for UNT_EPICLESIS and AB_ADORAMUS (two cases of || to &&.)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14948 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-08-28 23:32:31 +00:00
Inkfish
1fd99c30e5 Fixed AB_ADORAMUS and AB_JUDEX's damage unnaturally high.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14947 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-08-28 05:00:32 +00:00
Inkfish
adc70a0595 * Fixed AB_ADORAMUS's partner and item check.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14946 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-08-28 04:28:11 +00:00
Inkfish
cfcffb4d0f * Added a null pointer check to AB_CLEMENTIA and AB_CANTO.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14945 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-08-28 02:33:12 +00:00
Inkfish
0dded7556b * Fixed skillratio of Archbishop skills is 100% higher than it's supposed be.(it's initialized to be 100% not 0)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14944 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-08-28 01:55:48 +00:00
flaviojs
45a7620f6b * Quick fix for crash when blessing a mob.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14943 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-08-27 20:55:18 +00:00
Gepard
661412206e * Reverted unnecessary signature change of clif_skill_fail from r14941.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14942 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-08-27 18:48:19 +00:00
L0ne_W0lf
f755dd18b3 - Implemented first version of Archbishop skills. Preliminary version, see doc/3rd_job_notes.txt for details/bugs/issues with skills.
- Implemented fixed cast time, old cast time mechanics no longer available. Added bFixedCastRate used for reducing fixed cast time mechanic.
  Cast time calculations probably still needs work, as the cast rate reductions are probably additive and multiplicative as they used to be.
- As a result, skill_delayfix_sc() has been removed, status effects that modify cast time are now calculated DURING cast time, not after.
- Implemented skill cooldown in skill_cast_db.txt. Known issue is that the cooldowns should save on logout/server shutdown/etc.
- Implemented new heal calculation and started work on MATK. Added bWeaponMatk, and bEquipmentMatk for use with new MATK mechanic.
- Removed custom features and their config settings: delay_dependon_dex, delay_dependon_agi, castrate_dex_scale.
- Increased max_def to 9999 for now, as that is by default the largest defense increase found in the Renewal database (Ahura_mazdah, GM item)
- Added shield aspd reduction from job_db1.txt-- Not 100% sure on this one yet. Should be considered a WIP.
- Modified updatestatus(), to display information more in line with the client's status window.
- Updated some calculations in status_calc_misc to match renewal, needs a lot of work still.
- ST_CHASEWALK and HP_BASILICA no longer have 0 cast time while being canceled.
* Implemented 'Boss' Decrease AGI, like 'Boss' Heal - editable in skill.conf
* clif_skill_fail() now accepts a new parameter, to be used in later messages.
* status_change_start() now stores tick as duration upon being called, which fixes timers calling the function from showing negative durations.
* Implemented skill ALL_PARTYFLEE. 1 level, increases party member flee by 10.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14941 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-08-27 03:25:00 +00:00
brianluau
0a72363b1c - Fixed a typo in quests_amatsu (bugreport:4861).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14940 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-08-24 16:51:11 +00:00
Skotlex
5b4c84d286 - Rewrote/updated the SC_COMBO logic. Got rid of state.combo and added usage of packet 0x7e1 (PACKET_ZC_SKILLINFO_UPDATE2) to report skill inf changes.
- Cleaned up a bit the function clif_setlevel (these functions should be as lightweight as possible...)
- Fixed the server sending twice the skill tree during login.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14939 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-08-23 17:30:08 +00:00
ai4rei
7662f1e897 * Fixed monsters above Lv99 displaying a Lv99 aura (bugreport:3986).
- The server no longer caps the level sent to the client by default.
- Servers that require the aura to be displayed at a level different from lv99, either have to alter the client or adjust the 'client_limit_unit_lv' setting.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14938 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-08-21 23:24:50 +00:00
ai4rei
9b7854c898 * Added quick validation of guild emblems' bitmap format to prevent forged emblems, that cause the client to crash, from being accepted (thx to sinya for a sample).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14937 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-08-20 06:10:43 +00:00
brianluau
fdc4f040c7 - Fixed some script typos (bugreport:4861, bugreport:5028).
- Fixed a typo in Blacksmith Quest (fixes issue 5012).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14936 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-08-19 22:58:11 +00:00
ai4rei
deb770e053 * Added -fno-strict-aliasing detection to configure.in (-fstrict-aliasing is added through -O2), since the code is not aliasing safe and causes warnings with gcc.
- This also fixes a missing line in the pre-built configure script (since r14870).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14935 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-08-16 17:09:27 +00:00
Skotlex
81ce878498 - Oh, forgot to make unitwarp support the mapname "this"
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14934 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-08-11 15:56:30 +00:00
Skotlex
a3d1ad027f - Fixed the add_drop code breakage which ocurred after adding support for SP_ADD_CLASS_DROP_ITEM. There's probably a bugreport for this, but the website is also broken currently :3
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14933 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-08-11 15:50:44 +00:00
ai4rei
d162c70ef5 * Added support for cash shop packets without kafra points for clients 2007-07-10aSakexe and older (bugreport:4701, related r10888 and r11548).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14932 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-08-11 02:56:17 +00:00
L0ne_W0lf
0031e22f16 * Raised MAX_MERCENARY_CLASS to 44 for new mercenaries.
* Raised max_lv to allow values up to 150 in battle.conf.
* Raised MAX_SKILL_TREE 77 in prep for 3rd class skill trees.
* Upped max_lv and max_aura to 150, and max_aspd to 193.
* Added Brasilis database updates from trunk r14928.
* Added scripts and NPC Brasilis updates from trunk r14928.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14931 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-08-10 20:46:27 +00:00
Skotlex
ac41a46e44 - added sending a dummy 0x08b9 packet in the char-server, required to support clients from this year.
- added a fix to status_heal to take into account that -int_max == int_max in some architectures, which leads to an infinite loop (bugreport:3410)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14930 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-08-10 16:53:47 +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
L0ne_W0lf
ebfc42b8d5 * Implemented remaining Brasilis NPCs.
* Added remaining database modifications for Brasilis.
- Added the skills for the Brasilis monsters.
- Added remaining entries for Bathroom Ghost quest.
- Added stats for the Suspicious Hydra monsters.
- Corrected the capture rate for Suspicious Hydra.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14928 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-08-09 20:08:47 +00:00
L0ne_W0lf
bf223b4578 Merged database changes from trunk r14927.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14927 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-08-07 23:45:49 +00:00
L0ne_W0lf
70e1ec52a5 Minor item-related updates, and a couple quest database updates.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14926 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-08-07 14:55:43 +00:00