1981 Commits

Author SHA1 Message Date
toms
5511cb9ea3 Changed atoi to strtoul for guild-experience's field
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8090 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-03 09:46:35 +00:00
toms
c831b74d87 Fixed a bug in int_storage.c, temp array doesn't have the good size
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8088 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-03 08:51:18 +00:00
skotlex
aebca964db - Modified yet again SC_SILENCE after iRO tests from Entwined on IRC. Silence now ONLY blocks skills from being used, it will not stop on-going casts.
- Updated status_cast_cancel to also include silence (so the cast bar is cancelled if you are silenced during it)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8086 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-03 01:50:40 +00:00
skotlex
689c7368e6 - Updated the way SC_SILENCE works. From what I remember (from previous forum discussions) it: 1- Always blocks skills from being used. 2- Will only block a skill when the cast-bar ends IF the skill is targetted. If anyone wants to debate to get this changed, make an appropiate forum topic in the svn development area to discuss.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8083 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-03 00:45:49 +00:00
skotlex
f131a8bda7 - Moved Full Buster blind penalty to skill_counter_additional_effect
- Added a dummy blind duration of 10 secs to FullBuster.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8082 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-03 00:27:22 +00:00
skotlex
c02123e704 - Added a check in the walking code when triggering skills. NPC_SELFDESTRUCTION will no longer cancel walking, it will instead resend the walk packet, this effectively causes the mob to start walking (clientside) while the cast-bar is showing.
- Updated the mob skills so that the marine sphere casts self-destruction with 3 second cast after it starts walking.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8079 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-02 23:47:33 +00:00
skotlex
587f8e7568 - Fixed a logic error on battle_get_master which was causing infinite loops... ~.~
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8077 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-02 23:21:54 +00:00
toms
c68d6a5717 Fixed homunculus error message
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8073 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-02 21:34:01 +00:00
skotlex
ed76d50157 - Rewrote pc_payzeny to not use doubles, it may more accurately prevent charging a player more zeny than they can withhold.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8072 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-02 21:14:38 +00:00
skotlex
8961bc591d - Fixed failing to create Deadly Poison Bottles damaging 50% of your max life instead of 25%
- Added the missing status-change flags to SC_FREEZE to signal it should modify def and magic def


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8070 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-02 21:00:45 +00:00
toms
28a6fc49c1 Little add on NJ_HUUMA
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8069 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-02 20:32:43 +00:00
toms
20da0f1913 Merged Mpeg's work on Ninja skills
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8068 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-02 18:33:34 +00:00
skotlex
a70dcb58c6 - Fixed char-txt compilation.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8065 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-02 17:56:27 +00:00
skotlex
0fbdc22df4 - Fixed Martyr's Reckoning having a cap damage of 32k.
- Changed Scream and Hammerfall's stun duration to 5 seconds.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8064 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-02 17:49:01 +00:00
skotlex
8d7c008a65 - Fixed Defender Raising Walk speed instead of diminishing it.
- Swaped val3/val4 of defender so that all walking penalty skills store said penalty in val3.
- Added a check on status-change load to prevent loading speed-affecting status when their speed adjustment is 0 (prevents division by zero)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8061 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-02 17:06:16 +00:00
toms
8e191af335 Code cleanup & optimization on guild part of char-server
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8059 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-02 16:37:02 +00:00
skotlex
abcf47cd67 - Fixed script code data not being free'd if a player quits in the middle of a script.
- Modified run_script so that when there are leaks, it will report the place where run_script was called from as source rather than the inner code of run_script (for debugging purposes)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8057 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-02 15:40:25 +00:00
skotlex
d239082490 - Made recursive master check the default (otherwise it messes skill -> pet -> player kind of herarchies) and cleaned up some the battle_get_master code to prevent infinite loops in the weird case someone specifies that their master is itself.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8055 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-02 15:11:17 +00:00
skotlex
19a4f0b31a - Recoded the GuildAura code to use val3 & val4, allowing much greater stat bonuses (in case someone wants to get Guild Skill level 20 or something crazy like that)
- Fixed compilation error...


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8053 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-02 14:55:14 +00:00
skotlex
7a082b02a8 - Updated battle_check_target so that all alchemist summoned mobs can be target by everyone.
- Cleaned up skill_check_condition_mob_master_sub, it will now count both total number of summoned mobs and amount that belong to the same type.
- Corrected AM_CANNIBALIZE so it will fail if you already have plants of another type out.
- Using NPC_SELFDESTRUCTION no longer will make the caster stop walking.
- Removed SI_GUILDAURA, and replaced it with SI_LANDENDOW, now Volcano/Deluge/V. Gale will get that funky icon instead.
- Changed clif_hominfo to receive both sd and hd as parameters
- Some redundancy cleaning in mercenary.c
- Moved updating of sd->mercenary.hp from merc_damage to pc_makesavestatus.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8048 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-02 14:27:17 +00:00
skotlex
6ef71063cb - Fixed NPC_SELFDESTRUCTION damaging yourself, causing the source to be knocked back, as well as making others in the splash damage not receive any damage if they are hurt after the caster.
- Fixed NPC_RUN not setting the mob's state to MSS_WALK (normally not set by the mob ai)
- unit_walktoxy flag&2 setting will now also ignore unit_can_move, for a forced walk. 
- Adjusted NPC_RUN level of Marine Spheres (5->7 cells)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8044 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-02 04:09:01 +00:00
skotlex
14b59636c7 - Made Deluge/volcano/v. gale be castable on top of each other again
- Modified unit_walktoxy and NPC_RUN to enable running even when the caster does not has the MD_CANMOVE bit on.
- PF_MINDBREAKER will now silently fail if you try to use it on someone who already has the status active.
- Cleaned up yet again skill_landprotector, now new cells of Deluge/Volcano/V.Gale will delete previous cells when they are recasted on top of each other.
- Summoned Marine Spheres no longer get the MD_CANMOVE bit.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8039 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-01 18:37:16 +00:00
skotlex
56c9df875c - Cleaned up some more the SC_JAILED code
- merged in atcommands jailfor, jailtime, charjailtime. Thanks to Meruru and Coltaro for the code.
- Cleaned the code of atcommnds jail and unjail
- Be warned that the code MAY contain bugs as I adjusted it to save the character's position before jailing, allowing the automatic unjailing to warp you back to the exact spot you were at before being jailed.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8038 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-01 17:59:34 +00:00
skotlex
2d7b332124 - Should have fixed the cooking sets not displaying all cooking available items.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8036 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-01 16:08:43 +00:00
skotlex
cd50714a47 - Figured out and fixed the issue with Volcano/Deluge/Violent Gale not really working. Thanks to Mpeg for noting it out.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8034 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-01 16:02:19 +00:00
skotlex
4550e45f33 - Modified Self Destruction, so that Marine Spheres in non-versus maps will hurt only enemies, while in all other situations this skill will hurt everyone around them.
- Expanded setting debuff_on_logout so that &1 removes negative buffs and &2 removes positive buffs.
- Food status boosts will no longer end on death, but they will end when you respawn or logout.
- Added battle config file status.conf, moved some settings from skill.conf and battle.conf to it since they are entirely Status-Change related.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8033 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-01 15:56:57 +00:00
skotlex
7f0c0e574c - Added the missing lines to enable script command "kickwaitingroomall"
- Magic Rod's can-act delay will no longer be applied when you absorb a spell.
- Fixed Don't Forget Me increase speed instead of decreasing it.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8031 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-01 14:52:22 +00:00
skotlex
65e0327024 - Modified setlabel so that the script engine barks when you are trying to use the same label name as a constant or variable name.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8027 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-01 13:52:17 +00:00
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
Vicious
8aa1963517 changed shell of blood into normal bullet. A_SHOTGUN is still around just in case/i didn't want to touch that.XD
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7985 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-30 20:47:10 +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