3072 Commits

Author SHA1 Message Date
skotlex
d92276ac7a - oops, fixed bSkillHeal raising bSkillAtk instead
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11086 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-29 19:32:22 +00:00
skotlex
dafa566df8 - Added bonus bSkillHeal to distinguish offensive skill damage increases from healing power boosts.
- Moved battle_skillatk_bonus to pc.c, cleaned up the related skillatk bonus code to consider the skillheal bonus option.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11085 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-29 18:30:25 +00:00
ultramage
3417441a6f Fixed a rare crash concerning invalid homunculus data and one NULL-pointer.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11075 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-24 19:38:38 +00:00
skotlex
4612bb8a10 - Fixed the hotkey list sending to the client not displaying right away.
- Corrected the unit_id of NPC_EVILLAND (taken from jA)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11071 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-24 01:15:56 +00:00
skotlex
f9f1076a9e - Fixed Dragon Fear's status change selection and duration.
- Fixed Metamorphosis not displaying a speed-change update on the client.
- Status changes that were blocked by element are no longer blocked, instead, now no-damage skills are blocked if they have an element which is absorbed by the target (This is the behaviour that Tharis believes is correct).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11067 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-22 22:49:54 +00:00
ultramage
8e7e11775e Corrected item drop rate limits to allow full 0.01%-100% range (fixes mistake from r11043)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11059 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-21 14:25:09 +00:00
skotlex
81faa4770b - Oops, forgot to add the Pulse Strike damage modifier.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11055 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-20 19:02:01 +00:00
skotlex
cc3c71cbae - Fixed Earthquake not clearing out the target-count before counting targets.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11052 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-20 18:07:23 +00:00
ultramage
60836b7613 More compilation warning fixes...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11051 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-20 08:52:56 +00:00
ultramage
137877aebf Fixed a gcc compilation error and some warnings.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11046 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-19 19:47:43 +00:00
ultramage
e476015e82 Set proper limits to drop rates to prevent integer overflow.
Minor details cleanup.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11043 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-19 16:28:24 +00:00
ultramage
0072a0189e * Cleaned/clarified some #include relationships between headers
* Changed clif_sitting() to use 'bl' instead of 'sd' (for non-player objects)
* Removed way messed-up script function 'unitdeadsit'
* Tagged 'FIXME' lines written by myself

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11040 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-19 12:55:29 +00:00
ultramage
312714cfa9 Again removed the IG_ list from itemdb.h (see r10100 and r10113) due to popular request.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11037 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-19 06:27:29 +00:00
ultramage
97e812dda1 * Fixed a deallocation mistake and some buffer overflows in npc_chat.c after doing rtfm@pcre.txt (all caused by incorrect usage of pcre api)
* Removed underscores in npc_chat.c's variable names (easier to read)
* Reindented the whole thing (used spaces half of the time ._.)
* Moved npc pcre-data deallocation from npc_remove_map to npc_unload

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11036 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-19 06:04:34 +00:00
skotlex
1518e0240b - Cleaned up some the pet armor display code.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11034 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-19 00:55:46 +00:00
skotlex
29a07a72e7 - Corrected a bit npc_remove_map, map_deliddb and strdb_remove calls belong to npc_unload rather than npc_remove_map. Also improved a bit the removal of the npc from the map's npc list.
- Added back the hair-style/hair-bottom fields to the spawn packet, and the pet-idle packet is no longer sent when the pet does not has an armor equipped (this should cut down on bandwidth a bit for non-equipped pets)
- Moved the position of the map_addblock/clif_spawn code section in parse_LoadEndAck to above the party-hp blocks, this corrects party-member HP display mnot being updated when someone spawns in your range of sight.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11033 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-18 03:22:11 +00:00
ultramage
d9cc3b4951 Changed the duel_time_interval setting's lower bound to 0 (to allow disabling the delay)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11031 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-17 19:32:41 +00:00
ultramage
99ad0f978a * Implemented the official dual-wield aspd equation
- using 0.7 instead of 0.66 as modifier (so aspd will be lower now)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11030 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-17 19:29:03 +00:00
Playtester
ed98c68a49 Fixed eAthena's wrong interpretation of the respawn times
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11027 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-16 18:59:00 +00:00
ultramage
e8f6f4ad38 Added pc_isidle() to simplify a few idle-no-share checks.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11026 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-16 18:52:59 +00:00
Playtester
518ec82222 Added icons for NPC_CRITICALWOUND and NPC_SLOWCAST
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11025 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-16 18:04:49 +00:00
skotlex
e7dc538c16 - fixed Ruwach (the last NPC skill update modified the way Sight/Sightblaster/Ruwach work, but the latter did not get updated properly)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11024 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-16 17:31:15 +00:00
ultramage
8076b535d4 * Fixed npc chatrooms not being deleted on npc unload/reload (crash)
* Modified chat code a bit for more clarity
- replaced double-indirection on 'owner' with a normal pointer
- separated some common functionality to 'chat_createchat()'

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11023 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-16 14:14:11 +00:00
skotlex
0c1a8f2b37 - Cleaned some more the hotkey code: The order by and limit specifications are not really needed when loading hotkeys, and added hotkey deletion when you delete the character.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11022 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-16 03:55:16 +00:00
skotlex
025a1b5120 - 'make clean' now removes the svnversion.h file in src/common/ since otherwise it is pretty much never updated.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11020 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-15 23:08:22 +00:00
skotlex
dff80559d4 - Merged and completed Latio's work on server-side hot-key saving (http://www.eathena.ws/board/index.php?s=&showtopic=159388&view=findpost&p=884453)
- Now hotkeys are stored server-side (table hotkey in SQL servers, file save/hotkeys.txt for TXT servers). You can disable this behaviour by commenting out the 'HOTKEY_SAVING' define in mmo.h
- Fixed a few compilation warnings/errors.
- Apply upgrade_svn11018.sql to create the hotkey table.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11019 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-15 22:08:30 +00:00
Playtester
efff167bc0 * Added Critical Wounds to Anubis's skills
- also added some icon info

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11018 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-15 20:33:28 +00:00
ultramage
56d9a037a6 * Some serious code cleanups
- adjusted @reloadbattleconf to not depend on variable ordering
- changed all battle vars to 'int' (removes pointless duplicit coding)
- added min, max and default columns to battle config data structure
- added properly bounded values for these columns (or at least tried to)
- battle-conf loading will now complain if it finds unknown settings,
  and will reject values that are outside of the allowed range
- added CHATROOM_TITLE_SIZE and CHATROOM_PASS_SIZE 
- partially cleaned up chatroom manipulation code
* Fixed 'Job_Professer' typo in mage jobchange quest

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11017 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-15 17:13:04 +00:00
ultramage
c8bd07a0bb small mapindex.c typo fix
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11014 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-15 09:24:45 +00:00
skotlex
2d6cef47d6 - Modified map_foreachinrange so that you can also specify the max length of the path to use. The max_count field in the skill_db is used to specify this range for path-type skills (Sharpshooting, Kamaitachi and the NPC Breath skills.
- Implemented the 'new' NPC skills described here: http://ro.doddlercon.com/wiki/index.php?title=Monster_Skills . It is mostly complete, but the new status changes (slow cast, critical wounds, etc) don't have any visual effects yet (icon or opt changes? I don't know if they should have). Also I could not find the unit_id for Evil Land, so it looks just like Sanctuary for now. Apart from those, the only skills which I couldn't get to display properly are the Breath skills (with the exception of Fire Breath).
- skill_calc_heal now takes the target as argument to properly support Critical Wounds
- battle_calc_return_damage now takes a flag to know if the attack was direct or not, needed since Magic Mirror also reflects indirect attacks.
- cleaned up the 'description' field in skill.c, added skill_get_desc to it
- Removed 'splash' support from Lex Divina as it is no longer needed.
- Modified the way Sight/Sightblaster work so that the skill id is no longer guessed (needed to properly acquire the splash range for Wide Sight)
- Corrected gtb_sc_immunity setting not taking effect if your block value was the same (that is, if the config said 30%, then you would only get status change immunity at 31%, nor 30%)
- Uncommented the 'new' npc skills from mob_skill_db as they are implemented now.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11000 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-14 00:05:13 +00:00
ultramage
44f421f12e * Corrected skill-based hp/sp regen (SM_RECOVERY, MG_SRECOVERY, MO_SPIRITSRECOVERY, NJ_NINPOU, TK_HPTIME, TK_SPTIME)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10991 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-13 08:14:12 +00:00
ultramage
954fc415c1 * Replaced some mob_avail.txt entries with a simple example entry
* Removed "Crusader quest monsters" from mob_avail (not used anymore)
* Updated the mapcache with data for moscovia maps
* Fixed one problem in map_delmap()
* Fixed a bad message in @disguise

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10988 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-12 20:13:17 +00:00
ultramage
8ce46993a7 - added proper comments to login packet 0x277
- added a missing \n to one login server warning
- silenced one "dc[4] might be uninitialized" warning
- fixed an apparently wrong abra_db.txt entry (venom splasher: 40000)
- removed .gat from the remaining npcs

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10974 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-10 10:52:30 +00:00
ultramage
c8ff534024 - stable -> trunk sync
- battle.c and pc.c formatting
- fixed one badly defined npc shop format string
- removed the "selling item for no buying price" warning when the item has a buying price of 20 (see topic:157465)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10971 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-09 18:56:27 +00:00
ultramage
bc31c68ad5 The new functions now clear junk from the output buffer, this simplifies the code a bit.
Added a TODO for one emblem loading problem/crash.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10969 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-09 11:02:44 +00:00
skotlex
27488665e0 - Moved damage logging to mob_log_damage, now non-damage targetted (or splash) skills also get logged into the monster's 'damage history' which affects the exp-bonus per attacker setting.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10966 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-09 03:43:46 +00:00
skotlex
52ed64546e - Changed the structure of the homunculus_db file so that the homunculus and its evolved version share the same line. Also added the evolution bonuses to it.
- Updated the @homstats command to show evolution bonuses
- Cleaned up the homunculus db structure.
- Implemented the evolution stat growth bonuses.
- Some small cleanups in the mercenary.c file
- Corrected initial intimacy of a newly created homunculus (should be 21/1000)
- Incremented the size of mob.c:summon.class_[] since mob_pouch has almost 350 entries.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10965 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-08 20:56:11 +00:00
ultramage
f5f77a5d51 * Cleaned up junk left in the code by the mapcache/mapindex update
- Added mapindex_getmapname(_ext) to help with ".gat" adding/removing
- Moved related processing to the interface (prevents duplicity)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10963 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-08 17:41:49 +00:00
skotlex
9e9847a83e - Fixed some missing max levels for npc skills
- Expanded isloggedin script command to support an optional argument (char id)
- Expanded warpparty command to accept target "Leader", this will warp the party to the leader.
- Added a summon structure to handle non-dead-branch mob-groups since the current implementation totally fails for mob groups that don't have MANY integrants
- Fixed mobs not attempting an IDLE skill right before unlocking a target.
- Removed a useless variable in the pet_data structure


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10961 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-08 01:55:58 +00:00
ultramage
c06dca0c87 Some minor typo fixing.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10960 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-07 21:54:12 +00:00
ultramage
f29330ef02 * Slightly deobfuscated the max-hp calculation functionality
- fixed hp/sp calc code adding extra few points from item bonuses

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10955 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-06 20:35:56 +00:00
ultramage
f26bc90351 * Added a null-pointer check to skill_initunit() to prevent a crash
* Added a while() loop to the client packet processor (for performance)
* Added support for kRO 2007-05-14aSakexe langtype 0 login packet 0x2b0
* Added Job_Baby_Alchemist define to complement the Job_Alchemist update
* Added custom Hollow Poring mob_db2 entry

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10954 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-06 19:05:37 +00:00
ultramage
7f6ee484ba Fixed a missing charserver include causing "warning: struct declared inside parameter list".
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10953 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-05 16:17:10 +00:00
ultramage
0a0782c664 Some all-around code reformatting/cleaning
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10947 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-04 16:24:49 +00:00
ultramage
66516651c3 * Removed weird mvp reward item drop behavior (see topic:160077)
* Fixed Cart Revolution not transferring status effects on attack, and Cart Termination doing it when it shouldn't (see topic:156745)
* Fixed #refine not accepting names with spaces in them
* Fixed disguises not doing sit-down properly (missing self packet), broken since r6299 stable / r5833 trunk
* Added missing /blackmith packet action to packet_db.txt
* Removed "eathena's custom equipped mobs" from mob&skill db

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10946 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-04 15:31:02 +00:00
ultramage
519d61249b Renamed menuskill_lv -> Renamed menuskill_val, because people also used it to store stuff like map coords, inventory offsets and object IDs...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10937 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-07-31 07:41:21 +00:00
ultramage
eae0b6d382 * Corrected pet taming code; items are consumed immediately and only 1x
- TODO: add proper code for people who want delayed consumption

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10930 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-07-30 20:40:06 +00:00
ultramage
ef0fff1720 * Removed ridiculous refine_posword config switch
* TODO: remove getequipname() func, it can be fully replaced by editing a few scripts, plus it doesn't do what the docs say it should do
* Fixed a silly mistake in the main script engine loop ('pos' variable)
* Fixed monter -> monster typos
* Compacted some script function code (fewer LoC -> faster trac :)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10923 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-07-28 19:21:40 +00:00
ultramage
0711d4375e * Simplified exp gain equations (now more FPU-friendly and precise), also fixes the uninitialized variable problem
* Corrected one exp calculation overflow (mainly affected high-rate pk servers)
* Fixed Neuralizer item script typo

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10921 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-07-27 19:06:40 +00:00
Vicious
19328d44fb * Changed the way hit bonus is applied.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10916 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-07-27 02:55:21 +00:00