2386 Commits

Author SHA1 Message Date
skotlex
0697e450ed - Improved sql-query to check if name already exists when creating new chars.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8727 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-12 21:30:03 +00:00
skotlex
6f501a8bb2 - Moved the morph restrictions from skill_additional_effect to mob_class_change, so that SA_MONOCELL will not convert clones, emperium, or treasure boxes.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8724 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-12 18:44:07 +00:00
toms
7b6be24f47 Fixed 'range' might be used uninitialized warning
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8723 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-12 18:39:57 +00:00
skotlex
c6142c3f39 - Added manual deletion of sc_data entries when deleting a character (char-SQL)
- Updated main.sql to use pure MyISAM tables, removed all foreign keys.
- Added Jaguar's sql script to convert all tables to MyISAM. It's located in sql-files/convert_engine.sql
- Removed convert_guild_tables.sql as we don't use InnoDB anymore.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8722 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-12 18:22:54 +00:00
skotlex
34683f252f - Updated battle_switch to use strncmpi instead of strcmpi, it makes it so using "yessir" will match "yes", this is actually needed because if you set a config setting to "yes " (notice the trailing space), then the map config engine fails to read it right, and will set the config setting to 0 (no).
- Added function pc_resethate to more easily handle Angel trigger
- Made feel_var and hate_var static variables to pc.c to simplify things and avoid errors due to redundancy.
- Updated the show_mob_info setting to add another space to the separating pipes, so that each field is separated by " | " instead of " |".


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8721 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-12 16:17:57 +00:00
skotlex
ebc1f2bc02 - Moved the packet_len variable in login.c to the login parse case, since it's used nowhere else.
- timestamp check speed-up in showmsg.c
- Swapped the blank ShowMessage on server startup to a printf
- Homunculus intimacy will go back to 500 on evolution.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8719 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-12 14:21:02 +00:00
skotlex
59fae741c3 - Baphomet splash damage will now hit nearby enemies regardless of flee (but the initial attack still has to connect for the splash to trigger)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8716 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-12 13:42:54 +00:00
skotlex
27c9a6fe5a - Modified set_nonblocking and setsocketoptions in socket.c, using eApp's code as reference. Hopefully should improve performance somewhat.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8710 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-11 21:32:26 +00:00
skotlex
e5aacfe978 - CG_MOONLIT is no longer castable in WoE grounds.
- Changed the default of enable_baseatk to 9 (player + homun)
- Changed the default of enable_perfect_flee to 1 (players only)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8708 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-11 20:59:12 +00:00
skotlex
4cd82897d0 - Added a comment explaining what a comment is to login/char/map config files, as well as the main script config file.
- Modified SG_FEEL so that it works the same way that in Aegis (packet-wise)
- Added a comment to explain how to "remove" a string variable from the msg_athena entries.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8707 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-11 16:20:40 +00:00
skotlex
4bec54f154 - Summoned and slave mobs won't show up on @showmobs anymore.
- Moved Spider Web damage bonus from battle_calc_damage to battle_attr_fix, so that damage will be doubled based on the actual attack element.
- Adjusted autospell cards to trigger only on physical weapon attacks.
- Adjusted a bit the heal code, it should now show either the full heal amount, or 0, depending on whether the target was healed at all or not (this also means it shows 0 if you try to heal a full-life character.. but it's the closest I've gotten to make it display 0 on Berserked chars)
- Memorize will be consumed even on instant cast spells now.
- Berserk will end now if hit and remaining hp is less or equal to 100.
- Guild Aura will be removed on sc-load to prevent Guild Masters from getting that bonus from the old implementation.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8705 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-11 14:27:49 +00:00
Lupus
59e39f1b71 git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8698 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-09-11 05:01:48 +00:00
skotlex
e232baea00 - Added a crash protection in case mapfreeblock unlock tries to free a null pointer.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8688 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-09 17:32:40 +00:00
skotlex
2487548c72 - Moved perfect_hiding from state to special_state, so that it clears out when you remove your pet.
- Probably fixed the Taekwon Rest skills.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8687 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-09 16:52:24 +00:00
skotlex
2b63a85789 - Fixed a npc-timer memory leak on npc_unload ("[Warning]: ers_obj_destroy: X entries missing, continuing destruction. Manager for entries of size 16.")
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8686 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-09 14:11:02 +00:00
skotlex
99aca1182b - Unified the rest and ganstar paradise code into a single function.
- Moved the Happy State trigger to the regen function, it now triggers at the same time the SPTIME does.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8681 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-08 19:37:56 +00:00
skotlex
0d30562da5 - Cleaned up SG_HATE to use a new function, pc_set_hate_mob to handle setting.
- Updated pc_authok to initialize all mob_hate vars to -1
- Updated clif_hate_mob to receive the hate-type instead of skill-lv.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8680 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-08 18:45:51 +00:00
skotlex
50e0a52c9b - Removed sg_miracle_skill_duration, replaced it with sg_miracle_skill_min_duration and sg_miracle_skill_max_duration, to specify a range for the duration of the skill.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8679 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-08 17:56:10 +00:00
skotlex
6db8420f3c - Added upgrade_svn8675.sql in case, for some reason, your guild table still has the emblem_data field as a 'blob' with "NOT NULL" specified.
- Some minor cleanups.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8675 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-08 16:36:48 +00:00
skotlex
56127c4b8d - Fixed alliance/opposition making not cancelling out map-server-side when the guild already had max number of alliances/oppositions (thanks to k3dt)
- Cleaned a bit the code for SG_*_ANGER
- Fixed a warning in clif.c


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8673 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-08 13:34:38 +00:00
skotlex
5b7601f3db - Fixed SC_BERSERK setting Hp to 100 when dispelled by unnatural means (eg: wand of hermod)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8668 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-08 00:25:51 +00:00
skotlex
845659a32d - Changed the default of sg_angel_skill_ratio to 10 based on recent information from Tharis.
- Cleaned up the doridori parse clif function.
- Moved doridori_counter to state.doridori
- Merged some of mpeg's work on NJ skills


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8665 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-07 20:24:41 +00:00
skotlex
a64e58d5eb - Removed the Warmth "stacking" code.
- Added back the effect of /doridori to skill-SP regen
- Implemented a rough version of Angel of the Sun/Moon/Stars, it has a low chance of triggering on doridori-boosted SP-regen events.
- Added sg_angel_skill_ratio to specify rate at which the Angel skill triggers.
- Added unit_cancel_combo which takes care of ending a combo time and resuming normal attack 'inmediately'
- Cleaned up some the SG_HATE code, you can't change hate targets anymore.
- Increased duration of Miracle of the Sun/Moon/Stars to one hour.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8664 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-07 17:40:46 +00:00
skotlex
09fa10f2c2 - Added error message when attempting to use deprecated bonus bAspd.
- Added missing line terminator on a pair of ShowErrors in the sig plugin.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8660 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-07 13:39:49 +00:00
skotlex
acf83e7574 - Fixed the memset in status_calc_pc, corrects some mysterious bugs such as item-drop bonuses suddenly not working anymore.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8658 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-06 23:12:18 +00:00
skotlex
1abe796ab7 - Corrected SC_INCREASEAGI and SC_DECREASEAGI speed-change formula.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8656 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-06 21:28:32 +00:00
skotlex
609bfd1e48 - Updated skill_require_db's entry for Abracadabra, it requires yellow 2 gemstones (there's no such hardcoded yellow gemstone requirement anymore)
- Corrected db/const.txt entry bMagicSubRace -> bMagicAddSize
- Fixed Aex Aeterna ending on Soul Breaker's first half.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8651 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-06 14:22:16 +00:00
toms
bcd6f5aadc Applied Orn's modification on speed increases/reductions with increase/decrease agi
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8647 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-06 09:36:53 +00:00
skotlex
bea0a8c46e - Removed setting mob_show_hp, it's been replaced now by mob_show_info, which can be used to specify what kind of info should be displayed from a mob. Current options are two different formats for Hp display, and current level.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8644 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-05 20:58:27 +00:00
skotlex
af829182c1 - Fixed Signum Crucis Def reduction being 10+2*lv% instead of 10+4*lv%
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8643 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-05 20:30:57 +00:00
skotlex
8a01f7d2ca - applied the Ultra Mage's suggestion to have the map server strip trailing spaces/comments from the config files. It will also now print out when an unknown config setting is found.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8642 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-05 20:27:08 +00:00
skotlex
0853b1751b - Fixed status change resistance not being invoked at all for pretty much all cases.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8641 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-05 19:53:14 +00:00
skotlex
4e9c745bdf - Corrected SC_INTRAVISION not starting.
- Small cleanups (line terminators, indenting)
- Fixed crash when attempting to read a Label as a string on a script (thanks to End of Exam)
- Fixed possible crash when changing a chat-room's owner (thanks to End of Exam)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8639 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-05 19:49:38 +00:00
skotlex
d0563b1951 - Fixed dispell removing SC_NOCHAT
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8635 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-05 17:55:56 +00:00
skotlex
352944cf6e - Small fix which should correct skill_attack damaging hidden characters when it shouldn't.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8633 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-05 16:32:59 +00:00
skotlex
072b488c01 - Fixed crash when using Adaptation during an Encore.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8627 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-05 02:51:57 +00:00
skotlex
d3b4aa4bbf - Should have fixed manner being reset to 0 on logout while muted.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8621 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-04 21:40:36 +00:00
skotlex
19d37b82d0 - Removed status_get_sc_tick, duration and chance are now both handled by status_get_sc_def
- Fixed mob-kill experience getting screwed up when characters who did damage die/logout at the moment the mob dies.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8619 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-04 19:06:46 +00:00
skotlex
9e07adc071 - Should have fixed "sleep", thanks to Lance for figuring out the error.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8618 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-04 18:16:11 +00:00
skotlex
b081345d26 - Ordered up entries in skill_unit_db
- SC_REFLECTSHIELD will now be passed to devoted characters at cast-time.
- Added a check to make a mob's level 1 if the read level from the db is less than it.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8615 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-04 16:47:52 +00:00
skotlex
def8753415 - Some cleanup of how mobcount works.
- status_calc_misc will now be invoked in status_calc_bl even on the first call, since status could have gone up due to skill bonuses.
- Moved max HP/SP calculations to before invoking status_calc_misc
- Simplified distance and check_distance to use "aegis" methods (greater of dx/dy = distance), there's a new define in map.h called CIRCULAR_AREA, when set, the previous method is used, and map for each in range calls will also check for distances, making most ground skills and battle system use real circles instead of squares.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8609 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-04 14:10:14 +00:00
skotlex
0c3d2fd638 - Fixed SC_BERSERK's no regen penalty lasting pretty much forever.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8605 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-04 03:13:44 +00:00
skotlex
83deb9deec - SC_REGENERATION's val4 now holds the RGN flag of what is blocked rather than blocking all types of regen.
- LK_BERSERK will now only block natural regen on state-end.
- SC_EXTREMITYFIST/SC_DANCING/SC_EXPLOSIONSPIRITS will only block natural sp regen and not skill regen
- SC_REGENERATION blocking will be cancelled on logout now.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8600 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-02 23:24:11 +00:00
skotlex
480f4d2de4 - Applied use of RC_BOSS/RC_NONBOSS in the ignore def code.
- Corrected SCB_LUK not updating SCB_BATK as well.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8598 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-02 20:40:51 +00:00
skotlex
a9e7abfc20 - Corrected script_commands description of getequipid, it returns -1, not 0 on fail.
- Fixed the mob-id check during pet_db loading, it will also now print when a pet is not loaded due to having an invalid mob class specified.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8587 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-02 01:43:23 +00:00
toms
a2ce0be45b The "delete_timer error/no such timer" report will now print the related function
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8586 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-01 23:26:08 +00:00
toms
9c8acc1464 The Clearing unused stack report will now print the related NPC
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8584 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-01 22:54:50 +00:00
toms
5c9beff857 The duplicate npc report will now print the related file name
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8582 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-01 22:27:38 +00:00
skotlex
9976069fdc - Added a missing break in battle_check_target
- Added config setting "partial_name_scan", which specifies whether @ given names should use a partial string lookup or absolute name lookup. Defaults to no (gm.conf)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8578 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-01 15:56:34 +00:00
skotlex
a4ce257ad3 - Added defines status_base_matk_(max/min) for code readability
- Expanded status_calc_misc so it may also calculate the batk of characters as well as their regen data (if they have it)
- Fixed a memory leak when using charsave_method:1


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8576 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-01 15:18:15 +00:00