2386 Commits

Author SHA1 Message Date
skotlex
44365a97f2 - Fixed duel accept invite sending the packet before the duel data is set (resulting in a packet that noone receives). Thanks to Toms for finding it out.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7881 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-25 19:29:21 +00:00
skotlex
3fc64fbe0a - Fixed a possible crash when you dual-wield and the total damage is 0.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7880 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-25 19:12:27 +00:00
skotlex
b2a4d6446c - Cleaned up the skill_landprotector function to correctly block only magic skills from being placed on land protectors.
- Corrected itemdb_group so that it will not return the random item givers (should give priority to actual item groups, so that the item heal bonuses work correctly)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7867 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-25 00:42:38 +00:00
skotlex
1b9b599e2a - Modified the loginlog setting on the login-sql server to store the ips using the htonl conversion function before storing/retrieving them from sql.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7866 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-24 23:32:02 +00:00
skotlex
91cae9f29b - Cleaned up the Mistress Card related code so that the no-gemstone bonus reduces item requirements by one rather than totally skip them.
- Cleaned up the logs "can log"function to use the IT constants. Also corrected the "only log large amounts" setting not working on negative values (trades).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7863 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-24 20:29:18 +00:00
skotlex
7100c9aa21 - Adjusted skill_castfix_sc so that Suffragium will get consumed even on instant cast skills, but Memorize won't.
- Adjusted map_countoncell to receive the BL_* defines currently used instead of 0 to signal all.
- BladeStop will now end when either of the characters is moved (knocked out?) around.
- Moved the Zeny penalty code from respawn to pc_dead.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7859 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-24 19:01:53 +00:00
skotlex
e66ac3dfce - Added a check to prevent Deluge/Volcano/Violent Gale from being placed on top of each other. Reverted the previous 'fix' where atk was being increased based on armor element rather than element of attack.
- Added flag 0x002 (no reiteration) to Deluge/Volcano/Violent Gale (skill_unit_db)
- Removed the noreturn mapflag check from script command warp.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7858 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-24 17:28:13 +00:00
DracoRPG
d42fb96de3 Random Homunculus cleanup
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7857 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-24 16:58:29 +00:00
skotlex
cb54048d1e - Changed Land Protector's range back to 3.
- fixed unban unblocking players as well.
- Fixed Volcano/Deluge/Violent Gale increasing damage based on element of attack instead of defense element of attacker.
- Cleaned up the code of Magic Rod, fixed it not giving SP.
- Moved the code of Hermod and Basilica to castend_pos2 so it should work now.
- Modified the code of Ankle Snare so the status ends on unit's time-limit rather than when the snared object moves away.
- Re-worded the water check of ST_WATER skills.
- Allowed sc-cast reductions to be processed even when cast-time is instant (to let suffragium end even on instant-cast skills)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7855 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-24 15:10:51 +00:00
skotlex
0c9d50445d - Modified setting skillrange_by_weapon (skill.conf) to be a per-object-type setting instead of yes/no. The default now is that weapon-based skills will take the attacker's range for non-players.
- Changed the default of skillrange_by_distance to include homunculus.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7844 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-23 18:17:30 +00:00
skotlex
c914fc106a - Fixed buildin_isequip not working correctly with non-cards.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7838 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-23 16:40:46 +00:00
skotlex
3b81e0ef03 - Applied use of EQI/EQP constants to the strip skills code.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7831 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-22 17:02:58 +00:00
skotlex
9a745cdd3c - Applied Toms's suggested corrections to homun code.
- Corrected Cannibalize/Marine Sphere ignoring the selected summon spot.
- Fixed looting pets ignoring the item pick-up priority of other players.
- Should have fixed a signess warning in login txt.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7828 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-22 16:47:03 +00:00
skotlex
414c7841bd - Removed some pc_equipitem code that was added earlier today that wasn't really needed.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7824 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-22 07:50:47 +00:00
skotlex
8c8732ede2 - Added blocking of @me when muted or in berserk status.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7822 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-22 04:04:12 +00:00
skotlex
4289e1c98d - Corrected the @follow timer not being deleted on logout.
- Applied the homunculus code fixes provided by Toms.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7820 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-21 23:45:53 +00:00
skotlex
b7bdc0faaa - battle_check_target will now tag homunculus as invalid target when the source is a skill-type object.
- Added a check on pc_equipitem so that when the client specifies to equip a weapon on the right hand when the left hand is available, the weapon will be sent to the left hand instead (when dual-wielding is possible, obviously). Same for the left/right accessories.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7816 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-21 20:34:37 +00:00
skotlex
fc7e47d714 - Added the necessary checks so that Suiton makes Fogwall have double duration, and to make water-requiring skills to consume their cells.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7813 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-21 19:32:06 +00:00
skotlex
afb83ab5e0 - Added the vaporize line when the player dies in pc_dead.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7809 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-21 18:21:38 +00:00
skotlex
0f5a4717ef - Now when the char-txt server does not finds a requested party, it will clear out said party id of all characters (will help prevent massive spamming/overhead when for some reason the party file needs to be deleted).
- Combo skills (inf = self, inf2 = no target self) no longer check range if you use them while your attack-timer is still active.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7806 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-21 17:11:50 +00:00
skotlex
1ad493fc8c - Added back a map_freeblock call in skill_delunitgroup which caused a memory leak @.@...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7803 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-21 16:04:50 +00:00
skotlex
f750c3ed73 - Small bug fixes found during merging to stable process, includes correct HP scaling when hp-meter is enabled and max hp is above SHRT_MAX
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7802 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-21 15:46:36 +00:00
skotlex
f5464dccc0 - Added a check to prevent Blind from ending while standing on a fog of wall.
- The mob Slave ai will be executed now even when the slave has a target. This will allow for "instant" warping to the master when it changes maps or teleports. if the slave has a target already, it won't unlock it and chase back to the master or anything like that.
- Removed a couple of checks that prevents item ids above 20000. However, remember that the max id is still ~32k or the client is the one who's gonna crash!


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7799 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-21 14:05:27 +00:00
skotlex
7e68dd7948 - Added source reporting when you do an invalid int&str or str&int operation on a script.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7782 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-20 23:13:22 +00:00
skotlex
5587ea7cd6 - Fixed the intif party creation packet having the incorrect size sent, hence causing the leader's level to be read as garbage (which caused the "impossible to even share" bug).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7780 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-20 23:03:53 +00:00
skotlex
703c4b2af8 - Added pc_check_weapontype to do a proper skill weapon check that takes into account dual-wielding. That is, if a skill can be used with daggers/axes, you'll be able to use the skill when dual-wielding them.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7779 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-20 21:05:12 +00:00
skotlex
de6883c0bb - Corrected Cloaking level 1-2 not letting you move across walls.
- updated cloaking code so that when you set "enable cloaking without walls", the code will consider you as "always next to a wall", thus you get the wall-speed bonus always.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7778 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-20 20:34:06 +00:00
skotlex
a0ab1d07f5 - Applied the fix to homunculus name saving...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7777 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-20 19:57:18 +00:00
skotlex
e5b4eaaea0 - Added battle config settings agi_penalty_target and vit_penalty_target, they define which object types will get vit/flee reductions when multi-targetted and defaults to only players (battle/battle.conf)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7774 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-20 18:29:08 +00:00
skotlex
5b8eac3bc4 - Added a skill_unit_db entry for NJ_HYOUSYOURAKU, thanks to Eus for the data.
- Added the dummy intravision case for the changeoption packet 0x229
- Corrected Fog of Wall so that all targetted offensive skills (not only those who do damage) will fail on cast-end 75% of the time.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7773 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-20 18:03:18 +00:00
skotlex
ce467089e1 - corrected @homlevel up and one entry in the homun exp table as reported on the forums by Albator.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7770 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-20 17:31:39 +00:00
skotlex
911eb096e3 - Added a status_check_skilluse on skill_attack_area call to prevent splash damage skills from hitting hidden/trickdead/etc characters.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7767 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-20 16:05:45 +00:00
skotlex
c9e0dbb9a9 - Corrected fog of wall to behave as best known. Only takes effect when targetting a character inside it, -50hit/-75% damage when using normal-ranged attacks, -25% damage from all damage skills, 75% chance of all targetted damage skills of failing.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7764 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-20 14:35:02 +00:00
skotlex
478e0bc736 - Should have fixed @refine applying multiple times to equipment that uses multiple equip slots.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7762 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-20 13:56:37 +00:00
skotlex
0ec8fc5f1f - Oops, should have fixed sql compilation of mob.c
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7753 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-19 20:49:14 +00:00
skotlex
da34db27c2 - Fixed the inf code update breakage which was blocking all offensive skills.
- Added battle setting homun_critical_rate (defaults to 0)
- Removed enemy_str/pet_str/enemy_perfect_flee and replaced them with
- enable_perfect_flee which specifies which objects can have perfect flee and enable_baseatk which specifies which objects can have a base attack value (both in battle.conf)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7752 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-19 20:27:05 +00:00
skotlex
046e959e52 - Modified the targetted skill logic to enable offensive skills to be targetted at party/guild members if the appropiate inf2 value is set.
- Added the SC_JAIL code for timed jailing, but the related @ commands ain't in yet.
- Added checks to make adding items to inventory/cart fail when a char is in finalsave state.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7751 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-19 18:49:42 +00:00
skotlex
8b0f535cec - Fixed parse_names on irc.c crashing when receiving a null argument.
- Modified the parsing of the names line, since some servers will send @ instead of = when separating the information.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7750 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-19 16:54:37 +00:00
skotlex
c89acf814e - Fixed the homun creation sql statement. Why noone else did so before?
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7749 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-19 15:29:55 +00:00
skotlex
64e01d9894 - When enabling/disabling hiding/unhiding an npc, if the npc is a warp, it will use clearchar and spawn packets instead of changeoption. Thanks to Toms for the fix.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7746 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-19 15:24:40 +00:00
skotlex
c96212781f - Corrected Trim chars to block 'enter', as explained by the Ultra mage.
- When the client passes account version 0, the login server will set it to 1 now.
- Corrected the HP bar scaling when HP is above Short Max. It should display fine for any HP value now.
- Added a check when the mob's adelay is shorter than the amotion, in which case the adelay will be changed to the amotion value.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7742 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-19 14:31:01 +00:00
skotlex
094db48cae - Added atcommand @partyoption, lets you alter the party item-distribution type on the go. Usage is "@partyoption <pickup share> <item distribution>", where both arguments can be 0/1, yes/no, etc.
- Updated @changeleader and @partyoption to use msg_Athena entries.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7737 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-18 21:12:35 +00:00
skotlex
f7535ef5a9 - Fixed a compile warning. Some minor format cleanups.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7733 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-18 16:14:44 +00:00
skotlex
b974a6b765 - Added character 013 (enter) to the list of characters that are always removed from new character names.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7732 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-18 15:05:26 +00:00
skotlex
189f0e05f0 - Fixed a crash when trying to extend TK's infinite combo feature.
- Corrected Poison React to counter regardless of distance, and to use the skill's 50+5*lv% counter chance (instead of 100%).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7730 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-18 14:50:17 +00:00
skotlex
67f1befafc - Corrected Venom splasher's splash damage
- You now can't move/attack/use-skills when using Cloaking of a level less than 3
- Fixed compilation of mercenary.c


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7729 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-18 14:33:52 +00:00
skotlex
6598266122 - Corrected Fog of Wall's "targetted spells fail 75% of the time" feature by making it behave like GTB, that is, you just get a skill-failed on cast-end, no skill-animation at all.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7728 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-18 13:50:27 +00:00
skotlex
97b00a11ad - Added a proper check to make aggressive mobs never override homun targets regardless of distance.
- Removed a bunch of homun-related variables that are not needed at all. The alive condition is removed, now the code checks for the hp value to know if the homun is alive or not.
- Cleaned up a bit the skill-id function, homun skill checks (such as delay and skill-lv learned) should be correct now.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7727 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-18 13:25:21 +00:00
skotlex
4cb1768c78 - Fixed giving the 100% damage bonus when no-splash-targets are found in the blown path to Grandcross instead of Bowling Bash. Bowling Bash damage equation becomes then +50*lv% rather than +40*lv% when there's no splash-damage (the 50*lv% figure is custom, all we know is that level 10 does 600% instead of 500% damage).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7726 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-18 12:43:17 +00:00
skotlex
6abed14141 - Updated mob_db.sql to current mob_db.txt data.
- Some cleaning on chrif.c
- The char-server will allow off-line character saves when said char is tagged for final-save (this is the scenario when the char-map reconnect).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7722 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-18 02:41:10 +00:00