1091 Commits

Author SHA1 Message Date
skotlex
2918287bd5 - Fixed the subnet 0 mask being reset to 0 when someone goes up on the fame rankings.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8021 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-01 04:24:45 +00:00
skotlex
010bec3575 - Updated Poison React chance to counter and number of counters as per skill description updates.
- Fixed Sharpshooting being counted as a magic attack, and hence, using your MATK as base damage.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8019 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-01 01:54:20 +00:00
skotlex
cd1b6a71e9 - Fixed NPC_STOP id value in skill_cast_db
- Bladestop will no longer stop when you push either of the characters around.
- Fixed Enchant Poison having a near 100% chance of poisoning target on attack.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8015 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-01 00:32:54 +00:00
toms
be50bd5620 Little fix on duel
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8014 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-31 22:41:40 +00:00
toms
35fc0dc4f3 Added possibility to restrict duel usage to same map
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8013 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-31 21:21:55 +00:00
toms
5e47973166 Merged mpeg's fix on ninja skills
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8012 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-31 20:19:56 +00:00
skotlex
5bbd6fe6b9 - Corrected a status_get_race call which should be status_get_race2 in misc attacks.
- Moved the Devotion code to the top of the SC list in status_damage, meaning that now stuff like being asleep or confused won't end if you are hit, but the damage is absorbed by devotion.
- Some cleanups in battle.c (replaced usage of status_get_* for status->*)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8009 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-31 18:38:51 +00:00
skotlex
2fd9920c75 - Changed the variable message in parsing normal text from unsigned char to char (should shut up some compiler warnings)
- Added the Soul Link of Rogue speed bonus to Chase-Walk. Since there's no information of how much the bonus should be, it currently is a conservative 10%.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8007 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-31 16:00:38 +00:00
skotlex
f4f3eff4cd - Fixed a possible crash in the main script engine when restoring previous script.
- Fixed sleep.tick not being set back to 0 before resuming execution, which leads to scripts that are continously executed even when they already ended (they do nothing but waste resources)
- Fixed a pair of free -> aFree used on stacks, which would lead to memory manager reporting leaks where there aren't.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8000 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-31 15:05:58 +00:00
skotlex
56580d56f0 - Removed incorrect "Waterball range+1 when standing on suiton" feature.
- Corrected the Speed update code to prevent sending "walk to xy" packets twice when the affected character is a player.
- Expanded mob can't move warning to print out where this mob was stuck at (map, x,y)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7998 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-31 14:26:04 +00:00
toms
30c231ad0c Fixed segmentation fault in status_change_end, vd wasn't initialized
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7995 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-31 09:13:19 +00:00
skotlex
2922c98e81 - NPC_INVISIBLE will now use Cloaking of a level +9 of the used skill level, so that at level 1 they can attack, use skills and receive no walking penalty.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7989 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-31 02:50:17 +00:00
skotlex
8c1698e2e5 - Mob casted Sanctuary will no longer always heal it's targets regardless of element/race
- Status change packets will now use as criteria for sending the actual view_class instead of player/not-player. This will fix status-changes displaying improperly on clones, and also possible crashes with disguised players.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7984 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-30 20:43:57 +00:00
toms
d05578fe70 Merged mpeg's fix on ninja skills and SA_VOLCANO,SA_DELUGE,SA_VIOLENTGALE
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7983 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-30 19:32:53 +00:00
skotlex
2c88556eb7 - Added bNoMiscDamage setting so you can specify misc-damage blocking from skills. Modified battle_calc_damage so that even Pressure and similar skills will be affected by this setting.
- Removed SC_LANDPROTECTOR as it wasn't being used by anything.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7982 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-30 18:56:33 +00:00
Vicious
f0d0180409 GS Skill updates/fixes
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7979 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-30 15:48:12 +00:00
toms
7d36341087 Force all players offline in sql when char-server starts
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7977 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-30 13:31:04 +00:00
toms
e61a6fb306 Removed ugly struct cast in login.c
New version of buildin_query_sql which accept more than one column and can return the number of rows. See script_commands.txt for more details.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7975 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-29 23:06:03 +00:00
toms
10f43b792f Fixed nullpo in merc_hom_skillup
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7974 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-29 18:54:54 +00:00
toms
b1f19b525f Added a return value to buildin_rid2name if rid is invalid
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7973 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-29 18:46:20 +00:00
skotlex
b10a96995e - Made the SQL ping interval default to 7 hours.
- Memorize cast time now can't be reduced by status changes neither.
- Made skill_unitsetting remove the group when no unit-cells were placed down. basicly this means that if landprotector blocks all tiles, the group will be removed from memory, preventing said group from counting to the total number of skills you can set.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7972 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-29 17:39:36 +00:00
toms
685a894908 Fixed segmentation fault in script engine when calling something which is not a function
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7971 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-29 15:30:41 +00:00
toms
8dca441de7 Fixed segmentation fault in script engine when activating DEBUG_RUN flag
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7970 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-29 15:10:00 +00:00
skotlex
fa591ce109 - Added A_* constants to identify ammo types.
- Added Ishizu's code to check ammo type on attack. No more using Grenade rounds with Guns.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7959 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-29 03:32:43 +00:00
skotlex
1d577c9f75 - offensive heal/sanctuary will only happen when the source of the heal is a player, mob/pet casted heal will now always heal regardless of target.
- Shield Chain will now ignore the 'ice-pick' defense piercing bonus.
- Removed pretty much every comment from skill.c as they were not even in ex-japanese, but they are now in butchered ex-japanese.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7958 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-29 02:55:10 +00:00
skotlex
40e5f13ec9 - Self destruction will now hit all characters in range, not just enemies.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7950 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-28 19:41:04 +00:00
skotlex
7cdbea9cf2 - Cleaned up the NJ update code.
- Restored code which was removed (stuff like SC_SKA)
- Fixed possible crashes on some NJ skills if used by non-players.
- Fixed most NJ magic spells doing more damage than they should.
- Fixed ZenyNage being able to do more damage than zeny you have.
- Cleaned up skill setting code for Suiton and Kaensin
- Ordered SC_* definitions in status.c


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7947 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-28 15:11:17 +00:00
skotlex
1d754d8cd8 - Some cleaning of battle_drain, Evil Druid card should work now.
- Made status_damage allow damaging of objects not on a map, this should fix pet-catching making the mob never respawn again.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7946 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-28 13:33:51 +00:00
toms
627e316993 Casted nothl to (unsigned int) in sprintf functions, IP is 32bits and sql field the same...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7945 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-28 12:16:26 +00:00
toms
f53ac9c2ca Fixed "warning: `list' might be used uninitialized in this function" in char/char.c@3032
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7944 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-28 11:17:01 +00:00
toms
31a0d55fb9 Fixed : - "uninitialized local variable 'i' used" in skill.c
- "warning: suggest explicit braces to avoid ambiguous `else'" in battle.c 

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7943 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-28 11:04:44 +00:00
toms
bf650446b0 Fixed "warning: long unsigned int format, unsigned int arg" in parse_login (login_sql\login.c)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7941 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-28 10:48:04 +00:00
toms
5e40f9e914 Fixed sign warnings in login/login.c
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7940 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-28 10:36:10 +00:00
toms
0f58cb2c3e Fixed "conversion from 'double' to 'int', possible loss of data"
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7939 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-28 09:45:30 +00:00
toms
f15fedf466 Fixed "warning: redefinition of [ushort/uint/ulong]"
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7938 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-28 09:36:47 +00:00
toms
c7d47f2325 Fixed duplicate case value on NJ_SUITON
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7937 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-28 09:17:11 +00:00
skotlex
6178d109d3 - Fixed a memory leak when there exists more than one user function with the same name, added the appropiate warning when this happens.
- Added reporting source file when an npc shops item's price is exploitable.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7935 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-28 04:17:24 +00:00
skotlex
1b23809655 - The picklog will now record negative values for items sold to npcs.
- Added inmediate position and hp-bar update when a character joins a party.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7934 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-28 03:28:13 +00:00
skotlex
a549cdaf1a - Added missing SC information to NPC_CHANGEUNDEAD
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7931 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-28 01:54:20 +00:00
skotlex
5ccb5a9525 - Added config setting party_update_interval so you can specify how often the party-mate minidots should be updated (defaults to 1 sec).
- Removed a bunch of broken comments in skill.c


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7929 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27 23:52:18 +00:00
skotlex
c9e9b3b75b - Synced the script.c file with as much data as possible from jA's:
- A lot of functions were moved around, a bunch of indentation and space-usage changes were done to make it easier to diff against their files.
- Miscellanous addition and corrections were applied.
- Largest one is likely a restructuring of run_script_main, which hopes to solve the memory leaks.
- script engine now uses the setjmp functions to restore memory state when there's an error parsing scripts, which means that script errors won't cause the map-server to inmediately bail out anymore.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7926 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27 21:00:19 +00:00
skotlex
36602a3958 - Added a cleanup routine on shutdown to remove all characters from memory for whom the save ack has not returned from the char-server yet.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7923 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27 16:15:26 +00:00
skotlex
932107f772 - Now when you set the guardian's HP, if the guardian is spawned, it's HP will be updated accordingly (and if you set it to 0, the guardian is killed)
- Added functions status_set_hp/status_set_sp to set hp/sp to a given value. Applied usage of these on the Berserk and Soul Change code.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7922 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27 15:44:57 +00:00
skotlex
574198e3e7 - Added config setting "party_hp_mode" (battle/party.conf) which determines method to use to update party-mate hp bars. Aegis style is to update HP bars whenever HP changes, while eAthena style is to update it together with the map party dots. Defaults to aegis style.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7920 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27 14:42:17 +00:00
skotlex
893d5088f8 - Fixed packet 0x22a having the manner and opt3 packets in inverted offsets.
- Some other small cleanups on clif.c


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7919 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27 14:28:07 +00:00
skotlex
7cf5521c32 - Readded the check which prevents Cloaking from activating when your learned level is less than 3 and you aren't next to a wall.
- Some cleanups to the Frenzy/Berserk status change, it should probably work correctly now.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7917 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27 13:53:52 +00:00
skotlex
3fb5dce0ae - Removed a redeclared variable i in the parsing of the fame list (char-txt server) which seems to be the cause of the random memory corruptions.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7915 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27 13:20:44 +00:00
toms
5062379bb4 Fixed Independence Memorial Hat weight, set to 0
Updated item_db.sql to latest.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7914 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27 13:01:15 +00:00
toms
ee5ee4fcd0 * Fix homunc & code cleanup [Toms]
- Timer problems on delete_timer
  - Intimacy problem (overflow & new values)
  - Homunc deleted if intimacy < 0
  - base exp is now given to master
  - Homunc sometimes not saved

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7913 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27 11:56:22 +00:00
skotlex
6c9eb52332 - Fixed a memory leak when reading the item_db txt.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7906 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27 03:33:56 +00:00